From f2cc24526ff129dd12eae180d0c8ccbd37ad4882 Mon Sep 17 00:00:00 2001 From: Active Date: Mon, 4 Mar 2024 06:25:41 -0600 Subject: [PATCH] remove: docs & dist & fix decimalRand API --- dist/utils.min.mjs | 9 - docs/ast/source/.external-ecmascript.js.json | 2802 - docs/ast/source/eutils.js.json | 142641 ------------ docs/ast/source/eutils.mjs.json | 142641 ------------ docs/ast/source/utils.mjs.json | 177808 --------------- docs/ast/source/vendor/logger.min.mjs.json | 45589 ---- docs/class/src/eutils.js~EUtilsSingleton.html | 3858 - .../class/src/eutils.mjs~EUtilsSingleton.html | 3858 - docs/class/src/utils.mjs~UtilsSingleton.html | 5442 - .../src/vendor/logger.min.mjs~Logger.html | 2255 - 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/eutils.js.html | 631 - docs/file/src/eutils.mjs.html | 631 - docs/file/src/utils.mjs.html | 858 - docs/file/src/vendor/logger.min.mjs.html | 64 - docs/identifiers.html | 128 - 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 | 190 - docs/index.json | 3064 - 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 | 590 - docs/script/test-summary.js | 54 - docs/source.html | 78 - docs/variable/index.html | 134 - 44 files changed, 535020 deletions(-) delete mode 100644 dist/utils.min.mjs delete mode 100644 docs/ast/source/.external-ecmascript.js.json delete mode 100644 docs/ast/source/eutils.js.json delete mode 100644 docs/ast/source/eutils.mjs.json delete mode 100644 docs/ast/source/utils.mjs.json delete mode 100644 docs/ast/source/vendor/logger.min.mjs.json delete mode 100644 docs/class/src/eutils.js~EUtilsSingleton.html delete mode 100644 docs/class/src/eutils.mjs~EUtilsSingleton.html delete mode 100644 docs/class/src/utils.mjs~UtilsSingleton.html delete mode 100644 docs/class/src/vendor/logger.min.mjs~Logger.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/eutils.js.html delete mode 100644 docs/file/src/eutils.mjs.html delete mode 100644 docs/file/src/utils.mjs.html delete mode 100644 docs/file/src/vendor/logger.min.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/dist/utils.min.mjs b/dist/utils.min.mjs deleted file mode 100644 index f9822eb..0000000 --- a/dist/utils.min.mjs +++ /dev/null @@ -1,9 +0,0 @@ -/** - * utils@1.0.0 git+https://github.com/EvitcaStudio/Utils - * Compiled 1/25/2024, 10:49:04 AM UTC - * - * utils is licensed under a MIT styled License. See LICENSE.md for more info. - * - * Copyright 2024, Evitca Studio, All Rights Reserved - */ - var t={d:(e,r)=>{for(var s in r)t.o(r,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:r[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={},r=(t.d(e,{c:()=>i}),{d:(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)}),s={};r.d(s,{Y:()=>o});class o{constructor(t){this.RESET="",this.BRIGHT="",this.DIM="",this.UNDERSCORE="",this.BLINK="",this.REVERSE="",this.HIDDEN="",this.FG_BLACK="",this.FG_RED="",this.FG_GREEN="",this.FG_YELLOW="",this.FG_BLUE="",this.FG_MAGENTA="",this.FG_CYAN="",this.FG_WHITE="",this.FG_GRAY="",this.BG_BLACK="",this.BG_RED="",this.BG_GREEN="",this.BG_YELLOW="",this.BG_BLUE="",this.BG_MAGENTA="",this.BG_CYAN="",this.BG_WHITE="",this.BG_GRAY="",this.TYPE_SPACER_LENGTH=13,this.types={default:this.FG_WHITE},this.currentType="",this.SPACE_CHAR=" ",this.FG_COLORS={};for(let t=0;t<=255;t++)this.FG_COLORS[t]="[38;5;"+t+"m";this.BG_COLORS={};for(let t=0;t<=255;t++)this.BG_COLORS[t]="[48;5;"+t+"m";Array.isArray(t)&&this.registerTypes(t)}prefix(t){return"string"==typeof t&&(this.currentType=t),this}message(e="log",...r){var s=this.currentType||"";if(0===s.length)console[e](...r);else{var o=s.length>=this.TYPE_SPACER_LENGTH;let t=this.types[s.toLowerCase()]?this.types[s.toLowerCase()]:this.types.default;var i=t.includes("");i||(t="color: "+t),!globalThis.window||i?console[e](t+s+this.SPACE_CHAR.repeat(Math.max(this.TYPE_SPACER_LENGTH-s.length,o?1:0))+"|"+this.RESET,...r):console[e]("%c"+s+this.SPACE_CHAR.repeat(Math.max(this.TYPE_SPACER_LENGTH-s.length,o?1:0))+"|",t,...r)}this.currentType=""}log(...t){this.message("log",...t)}info(...t){this.message("info",...t)}error(...t){this.message("error",...t)}warn(...t){this.message("warn",...t)}assert(...t){console.assert(...t)}debug(...t){this.message("debug",...t)}count(t){console.count(t)}countReset(t){console.countReset(t)}table(t,e){console.table(t,e)}time(t){this.message("time",t)}timeLog(t){this.message("timeLog",t)}timeEnd(t){this.message("timeEnd",t)}trace(...t){this.message("trace",...t)}group(t){this.message("group",t)}groupCollapsed(t){console.groupCollapsed(t)}groupEnd(){console.groupEnd()}clear(){console.clear()}registerType(t,e){this.types[t]||"string"==typeof t&&"string"==typeof e&&(this.types[t.toLowerCase()]=e)}registerTypes(e){if(Array.isArray(e))for(let t=0;t{if(p.transitions[i]){if(n){if(!h.info)return void(p.transitions[i]&&this.cancelTransitionColor(i));if(h.info.owner&&h.info.owner.settings.paused)return}p.transitions[i].lastTime||(p.transitions[i].lastTime=t);var e=t-p.transitions[i].lastTime,e=(p.transitions[i].timeTracker+=e,Math.min(p.transitions[i].timeTracker/p.transitions[i].duration,1)),r=parseInt(p.lerp(g[0],m[0],e),10),s=parseInt(p.lerp(g[1],m[1],e),10),o=parseInt(p.lerp(g[2],m[2],e),10),r=p.grabColor(r,s,o);(c&&c(r),h&&(a?(h.color.tint=r.decimal,h.color=h.color):h.color=r.hex),1<=e||p.transitions[i].timeTracker>=l)?(p.transitions[i]&&this.cancelTransitionColor(i),u&&u(r)):(p.transitions[i].req=globalThis.requestAnimationFrame(p.transitions[i].step),p.transitions[i].lastTime=t)}},this.transitions[i].req=globalThis.requestAnimationFrame(this.transitions[i].step),i}}cancelTransitionColor(t){this.transitions[t]&&(globalThis.cancelAnimationFrame(this.transitions[t].req),delete this.transitions[t])}getPointRotated(t,e,r){var s=t.x+t.width*("object"==typeof t.anchor&&t.anchor.x?t.anchor.x:.5),t=t.y+t.height*("object"==typeof t.anchor&&t.anchor.y?t.anchor.y:.5),o=r.x-s,r=r.y-t;return{x:o*Math.cos(e)-r*-Math.sin(e)+s,y:o*-Math.sin(e)+r*Math.cos(e)+t}}getPointsOfRotatedRect(t,e){return{tl:this.getPointRotated(t,e,{x:t.x,y:t.y}),tr:this.getPointRotated(t,e,{x:t.x+t.width,y:t.y}),bl:this.getPointRotated(t,e,{x:t.x,y:t.y+t.height}),br:this.getPointRotated(t,e,{x:t.x+t.width,y:t.y+t.height}),center:this.getPointRotated(t,e,{x:t.x+t.width/2,y:t.y+t.height/2})}}calculateIconOffset(t={width:32,height:32},e={x:.5,y:.5},r={x:1,y:1}){const s=t.width*r.x,o=t.height*r.y,i=e.x*(s-t.width),n=e.y*(o-t.height);return{x:i,y:n}}};var a=e.c;export{a as Utils}; \ 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/eutils.js.json b/docs/ast/source/eutils.js.json deleted file mode 100644 index 17dea6b..0000000 --- a/docs/ast/source/eutils.js.json +++ /dev/null @@ -1,142641 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 21926, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 577, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 21926, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 577, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "Identifier", - "start": 226, - "end": 21878, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 575, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 232, - "end": 247, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 21 - }, - "identifierName": "EUtilsSingleton" - }, - "name": "EUtilsSingleton", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 248, - "end": 21878, - "loc": { - "start": { - "line": 9, - "column": 22 - }, - "end": { - "line": 575, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 296, - "end": 321, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 26 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 303, - "end": 310, - "loc": { - "start": { - "line": 13, - "column": 8 - }, - "end": { - "line": 13, - "column": 15 - }, - "identifierName": "version" - }, - "name": "version" - }, - "value": { - "type": "StringLiteral", - "start": 313, - "end": 320, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 13, - "column": 25 - } - }, - "extra": { - "rawValue": "1.0.0", - "raw": "'1.0.0'" - }, - "value": "1.0.0" - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the library\r\n\t ", - "start": 252, - "end": 293, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 12, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 324, - "end": 599, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 27, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 324, - "end": 335, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 14, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 338, - "end": 599, - "loc": { - "start": { - "line": 14, - "column": 15 - }, - "end": { - "line": 27, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 457, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 24 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 457, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 457, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 457, - "end": 461, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 6 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 462, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 7 - }, - "end": { - "line": 20, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ObjectExpression", - "start": 476, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 21 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "properties": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * Object storing all color objects being transitioned at the moment\r\n\t\t * \r\n\t\t * @type {Object}\r\n\t\t ", - "start": 343, - "end": 453, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 575, - "end": 595, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 575, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 575, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 575, - "end": 579, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 6 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 580, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ArrayExpression", - "start": 592, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "elements": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1175, - "end": 1360, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 39, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1175, - "end": 1186, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 36, - "column": 12 - }, - "identifierName": "decimalRand" - }, - "name": "decimalRand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 36, - "column": 13 - }, - "end": { - "line": 36, - "column": 18 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1194, - "end": 1199, - "loc": { - "start": { - "line": 36, - "column": 20 - }, - "end": { - "line": 36, - "column": 25 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - { - "type": "AssignmentPattern", - "start": 1201, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 1201, - "end": 1208, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 34 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - }, - "right": { - "type": "NumericLiteral", - "start": 1211, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 37 - }, - "end": { - "line": 36, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1214, - "end": 1360, - "loc": { - "start": { - "line": 36, - "column": 40 - }, - "end": { - "line": 39, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1219, - "end": 1301, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 37, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1225, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 1225, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1234, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 1234, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1241, - "end": 1299, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1241, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 73 - } - }, - "object": { - "type": "BinaryExpression", - "start": 1242, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1242, - "end": 1273, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1242, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1242, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1242, - "end": 1246, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1247, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 30 - }, - "end": { - "line": 37, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1259, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1267, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1258 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1276, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 59 - }, - "end": { - "line": 37, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1241 - } - }, - "property": { - "type": "Identifier", - "start": 1283, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 66 - }, - "end": { - "line": 37, - "column": 73 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1291, - "end": 1298, - "loc": { - "start": { - "line": 37, - "column": 74 - }, - "end": { - "line": 37, - "column": 81 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1305, - "end": 1356, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 38, - "column": 53 - } - }, - "argument": { - "type": "ConditionalExpression", - "start": 1313, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 51 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1313, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 1313, - "end": 1319, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 16 - }, - "identifierName": "result" - }, - "name": "result" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 1323, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "CallExpression", - "start": 1327, - "end": 1345, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1327, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1327, - "end": 1331, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1332, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 29 - }, - "end": { - "line": 38, - "column": 34 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 41 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - }, - "alternate": { - "type": "Identifier", - "start": 1348, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 51 - }, - "identifierName": "result" - }, - "name": "result" - }, - "extra": { - "parenthesized": true, - "parenStart": 1312 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1790, - "end": 1913, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1790, - "end": 1794, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 47, - "column": 5 - }, - "identifierName": "rand" - }, - "name": "rand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1795, - "end": 1800, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 11 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1802, - "end": 1807, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 18 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - } - ], - "body": { - "type": "BlockStatement", - "start": 1809, - "end": 1913, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1814, - "end": 1879, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1820, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 1820, - "end": 1826, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1829, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 1829, - "end": 1835, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1837, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1837, - "end": 1868, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1837, - "end": 1850, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1837, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1837, - "end": 1841, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1842, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 30 - }, - "end": { - "line": 48, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1854, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1854, - "end": 1859, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 50 - }, - "end": { - "line": 48, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1853 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1871, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 59 - }, - "end": { - "line": 48, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1836 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1883, - "end": 1909, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 1890, - "end": 1908, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1890, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 1890, - "end": 1894, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1895, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1901, - "end": 1907, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 26 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2247, - "end": 2327, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2247, - "end": 2260, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 58, - "column": 14 - }, - "identifierName": "getPercentage" - }, - "name": "getPercentage", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2261, - "end": 2267, - "loc": { - "start": { - "line": 58, - "column": 15 - }, - "end": { - "line": 58, - "column": 21 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - { - "type": "Identifier", - "start": 2269, - "end": 2280, - "loc": { - "start": { - "line": 58, - "column": 23 - }, - "end": { - "line": 58, - "column": 34 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - ], - "body": { - "type": "BlockStatement", - "start": 2282, - "end": 2327, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2287, - "end": 2323, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 38 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 2294, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 9 - }, - "end": { - "line": 59, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2295, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 22 - } - }, - "left": { - "type": "NumericLiteral", - "start": 2295, - "end": 2298, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 13 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 2301, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 16 - }, - "end": { - "line": 59, - "column": 22 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - "extra": { - "parenthesized": true, - "parenStart": 2294 - } - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 2311, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 26 - }, - "end": { - "line": 59, - "column": 37 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2750, - "end": 2841, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2750, - "end": 2755, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 69, - "column": 6 - }, - "identifierName": "clamp" - }, - "name": "clamp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2756, - "end": 2763, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 2765, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 2765, - "end": 2769, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 20 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "right": { - "type": "NumericLiteral", - "start": 2772, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "AssignmentPattern", - "start": 2775, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 2775, - "end": 2779, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "right": { - "type": "NumericLiteral", - "start": 2782, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 33 - }, - "end": { - "line": 69, - "column": 34 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 2785, - "end": 2841, - "loc": { - "start": { - "line": 69, - "column": 36 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2790, - "end": 2837, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 49 - } - }, - "argument": { - "type": "CallExpression", - "start": 2797, - "end": 2836, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2797, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 2797, - "end": 2801, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2802, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 14 - }, - "end": { - "line": 70, - "column": 17 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2806, - "end": 2810, - "loc": { - "start": { - "line": 70, - "column": 18 - }, - "end": { - "line": 70, - "column": 22 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "CallExpression", - "start": 2812, - "end": 2835, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2812, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 2812, - "end": 2816, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2817, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 29 - }, - "end": { - "line": 70, - "column": 32 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2821, - "end": 2828, - "loc": { - "start": { - "line": 70, - "column": 33 - }, - "end": { - "line": 70, - "column": 40 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "Identifier", - "start": 2830, - "end": 2834, - "loc": { - "start": { - "line": 70, - "column": 42 - }, - "end": { - "line": 70, - "column": 46 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3260, - "end": 3336, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 82, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3260, - "end": 3264, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 80, - "column": 5 - }, - "identifierName": "lerp" - }, - "name": "lerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3265, - "end": 3271, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 12 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3273, - "end": 3277, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 18 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3279, - "end": 3286, - "loc": { - "start": { - "line": 80, - "column": 20 - }, - "end": { - "line": 80, - "column": 27 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3288, - "end": 3336, - "loc": { - "start": { - "line": 80, - "column": 29 - }, - "end": { - "line": 82, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3293, - "end": 3332, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 41 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 3300, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 40 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3300, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3301, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 19 - } - }, - "left": { - "type": "NumericLiteral", - "start": 3301, - "end": 3302, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 11 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 3303, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 12 - }, - "end": { - "line": 81, - "column": 19 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "extra": { - "parenthesized": true, - "parenStart": 3300 - } - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3312, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 27 - }, - "identifierName": "pStart" - }, - "name": "pStart" - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 3319, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 3319, - "end": 3326, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 35 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3327, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 36 - }, - "end": { - "line": 81, - "column": 40 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3836, - "end": 3932, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 93, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3836, - "end": 3847, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 91, - "column": 12 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3848, - "end": 3854, - "loc": { - "start": { - "line": 91, - "column": 13 - }, - "end": { - "line": 91, - "column": 19 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3856, - "end": 3860, - "loc": { - "start": { - "line": 91, - "column": 21 - }, - "end": { - "line": 91, - "column": 25 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3862, - "end": 3869, - "loc": { - "start": { - "line": 91, - "column": 27 - }, - "end": { - "line": 91, - "column": 34 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3871, - "end": 3932, - "loc": { - "start": { - "line": 91, - "column": 36 - }, - "end": { - "line": 93, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3876, - "end": 3928, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 54 - } - }, - "argument": { - "type": "CallExpression", - "start": 3883, - "end": 3927, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3883, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 3883, - "end": 3887, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 3888, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 14 - }, - "end": { - "line": 92, - "column": 19 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3894, - "end": 3926, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 52 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3894, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 3894, - "end": 3898, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 3899, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 29 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3904, - "end": 3910, - "loc": { - "start": { - "line": 92, - "column": 30 - }, - "end": { - "line": 92, - "column": 36 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3912, - "end": 3916, - "loc": { - "start": { - "line": 92, - "column": 38 - }, - "end": { - "line": 92, - "column": 42 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3918, - "end": 3925, - "loc": { - "start": { - "line": 92, - "column": 44 - }, - "end": { - "line": 92, - "column": 51 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4259, - "end": 4338, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 103, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4259, - "end": 4264, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 101, - "column": 6 - }, - "identifierName": "round" - }, - "name": "round", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4265, - "end": 4272, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 4274, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 4274, - "end": 4280, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 22 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "right": { - "type": "NumericLiteral", - "start": 4281, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 23 - }, - "end": { - "line": 101, - "column": 24 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 4284, - "end": 4338, - "loc": { - "start": { - "line": 101, - "column": 26 - }, - "end": { - "line": 103, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 4289, - "end": 4334, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 102, - "column": 47 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4296, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 46 - } - }, - "left": { - "type": "CallExpression", - "start": 4296, - "end": 4324, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4296, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4296, - "end": 4300, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 4301, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 4307, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 4307, - "end": 4313, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 26 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 4316, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 102, - "column": 36 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - } - } - ] - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 4327, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 40 - }, - "end": { - "line": 102, - "column": 46 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4826, - "end": 4936, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 116, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4826, - "end": 4835, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 113, - "column": 10 - }, - "identifierName": "normalize" - }, - "name": "normalize", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4836, - "end": 4840, - "loc": { - "start": { - "line": 113, - "column": 11 - }, - "end": { - "line": 113, - "column": 15 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 4842, - "end": 4846, - "loc": { - "start": { - "line": 113, - "column": 17 - }, - "end": { - "line": 113, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 4848, - "end": 4852, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 4854, - "end": 4936, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 116, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 4859, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 2 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "test": { - "type": "BinaryExpression", - "start": 4863, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 23 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4863, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 10 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4870, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 13 - }, - "end": { - "line": 114, - "column": 17 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 4879, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 22 - }, - "end": { - "line": 114, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 4882, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 25 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 4889, - "end": 4890, - "loc": { - "start": { - "line": 114, - "column": 32 - }, - "end": { - "line": 114, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 4895, - "end": 4932, - "loc": { - "start": { - "line": 115, - "column": 2 - }, - "end": { - "line": 115, - "column": 39 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4902, - "end": 4931, - "loc": { - "start": { - "line": 115, - "column": 9 - }, - "end": { - "line": 115, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4903, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 4903, - "end": 4907, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4910, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 17 - }, - "end": { - "line": 115, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 4902 - } - }, - "operator": "/", - "right": { - "type": "BinaryExpression", - "start": 4919, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 4919, - "end": 4923, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4926, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 33 - }, - "end": { - "line": 115, - "column": 37 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 4918 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5335, - "end": 5405, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 127, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5335, - "end": 5341, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 125, - "column": 7 - }, - "identifierName": "within" - }, - "name": "within", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5342, - "end": 5346, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 12 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5348, - "end": 5352, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5354, - "end": 5358, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 24 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 5360, - "end": 5405, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 127, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5365, - "end": 5401, - "loc": { - "start": { - "line": 126, - "column": 2 - }, - "end": { - "line": 126, - "column": 38 - } - }, - "argument": { - "type": "LogicalExpression", - "start": 5372, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5372, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 5372, - "end": 5376, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 13 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 5380, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 17 - }, - "end": { - "line": 126, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 5388, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 29 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 5396, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 33 - }, - "end": { - "line": 126, - "column": 37 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5656, - "end": 5770, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 136, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5656, - "end": 5679, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 24 - }, - "identifierName": "formatIntegerWithCommas" - }, - "name": "formatIntegerWithCommas", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 134, - "column": 25 - }, - "end": { - "line": 134, - "column": 29 - }, - "identifierName": "pNum" - }, - "name": "pNum" - } - ], - "body": { - "type": "BlockStatement", - "start": 5686, - "end": 5770, - "loc": { - "start": { - "line": 134, - "column": 31 - }, - "end": { - "line": 136, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5691, - "end": 5766, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 77 - } - }, - "argument": { - "type": "CallExpression", - "start": 5698, - "end": 5765, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 42 - } - }, - "object": { - "type": "CallExpression", - "start": 5698, - "end": 5723, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 32 - } - }, - "object": { - "type": "CallExpression", - "start": 5698, - "end": 5712, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 5698, - "end": 5702, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 13 - }, - "identifierName": "pNum" - }, - "name": "pNum" - }, - "property": { - "type": "Identifier", - "start": 5703, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 21 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5713, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 24 - }, - "end": { - "line": 135, - "column": 32 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5724, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 35 - }, - "end": { - "line": 135, - "column": 42 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "RegExpLiteral", - "start": 5732, - "end": 5757, - "loc": { - "start": { - "line": 135, - "column": 43 - }, - "end": { - "line": 135, - "column": 68 - } - }, - "extra": { - "raw": "/(\\d)(?=(\\d{3})+(?!\\d))/g" - }, - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - { - "type": "StringLiteral", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 135, - "column": 70 - }, - "end": { - "line": 135, - "column": 75 - } - }, - "extra": { - "rawValue": "$1,", - "raw": "'$1,'" - }, - "value": "$1," - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5924, - "end": 5994, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 145, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5924, - "end": 5940, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 143, - "column": 17 - }, - "identifierName": "degreesToRadians" - }, - "name": "degreesToRadians", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5941, - "end": 5949, - "loc": { - "start": { - "line": 143, - "column": 18 - }, - "end": { - "line": 143, - "column": 26 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - } - ], - "body": { - "type": "BlockStatement", - "start": 5951, - "end": 5994, - "loc": { - "start": { - "line": 143, - "column": 28 - }, - "end": { - "line": 145, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5956, - "end": 5990, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 144, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 5963, - "end": 5989, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 5963, - "end": 5971, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 17 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 5975, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 34 - } - }, - "left": { - "type": "MemberExpression", - "start": 5975, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 5975, - "end": 5979, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 25 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 5980, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 28 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 5985, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 31 - }, - "end": { - "line": 144, - "column": 34 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "extra": { - "parenthesized": true, - "parenStart": 5974 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6148, - "end": 6218, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 154, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6148, - "end": 6164, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 152, - "column": 17 - }, - "identifierName": "radiansToDegrees" - }, - "name": "radiansToDegrees", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6165, - "end": 6173, - "loc": { - "start": { - "line": 152, - "column": 18 - }, - "end": { - "line": 152, - "column": 26 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - } - ], - "body": { - "type": "BlockStatement", - "start": 6175, - "end": 6218, - "loc": { - "start": { - "line": 152, - "column": 28 - }, - "end": { - "line": 154, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 6180, - "end": 6214, - "loc": { - "start": { - "line": 153, - "column": 2 - }, - "end": { - "line": 153, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 6187, - "end": 6213, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 6187, - "end": 6195, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 17 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 6199, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 34 - } - }, - "left": { - "type": "NumericLiteral", - "start": 6199, - "end": 6202, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 24 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 6205, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 6205, - "end": 6209, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6210, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 34 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 6198 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6388, - "end": 6503, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 164, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6388, - "end": 6392, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 161, - "column": 5 - }, - "identifierName": "pick" - }, - "name": "pick", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6393, - "end": 6399, - "loc": { - "start": { - "line": 161, - "column": 6 - }, - "end": { - "line": 161, - "column": 12 - }, - "identifierName": "pArray" - }, - "name": "pArray" - } - ], - "body": { - "type": "BlockStatement", - "start": 6401, - "end": 6503, - "loc": { - "start": { - "line": 161, - "column": 14 - }, - "end": { - "line": 164, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6406, - "end": 6468, - "loc": { - "start": { - "line": 162, - "column": 2 - }, - "end": { - "line": 162, - "column": 64 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6412, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 6412, - "end": 6423, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 19 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "init": { - "type": "CallExpression", - "start": 6426, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6426, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 6426, - "end": 6430, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 26 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6431, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 32 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 6437, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 6437, - "end": 6450, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6437, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 37 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6442, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 38 - }, - "end": { - "line": 162, - "column": 44 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 6453, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 6453, - "end": 6459, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 55 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 6460, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 56 - }, - "end": { - "line": 162, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 6472, - "end": 6499, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 163, - "column": 29 - } - }, - "argument": { - "type": "MemberExpression", - "start": 6479, - "end": 6498, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 6479, - "end": 6485, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 15 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 6486, - "end": 6497, - "loc": { - "start": { - "line": 163, - "column": 16 - }, - "end": { - "line": 163, - "column": 27 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "computed": true - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6757, - "end": 7069, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 181, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6757, - "end": 6773, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 171, - "column": 17 - }, - "identifierName": "removeProperties" - }, - "name": "removeProperties", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6774, - "end": 6781, - "loc": { - "start": { - "line": 171, - "column": 18 - }, - "end": { - "line": 171, - "column": 25 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - { - "type": "Identifier", - "start": 6783, - "end": 6791, - "loc": { - "start": { - "line": 171, - "column": 27 - }, - "end": { - "line": 171, - "column": 35 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "body": { - "type": "BlockStatement", - "start": 6793, - "end": 7069, - "loc": { - "start": { - "line": 171, - "column": 37 - }, - "end": { - "line": 181, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6798, - "end": 7064, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 6802, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 6802, - "end": 6817, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 6809, - "end": 6816, - "loc": { - "start": { - "line": 172, - "column": 13 - }, - "end": { - "line": 172, - "column": 20 - }, - "identifierName": "pObject" - }, - "name": "pObject", - "extra": { - "parenthesized": true, - "parenStart": 6808 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 6822, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 26 - }, - "end": { - "line": 172, - "column": 34 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 6832, - "end": 7064, - "loc": { - "start": { - "line": 172, - "column": 36 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "body": [ - { - "type": "ForInStatement", - "start": 6838, - "end": 7059, - "loc": { - "start": { - "line": 173, - "column": 3 - }, - "end": { - "line": 179, - "column": 4 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 6843, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "Identifier", - "start": 6857, - "end": 6864, - "loc": { - "start": { - "line": 173, - "column": 22 - }, - "end": { - "line": 173, - "column": 29 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "body": { - "type": "BlockStatement", - "start": 6866, - "end": 7059, - "loc": { - "start": { - "line": 173, - "column": 31 - }, - "end": { - "line": 179, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6912, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 69 - } - }, - "test": { - "type": "LogicalExpression", - "start": 6916, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 6916, - "end": 6939, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6916, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 6916, - "end": 6921, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 13 - }, - "identifierName": "Array" - }, - "name": "Array", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 6922, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 21 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 6930, - "end": 6938, - "loc": { - "start": { - "line": 175, - "column": 22 - }, - "end": { - "line": 175, - "column": 30 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 6943, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6943, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 6943, - "end": 6951, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 43 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - }, - "property": { - "type": "Identifier", - "start": 6952, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 44 - }, - "end": { - "line": 175, - "column": 52 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6961, - "end": 6965, - "loc": { - "start": { - "line": 175, - "column": 53 - }, - "end": { - "line": 175, - "column": 57 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "leadingComments": null - }, - "consequent": { - "type": "ContinueStatement", - "start": 6968, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 60 - }, - "end": { - "line": 175, - "column": 69 - } - }, - "label": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 6873, - "end": 6906, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 37 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 6983, - "end": 7053, - "loc": { - "start": { - "line": 176, - "column": 4 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "test": { - "type": "CallExpression", - "start": 6987, - "end": 7015, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6987, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 6987, - "end": 6994, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 15 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 6995, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 16 - }, - "end": { - "line": 176, - "column": 30 - }, - "identifierName": "hasOwnProperty" - }, - "name": "hasOwnProperty" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 7010, - "end": 7014, - "loc": { - "start": { - "line": 176, - "column": 31 - }, - "end": { - "line": 176, - "column": 35 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 7017, - "end": 7053, - "loc": { - "start": { - "line": 176, - "column": 38 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7025, - "end": 7046, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 26 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 7025, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 25 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 7032, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 7032, - "end": 7039, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 19 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 7040, - "end": 7044, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 24 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7394, - "end": 7602, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 198, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7394, - "end": 7398, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 189, - "column": 5 - }, - "identifierName": "prob" - }, - "name": "prob", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7399, - "end": 7406, - "loc": { - "start": { - "line": 189, - "column": 6 - }, - "end": { - "line": 189, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - ], - "body": { - "type": "BlockStatement", - "start": 7408, - "end": 7602, - "loc": { - "start": { - "line": 189, - "column": 15 - }, - "end": { - "line": 198, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7413, - "end": 7455, - "loc": { - "start": { - "line": 190, - "column": 2 - }, - "end": { - "line": 192, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7417, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 7417, - "end": 7424, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 7428, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 17 - }, - "end": { - "line": 190, - "column": 18 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7431, - "end": 7455, - "loc": { - "start": { - "line": 190, - "column": 20 - }, - "end": { - "line": 192, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7437, - "end": 7450, - "loc": { - "start": { - "line": 191, - "column": 3 - }, - "end": { - "line": 191, - "column": 16 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 7444, - "end": 7449, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 15 - } - }, - "value": false - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 7459, - "end": 7502, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 195, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7463, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 20 - } - }, - "left": { - "type": "Identifier", - "start": 7463, - "end": 7470, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 7474, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 17 - }, - "end": { - "line": 193, - "column": 20 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7479, - "end": 7502, - "loc": { - "start": { - "line": 193, - "column": 22 - }, - "end": { - "line": 195, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7485, - "end": 7497, - "loc": { - "start": { - "line": 194, - "column": 3 - }, - "end": { - "line": 194, - "column": 15 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 7492, - "end": 7496, - "loc": { - "start": { - "line": 194, - "column": 10 - }, - "end": { - "line": 194, - "column": 14 - } - }, - "value": true - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 7506, - "end": 7563, - "loc": { - "start": { - "line": 196, - "column": 2 - }, - "end": { - "line": 196, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7512, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 7512, - "end": 7524, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 20 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "init": { - "type": "BinaryExpression", - "start": 7527, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 7527, - "end": 7558, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7527, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 7527, - "end": 7531, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7532, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 28 - }, - "end": { - "line": 196, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7538, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 53 - } - }, - "left": { - "type": "CallExpression", - "start": 7538, - "end": 7551, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7538, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 7538, - "end": 7542, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7543, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 39 - }, - "end": { - "line": 196, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 7554, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 50 - }, - "end": { - "line": 196, - "column": 53 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 7561, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 57 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 7567, - "end": 7598, - "loc": { - "start": { - "line": 197, - "column": 2 - }, - "end": { - "line": 197, - "column": 33 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 7574, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 7574, - "end": 7586, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 21 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 7590, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 25 - }, - "end": { - "line": 197, - "column": 32 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7789, - "end": 8254, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 226, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7789, - "end": 7802, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 205, - "column": 14 - }, - "identifierName": "getInverseDir" - }, - "name": "getInverseDir", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7803, - "end": 7807, - "loc": { - "start": { - "line": 205, - "column": 15 - }, - "end": { - "line": 205, - "column": 19 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "body": { - "type": "BlockStatement", - "start": 7809, - "end": 8254, - "loc": { - "start": { - "line": 205, - "column": 21 - }, - "end": { - "line": 226, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 7814, - "end": 8250, - "loc": { - "start": { - "line": 206, - "column": 2 - }, - "end": { - "line": 225, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 7822, - "end": 7826, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 14 - }, - "identifierName": "pDir" - }, - "name": "pDir" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 7834, - "end": 7868, - "loc": { - "start": { - "line": 207, - "column": 3 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7853, - "end": 7868, - "loc": { - "start": { - "line": 208, - "column": 4 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7860, - "end": 7867, - "loc": { - "start": { - "line": 208, - "column": 11 - }, - "end": { - "line": 208, - "column": 18 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7839, - "end": 7846, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 7873, - "end": 7907, - "loc": { - "start": { - "line": 209, - "column": 3 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7892, - "end": 7907, - "loc": { - "start": { - "line": 210, - "column": 4 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7899, - "end": 7906, - "loc": { - "start": { - "line": 210, - "column": 11 - }, - "end": { - "line": 210, - "column": 18 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7878, - "end": 7885, - "loc": { - "start": { - "line": 209, - "column": 8 - }, - "end": { - "line": 209, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 7912, - "end": 7944, - "loc": { - "start": { - "line": 211, - "column": 3 - }, - "end": { - "line": 212, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7930, - "end": 7944, - "loc": { - "start": { - "line": 212, - "column": 4 - }, - "end": { - "line": 212, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7937, - "end": 7943, - "loc": { - "start": { - "line": 212, - "column": 11 - }, - "end": { - "line": 212, - "column": 17 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7917, - "end": 7923, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 7949, - "end": 7981, - "loc": { - "start": { - "line": 213, - "column": 3 - }, - "end": { - "line": 214, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7967, - "end": 7981, - "loc": { - "start": { - "line": 214, - "column": 4 - }, - "end": { - "line": 214, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7974, - "end": 7980, - "loc": { - "start": { - "line": 214, - "column": 11 - }, - "end": { - "line": 214, - "column": 17 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7954, - "end": 7960, - "loc": { - "start": { - "line": 213, - "column": 8 - }, - "end": { - "line": 213, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 7986, - "end": 8028, - "loc": { - "start": { - "line": 215, - "column": 3 - }, - "end": { - "line": 216, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8009, - "end": 8028, - "loc": { - "start": { - "line": 216, - "column": 4 - }, - "end": { - "line": 216, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8016, - "end": 8027, - "loc": { - "start": { - "line": 216, - "column": 11 - }, - "end": { - "line": 216, - "column": 22 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7991, - "end": 8002, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 8033, - "end": 8075, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8056, - "end": 8075, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8063, - "end": 8074, - "loc": { - "start": { - "line": 218, - "column": 11 - }, - "end": { - "line": 218, - "column": 22 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8038, - "end": 8049, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 8080, - "end": 8122, - "loc": { - "start": { - "line": 219, - "column": 3 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8103, - "end": 8122, - "loc": { - "start": { - "line": 220, - "column": 4 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8110, - "end": 8121, - "loc": { - "start": { - "line": 220, - "column": 11 - }, - "end": { - "line": 220, - "column": 22 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8085, - "end": 8096, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 8127, - "end": 8169, - "loc": { - "start": { - "line": 221, - "column": 3 - }, - "end": { - "line": 222, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8150, - "end": 8169, - "loc": { - "start": { - "line": 222, - "column": 4 - }, - "end": { - "line": 222, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8157, - "end": 8168, - "loc": { - "start": { - "line": 222, - "column": 11 - }, - "end": { - "line": 222, - "column": 22 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8132, - "end": 8143, - "loc": { - "start": { - "line": 221, - "column": 8 - }, - "end": { - "line": 221, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 8174, - "end": 8245, - "loc": { - "start": { - "line": 223, - "column": 3 - }, - "end": { - "line": 224, - "column": 61 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 8188, - "end": 8245, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 61 - } - }, - "expression": { - "type": "CallExpression", - "start": 8188, - "end": 8244, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 60 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8188, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 8188, - "end": 8195, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 8196, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 12 - }, - "end": { - "line": 224, - "column": 17 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 8202, - "end": 8243, - "loc": { - "start": { - "line": 224, - "column": 18 - }, - "end": { - "line": 224, - "column": 59 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 8219, - "end": 8223, - "loc": { - "start": { - "line": 224, - "column": 35 - }, - "end": { - "line": 224, - "column": 39 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 8203, - "end": 8217, - "loc": { - "start": { - "line": 224, - "column": 19 - }, - "end": { - "line": 224, - "column": 33 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 8224, - "end": 8242, - "loc": { - "start": { - "line": 224, - "column": 40 - }, - "end": { - "line": 224, - "column": 58 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8565, - "end": 9074, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 255, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8565, - "end": 8580, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 234, - "column": 16 - }, - "identifierName": "getAngleFromDir" - }, - "name": "getAngleFromDir", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 234, - "column": 17 - }, - "end": { - "line": 234, - "column": 21 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "body": { - "type": "BlockStatement", - "start": 8587, - "end": 9074, - "loc": { - "start": { - "line": 234, - "column": 23 - }, - "end": { - "line": 255, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 8592, - "end": 9070, - "loc": { - "start": { - "line": 235, - "column": 2 - }, - "end": { - "line": 254, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 8600, - "end": 8604, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 14 - }, - "identifierName": "pDir" - }, - "name": "pDir" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 8612, - "end": 8652, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 237, - "column": 25 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8631, - "end": 8652, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 25 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8639, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8639, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8639, - "end": 8643, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8644, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 17 - }, - "end": { - "line": 237, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8649, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 22 - }, - "end": { - "line": 237, - "column": 23 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 8638 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8617, - "end": 8624, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 8657, - "end": 8701, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 239, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8676, - "end": 8701, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8683, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8684, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8684, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8684, - "end": 8688, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8689, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 239, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8694, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 22 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 8683 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8699, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 27 - }, - "end": { - "line": 239, - "column": 28 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8662, - "end": 8669, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 8706, - "end": 8745, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 241, - "column": 25 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8724, - "end": 8745, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 25 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8732, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8732, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8732, - "end": 8736, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8737, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 17 - }, - "end": { - "line": 241, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8742, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 22 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 8731 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8711, - "end": 8717, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 8750, - "end": 8783, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 243, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8768, - "end": 8783, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 19 - } - }, - "argument": { - "type": "MemberExpression", - "start": 8775, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 8775, - "end": 8779, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8780, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 16 - }, - "end": { - "line": 243, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8755, - "end": 8761, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 8788, - "end": 8836, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8811, - "end": 8836, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8818, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8819, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8819, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8819, - "end": 8823, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8824, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 17 - }, - "end": { - "line": 245, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8829, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 8818 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8834, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 27 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8793, - "end": 8804, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 8841, - "end": 8883, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 247, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8864, - "end": 8883, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 23 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8871, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "left": { - "type": "MemberExpression", - "start": 8871, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 8871, - "end": 8875, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8876, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8881, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 21 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8846, - "end": 8857, - "loc": { - "start": { - "line": 246, - "column": 8 - }, - "end": { - "line": 246, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 8888, - "end": 8936, - "loc": { - "start": { - "line": 248, - "column": 3 - }, - "end": { - "line": 249, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8911, - "end": 8936, - "loc": { - "start": { - "line": 249, - "column": 4 - }, - "end": { - "line": 249, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8918, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 11 - }, - "end": { - "line": 249, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8919, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8919, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8919, - "end": 8923, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8924, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8929, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 22 - }, - "end": { - "line": 249, - "column": 23 - } - }, - "extra": { - "rawValue": 5, - "raw": "5" - }, - "value": 5 - }, - "extra": { - "parenthesized": true, - "parenStart": 8918 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8934, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 27 - }, - "end": { - "line": 249, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8893, - "end": 8904, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 8941, - "end": 8989, - "loc": { - "start": { - "line": 250, - "column": 3 - }, - "end": { - "line": 251, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8964, - "end": 8989, - "loc": { - "start": { - "line": 251, - "column": 4 - }, - "end": { - "line": 251, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8971, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 11 - }, - "end": { - "line": 251, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8972, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8972, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8972, - "end": 8976, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8977, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 17 - }, - "end": { - "line": 251, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8982, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 22 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - }, - "extra": { - "parenthesized": true, - "parenStart": 8971 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8987, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 27 - }, - "end": { - "line": 251, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8946, - "end": 8957, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 8994, - "end": 9065, - "loc": { - "start": { - "line": 252, - "column": 3 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 9008, - "end": 9065, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "expression": { - "type": "CallExpression", - "start": 9008, - "end": 9064, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 60 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9008, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 9008, - "end": 9015, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 9016, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 17 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 9022, - "end": 9063, - "loc": { - "start": { - "line": 253, - "column": 18 - }, - "end": { - "line": 253, - "column": 59 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 9039, - "end": 9043, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 39 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 9023, - "end": 9037, - "loc": { - "start": { - "line": 253, - "column": 19 - }, - "end": { - "line": 253, - "column": 33 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 9044, - "end": 9062, - "loc": { - "start": { - "line": 253, - "column": 40 - }, - "end": { - "line": 253, - "column": 58 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9213, - "end": 9638, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 277, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9213, - "end": 9223, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 262, - "column": 11 - }, - "identifierName": "generateID" - }, - "name": "generateID", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 9224, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 9224, - "end": 9233, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 21 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - }, - "right": { - "type": "NumericLiteral", - "start": 9236, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 24 - }, - "end": { - "line": 262, - "column": 25 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 9239, - "end": 9638, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 277, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9244, - "end": 9323, - "loc": { - "start": { - "line": 263, - "column": 2 - }, - "end": { - "line": 263, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9250, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 9250, - "end": 9255, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 9258, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 16 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "extra": { - "rawValue": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "raw": "'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'" - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9327, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 2 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9333, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 9333, - "end": 9339, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "init": { - "type": "FunctionExpression", - "start": 9342, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 17 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 9353, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 28 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9359, - "end": 9371, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 265, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9363, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 9363, - "end": 9365, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 9 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "StringLiteral", - "start": 9368, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 12 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 9376, - "end": 9486, - "loc": { - "start": { - "line": 266, - "column": 3 - }, - "end": { - "line": 268, - "column": 4 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 9381, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 8 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9385, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 9385, - "end": 9386, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 13 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 9389, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 9392, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 9392, - "end": 9393, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 20 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 9396, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 32 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - } - }, - "update": { - "type": "UpdateExpression", - "start": 9407, - "end": 9410, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 37 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 9407, - "end": 9408, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 35 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 9412, - "end": 9486, - "loc": { - "start": { - "line": 266, - "column": 39 - }, - "end": { - "line": 268, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9419, - "end": 9480, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 65 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9419, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 64 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 9419, - "end": 9421, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 6 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 9425, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 64 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9425, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 9425, - "end": 9430, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 15 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 9431, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 16 - }, - "end": { - "line": 267, - "column": 22 - }, - "identifierName": "charAt" - }, - "name": "charAt" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 9438, - "end": 9478, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9438, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 9438, - "end": 9442, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9443, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 28 - }, - "end": { - "line": 267, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 9449, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 9449, - "end": 9462, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9449, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 9449, - "end": 9453, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9454, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 39 - }, - "end": { - "line": 267, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 9465, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 9465, - "end": 9470, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 55 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 9471, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 56 - }, - "end": { - "line": 267, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - ] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 9491, - "end": 9501, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 269, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 9498, - "end": 9500, - "loc": { - "start": { - "line": 269, - "column": 10 - }, - "end": { - "line": 269, - "column": 12 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9510, - "end": 9528, - "loc": { - "start": { - "line": 271, - "column": 2 - }, - "end": { - "line": 271, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9514, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 9514, - "end": 9516, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 8 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "CallExpression", - "start": 9519, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 9519, - "end": 9525, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 17 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "WhileStatement", - "start": 9532, - "end": 9592, - "loc": { - "start": { - "line": 272, - "column": 2 - }, - "end": { - "line": 274, - "column": 3 - } - }, - "test": { - "type": "CallExpression", - "start": 9538, - "end": 9565, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 35 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9538, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 9538, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 9538, - "end": 9542, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 9543, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 13 - }, - "end": { - "line": 272, - "column": 22 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9553, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 23 - }, - "end": { - "line": 272, - "column": 31 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9562, - "end": 9564, - "loc": { - "start": { - "line": 272, - "column": 32 - }, - "end": { - "line": 272, - "column": 34 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - }, - "body": { - "type": "BlockStatement", - "start": 9567, - "end": 9592, - "loc": { - "start": { - "line": 272, - "column": 37 - }, - "end": { - "line": 274, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9573, - "end": 9587, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9573, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 9573, - "end": 9575, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 5 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 9578, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 9578, - "end": 9584, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 9596, - "end": 9620, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 9596, - "end": 9619, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9596, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 21 - } - }, - "object": { - "type": "MemberExpression", - "start": 9596, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 9596, - "end": 9600, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 9601, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 7 - }, - "end": { - "line": 275, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9611, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 17 - }, - "end": { - "line": 275, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9616, - "end": 9618, - "loc": { - "start": { - "line": 275, - "column": 22 - }, - "end": { - "line": 275, - "column": 24 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 9624, - "end": 9634, - "loc": { - "start": { - "line": 276, - "column": 2 - }, - "end": { - "line": 276, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 9631, - "end": 9633, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 11 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9897, - "end": 10030, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 287, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9897, - "end": 9909, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 285, - "column": 13 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 9910, - "end": 9918, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 22 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - { - "type": "AssignmentPattern", - "start": 9920, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 9920, - "end": 9926, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 30 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "right": { - "type": "NumericLiteral", - "start": 9929, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 285, - "column": 34 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 9932, - "end": 10030, - "loc": { - "start": { - "line": 285, - "column": 36 - }, - "end": { - "line": 287, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 9937, - "end": 10026, - "loc": { - "start": { - "line": 286, - "column": 2 - }, - "end": { - "line": 286, - "column": 91 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9944, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 90 - } - }, - "left": { - "type": "StringLiteral", - "start": 9944, - "end": 9947, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 12 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 9950, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 9950, - "end": 10011, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 9950, - "end": 9996, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 57 - } - }, - "object": { - "type": "BinaryExpression", - "start": 9951, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 47 - } - }, - "left": { - "type": "Identifier", - "start": 9951, - "end": 9959, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 24 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 9962, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9962, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 9962, - "end": 9966, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9967, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 32 - }, - "end": { - "line": 286, - "column": 35 - }, - "identifierName": "pow" - }, - "name": "pow" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9971, - "end": 9973, - "loc": { - "start": { - "line": 286, - "column": 36 - }, - "end": { - "line": 286, - "column": 38 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - }, - { - "type": "Identifier", - "start": 9975, - "end": 9981, - "loc": { - "start": { - "line": 286, - "column": 40 - }, - "end": { - "line": 286, - "column": 46 - }, - "identifierName": "pChars" - }, - "name": "pChars" - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 9950 - } - }, - "property": { - "type": "Identifier", - "start": 9984, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 49 - }, - "end": { - "line": 286, - "column": 57 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9993, - "end": 9995, - "loc": { - "start": { - "line": 286, - "column": 58 - }, - "end": { - "line": 286, - "column": 60 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 9997, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 62 - }, - "end": { - "line": 286, - "column": 67 - }, - "identifierName": "slice" - }, - "name": "slice" - }, - "computed": false - }, - "arguments": [ - { - "type": "UnaryExpression", - "start": 10003, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 68 - }, - "end": { - "line": 286, - "column": 75 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 10004, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 69 - }, - "end": { - "line": 286, - "column": 75 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "extra": { - "parenthesizedArgument": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 10012, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 77 - }, - "end": { - "line": 286, - "column": 88 - }, - "identifierName": "toUpperCase" - }, - "name": "toUpperCase" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 10288, - "end": 10838, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 308, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10288, - "end": 10300, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 295, - "column": 13 - }, - "identifierName": "addIntensity" - }, - "name": "addIntensity", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10301, - "end": 10307, - "loc": { - "start": { - "line": 295, - "column": 14 - }, - "end": { - "line": 295, - "column": 20 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - { - "type": "Identifier", - "start": 10309, - "end": 10317, - "loc": { - "start": { - "line": 295, - "column": 22 - }, - "end": { - "line": 295, - "column": 30 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - } - ], - "body": { - "type": "BlockStatement", - "start": 10319, - "end": 10838, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 308, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 10324, - "end": 10368, - "loc": { - "start": { - "line": 296, - "column": 2 - }, - "end": { - "line": 296, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10330, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 10330, - "end": 10333, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 11 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": { - "type": "MemberExpression", - "start": 10336, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 45 - } - }, - "object": { - "type": "CallExpression", - "start": 10336, - "end": 10358, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10336, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 28 - } - }, - "object": { - "type": "ThisExpression", - "start": 10336, - "end": 10340, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 10341, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 19 - }, - "end": { - "line": 296, - "column": 28 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10351, - "end": 10357, - "loc": { - "start": { - "line": 296, - "column": 29 - }, - "end": { - "line": 296, - "column": 35 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 10359, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 37 - }, - "end": { - "line": 296, - "column": 45 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10372, - "end": 10389, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 297, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10378, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10378, - "end": 10379, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "MemberExpression", - "start": 10382, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10382, - "end": 10385, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10386, - "end": 10387, - "loc": { - "start": { - "line": 297, - "column": 16 - }, - "end": { - "line": 297, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10393, - "end": 10410, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 298, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10399, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10399, - "end": 10400, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "MemberExpression", - "start": 10403, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10403, - "end": 10406, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10407, - "end": 10408, - "loc": { - "start": { - "line": 298, - "column": 16 - }, - "end": { - "line": 298, - "column": 17 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10414, - "end": 10431, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 299, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10420, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10420, - "end": 10421, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "MemberExpression", - "start": 10424, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10424, - "end": 10427, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10428, - "end": 10429, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 17 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10435, - "end": 10446, - "loc": { - "start": { - "line": 300, - "column": 2 - }, - "end": { - "line": 300, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10439, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10439, - "end": 10441, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 8 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "init": { - "type": "NumericLiteral", - "start": 10444, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 11 - }, - "end": { - "line": 300, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10450, - "end": 10461, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10454, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10454, - "end": 10456, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 8 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "init": { - "type": "NumericLiteral", - "start": 10459, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 11 - }, - "end": { - "line": 301, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10465, - "end": 10476, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10469, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10469, - "end": 10471, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 8 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "init": { - "type": "NumericLiteral", - "start": 10474, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 11 - }, - "end": { - "line": 302, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10480, - "end": 10541, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 63 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10486, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "id": { - "type": "Identifier", - "start": 10486, - "end": 10491, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 13 - }, - "identifierName": "black" - }, - "name": "black" - }, - "init": { - "type": "ConditionalExpression", - "start": 10494, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 16 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10495, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "left": { - "type": "LogicalExpression", - "start": 10495, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10495, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 10495, - "end": 10496, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 18 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10501, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10506, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 10506, - "end": 10507, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 29 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10512, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 34 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10517, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 10517, - "end": 10518, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10523, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 45 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 10494 - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 10528, - "end": 10532, - "loc": { - "start": { - "line": 303, - "column": 50 - }, - "end": { - "line": 303, - "column": 54 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 10535, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 57 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "value": false - } - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 10545, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 2 - }, - "end": { - "line": 304, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10549, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10549, - "end": 10550, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 7 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10554, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 11 - }, - "end": { - "line": 304, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10561, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10561, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10561, - "end": 10563, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 20 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "right": { - "type": "BinaryExpression", - "start": 10566, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10566, - "end": 10567, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 24 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10570, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10570, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10570, - "end": 10574, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10575, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 32 - }, - "end": { - "line": 304, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10581, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 38 - }, - "end": { - "line": 304, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10582, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10582, - "end": 10585, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10588, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 45 - }, - "end": { - "line": 304, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10581 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10600, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 57 - }, - "end": { - "line": 304, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 10609, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 2 - }, - "end": { - "line": 305, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10613, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10613, - "end": 10614, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 7 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10618, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 11 - }, - "end": { - "line": 305, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10625, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10625, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10625, - "end": 10627, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 20 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "right": { - "type": "BinaryExpression", - "start": 10630, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10630, - "end": 10631, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 24 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10634, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10634, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10634, - "end": 10638, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10639, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 32 - }, - "end": { - "line": 305, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10645, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 38 - }, - "end": { - "line": 305, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10646, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10646, - "end": 10649, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10652, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 45 - }, - "end": { - "line": 305, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10645 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10664, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 57 - }, - "end": { - "line": 305, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 10673, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 2 - }, - "end": { - "line": 306, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10677, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10677, - "end": 10678, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 7 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10682, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 11 - }, - "end": { - "line": 306, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10689, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10689, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10689, - "end": 10691, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 20 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "right": { - "type": "BinaryExpression", - "start": 10694, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10694, - "end": 10695, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 24 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10698, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10698, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10698, - "end": 10702, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10703, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 32 - }, - "end": { - "line": 306, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10709, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 38 - }, - "end": { - "line": 306, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10710, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10710, - "end": 10713, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10716, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 45 - }, - "end": { - "line": 306, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10709 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10728, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 57 - }, - "end": { - "line": 306, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 10737, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 307, - "column": 99 - } - }, - "argument": { - "type": "MemberExpression", - "start": 10744, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 99 - } - }, - "object": { - "type": "CallExpression", - "start": 10744, - "end": 10830, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10744, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 10744, - "end": 10748, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 10749, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 23 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 10759, - "end": 10781, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10759, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 10759, - "end": 10763, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 10764, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 29 - }, - "end": { - "line": 307, - "column": 34 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10770, - "end": 10772, - "loc": { - "start": { - "line": 307, - "column": 35 - }, - "end": { - "line": 307, - "column": 37 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - { - "type": "NumericLiteral", - "start": 10774, - "end": 10775, - "loc": { - "start": { - "line": 307, - "column": 39 - }, - "end": { - "line": 307, - "column": 40 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10777, - "end": 10780, - "loc": { - "start": { - "line": 307, - "column": 42 - }, - "end": { - "line": 307, - "column": 45 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 10783, - "end": 10805, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 70 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10783, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 10783, - "end": 10787, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 52 - } - } - }, - "property": { - "type": "Identifier", - "start": 10788, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 53 - }, - "end": { - "line": 307, - "column": 58 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10794, - "end": 10796, - "loc": { - "start": { - "line": 307, - "column": 59 - }, - "end": { - "line": 307, - "column": 61 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - { - "type": "NumericLiteral", - "start": 10798, - "end": 10799, - "loc": { - "start": { - "line": 307, - "column": 63 - }, - "end": { - "line": 307, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10801, - "end": 10804, - "loc": { - "start": { - "line": 307, - "column": 66 - }, - "end": { - "line": 307, - "column": 69 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 10807, - "end": 10829, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10807, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 82 - } - }, - "object": { - "type": "ThisExpression", - "start": 10807, - "end": 10811, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 76 - } - } - }, - "property": { - "type": "Identifier", - "start": 10812, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 77 - }, - "end": { - "line": 307, - "column": 82 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10818, - "end": 10820, - "loc": { - "start": { - "line": 307, - "column": 83 - }, - "end": { - "line": 307, - "column": 85 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - { - "type": "NumericLiteral", - "start": 10822, - "end": 10823, - "loc": { - "start": { - "line": 307, - "column": 87 - }, - "end": { - "line": 307, - "column": 88 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10825, - "end": 10828, - "loc": { - "start": { - "line": 307, - "column": 90 - }, - "end": { - "line": 307, - "column": 93 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10831, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 96 - }, - "end": { - "line": 307, - "column": 99 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11152, - "end": 11460, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 325, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11152, - "end": 11160, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 316, - "column": 9 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11161, - "end": 11163, - "loc": { - "start": { - "line": 316, - "column": 10 - }, - "end": { - "line": 316, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 11165, - "end": 11167, - "loc": { - "start": { - "line": 316, - "column": 14 - }, - "end": { - "line": 316, - "column": 16 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 11169, - "end": 11171, - "loc": { - "start": { - "line": 316, - "column": 18 - }, - "end": { - "line": 316, - "column": 20 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 11173, - "end": 11460, - "loc": { - "start": { - "line": 316, - "column": 22 - }, - "end": { - "line": 325, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 11178, - "end": 11211, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 317, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11184, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11184, - "end": 11185, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 11188, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11188, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11188, - "end": 11192, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11193, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 17 - }, - "end": { - "line": 317, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11199, - "end": 11201, - "loc": { - "start": { - "line": 317, - "column": 23 - }, - "end": { - "line": 317, - "column": 25 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "NumericLiteral", - "start": 11203, - "end": 11204, - "loc": { - "start": { - "line": 317, - "column": 27 - }, - "end": { - "line": 317, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11206, - "end": 11209, - "loc": { - "start": { - "line": 317, - "column": 30 - }, - "end": { - "line": 317, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11215, - "end": 11248, - "loc": { - "start": { - "line": 318, - "column": 2 - }, - "end": { - "line": 318, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11221, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11221, - "end": 11222, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 11225, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11225, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11225, - "end": 11229, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11230, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 17 - }, - "end": { - "line": 318, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11236, - "end": 11238, - "loc": { - "start": { - "line": 318, - "column": 23 - }, - "end": { - "line": 318, - "column": 25 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "NumericLiteral", - "start": 11240, - "end": 11241, - "loc": { - "start": { - "line": 318, - "column": 27 - }, - "end": { - "line": 318, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11243, - "end": 11246, - "loc": { - "start": { - "line": 318, - "column": 30 - }, - "end": { - "line": 318, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11252, - "end": 11285, - "loc": { - "start": { - "line": 319, - "column": 2 - }, - "end": { - "line": 319, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11258, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11258, - "end": 11259, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 11262, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11262, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11262, - "end": 11266, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11267, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 17 - }, - "end": { - "line": 319, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11273, - "end": 11275, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 25 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - { - "type": "NumericLiteral", - "start": 11277, - "end": 11278, - "loc": { - "start": { - "line": 319, - "column": 27 - }, - "end": { - "line": 319, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11280, - "end": 11283, - "loc": { - "start": { - "line": 319, - "column": 30 - }, - "end": { - "line": 319, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11289, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11295, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 11295, - "end": 11306, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 19 - }, - "identifierName": "craftString" - }, - "name": "craftString" - }, - "init": { - "type": "FunctionExpression", - "start": 11309, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 22 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11318, - "end": 11324, - "loc": { - "start": { - "line": 320, - "column": 31 - }, - "end": { - "line": 320, - "column": 37 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ], - "body": { - "type": "BlockStatement", - "start": 11326, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 39 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 11332, - "end": 11376, - "loc": { - "start": { - "line": 321, - "column": 3 - }, - "end": { - "line": 321, - "column": 47 - } - }, - "argument": { - "type": "CallExpression", - "start": 11339, - "end": 11375, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11339, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 38 - } - }, - "object": { - "type": "CallExpression", - "start": 11339, - "end": 11358, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11339, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 11339, - "end": 11345, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 16 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - "property": { - "type": "Identifier", - "start": 11346, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 17 - }, - "end": { - "line": 321, - "column": 25 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 11355, - "end": 11357, - "loc": { - "start": { - "line": 321, - "column": 26 - }, - "end": { - "line": 321, - "column": 28 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 11359, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 30 - }, - "end": { - "line": 321, - "column": 38 - }, - "identifierName": "padStart" - }, - "name": "padStart" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 11368, - "end": 11369, - "loc": { - "start": { - "line": 321, - "column": 39 - }, - "end": { - "line": 321, - "column": 40 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - { - "type": "StringLiteral", - "start": 11371, - "end": 11374, - "loc": { - "start": { - "line": 321, - "column": 42 - }, - "end": { - "line": 321, - "column": 45 - } - }, - "extra": { - "rawValue": "0", - "raw": "'0'" - }, - "value": "0" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11385, - "end": 11439, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 323, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11391, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 11391, - "end": 11394, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 11 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": { - "type": "BinaryExpression", - "start": 11397, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "left": { - "type": "StringLiteral", - "start": 11397, - "end": 11400, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 11403, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11403, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 51 - } - }, - "object": { - "type": "CallExpression", - "start": 11403, - "end": 11429, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11403, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 33 - } - }, - "object": { - "type": "ArrayExpression", - "start": 11403, - "end": 11412, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 29 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 11404, - "end": 11405, - "loc": { - "start": { - "line": 323, - "column": 21 - }, - "end": { - "line": 323, - "column": 22 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 11407, - "end": 11408, - "loc": { - "start": { - "line": 323, - "column": 24 - }, - "end": { - "line": 323, - "column": 25 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 11410, - "end": 11411, - "loc": { - "start": { - "line": 323, - "column": 27 - }, - "end": { - "line": 323, - "column": 28 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - }, - "property": { - "type": "Identifier", - "start": 11413, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 30 - }, - "end": { - "line": 323, - "column": 33 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11417, - "end": 11428, - "loc": { - "start": { - "line": 323, - "column": 34 - }, - "end": { - "line": 323, - "column": 45 - }, - "identifierName": "craftString" - }, - "name": "craftString" - } - ] - }, - "property": { - "type": "Identifier", - "start": 11430, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 47 - }, - "end": { - "line": 323, - "column": 51 - }, - "identifierName": "join" - }, - "name": "join" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11435, - "end": 11437, - "loc": { - "start": { - "line": 323, - "column": 52 - }, - "end": { - "line": 323, - "column": 54 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 11443, - "end": 11454, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 324, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 11450, - "end": 11453, - "loc": { - "start": { - "line": 324, - "column": 9 - }, - "end": { - "line": 324, - "column": 12 - }, - "identifierName": "hex" - }, - "name": "hex" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11740, - "end": 12117, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 342, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11740, - "end": 11748, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 332, - "column": 9 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11749, - "end": 11753, - "loc": { - "start": { - "line": 332, - "column": 10 - }, - "end": { - "line": 332, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 11755, - "end": 12117, - "loc": { - "start": { - "line": 332, - "column": 16 - }, - "end": { - "line": 342, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11760, - "end": 11789, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11760, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11760, - "end": 11764, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11767, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11767, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 11767, - "end": 11771, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11772, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 14 - }, - "end": { - "line": 333, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11780, - "end": 11783, - "loc": { - "start": { - "line": 333, - "column": 22 - }, - "end": { - "line": 333, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 11785, - "end": 11787, - "loc": { - "start": { - "line": 333, - "column": 27 - }, - "end": { - "line": 333, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "IfStatement", - "start": 11793, - "end": 11879, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 336, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 11797, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 11797, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 11797, - "end": 11801, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 10 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11802, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 11 - }, - "end": { - "line": 334, - "column": 17 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 11813, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 22 - }, - "end": { - "line": 334, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 11816, - "end": 11879, - "loc": { - "start": { - "line": 334, - "column": 25 - }, - "end": { - "line": 336, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11822, - "end": 11874, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 55 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11822, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11822, - "end": 11826, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 7 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11829, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11829, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 11829, - "end": 11833, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11834, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 15 - }, - "end": { - "line": 335, - "column": 22 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 11842, - "end": 11864, - "loc": { - "start": { - "line": 335, - "column": 23 - }, - "end": { - "line": 335, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 11846, - "end": 11852, - "loc": { - "start": { - "line": 335, - "column": 27 - }, - "end": { - "line": 335, - "column": 33 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11853, - "end": 11858, - "loc": { - "start": { - "line": 335, - "column": 34 - }, - "end": { - "line": 335, - "column": 39 - } - }, - "extra": { - "rawValue": "(.)", - "raw": "'(.)'" - }, - "value": "(.)" - }, - { - "type": "StringLiteral", - "start": 11860, - "end": 11863, - "loc": { - "start": { - "line": 335, - "column": 41 - }, - "end": { - "line": 335, - "column": 44 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - }, - { - "type": "StringLiteral", - "start": 11866, - "end": 11872, - "loc": { - "start": { - "line": 335, - "column": 47 - }, - "end": { - "line": 335, - "column": 53 - } - }, - "extra": { - "rawValue": "$1$1", - "raw": "'$1$1'" - }, - "value": "$1$1" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 11883, - "end": 11924, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11883, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11883, - "end": 11887, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11890, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11890, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 11890, - "end": 11894, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11895, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 14 - }, - "end": { - "line": 337, - "column": 19 - }, - "identifierName": "match" - }, - "name": "match" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 11901, - "end": 11922, - "loc": { - "start": { - "line": 337, - "column": 20 - }, - "end": { - "line": 337, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 11905, - "end": 11911, - "loc": { - "start": { - "line": 337, - "column": 24 - }, - "end": { - "line": 337, - "column": 30 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11912, - "end": 11916, - "loc": { - "start": { - "line": 337, - "column": 31 - }, - "end": { - "line": 337, - "column": 35 - } - }, - "extra": { - "rawValue": "..", - "raw": "'..'" - }, - "value": ".." - }, - { - "type": "StringLiteral", - "start": 11918, - "end": 11921, - "loc": { - "start": { - "line": 337, - "column": 37 - }, - "end": { - "line": 337, - "column": 40 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 11928, - "end": 11980, - "loc": { - "start": { - "line": 338, - "column": 2 - }, - "end": { - "line": 338, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11934, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 11934, - "end": 11935, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 11938, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11938, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11938, - "end": 11942, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11943, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 17 - }, - "end": { - "line": 338, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11949, - "end": 11970, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 11958, - "end": 11965, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 11958, - "end": 11962, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 11963, - "end": 11964, - "loc": { - "start": { - "line": 338, - "column": 37 - }, - "end": { - "line": 338, - "column": 38 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 11967, - "end": 11969, - "loc": { - "start": { - "line": 338, - "column": 41 - }, - "end": { - "line": 338, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 11972, - "end": 11973, - "loc": { - "start": { - "line": 338, - "column": 46 - }, - "end": { - "line": 338, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11975, - "end": 11978, - "loc": { - "start": { - "line": 338, - "column": 49 - }, - "end": { - "line": 338, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11984, - "end": 12036, - "loc": { - "start": { - "line": 339, - "column": 2 - }, - "end": { - "line": 339, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11990, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 11990, - "end": 11991, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 11994, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11994, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11994, - "end": 11998, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11999, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 17 - }, - "end": { - "line": 339, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12005, - "end": 12026, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 12005, - "end": 12013, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 12014, - "end": 12021, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12014, - "end": 12018, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 12019, - "end": 12020, - "loc": { - "start": { - "line": 339, - "column": 37 - }, - "end": { - "line": 339, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 12023, - "end": 12025, - "loc": { - "start": { - "line": 339, - "column": 41 - }, - "end": { - "line": 339, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 12028, - "end": 12029, - "loc": { - "start": { - "line": 339, - "column": 46 - }, - "end": { - "line": 339, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 12031, - "end": 12034, - "loc": { - "start": { - "line": 339, - "column": 49 - }, - "end": { - "line": 339, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 12040, - "end": 12092, - "loc": { - "start": { - "line": 340, - "column": 2 - }, - "end": { - "line": 340, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12046, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 12046, - "end": 12047, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 12050, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12050, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 12050, - "end": 12054, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 12055, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 17 - }, - "end": { - "line": 340, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12061, - "end": 12082, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 12061, - "end": 12069, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 12070, - "end": 12077, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12070, - "end": 12074, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 12075, - "end": 12076, - "loc": { - "start": { - "line": 340, - "column": 37 - }, - "end": { - "line": 340, - "column": 38 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 12079, - "end": 12081, - "loc": { - "start": { - "line": 340, - "column": 41 - }, - "end": { - "line": 340, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 12084, - "end": 12085, - "loc": { - "start": { - "line": 340, - "column": 46 - }, - "end": { - "line": 340, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 12087, - "end": 12090, - "loc": { - "start": { - "line": 340, - "column": 49 - }, - "end": { - "line": 340, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 12096, - "end": 12113, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 341, - "column": 19 - } - }, - "argument": { - "type": "ArrayExpression", - "start": 12103, - "end": 12112, - "loc": { - "start": { - "line": 341, - "column": 9 - }, - "end": { - "line": 341, - "column": 18 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 12104, - "end": 12105, - "loc": { - "start": { - "line": 341, - "column": 10 - }, - "end": { - "line": 341, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 12107, - "end": 12108, - "loc": { - "start": { - "line": 341, - "column": 13 - }, - "end": { - "line": 341, - "column": 14 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 12110, - "end": 12111, - "loc": { - "start": { - "line": 341, - "column": 16 - }, - "end": { - "line": 341, - "column": 17 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12419, - "end": 12486, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 352, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12419, - "end": 12431, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 350, - "column": 13 - }, - "identifierName": "rgbToDecimal" - }, - "name": "rgbToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12432, - "end": 12434, - "loc": { - "start": { - "line": 350, - "column": 14 - }, - "end": { - "line": 350, - "column": 16 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 12436, - "end": 12438, - "loc": { - "start": { - "line": 350, - "column": 18 - }, - "end": { - "line": 350, - "column": 20 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 12440, - "end": 12442, - "loc": { - "start": { - "line": 350, - "column": 22 - }, - "end": { - "line": 350, - "column": 24 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 12444, - "end": 12486, - "loc": { - "start": { - "line": 350, - "column": 26 - }, - "end": { - "line": 352, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 12449, - "end": 12482, - "loc": { - "start": { - "line": 351, - "column": 2 - }, - "end": { - "line": 351, - "column": 35 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 12457, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 33 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12457, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12457, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 12457, - "end": 12459, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 12463, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 18 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - }, - "operator": "|", - "right": { - "type": "BinaryExpression", - "start": 12468, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "left": { - "type": "Identifier", - "start": 12468, - "end": 12470, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 23 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 12474, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 27 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "extra": { - "rawValue": 8, - "raw": "8" - }, - "value": 8 - } - } - }, - "operator": "|", - "right": { - "type": "Identifier", - "start": 12478, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 31 - }, - "end": { - "line": 351, - "column": 33 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - "extra": { - "parenthesized": true, - "parenStart": 12456 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12743, - "end": 12830, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 362, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12743, - "end": 12755, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 359, - "column": 13 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12756, - "end": 12760, - "loc": { - "start": { - "line": 359, - "column": 14 - }, - "end": { - "line": 359, - "column": 18 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 12762, - "end": 12830, - "loc": { - "start": { - "line": 359, - "column": 20 - }, - "end": { - "line": 362, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 12767, - "end": 12796, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 12767, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 12767, - "end": 12771, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 12774, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12774, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 12774, - "end": 12778, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 12779, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 14 - }, - "end": { - "line": 360, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 12787, - "end": 12790, - "loc": { - "start": { - "line": 360, - "column": 22 - }, - "end": { - "line": 360, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 12792, - "end": 12794, - "loc": { - "start": { - "line": 360, - "column": 27 - }, - "end": { - "line": 360, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 12800, - "end": 12826, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 361, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 12807, - "end": 12825, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 12807, - "end": 12815, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 17 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12816, - "end": 12820, - "loc": { - "start": { - "line": 361, - "column": 18 - }, - "end": { - "line": 361, - "column": 22 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - { - "type": "NumericLiteral", - "start": 12822, - "end": 12824, - "loc": { - "start": { - "line": 361, - "column": 24 - }, - "end": { - "line": 361, - "column": 26 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 13344, - "end": 14196, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 396, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13344, - "end": 13353, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 373, - "column": 10 - }, - "identifierName": "grabColor" - }, - "name": "grabColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 13354, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 42 - } - }, - "left": { - "type": "Identifier", - "start": 13354, - "end": 13361, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 18 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 13364, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13364, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 13364, - "end": 13368, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "start": 13369, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 26 - }, - "end": { - "line": 373, - "column": 40 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "Identifier", - "start": 13387, - "end": 13389, - "loc": { - "start": { - "line": 373, - "column": 44 - }, - "end": { - "line": 373, - "column": 46 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 13391, - "end": 13393, - "loc": { - "start": { - "line": 373, - "column": 48 - }, - "end": { - "line": 373, - "column": 50 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 13395, - "end": 14196, - "loc": { - "start": { - "line": 373, - "column": 52 - }, - "end": { - "line": 396, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13400, - "end": 13413, - "loc": { - "start": { - "line": 374, - "column": 2 - }, - "end": { - "line": 374, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - } - }, - "id": { - "type": "Identifier", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": null - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 13442, - "end": 13784, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 386, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 13446, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "left": { - "type": "LogicalExpression", - "start": 13446, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13446, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13446, - "end": 13461, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13453, - "end": 13460, - "loc": { - "start": { - "line": 376, - "column": 13 - }, - "end": { - "line": 376, - "column": 20 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 13452 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13466, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 26 - }, - "end": { - "line": 376, - "column": 34 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 13478, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13478, - "end": 13488, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 48 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13485, - "end": 13487, - "loc": { - "start": { - "line": 376, - "column": 45 - }, - "end": { - "line": 376, - "column": 47 - }, - "identifierName": "pG" - }, - "name": "pG", - "extra": { - "parenthesized": true, - "parenStart": 13484 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13493, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 53 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 13505, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13505, - "end": 13515, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 75 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13512, - "end": 13514, - "loc": { - "start": { - "line": 376, - "column": 72 - }, - "end": { - "line": 376, - "column": 74 - }, - "identifierName": "pB" - }, - "name": "pB", - "extra": { - "parenthesized": true, - "parenStart": 13511 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13520, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 80 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 13530, - "end": 13578, - "loc": { - "start": { - "line": 376, - "column": 90 - }, - "end": { - "line": 378, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13536, - "end": 13573, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13536, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13536, - "end": 13539, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "CallExpression", - "start": 13542, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 13542, - "end": 13546, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 13547, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 14 - }, - "end": { - "line": 377, - "column": 22 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13556, - "end": 13563, - "loc": { - "start": { - "line": 377, - "column": 23 - }, - "end": { - "line": 377, - "column": 30 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - { - "type": "Identifier", - "start": 13565, - "end": 13567, - "loc": { - "start": { - "line": 377, - "column": 32 - }, - "end": { - "line": 377, - "column": 34 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 13569, - "end": 13571, - "loc": { - "start": { - "line": 377, - "column": 36 - }, - "end": { - "line": 377, - "column": 38 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 13584, - "end": 13784, - "loc": { - "start": { - "line": 378, - "column": 9 - }, - "end": { - "line": 386, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 13620, - "end": 13704, - "loc": { - "start": { - "line": 380, - "column": 3 - }, - "end": { - "line": 382, - "column": 4 - } - }, - "test": { - "type": "BinaryExpression", - "start": 13624, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 35 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13624, - "end": 13639, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 22 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13631, - "end": 13638, - "loc": { - "start": { - "line": 380, - "column": 14 - }, - "end": { - "line": 380, - "column": 21 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 13630 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13644, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 27 - }, - "end": { - "line": 380, - "column": 35 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 13654, - "end": 13704, - "loc": { - "start": { - "line": 380, - "column": 37 - }, - "end": { - "line": 382, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13661, - "end": 13698, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13661, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13661, - "end": 13668, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 11 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 13671, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13671, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 13671, - "end": 13675, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 13676, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 19 - }, - "end": { - "line": 381, - "column": 31 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13689, - "end": 13696, - "loc": { - "start": { - "line": 381, - "column": 32 - }, - "end": { - "line": 381, - "column": 39 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 13590, - "end": 13615, - "loc": { - "start": { - "line": 379, - "column": 3 - }, - "end": { - "line": 379, - "column": 28 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 13709, - "end": 13723, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13709, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13709, - "end": 13712, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "Identifier", - "start": 13715, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 9 - }, - "end": { - "line": 383, - "column": 16 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 13754, - "end": 13779, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13754, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13754, - "end": 13757, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 6 - }, - "identifierName": "rgb" - }, - "name": "rgb", - "leadingComments": null - }, - "right": { - "type": "CallExpression", - "start": 13760, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13760, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 13760, - "end": 13764, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 13765, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 22 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13774, - "end": 13777, - "loc": { - "start": { - "line": 385, - "column": 23 - }, - "end": { - "line": 385, - "column": 26 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - } - ] - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 13788, - "end": 14192, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 395, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 13795, - "end": 14191, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 395, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13802, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13802, - "end": 13807, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 8 - } - }, - "extra": { - "rawValue": "hex", - "raw": "'hex'" - }, - "value": "hex" - }, - "value": { - "type": "CallExpression", - "start": 13809, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13809, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 13809, - "end": 13812, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 13 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 13813, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 14 - }, - "end": { - "line": 388, - "column": 25 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 13833, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13833, - "end": 13845, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 15 - } - }, - "extra": { - "rawValue": "hexTagless", - "raw": "'hexTagless'" - }, - "value": "hexTagless" - }, - "value": { - "type": "CallExpression", - "start": 13847, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13847, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 49 - } - }, - "object": { - "type": "CallExpression", - "start": 13847, - "end": 13867, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13847, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 13847, - "end": 13850, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 20 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 13851, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 21 - }, - "end": { - "line": 389, - "column": 28 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 13859, - "end": 13862, - "loc": { - "start": { - "line": 389, - "column": 29 - }, - "end": { - "line": 389, - "column": 32 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 13864, - "end": 13866, - "loc": { - "start": { - "line": 389, - "column": 34 - }, - "end": { - "line": 389, - "column": 36 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - }, - "property": { - "type": "Identifier", - "start": 13868, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 38 - }, - "end": { - "line": 389, - "column": 49 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 13888, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13888, - "end": 13893, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 8 - } - }, - "extra": { - "rawValue": "rgb", - "raw": "'rgb'" - }, - "value": "rgb" - }, - "value": { - "type": "BinaryExpression", - "start": 13895, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 45 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 34 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 23 - } - }, - "left": { - "type": "StringLiteral", - "start": 13895, - "end": 13901, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 16 - } - }, - "extra": { - "rawValue": "rgb(", - "raw": "'rgb('" - }, - "value": "rgb(" - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13902, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 13902, - "end": 13905, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 20 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13906, - "end": 13907, - "loc": { - "start": { - "line": 390, - "column": 21 - }, - "end": { - "line": 390, - "column": 22 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13909, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 24 - }, - "end": { - "line": 390, - "column": 27 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13913, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 13913, - "end": 13916, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13917, - "end": 13918, - "loc": { - "start": { - "line": 390, - "column": 32 - }, - "end": { - "line": 390, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13920, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 35 - }, - "end": { - "line": 390, - "column": 38 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13924, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 13924, - "end": 13927, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 42 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13928, - "end": 13929, - "loc": { - "start": { - "line": 390, - "column": 43 - }, - "end": { - "line": 390, - "column": 44 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13931, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 46 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "extra": { - "rawValue": ")", - "raw": "')'" - }, - "value": ")" - } - } - }, - { - "type": "ObjectProperty", - "start": 13941, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13941, - "end": 13951, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 13 - } - }, - "extra": { - "rawValue": "rgbArray", - "raw": "'rgbArray'" - }, - "value": "rgbArray" - }, - "value": { - "type": "Identifier", - "start": 13953, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 391, - "column": 18 - }, - "identifierName": "rgb" - }, - "name": "rgb" - } - }, - { - "type": "ObjectProperty", - "start": 13963, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13963, - "end": 13974, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbObject", - "raw": "'rgbObject'" - }, - "value": "rgbObject" - }, - "value": { - "type": "ObjectExpression", - "start": 13976, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 16 - }, - "end": { - "line": 392, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13978, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13978, - "end": 13981, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 21 - } - }, - "extra": { - "rawValue": "r", - "raw": "'r'" - }, - "value": "r" - }, - "value": { - "type": "MemberExpression", - "start": 13983, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 13983, - "end": 13986, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 26 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13987, - "end": 13988, - "loc": { - "start": { - "line": 392, - "column": 27 - }, - "end": { - "line": 392, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 13991, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13991, - "end": 13994, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 34 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - }, - "value": { - "type": "MemberExpression", - "start": 13996, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 13996, - "end": 13999, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 39 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14000, - "end": 14001, - "loc": { - "start": { - "line": 392, - "column": 40 - }, - "end": { - "line": 392, - "column": 41 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 14004, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14004, - "end": 14007, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 47 - } - }, - "extra": { - "rawValue": "b", - "raw": "'b'" - }, - "value": "b" - }, - "value": { - "type": "MemberExpression", - "start": 14009, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 14009, - "end": 14012, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 52 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14013, - "end": 14014, - "loc": { - "start": { - "line": 392, - "column": 53 - }, - "end": { - "line": 392, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14024, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 124 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14024, - "end": 14035, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbNormal", - "raw": "'rgbNormal'" - }, - "value": "rgbNormal" - }, - "value": { - "type": "ArrayExpression", - "start": 14037, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 16 - }, - "end": { - "line": 393, - "column": 124 - } - }, - "elements": [ - { - "type": "BinaryExpression", - "start": 14038, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 51 - } - }, - "left": { - "type": "CallExpression", - "start": 14038, - "end": 14066, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14038, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 14038, - "end": 14042, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 21 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14043, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 22 - }, - "end": { - "line": 393, - "column": 27 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14049, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 44 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14049, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 14049, - "end": 14055, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 14049, - "end": 14052, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14053, - "end": 14054, - "loc": { - "start": { - "line": 393, - "column": 32 - }, - "end": { - "line": 393, - "column": 33 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14056, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 35 - }, - "end": { - "line": 393, - "column": 38 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14062, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 41 - }, - "end": { - "line": 393, - "column": 44 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14069, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 48 - }, - "end": { - "line": 393, - "column": 51 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 14074, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 87 - } - }, - "left": { - "type": "CallExpression", - "start": 14074, - "end": 14102, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 81 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14074, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 14074, - "end": 14078, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14079, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 58 - }, - "end": { - "line": 393, - "column": 63 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14085, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 80 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14085, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 74 - } - }, - "left": { - "type": "MemberExpression", - "start": 14085, - "end": 14091, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 14085, - "end": 14088, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 67 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14089, - "end": 14090, - "loc": { - "start": { - "line": 393, - "column": 68 - }, - "end": { - "line": 393, - "column": 69 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14092, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 71 - }, - "end": { - "line": 393, - "column": 74 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14098, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 77 - }, - "end": { - "line": 393, - "column": 80 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14105, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 84 - }, - "end": { - "line": 393, - "column": 87 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 14110, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 123 - } - }, - "left": { - "type": "CallExpression", - "start": 14110, - "end": 14138, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 117 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14110, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 14110, - "end": 14114, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 93 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14115, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 94 - }, - "end": { - "line": 393, - "column": 99 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14121, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 116 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14121, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 110 - } - }, - "left": { - "type": "MemberExpression", - "start": 14121, - "end": 14127, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 14121, - "end": 14124, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 103 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14125, - "end": 14126, - "loc": { - "start": { - "line": 393, - "column": 104 - }, - "end": { - "line": 393, - "column": 105 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14128, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 107 - }, - "end": { - "line": 393, - "column": 110 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14134, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 113 - }, - "end": { - "line": 393, - "column": 116 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14141, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 120 - }, - "end": { - "line": 393, - "column": 123 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14152, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14152, - "end": 14161, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 12 - } - }, - "extra": { - "rawValue": "decimal", - "raw": "'decimal'" - }, - "value": "decimal" - }, - "value": { - "type": "CallExpression", - "start": 14163, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14163, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 14163, - "end": 14167, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 14168, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 19 - }, - "end": { - "line": 394, - "column": 31 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 14181, - "end": 14184, - "loc": { - "start": { - "line": 394, - "column": 32 - }, - "end": { - "line": 394, - "column": 35 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14298, - "end": 14484, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 409, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14298, - "end": 14312, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 402, - "column": 15 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 14315, - "end": 14484, - "loc": { - "start": { - "line": 402, - "column": 18 - }, - "end": { - "line": 409, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 14320, - "end": 14353, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 403, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14326, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 14326, - "end": 14331, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 14334, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 16 - }, - "end": { - "line": 403, - "column": 34 - } - }, - "extra": { - "rawValue": "0123456789ABCDEF", - "raw": "'0123456789ABCDEF'" - }, - "value": "0123456789ABCDEF" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 14357, - "end": 14373, - "loc": { - "start": { - "line": 404, - "column": 2 - }, - "end": { - "line": 404, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14361, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 14361, - "end": 14366, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 11 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "StringLiteral", - "start": 14369, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 14 - }, - "end": { - "line": 404, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 14377, - "end": 14463, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 407, - "column": 3 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 14382, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 7 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14386, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 14386, - "end": 14387, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 12 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 14390, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 15 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 14393, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 14393, - "end": 14394, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 19 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "NumericLiteral", - "start": 14397, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 22 - }, - "end": { - "line": 405, - "column": 23 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - }, - "update": { - "type": "UpdateExpression", - "start": 14400, - "end": 14403, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 28 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 14400, - "end": 14401, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 26 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 14405, - "end": 14463, - "loc": { - "start": { - "line": 405, - "column": 30 - }, - "end": { - "line": 407, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 14411, - "end": 14458, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 50 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 14411, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 49 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 14411, - "end": 14416, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 8 - }, - "identifierName": "color" - }, - "name": "color" - }, - "right": { - "type": "MemberExpression", - "start": 14420, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 14420, - "end": 14425, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 17 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "CallExpression", - "start": 14426, - "end": 14456, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14426, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 14426, - "end": 14430, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 22 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14431, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 23 - }, - "end": { - "line": 406, - "column": 28 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14437, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 47 - } - }, - "left": { - "type": "CallExpression", - "start": 14437, - "end": 14450, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14437, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 14437, - "end": 14441, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 33 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14442, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 34 - }, - "end": { - "line": 406, - "column": 40 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14453, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 45 - }, - "end": { - "line": 406, - "column": 47 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - } - ] - }, - "computed": true - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 14467, - "end": 14480, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 408, - "column": 15 - } - }, - "argument": { - "type": "Identifier", - "start": 14474, - "end": 14479, - "loc": { - "start": { - "line": 408, - "column": 9 - }, - "end": { - "line": 408, - "column": 14 - }, - "identifierName": "color" - }, - "name": "color" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14946, - "end": 15147, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 423, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14946, - "end": 14967, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 420, - "column": 22 - }, - "identifierName": "getRandomColorBetween" - }, - "name": "getRandomColorBetween", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 14968, - "end": 14975, - "loc": { - "start": { - "line": 420, - "column": 23 - }, - "end": { - "line": 420, - "column": 30 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - }, - { - "type": "Identifier", - "start": 14977, - "end": 14984, - "loc": { - "start": { - "line": 420, - "column": 32 - }, - "end": { - "line": 420, - "column": 39 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - }, - { - "type": "AssignmentPattern", - "start": 14986, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 14986, - "end": 14993, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 48 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "right": { - "type": "NumericLiteral", - "start": 14996, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 51 - }, - "end": { - "line": 420, - "column": 54 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 15001, - "end": 15147, - "loc": { - "start": { - "line": 420, - "column": 56 - }, - "end": { - "line": 423, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 15044, - "end": 15143, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 101 - } - }, - "argument": { - "type": "CallExpression", - "start": 15051, - "end": 15142, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15051, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 25 - } - }, - "object": { - "type": "ThisExpression", - "start": 15051, - "end": 15055, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 13 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 15056, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 14 - }, - "end": { - "line": 422, - "column": 25 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 15068, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 57 - } - }, - "object": { - "type": "CallExpression", - "start": 15068, - "end": 15091, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15068, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 15068, - "end": 15072, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 30 - } - } - }, - "property": { - "type": "Identifier", - "start": 15073, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 31 - }, - "end": { - "line": 422, - "column": 40 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15083, - "end": 15090, - "loc": { - "start": { - "line": 422, - "column": 41 - }, - "end": { - "line": 422, - "column": 48 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - } - ] - }, - "property": { - "type": "Identifier", - "start": 15092, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 50 - }, - "end": { - "line": 422, - "column": 57 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "MemberExpression", - "start": 15101, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 90 - } - }, - "object": { - "type": "CallExpression", - "start": 15101, - "end": 15124, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15101, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 73 - } - }, - "object": { - "type": "ThisExpression", - "start": 15101, - "end": 15105, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 63 - } - } - }, - "property": { - "type": "Identifier", - "start": 15106, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 64 - }, - "end": { - "line": 422, - "column": 73 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15116, - "end": 15123, - "loc": { - "start": { - "line": 422, - "column": 74 - }, - "end": { - "line": 422, - "column": 81 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - } - ] - }, - "property": { - "type": "Identifier", - "start": 15125, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 83 - }, - "end": { - "line": 422, - "column": 90 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "Identifier", - "start": 15134, - "end": 15141, - "loc": { - "start": { - "line": 422, - "column": 92 - }, - "end": { - "line": 422, - "column": 99 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 15006, - "end": 15040, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 36 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 15941, - "end": 18972, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 516, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 15941, - "end": 15956, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 438, - "column": 16 - }, - "identifierName": "transitionColor" - }, - "name": "transitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 15957, - "end": 15966, - "loc": { - "start": { - "line": 438, - "column": 17 - }, - "end": { - "line": 438, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "AssignmentPattern", - "start": 15968, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 15968, - "end": 15979, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 39 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - }, - "right": { - "type": "StringLiteral", - "start": 15980, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 40 - }, - "end": { - "line": 438, - "column": 46 - } - }, - "extra": { - "rawValue": "#000", - "raw": "'#000'" - }, - "value": "#000" - } - }, - { - "type": "AssignmentPattern", - "start": 15988, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 64 - } - }, - "left": { - "type": "Identifier", - "start": 15988, - "end": 15997, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 57 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - }, - "right": { - "type": "StringLiteral", - "start": 15998, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 58 - }, - "end": { - "line": 438, - "column": 64 - } - }, - "extra": { - "rawValue": "#fff", - "raw": "'#fff'" - }, - "value": "#fff" - } - }, - { - "type": "AssignmentPattern", - "start": 16006, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 80 - } - }, - "left": { - "type": "Identifier", - "start": 16006, - "end": 16015, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 75 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - }, - "right": { - "type": "NumericLiteral", - "start": 16016, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 76 - }, - "end": { - "line": 438, - "column": 80 - } - }, - "extra": { - "rawValue": 1000, - "raw": "1000" - }, - "value": 1000 - } - }, - { - "type": "Identifier", - "start": 16022, - "end": 16040, - "loc": { - "start": { - "line": 438, - "column": 82 - }, - "end": { - "line": 438, - "column": 100 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - { - "type": "Identifier", - "start": 16042, - "end": 16054, - "loc": { - "start": { - "line": 438, - "column": 102 - }, - "end": { - "line": 438, - "column": 114 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 16056, - "end": 18972, - "loc": { - "start": { - "line": 438, - "column": 116 - }, - "end": { - "line": 516, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 16101, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 2 - }, - "end": { - "line": 440, - "column": 33 - } - }, - "test": { - "type": "UnaryExpression", - "start": 16105, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 6 - }, - "end": { - "line": 440, - "column": 24 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 16106, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 16106, - "end": 16116, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 17 - }, - "identifierName": "globalThis" - }, - "name": "globalThis", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 16117, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 18 - }, - "end": { - "line": 440, - "column": 24 - }, - "identifierName": "window" - }, - "name": "window" - }, - "computed": false, - "leadingComments": null - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "consequent": { - "type": "ReturnStatement", - "start": 16125, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 26 - }, - "end": { - "line": 440, - "column": 33 - } - }, - "argument": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 16061, - "end": 16097, - "loc": { - "start": { - "line": 439, - "column": 2 - }, - "end": { - "line": 439, - "column": 38 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 16136, - "end": 16232, - "loc": { - "start": { - "line": 441, - "column": 2 - }, - "end": { - "line": 441, - "column": 98 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16142, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 97 - } - }, - "id": { - "type": "Identifier", - "start": 16142, - "end": 16159, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 16162, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 97 - } - }, - "test": { - "type": "BinaryExpression", - "start": 16162, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 69 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16162, - "end": 16188, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 54 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 16169, - "end": 16187, - "loc": { - "start": { - "line": 441, - "column": 35 - }, - "end": { - "line": 441, - "column": 53 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback", - "extra": { - "parenthesized": true, - "parenStart": 16168 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16193, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 59 - }, - "end": { - "line": 441, - "column": 69 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 16206, - "end": 16224, - "loc": { - "start": { - "line": 441, - "column": 72 - }, - "end": { - "line": 441, - "column": 90 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 16227, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 93 - }, - "end": { - "line": 441, - "column": 97 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16236, - "end": 16314, - "loc": { - "start": { - "line": 442, - "column": 2 - }, - "end": { - "line": 442, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16242, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 16242, - "end": 16253, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 19 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 16256, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 79 - } - }, - "test": { - "type": "BinaryExpression", - "start": 16256, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16256, - "end": 16276, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 16263, - "end": 16275, - "loc": { - "start": { - "line": 442, - "column": 29 - }, - "end": { - "line": 442, - "column": 41 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback", - "extra": { - "parenthesized": true, - "parenStart": 16262 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16281, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 47 - }, - "end": { - "line": 442, - "column": 57 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 16294, - "end": 16306, - "loc": { - "start": { - "line": 442, - "column": 60 - }, - "end": { - "line": 442, - "column": 72 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 16309, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 75 - }, - "end": { - "line": 442, - "column": 79 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16318, - "end": 16325, - "loc": { - "start": { - "line": 443, - "column": 2 - }, - "end": { - "line": 443, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 16329, - "end": 16344, - "loc": { - "start": { - "line": 444, - "column": 2 - }, - "end": { - "line": 444, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 16348, - "end": 16365, - "loc": { - "start": { - "line": 445, - "column": 2 - }, - "end": { - "line": 445, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 16371, - "end": 16727, - "loc": { - "start": { - "line": 447, - "column": 2 - }, - "end": { - "line": 454, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 16375, - "end": 16384, - "loc": { - "start": { - "line": 447, - "column": 6 - }, - "end": { - "line": 447, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 16386, - "end": 16687, - "loc": { - "start": { - "line": 447, - "column": 17 - }, - "end": { - "line": 452, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16392, - "end": 16445, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16392, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16392, - "end": 16394, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "ConditionalExpression", - "start": 16397, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "test": { - "type": "MemberExpression", - "start": 16397, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 16397, - "end": 16406, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16407, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 18 - }, - "end": { - "line": 448, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "consequent": { - "type": "MemberExpression", - "start": 16412, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 16412, - "end": 16421, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 32 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16422, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 33 - }, - "end": { - "line": 448, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "alternate": { - "type": "CallExpression", - "start": 16427, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16427, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 16427, - "end": 16431, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 16432, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 43 - }, - "end": { - "line": 448, - "column": 53 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 16450, - "end": 16504, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16450, - "end": 16503, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16450, - "end": 16460, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 13 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "right": { - "type": "BinaryExpression", - "start": 16464, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 16464, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 16464, - "end": 16473, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16474, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 27 - }, - "end": { - "line": 449, - "column": 31 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16483, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 36 - }, - "end": { - "line": 449, - "column": 55 - } - }, - "extra": { - "rawValue": "GeneratedParticle", - "raw": "'GeneratedParticle'" - }, - "value": "GeneratedParticle" - }, - "extra": { - "parenthesized": true, - "parenStart": 16463 - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 16509, - "end": 16620, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 114 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16509, - "end": 16619, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 113 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16509, - "end": 16521, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 15 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "right": { - "type": "ConditionalExpression", - "start": 16525, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 16525, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "left": { - "type": "BinaryExpression", - "start": 16525, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 55 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16525, - "end": 16548, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 16532, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 16532, - "end": 16541, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 35 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16542, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 36 - }, - "end": { - "line": 450, - "column": 41 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 16531 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16553, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 55 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 16565, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "left": { - "type": "MemberExpression", - "start": 16565, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 86 - } - }, - "object": { - "type": "MemberExpression", - "start": 16565, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 16565, - "end": 16574, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 68 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16575, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 69 - }, - "end": { - "line": 450, - "column": 74 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16581, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 75 - }, - "end": { - "line": 450, - "column": 86 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 16597, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 91 - }, - "end": { - "line": 450, - "column": 97 - }, - "identifierName": "Object" - }, - "name": "Object" - } - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 16606, - "end": 16610, - "loc": { - "start": { - "line": 450, - "column": 100 - }, - "end": { - "line": 450, - "column": 104 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 16613, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 107 - }, - "end": { - "line": 450, - "column": 112 - } - }, - "value": false - }, - "extra": { - "parenthesized": true, - "parenStart": 16524 - } - } - } - }, - { - "type": "IfStatement", - "start": 16625, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 3 - }, - "end": { - "line": 451, - "column": 60 - } - }, - "test": { - "type": "MemberExpression", - "start": 16629, - "end": 16649, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 16629, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 16629, - "end": 16633, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 11 - } - } - }, - "property": { - "type": "Identifier", - "start": 16634, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 451, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16646, - "end": 16648, - "loc": { - "start": { - "line": 451, - "column": 24 - }, - "end": { - "line": 451, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 16651, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 16651, - "end": 16681, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16651, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 55 - } - }, - "object": { - "type": "ThisExpression", - "start": 16651, - "end": 16655, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 33 - } - } - }, - "property": { - "type": "Identifier", - "start": 16656, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 34 - }, - "end": { - "line": 451, - "column": 55 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16678, - "end": 16680, - "loc": { - "start": { - "line": 451, - "column": 56 - }, - "end": { - "line": 451, - "column": 58 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 16693, - "end": 16727, - "loc": { - "start": { - "line": 452, - "column": 9 - }, - "end": { - "line": 454, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16699, - "end": 16722, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 26 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16699, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 25 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16699, - "end": 16701, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "CallExpression", - "start": 16704, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16704, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 16704, - "end": 16708, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 16709, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 13 - }, - "end": { - "line": 453, - "column": 23 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 16736, - "end": 16853, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 459, - "column": 4 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16736, - "end": 16852, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 459, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 16736, - "end": 16756, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 16736, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 16736, - "end": 16740, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 16741, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 7 - }, - "end": { - "line": 456, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16753, - "end": 16755, - "loc": { - "start": { - "line": 456, - "column": 19 - }, - "end": { - "line": 456, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "right": { - "type": "ObjectExpression", - "start": 16759, - "end": 16852, - "loc": { - "start": { - "line": 456, - "column": 25 - }, - "end": { - "line": 459, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16765, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 16765, - "end": 16775, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 13 - } - }, - "extra": { - "rawValue": "duration", - "raw": "'duration'" - }, - "value": "duration" - }, - "value": { - "type": "Identifier", - "start": 16777, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 15 - }, - "end": { - "line": 457, - "column": 24 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - }, - { - "type": "ObjectProperty", - "start": 16792, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 16792, - "end": 16805, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 16 - } - }, - "extra": { - "rawValue": "timeTracker", - "raw": "'timeTracker'" - }, - "value": "timeTracker" - }, - "value": { - "type": "ConditionalExpression", - "start": 16807, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "test": { - "type": "Identifier", - "start": 16807, - "end": 16817, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 28 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "MemberExpression", - "start": 16820, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 54 - } - }, - "object": { - "type": "MemberExpression", - "start": 16820, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 16820, - "end": 16829, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 40 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16830, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 41 - }, - "end": { - "line": 458, - "column": 45 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16835, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 46 - }, - "end": { - "line": 458, - "column": 54 - }, - "identifierName": "lifetime" - }, - "name": "lifetime" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 16846, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 57 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 16859, - "end": 16918, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 461, - "column": 61 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16865, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 60 - } - }, - "id": { - "type": "Identifier", - "start": 16865, - "end": 16878, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 21 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "init": { - "type": "MemberExpression", - "start": 16881, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 60 - } - }, - "object": { - "type": "CallExpression", - "start": 16881, - "end": 16908, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16881, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 38 - } - }, - "object": { - "type": "ThisExpression", - "start": 16881, - "end": 16885, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 16886, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 29 - }, - "end": { - "line": 461, - "column": 38 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16896, - "end": 16907, - "loc": { - "start": { - "line": 461, - "column": 39 - }, - "end": { - "line": 461, - "column": 50 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16909, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 52 - }, - "end": { - "line": 461, - "column": 60 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16922, - "end": 16977, - "loc": { - "start": { - "line": 462, - "column": 2 - }, - "end": { - "line": 462, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16928, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 16928, - "end": 16939, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 19 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "init": { - "type": "MemberExpression", - "start": 16942, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 56 - } - }, - "object": { - "type": "CallExpression", - "start": 16942, - "end": 16967, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16942, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 36 - } - }, - "object": { - "type": "ThisExpression", - "start": 16942, - "end": 16946, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "start": 16947, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 27 - }, - "end": { - "line": 462, - "column": 36 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16957, - "end": 16966, - "loc": { - "start": { - "line": 462, - "column": 37 - }, - "end": { - "line": 462, - "column": 46 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16968, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 48 - }, - "end": { - "line": 462, - "column": 56 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16983, - "end": 17001, - "loc": { - "start": { - "line": 464, - "column": 2 - }, - "end": { - "line": 464, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16989, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 16989, - "end": 16993, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 12 - }, - "identifierName": "self" - }, - "name": "self" - }, - "init": { - "type": "ThisExpression", - "start": 16996, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 15 - }, - "end": { - "line": 464, - "column": 19 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 17005, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17005, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 17005, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 17005, - "end": 17025, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 17005, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 17005, - "end": 17009, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 17010, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 7 - }, - "end": { - "line": 465, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17022, - "end": 17024, - "loc": { - "start": { - "line": 465, - "column": 19 - }, - "end": { - "line": 465, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17026, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 23 - }, - "end": { - "line": 465, - "column": 27 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - }, - "right": { - "type": "ArrowFunctionExpression", - "start": 17033, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 30 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 17034, - "end": 17044, - "loc": { - "start": { - "line": 465, - "column": 31 - }, - "end": { - "line": 465, - "column": 41 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - ], - "body": { - "type": "BlockStatement", - "start": 17049, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 46 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17055, - "end": 18856, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 511, - "column": 4 - } - }, - "test": { - "type": "MemberExpression", - "start": 17059, - "end": 17079, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 17059, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 17059, - "end": 17063, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 11 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17064, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 12 - }, - "end": { - "line": 466, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17076, - "end": 17078, - "loc": { - "start": { - "line": 466, - "column": 24 - }, - "end": { - "line": 466, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 17081, - "end": 18856, - "loc": { - "start": { - "line": 466, - "column": 29 - }, - "end": { - "line": 511, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17088, - "end": 17370, - "loc": { - "start": { - "line": 467, - "column": 4 - }, - "end": { - "line": 478, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 17092, - "end": 17102, - "loc": { - "start": { - "line": 467, - "column": 8 - }, - "end": { - "line": 467, - "column": 18 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "BlockStatement", - "start": 17104, - "end": 17370, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 478, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17112, - "end": 17363, - "loc": { - "start": { - "line": 468, - "column": 5 - }, - "end": { - "line": 477, - "column": 6 - } - }, - "test": { - "type": "MemberExpression", - "start": 17116, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 17116, - "end": 17125, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17126, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 19 - }, - "end": { - "line": 468, - "column": 23 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17132, - "end": 17264, - "loc": { - "start": { - "line": 468, - "column": 25 - }, - "end": { - "line": 474, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17141, - "end": 17256, - "loc": { - "start": { - "line": 469, - "column": 6 - }, - "end": { - "line": 473, - "column": 7 - } - }, - "test": { - "type": "MemberExpression", - "start": 17145, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 17145, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 17145, - "end": 17154, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 19 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17155, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 20 - }, - "end": { - "line": 469, - "column": 24 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17160, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 25 - }, - "end": { - "line": 469, - "column": 30 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17167, - "end": 17256, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 473, - "column": 7 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17177, - "end": 17247, - "loc": { - "start": { - "line": 470, - "column": 7 - }, - "end": { - "line": 472, - "column": 8 - } - }, - "test": { - "type": "MemberExpression", - "start": 17181, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 40 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 17181, - "end": 17190, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 20 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17191, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 21 - }, - "end": { - "line": 470, - "column": 25 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17196, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 26 - }, - "end": { - "line": 470, - "column": 31 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17202, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 32 - }, - "end": { - "line": 470, - "column": 40 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17211, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 41 - }, - "end": { - "line": 470, - "column": 47 - }, - "identifierName": "paused" - }, - "name": "paused" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17219, - "end": 17247, - "loc": { - "start": { - "line": 470, - "column": 49 - }, - "end": { - "line": 472, - "column": 8 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 17230, - "end": 17237, - "loc": { - "start": { - "line": 471, - "column": 8 - }, - "end": { - "line": 471, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 17270, - "end": 17363, - "loc": { - "start": { - "line": 474, - "column": 12 - }, - "end": { - "line": 477, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17279, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 6 - }, - "end": { - "line": 475, - "column": 63 - } - }, - "test": { - "type": "MemberExpression", - "start": 17283, - "end": 17303, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 17283, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 17283, - "end": 17287, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 14 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17288, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 15 - }, - "end": { - "line": 475, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17300, - "end": 17302, - "loc": { - "start": { - "line": 475, - "column": 27 - }, - "end": { - "line": 475, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 17305, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 17305, - "end": 17335, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17305, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 17305, - "end": 17309, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 36 - } - } - }, - "property": { - "type": "Identifier", - "start": 17310, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 37 - }, - "end": { - "line": 475, - "column": 58 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17332, - "end": 17334, - "loc": { - "start": { - "line": 475, - "column": 59 - }, - "end": { - "line": 475, - "column": 61 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 17344, - "end": 17351, - "loc": { - "start": { - "line": 476, - "column": 6 - }, - "end": { - "line": 476, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 17378, - "end": 17401, - "loc": { - "start": { - "line": 480, - "column": 4 - }, - "end": { - "line": 480, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17384, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 17384, - "end": 17387, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 13 - }, - "identifierName": "now" - }, - "name": "now" - }, - "init": { - "type": "Identifier", - "start": 17390, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 16 - }, - "end": { - "line": 480, - "column": 26 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 17407, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 4 - }, - "end": { - "line": 481, - "column": 76 - } - }, - "test": { - "type": "UnaryExpression", - "start": 17411, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 38 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 17412, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 38 - } - }, - "object": { - "type": "MemberExpression", - "start": 17412, - "end": 17432, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 17412, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 17412, - "end": 17416, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17417, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 14 - }, - "end": { - "line": 481, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17429, - "end": 17431, - "loc": { - "start": { - "line": 481, - "column": 26 - }, - "end": { - "line": 481, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17433, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 30 - }, - "end": { - "line": 481, - "column": 38 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 17443, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 76 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17443, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 75 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 17443, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 69 - } - }, - "object": { - "type": "MemberExpression", - "start": 17443, - "end": 17463, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 17443, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 17443, - "end": 17447, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 44 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17448, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 45 - }, - "end": { - "line": 481, - "column": 56 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17460, - "end": 17462, - "loc": { - "start": { - "line": 481, - "column": 57 - }, - "end": { - "line": 481, - "column": 59 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17464, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 61 - }, - "end": { - "line": 481, - "column": 69 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 17475, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 72 - }, - "end": { - "line": 481, - "column": 75 - }, - "identifierName": "now" - }, - "name": "now" - } - } - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 17485, - "end": 17537, - "loc": { - "start": { - "line": 482, - "column": 4 - }, - "end": { - "line": 482, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17491, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 17491, - "end": 17498, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 17 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "init": { - "type": "BinaryExpression", - "start": 17501, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 17501, - "end": 17504, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 23 - }, - "identifierName": "now" - }, - "name": "now" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 17507, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "object": { - "type": "MemberExpression", - "start": 17507, - "end": 17527, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 17507, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 17507, - "end": 17511, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 30 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17512, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 31 - }, - "end": { - "line": 482, - "column": 42 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17524, - "end": 17526, - "loc": { - "start": { - "line": 482, - "column": 43 - }, - "end": { - "line": 482, - "column": 45 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17528, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 47 - }, - "end": { - "line": 482, - "column": 55 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 17732, - "end": 17776, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 48 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17732, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 47 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 17732, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 17732, - "end": 17752, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 17732, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 17732, - "end": 17736, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17737, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 9 - }, - "end": { - "line": 484, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17749, - "end": 17751, - "loc": { - "start": { - "line": 484, - "column": 21 - }, - "end": { - "line": 484, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17753, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 25 - }, - "end": { - "line": 484, - "column": 36 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 17768, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 40 - }, - "end": { - "line": 484, - "column": 47 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17844, - "end": 17941, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 101 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17850, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 100 - } - }, - "id": { - "type": "Identifier", - "start": 17850, - "end": 17860, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 20 - }, - "identifierName": "percentage" - }, - "name": "percentage", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 17863, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17863, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 17863, - "end": 17867, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 17868, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 28 - }, - "end": { - "line": 486, - "column": 31 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 17872, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 96 - } - }, - "left": { - "type": "MemberExpression", - "start": 17872, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 64 - } - }, - "object": { - "type": "MemberExpression", - "start": 17872, - "end": 17892, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 17872, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 17872, - "end": 17876, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 36 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17877, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 37 - }, - "end": { - "line": 486, - "column": 48 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17889, - "end": 17891, - "loc": { - "start": { - "line": 486, - "column": 49 - }, - "end": { - "line": 486, - "column": 51 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17893, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 53 - }, - "end": { - "line": 486, - "column": 64 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 17907, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 96 - } - }, - "object": { - "type": "MemberExpression", - "start": 17907, - "end": 17927, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 17907, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 17907, - "end": 17911, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 71 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17912, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 72 - }, - "end": { - "line": 486, - "column": 83 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17924, - "end": 17926, - "loc": { - "start": { - "line": 486, - "column": 84 - }, - "end": { - "line": 486, - "column": 86 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17928, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 88 - }, - "end": { - "line": 486, - "column": 96 - }, - "identifierName": "duration" - }, - "name": "duration" - }, - "computed": false - } - }, - { - "type": "NumericLiteral", - "start": 17938, - "end": 17939, - "loc": { - "start": { - "line": 486, - "column": 98 - }, - "end": { - "line": 486, - "column": 99 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17953, - "end": 18033, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17959, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 17959, - "end": 17960, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 17963, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 17963, - "end": 17971, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 17972, - "end": 18027, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17972, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 17972, - "end": 17976, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17977, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 28 - }, - "end": { - "line": 488, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 17982, - "end": 17998, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 17982, - "end": 17995, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 17996, - "end": 17997, - "loc": { - "start": { - "line": 488, - "column": 47 - }, - "end": { - "line": 488, - "column": 48 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18000, - "end": 18014, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18000, - "end": 18011, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18012, - "end": 18013, - "loc": { - "start": { - "line": 488, - "column": 63 - }, - "end": { - "line": 488, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18016, - "end": 18026, - "loc": { - "start": { - "line": 488, - "column": 67 - }, - "end": { - "line": 488, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18029, - "end": 18031, - "loc": { - "start": { - "line": 488, - "column": 80 - }, - "end": { - "line": 488, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18039, - "end": 18119, - "loc": { - "start": { - "line": 489, - "column": 4 - }, - "end": { - "line": 489, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18045, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 18045, - "end": 18046, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 11 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 18049, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 18049, - "end": 18057, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18058, - "end": 18113, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18058, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18058, - "end": 18062, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18063, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 28 - }, - "end": { - "line": 489, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18068, - "end": 18084, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 18068, - "end": 18081, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18082, - "end": 18083, - "loc": { - "start": { - "line": 489, - "column": 47 - }, - "end": { - "line": 489, - "column": 48 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18086, - "end": 18100, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18086, - "end": 18097, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18098, - "end": 18099, - "loc": { - "start": { - "line": 489, - "column": 63 - }, - "end": { - "line": 489, - "column": 64 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18102, - "end": 18112, - "loc": { - "start": { - "line": 489, - "column": 67 - }, - "end": { - "line": 489, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18115, - "end": 18117, - "loc": { - "start": { - "line": 489, - "column": 80 - }, - "end": { - "line": 489, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18125, - "end": 18205, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18131, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 18131, - "end": 18132, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 11 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 18135, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 18135, - "end": 18143, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18144, - "end": 18199, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18144, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18144, - "end": 18148, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18149, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 28 - }, - "end": { - "line": 490, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18154, - "end": 18170, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 18154, - "end": 18167, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18168, - "end": 18169, - "loc": { - "start": { - "line": 490, - "column": 47 - }, - "end": { - "line": 490, - "column": 48 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18172, - "end": 18186, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18172, - "end": 18183, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18184, - "end": 18185, - "loc": { - "start": { - "line": 490, - "column": 63 - }, - "end": { - "line": 490, - "column": 64 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18188, - "end": 18198, - "loc": { - "start": { - "line": 490, - "column": 67 - }, - "end": { - "line": 490, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18201, - "end": 18203, - "loc": { - "start": { - "line": 490, - "column": 80 - }, - "end": { - "line": 490, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18211, - "end": 18249, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 491, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18217, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 18217, - "end": 18222, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 15 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "CallExpression", - "start": 18225, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18225, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18225, - "end": 18229, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 22 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18230, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 23 - }, - "end": { - "line": 491, - "column": 32 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18240, - "end": 18241, - "loc": { - "start": { - "line": 491, - "column": 33 - }, - "end": { - "line": 491, - "column": 34 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 18243, - "end": 18244, - "loc": { - "start": { - "line": 491, - "column": 36 - }, - "end": { - "line": 491, - "column": 37 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 18246, - "end": 18247, - "loc": { - "start": { - "line": 491, - "column": 39 - }, - "end": { - "line": 491, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 18257, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 52 - } - }, - "test": { - "type": "Identifier", - "start": 18261, - "end": 18278, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18280, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 52 - } - }, - "expression": { - "type": "CallExpression", - "start": 18280, - "end": 18304, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 51 - } - }, - "callee": { - "type": "Identifier", - "start": 18280, - "end": 18297, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 44 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 18298, - "end": 18303, - "loc": { - "start": { - "line": 493, - "column": 45 - }, - "end": { - "line": 493, - "column": 50 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18313, - "end": 18508, - "loc": { - "start": { - "line": 495, - "column": 4 - }, - "end": { - "line": 502, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 18317, - "end": 18326, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 18328, - "end": 18508, - "loc": { - "start": { - "line": 495, - "column": 19 - }, - "end": { - "line": 502, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 18336, - "end": 18501, - "loc": { - "start": { - "line": 496, - "column": 5 - }, - "end": { - "line": 501, - "column": 6 - } - }, - "test": { - "type": "Identifier", - "start": 18340, - "end": 18352, - "loc": { - "start": { - "line": 496, - "column": 9 - }, - "end": { - "line": 496, - "column": 21 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "consequent": { - "type": "BlockStatement", - "start": 18354, - "end": 18450, - "loc": { - "start": { - "line": 496, - "column": 23 - }, - "end": { - "line": 499, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18363, - "end": 18400, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18363, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18363, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 18363, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18363, - "end": 18372, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18373, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 16 - }, - "end": { - "line": 497, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18379, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 22 - }, - "end": { - "line": 497, - "column": 26 - }, - "identifierName": "tint" - }, - "name": "tint" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18386, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 18386, - "end": 18391, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 34 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 18392, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 35 - }, - "end": { - "line": 497, - "column": 42 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - } - } - }, - { - "type": "ExpressionStatement", - "start": 18408, - "end": 18442, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18408, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18408, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18408, - "end": 18417, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18418, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 16 - }, - "end": { - "line": 498, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18426, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 18426, - "end": 18435, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 33 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18436, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 34 - }, - "end": { - "line": 498, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 18456, - "end": 18501, - "loc": { - "start": { - "line": 499, - "column": 12 - }, - "end": { - "line": 501, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18465, - "end": 18493, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 34 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18465, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 33 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18465, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18465, - "end": 18474, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18475, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18483, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 18483, - "end": 18488, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 29 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 18489, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 30 - }, - "end": { - "line": 500, - "column": 33 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18516, - "end": 18715, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 508, - "column": 5 - } - }, - "test": { - "type": "LogicalExpression", - "start": 18520, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 72 - } - }, - "left": { - "type": "BinaryExpression", - "start": 18520, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 18520, - "end": 18530, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 18 - }, - "identifierName": "percentage" - }, - "name": "percentage" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 18534, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 22 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "operator": "||", - "right": { - "type": "BinaryExpression", - "start": 18539, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 72 - } - }, - "left": { - "type": "MemberExpression", - "start": 18539, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 59 - } - }, - "object": { - "type": "MemberExpression", - "start": 18539, - "end": 18559, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 18539, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 18539, - "end": 18543, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 31 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18544, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 43 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18556, - "end": 18558, - "loc": { - "start": { - "line": 504, - "column": 44 - }, - "end": { - "line": 504, - "column": 46 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18560, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 59 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 18575, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 72 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 18586, - "end": 18715, - "loc": { - "start": { - "line": 504, - "column": 74 - }, - "end": { - "line": 508, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 18594, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 5 - }, - "end": { - "line": 505, - "column": 62 - } - }, - "test": { - "type": "MemberExpression", - "start": 18598, - "end": 18618, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 18598, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 18598, - "end": 18602, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18603, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 14 - }, - "end": { - "line": 505, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18615, - "end": 18617, - "loc": { - "start": { - "line": 505, - "column": 26 - }, - "end": { - "line": 505, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18620, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 18620, - "end": 18650, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18620, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 57 - } - }, - "object": { - "type": "ThisExpression", - "start": 18620, - "end": 18624, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 18625, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 36 - }, - "end": { - "line": 505, - "column": 57 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18647, - "end": 18649, - "loc": { - "start": { - "line": 505, - "column": 58 - }, - "end": { - "line": 505, - "column": 60 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18658, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 5 - }, - "end": { - "line": 506, - "column": 41 - } - }, - "test": { - "type": "Identifier", - "start": 18662, - "end": 18673, - "loc": { - "start": { - "line": 506, - "column": 9 - }, - "end": { - "line": 506, - "column": 20 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18675, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 18675, - "end": 18693, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 18675, - "end": 18686, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 33 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 18687, - "end": 18692, - "loc": { - "start": { - "line": 506, - "column": 34 - }, - "end": { - "line": 506, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 18701, - "end": 18708, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 12 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 18721, - "end": 18808, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 91 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18721, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 90 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18721, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 28 - } - }, - "object": { - "type": "MemberExpression", - "start": 18721, - "end": 18741, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 18721, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 18721, - "end": 18725, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18726, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 9 - }, - "end": { - "line": 509, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18738, - "end": 18740, - "loc": { - "start": { - "line": 509, - "column": 21 - }, - "end": { - "line": 509, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18742, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 25 - }, - "end": { - "line": 509, - "column": 28 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 18748, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18748, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 18748, - "end": 18758, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 41 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 18759, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 42 - }, - "end": { - "line": 509, - "column": 63 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18781, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 18781, - "end": 18801, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 84 - } - }, - "object": { - "type": "MemberExpression", - "start": 18781, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 80 - } - }, - "object": { - "type": "Identifier", - "start": 18781, - "end": 18785, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 68 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18786, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 69 - }, - "end": { - "line": 509, - "column": 80 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18798, - "end": 18800, - "loc": { - "start": { - "line": 509, - "column": 81 - }, - "end": { - "line": 509, - "column": 83 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18802, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 85 - }, - "end": { - "line": 509, - "column": 89 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 18814, - "end": 18850, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18814, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18814, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 33 - } - }, - "object": { - "type": "MemberExpression", - "start": 18814, - "end": 18834, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 18814, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 18814, - "end": 18818, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18819, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 9 - }, - "end": { - "line": 510, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18831, - "end": 18833, - "loc": { - "start": { - "line": 510, - "column": 21 - }, - "end": { - "line": 510, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18835, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 25 - }, - "end": { - "line": 510, - "column": 33 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 18846, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 36 - }, - "end": { - "line": 510, - "column": 39 - }, - "identifierName": "now" - }, - "name": "now" - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 18867, - "end": 18954, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18867, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18867, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 18867, - "end": 18887, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 18867, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 18867, - "end": 18871, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 18872, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 7 - }, - "end": { - "line": 514, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18884, - "end": 18886, - "loc": { - "start": { - "line": 514, - "column": 19 - }, - "end": { - "line": 514, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18888, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 26 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 18894, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 88 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18894, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 18894, - "end": 18904, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 39 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 18905, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 40 - }, - "end": { - "line": 514, - "column": 61 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18927, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 18927, - "end": 18947, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 82 - } - }, - "object": { - "type": "MemberExpression", - "start": 18927, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 78 - } - }, - "object": { - "type": "ThisExpression", - "start": 18927, - "end": 18931, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 66 - } - } - }, - "property": { - "type": "Identifier", - "start": 18932, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 67 - }, - "end": { - "line": 514, - "column": 78 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18944, - "end": 18946, - "loc": { - "start": { - "line": 514, - "column": 79 - }, - "end": { - "line": 514, - "column": 81 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18948, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 83 - }, - "end": { - "line": 514, - "column": 87 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 18958, - "end": 18968, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 18965, - "end": 18967, - "loc": { - "start": { - "line": 515, - "column": 9 - }, - "end": { - "line": 515, - "column": 11 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19098, - "end": 19265, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 527, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19098, - "end": 19119, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 522, - "column": 22 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19120, - "end": 19123, - "loc": { - "start": { - "line": 522, - "column": 23 - }, - "end": { - "line": 522, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - } - ], - "body": { - "type": "BlockStatement", - "start": 19125, - "end": 19265, - "loc": { - "start": { - "line": 522, - "column": 28 - }, - "end": { - "line": 527, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 19130, - "end": 19261, - "loc": { - "start": { - "line": 523, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "test": { - "type": "MemberExpression", - "start": 19134, - "end": 19155, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 19134, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 19134, - "end": 19138, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "start": 19139, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 11 - }, - "end": { - "line": 523, - "column": 22 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19151, - "end": 19154, - "loc": { - "start": { - "line": 523, - "column": 23 - }, - "end": { - "line": 523, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 19157, - "end": 19261, - "loc": { - "start": { - "line": 523, - "column": 29 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19163, - "end": 19222, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 19163, - "end": 19221, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19163, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 19163, - "end": 19173, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 13 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 19174, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 34 - }, - "identifierName": "cancelAnimationFrame" - }, - "name": "cancelAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 19195, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 19195, - "end": 19216, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 56 - } - }, - "object": { - "type": "MemberExpression", - "start": 19195, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 51 - } - }, - "object": { - "type": "ThisExpression", - "start": 19195, - "end": 19199, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 19200, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 40 - }, - "end": { - "line": 524, - "column": 51 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19212, - "end": 19215, - "loc": { - "start": { - "line": 524, - "column": 52 - }, - "end": { - "line": 524, - "column": 55 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 19217, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 57 - }, - "end": { - "line": 524, - "column": 60 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 19227, - "end": 19256, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 32 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 19227, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 31 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 19234, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 19234, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 26 - } - }, - "object": { - "type": "ThisExpression", - "start": 19234, - "end": 19238, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 14 - } - } - }, - "property": { - "type": "Identifier", - "start": 19239, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 15 - }, - "end": { - "line": 525, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19251, - "end": 19254, - "loc": { - "start": { - "line": 525, - "column": 27 - }, - "end": { - "line": 525, - "column": 30 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19952, - "end": 20745, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 558, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19952, - "end": 19967, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 539, - "column": 16 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19968, - "end": 19973, - "loc": { - "start": { - "line": 539, - "column": 17 - }, - "end": { - "line": 539, - "column": 22 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 19975, - "end": 19981, - "loc": { - "start": { - "line": 539, - "column": 24 - }, - "end": { - "line": 539, - "column": 30 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "Identifier", - "start": 19983, - "end": 19989, - "loc": { - "start": { - "line": 539, - "column": 32 - }, - "end": { - "line": 539, - "column": 38 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 19991, - "end": 20745, - "loc": { - "start": { - "line": 539, - "column": 40 - }, - "end": { - "line": 558, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 20134, - "end": 20246, - "loc": { - "start": { - "line": 543, - "column": 2 - }, - "end": { - "line": 543, - "column": 114 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20140, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "id": { - "type": "Identifier", - "start": 20140, - "end": 20142, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 10 - }, - "identifierName": "cx" - }, - "name": "cx", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20145, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 20145, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 20145, - "end": 20150, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20151, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 19 - }, - "end": { - "line": 543, - "column": 20 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20155, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 20155, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 20155, - "end": 20160, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20161, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 29 - }, - "end": { - "line": 543, - "column": 34 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 20170, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 20170, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 89 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20170, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 71 - } - }, - "left": { - "type": "UnaryExpression", - "start": 20170, - "end": 20190, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 58 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 20177, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 20177, - "end": 20182, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 50 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20183, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 51 - }, - "end": { - "line": 543, - "column": 57 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 20176 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 20195, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 63 - }, - "end": { - "line": 543, - "column": 71 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 20207, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 20207, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 20207, - "end": 20212, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 80 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20213, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 81 - }, - "end": { - "line": 543, - "column": 87 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20220, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 88 - }, - "end": { - "line": 543, - "column": 89 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 20224, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 106 - } - }, - "object": { - "type": "MemberExpression", - "start": 20224, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 104 - } - }, - "object": { - "type": "Identifier", - "start": 20224, - "end": 20229, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20230, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 98 - }, - "end": { - "line": 543, - "column": 104 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20237, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 105 - }, - "end": { - "line": 543, - "column": 106 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 20241, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 109 - }, - "end": { - "line": 543, - "column": 112 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 20169 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 19996, - "end": 20036, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 540, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 20040, - "end": 20093, - "loc": { - "start": { - "line": 541, - "column": 2 - }, - "end": { - "line": 541, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 20097, - "end": 20130, - "loc": { - "start": { - "line": 542, - "column": 2 - }, - "end": { - "line": 542, - "column": 35 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20250, - "end": 20363, - "loc": { - "start": { - "line": 544, - "column": 2 - }, - "end": { - "line": 544, - "column": 115 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20256, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "id": { - "type": "Identifier", - "start": 20256, - "end": 20258, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 10 - }, - "identifierName": "cy" - }, - "name": "cy" - }, - "init": { - "type": "BinaryExpression", - "start": 20261, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 20261, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 20261, - "end": 20266, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20267, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 19 - }, - "end": { - "line": 544, - "column": 20 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20271, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 20271, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20271, - "end": 20276, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20277, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 29 - }, - "end": { - "line": 544, - "column": 35 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 20287, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 113 - } - }, - "test": { - "type": "LogicalExpression", - "start": 20287, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 90 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20287, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 72 - } - }, - "left": { - "type": "UnaryExpression", - "start": 20287, - "end": 20307, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 59 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 20294, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 20294, - "end": 20299, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 51 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20300, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 52 - }, - "end": { - "line": 544, - "column": 58 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 20293 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 20312, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 64 - }, - "end": { - "line": 544, - "column": 72 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 20324, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 90 - } - }, - "object": { - "type": "MemberExpression", - "start": 20324, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 88 - } - }, - "object": { - "type": "Identifier", - "start": 20324, - "end": 20329, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 81 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20330, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 82 - }, - "end": { - "line": 544, - "column": 88 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20337, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 89 - }, - "end": { - "line": 544, - "column": 90 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 20341, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 107 - } - }, - "object": { - "type": "MemberExpression", - "start": 20341, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 105 - } - }, - "object": { - "type": "Identifier", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 98 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20347, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 99 - }, - "end": { - "line": 544, - "column": 105 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20354, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 106 - }, - "end": { - "line": 544, - "column": 107 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 20358, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 110 - }, - "end": { - "line": 544, - "column": 113 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 20286 - } - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20401, - "end": 20429, - "loc": { - "start": { - "line": 547, - "column": 2 - }, - "end": { - "line": 547, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20407, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 20407, - "end": 20412, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 13 - }, - "identifierName": "tempX" - }, - "name": "tempX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20415, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 20415, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 20415, - "end": 20421, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 20422, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 20426, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 27 - }, - "end": { - "line": 547, - "column": 29 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20433, - "end": 20461, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20439, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 20439, - "end": 20444, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 13 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "init": { - "type": "BinaryExpression", - "start": 20447, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 20447, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 20447, - "end": 20453, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 20454, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 23 - }, - "end": { - "line": 548, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 20458, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 29 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20492, - "end": 20560, - "loc": { - "start": { - "line": 551, - "column": 2 - }, - "end": { - "line": 551, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20498, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 20498, - "end": 20506, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 16 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20509, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20509, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 41 - } - }, - "left": { - "type": "Identifier", - "start": 20509, - "end": 20514, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 20515, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20515, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 20515, - "end": 20519, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20520, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 30 - }, - "end": { - "line": 551, - "column": 33 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20524, - "end": 20530, - "loc": { - "start": { - "line": 551, - "column": 34 - }, - "end": { - "line": 551, - "column": 40 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 20534, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 20534, - "end": 20539, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 49 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 20541, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 51 - }, - "end": { - "line": 551, - "column": 68 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 20542, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 68 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20542, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 20542, - "end": 20546, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 56 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20547, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 57 - }, - "end": { - "line": 551, - "column": 60 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20551, - "end": 20557, - "loc": { - "start": { - "line": 551, - "column": 61 - }, - "end": { - "line": 551, - "column": 67 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 20540 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20564, - "end": 20632, - "loc": { - "start": { - "line": 552, - "column": 2 - }, - "end": { - "line": 552, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20570, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 20570, - "end": 20578, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 16 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "init": { - "type": "BinaryExpression", - "start": 20581, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20581, - "end": 20606, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 44 - } - }, - "left": { - "type": "Identifier", - "start": 20581, - "end": 20586, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 20588, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 26 - }, - "end": { - "line": 552, - "column": 43 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 20589, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20589, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20589, - "end": 20593, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20594, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 32 - }, - "end": { - "line": 552, - "column": 35 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 552, - "column": 36 - }, - "end": { - "line": 552, - "column": 42 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 20587 - } - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20609, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 20609, - "end": 20614, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 52 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 20615, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20615, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 20615, - "end": 20619, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20620, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 58 - }, - "end": { - "line": 552, - "column": 61 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20624, - "end": 20630, - "loc": { - "start": { - "line": 552, - "column": 62 - }, - "end": { - "line": 552, - "column": 68 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20659, - "end": 20683, - "loc": { - "start": { - "line": 555, - "column": 2 - }, - "end": { - "line": 555, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20665, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20665, - "end": 20666, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20669, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 20669, - "end": 20677, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 20 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 20680, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 23 - }, - "end": { - "line": 555, - "column": 25 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20687, - "end": 20711, - "loc": { - "start": { - "line": 556, - "column": 2 - }, - "end": { - "line": 556, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20693, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20693, - "end": 20694, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 20697, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 20697, - "end": 20705, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 20 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 20708, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 23 - }, - "end": { - "line": 556, - "column": 25 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 20715, - "end": 20741, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 28 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 20722, - "end": 20740, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20724, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20724, - "end": 20727, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 14 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "Identifier", - "start": 20729, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 16 - }, - "end": { - "line": 557, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - } - }, - { - "type": "ObjectProperty", - "start": 20732, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20732, - "end": 20735, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 22 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "Identifier", - "start": 20737, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 24 - }, - "end": { - "line": 557, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21246, - "end": 21875, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 574, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21246, - "end": 21268, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 567, - "column": 23 - }, - "identifierName": "getPointsOfRotatedRect" - }, - "name": "getPointsOfRotatedRect", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 21269, - "end": 21274, - "loc": { - "start": { - "line": 567, - "column": 24 - }, - "end": { - "line": 567, - "column": 29 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21276, - "end": 21282, - "loc": { - "start": { - "line": 567, - "column": 31 - }, - "end": { - "line": 567, - "column": 37 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ], - "body": { - "type": "BlockStatement", - "start": 21284, - "end": 21875, - "loc": { - "start": { - "line": 567, - "column": 39 - }, - "end": { - "line": 574, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 21289, - "end": 21368, - "loc": { - "start": { - "line": 568, - "column": 2 - }, - "end": { - "line": 568, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21295, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 21295, - "end": 21297, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 10 - }, - "identifierName": "tl" - }, - "name": "tl" - }, - "init": { - "type": "CallExpression", - "start": 21300, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 80 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21300, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21300, - "end": 21304, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21305, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 18 - }, - "end": { - "line": 568, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21321, - "end": 21326, - "loc": { - "start": { - "line": 568, - "column": 34 - }, - "end": { - "line": 568, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21328, - "end": 21334, - "loc": { - "start": { - "line": 568, - "column": 41 - }, - "end": { - "line": 568, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21336, - "end": 21366, - "loc": { - "start": { - "line": 568, - "column": 49 - }, - "end": { - "line": 568, - "column": 79 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21338, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21338, - "end": 21341, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 21343, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21343, - "end": 21348, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21349, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 62 - }, - "end": { - "line": 568, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 21352, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21352, - "end": 21355, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 21357, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21357, - "end": 21362, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21363, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 76 - }, - "end": { - "line": 568, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21372, - "end": 21465, - "loc": { - "start": { - "line": 569, - "column": 2 - }, - "end": { - "line": 569, - "column": 95 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21378, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 94 - } - }, - "id": { - "type": "Identifier", - "start": 21378, - "end": 21380, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 10 - }, - "identifierName": "tr" - }, - "name": "tr" - }, - "init": { - "type": "CallExpression", - "start": 21383, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21383, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21383, - "end": 21387, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21388, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 569, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21404, - "end": 21409, - "loc": { - "start": { - "line": 569, - "column": 34 - }, - "end": { - "line": 569, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21411, - "end": 21417, - "loc": { - "start": { - "line": 569, - "column": 41 - }, - "end": { - "line": 569, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21419, - "end": 21463, - "loc": { - "start": { - "line": 569, - "column": 49 - }, - "end": { - "line": 569, - "column": 93 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21421, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21421, - "end": 21424, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21426, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 21426, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21426, - "end": 21431, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21432, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 62 - }, - "end": { - "line": 569, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21436, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21436, - "end": 21441, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21442, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 72 - }, - "end": { - "line": 569, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 21449, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 91 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21449, - "end": 21452, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 21454, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 21454, - "end": 21459, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21460, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 90 - }, - "end": { - "line": 569, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21469, - "end": 21563, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 570, - "column": 96 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21475, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 95 - } - }, - "id": { - "type": "Identifier", - "start": 21475, - "end": 21477, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 10 - }, - "identifierName": "bl" - }, - "name": "bl" - }, - "init": { - "type": "CallExpression", - "start": 21480, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21480, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21480, - "end": 21484, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21485, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 18 - }, - "end": { - "line": 570, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21501, - "end": 21506, - "loc": { - "start": { - "line": 570, - "column": 34 - }, - "end": { - "line": 570, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21508, - "end": 21514, - "loc": { - "start": { - "line": 570, - "column": 41 - }, - "end": { - "line": 570, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21516, - "end": 21561, - "loc": { - "start": { - "line": 570, - "column": 49 - }, - "end": { - "line": 570, - "column": 94 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21518, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21518, - "end": 21521, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 21523, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21523, - "end": 21528, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21529, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 62 - }, - "end": { - "line": 570, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 21532, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21532, - "end": 21535, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21537, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "left": { - "type": "MemberExpression", - "start": 21537, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21537, - "end": 21542, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21543, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 76 - }, - "end": { - "line": 570, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21547, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "object": { - "type": "Identifier", - "start": 21547, - "end": 21552, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 85 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21553, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 86 - }, - "end": { - "line": 570, - "column": 92 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21567, - "end": 21675, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 110 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21573, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 109 - } - }, - "id": { - "type": "Identifier", - "start": 21573, - "end": 21575, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 10 - }, - "identifierName": "br" - }, - "name": "br" - }, - "init": { - "type": "CallExpression", - "start": 21578, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 109 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21578, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21578, - "end": 21582, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21583, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 18 - }, - "end": { - "line": 571, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21599, - "end": 21604, - "loc": { - "start": { - "line": 571, - "column": 34 - }, - "end": { - "line": 571, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21606, - "end": 21612, - "loc": { - "start": { - "line": 571, - "column": 41 - }, - "end": { - "line": 571, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21614, - "end": 21673, - "loc": { - "start": { - "line": 571, - "column": 49 - }, - "end": { - "line": 571, - "column": 108 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21616, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21616, - "end": 21619, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21621, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 21621, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21621, - "end": 21626, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21627, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 62 - }, - "end": { - "line": 571, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21631, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21631, - "end": 21636, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21637, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 72 - }, - "end": { - "line": 571, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 21644, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21644, - "end": 21647, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21649, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "left": { - "type": "MemberExpression", - "start": 21649, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 21649, - "end": 21654, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 90 - }, - "end": { - "line": 571, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21659, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 21659, - "end": 21664, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 99 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21665, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 100 - }, - "end": { - "line": 571, - "column": 106 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21679, - "end": 21799, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 122 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21685, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 121 - } - }, - "id": { - "type": "Identifier", - "start": 21685, - "end": 21691, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 14 - }, - "identifierName": "center" - }, - "name": "center" - }, - "init": { - "type": "CallExpression", - "start": 21694, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 121 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21694, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 37 - } - }, - "object": { - "type": "ThisExpression", - "start": 21694, - "end": 21698, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "start": 21699, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 22 - }, - "end": { - "line": 572, - "column": 37 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21715, - "end": 21720, - "loc": { - "start": { - "line": 572, - "column": 38 - }, - "end": { - "line": 572, - "column": 43 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21722, - "end": 21728, - "loc": { - "start": { - "line": 572, - "column": 45 - }, - "end": { - "line": 572, - "column": 51 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21730, - "end": 21797, - "loc": { - "start": { - "line": 572, - "column": 53 - }, - "end": { - "line": 572, - "column": 120 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21732, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21732, - "end": 21735, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 58 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21737, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 21737, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 21737, - "end": 21742, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 65 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21743, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 66 - }, - "end": { - "line": 572, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 21747, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 21747, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 81 - } - }, - "object": { - "type": "Identifier", - "start": 21747, - "end": 21752, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21753, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 76 - }, - "end": { - "line": 572, - "column": 81 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21761, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 84 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 21764, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21764, - "end": 21767, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 90 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21769, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 21769, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 21769, - "end": 21774, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21775, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 98 - }, - "end": { - "line": 572, - "column": 99 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 21779, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 21779, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 114 - } - }, - "object": { - "type": "Identifier", - "start": 21779, - "end": 21784, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 107 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21785, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 108 - }, - "end": { - "line": 572, - "column": 114 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21794, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 117 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 21803, - "end": 21871, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 573, - "column": 70 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 21810, - "end": 21870, - "loc": { - "start": { - "line": 573, - "column": 9 - }, - "end": { - "line": 573, - "column": 69 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21812, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21812, - "end": 21816, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 15 - } - }, - "extra": { - "rawValue": "tl", - "raw": "'tl'" - }, - "value": "tl" - }, - "value": { - "type": "Identifier", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 17 - }, - "end": { - "line": 573, - "column": 19 - }, - "identifierName": "tl" - }, - "name": "tl" - } - }, - { - "type": "ObjectProperty", - "start": 21822, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21822, - "end": 21826, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 25 - } - }, - "extra": { - "rawValue": "tr", - "raw": "'tr'" - }, - "value": "tr" - }, - "value": { - "type": "Identifier", - "start": 21828, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 27 - }, - "end": { - "line": 573, - "column": 29 - }, - "identifierName": "tr" - }, - "name": "tr" - } - }, - { - "type": "ObjectProperty", - "start": 21832, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21832, - "end": 21836, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 35 - } - }, - "extra": { - "rawValue": "bl", - "raw": "'bl'" - }, - "value": "bl" - }, - "value": { - "type": "Identifier", - "start": 21838, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 37 - }, - "end": { - "line": 573, - "column": 39 - }, - "identifierName": "bl" - }, - "name": "bl" - } - }, - { - "type": "ObjectProperty", - "start": 21842, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21842, - "end": 21846, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 45 - } - }, - "extra": { - "rawValue": "br", - "raw": "'br'" - }, - "value": "br" - }, - "value": { - "type": "Identifier", - "start": 21848, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 47 - }, - "end": { - "line": 573, - "column": 49 - }, - "identifierName": "br" - }, - "name": "br" - } - }, - { - "type": "ObjectProperty", - "start": 21852, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 67 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21852, - "end": 21860, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 59 - } - }, - "extra": { - "rawValue": "center", - "raw": "'center'" - }, - "value": "center" - }, - "value": { - "type": "Identifier", - "start": 21862, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 61 - }, - "end": { - "line": 573, - "column": 67 - }, - "identifierName": "center" - }, - "name": "center" - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "ExportNamedDeclaration", - "start": 21880, - "end": 21924, - "loc": { - "start": { - "line": 576, - "column": 0 - }, - "end": { - "line": 576, - "column": 44 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 21887, - "end": 21924, - "loc": { - "start": { - "line": 576, - "column": 7 - }, - "end": { - "line": 576, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21893, - "end": 21923, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 21893, - "end": 21899, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 19 - }, - "identifierName": "EUtils" - }, - "name": "EUtils" - }, - "init": { - "type": "NewExpression", - "start": 21902, - "end": 21923, - "loc": { - "start": { - "line": 576, - "column": 22 - }, - "end": { - "line": 576, - "column": 43 - } - }, - "callee": { - "type": "Identifier", - "start": 21906, - "end": 21921, - "loc": { - "start": { - "line": 576, - "column": 26 - }, - "end": { - "line": 576, - "column": 41 - }, - "identifierName": "EUtilsSingleton" - }, - "name": "EUtilsSingleton" - }, - "arguments": [] - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - } - }, - { - "type": "ExportNamedDeclaration", - "start": 21880, - "end": 21924, - "loc": { - "start": { - "line": 576, - "column": 0 - }, - "end": { - "line": 576, - "column": 44 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "ClassDeclaration", - "start": 226, - "end": 21878, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 575, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 232, - "end": 247, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 21 - }, - "identifierName": "EUtilsSingleton" - }, - "name": "EUtilsSingleton", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 248, - "end": 21878, - "loc": { - "start": { - "line": 9, - "column": 22 - }, - "end": { - "line": 575, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 296, - "end": 321, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 26 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 303, - "end": 310, - "loc": { - "start": { - "line": 13, - "column": 8 - }, - "end": { - "line": 13, - "column": 15 - }, - "identifierName": "version" - }, - "name": "version" - }, - "value": { - "type": "StringLiteral", - "start": 313, - "end": 320, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 13, - "column": 25 - } - }, - "extra": { - "rawValue": "1.0.0", - "raw": "'1.0.0'" - }, - "value": "1.0.0" - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the library\r\n\t ", - "start": 252, - "end": 293, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 12, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 324, - "end": 599, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 27, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 324, - "end": 335, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 14, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 338, - "end": 599, - "loc": { - "start": { - "line": 14, - "column": 15 - }, - "end": { - "line": 27, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 457, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 24 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 457, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 457, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 457, - "end": 461, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 6 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 462, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 7 - }, - "end": { - "line": 20, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ObjectExpression", - "start": 476, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 21 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "properties": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * Object storing all color objects being transitioned at the moment\r\n\t\t * \r\n\t\t * @type {Object}\r\n\t\t ", - "start": 343, - "end": 453, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 575, - "end": 595, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 575, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 575, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 575, - "end": 579, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 6 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 580, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ArrayExpression", - "start": 592, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "elements": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1175, - "end": 1360, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 39, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1175, - "end": 1186, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 36, - "column": 12 - }, - "identifierName": "decimalRand" - }, - "name": "decimalRand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 36, - "column": 13 - }, - "end": { - "line": 36, - "column": 18 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1194, - "end": 1199, - "loc": { - "start": { - "line": 36, - "column": 20 - }, - "end": { - "line": 36, - "column": 25 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - { - "type": "AssignmentPattern", - "start": 1201, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 1201, - "end": 1208, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 34 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - }, - "right": { - "type": "NumericLiteral", - "start": 1211, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 37 - }, - "end": { - "line": 36, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1214, - "end": 1360, - "loc": { - "start": { - "line": 36, - "column": 40 - }, - "end": { - "line": 39, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1219, - "end": 1301, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 37, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1225, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 1225, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1234, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 1234, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1241, - "end": 1299, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1241, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 73 - } - }, - "object": { - "type": "BinaryExpression", - "start": 1242, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1242, - "end": 1273, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1242, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1242, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1242, - "end": 1246, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1247, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 30 - }, - "end": { - "line": 37, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1259, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1267, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1258 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1276, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 59 - }, - "end": { - "line": 37, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1241 - } - }, - "property": { - "type": "Identifier", - "start": 1283, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 66 - }, - "end": { - "line": 37, - "column": 73 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1291, - "end": 1298, - "loc": { - "start": { - "line": 37, - "column": 74 - }, - "end": { - "line": 37, - "column": 81 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1305, - "end": 1356, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 38, - "column": 53 - } - }, - "argument": { - "type": "ConditionalExpression", - "start": 1313, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 51 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1313, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 1313, - "end": 1319, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 16 - }, - "identifierName": "result" - }, - "name": "result" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 1323, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "CallExpression", - "start": 1327, - "end": 1345, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1327, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1327, - "end": 1331, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1332, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 29 - }, - "end": { - "line": 38, - "column": 34 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 41 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - }, - "alternate": { - "type": "Identifier", - "start": 1348, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 51 - }, - "identifierName": "result" - }, - "name": "result" - }, - "extra": { - "parenthesized": true, - "parenStart": 1312 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1790, - "end": 1913, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1790, - "end": 1794, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 47, - "column": 5 - }, - "identifierName": "rand" - }, - "name": "rand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1795, - "end": 1800, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 11 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1802, - "end": 1807, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 18 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - } - ], - "body": { - "type": "BlockStatement", - "start": 1809, - "end": 1913, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1814, - "end": 1879, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1820, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 1820, - "end": 1826, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1829, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 1829, - "end": 1835, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1837, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1837, - "end": 1868, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1837, - "end": 1850, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1837, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1837, - "end": 1841, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1842, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 30 - }, - "end": { - "line": 48, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1854, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1854, - "end": 1859, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 50 - }, - "end": { - "line": 48, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1853 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1871, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 59 - }, - "end": { - "line": 48, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1836 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1883, - "end": 1909, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 1890, - "end": 1908, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1890, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 1890, - "end": 1894, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1895, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1901, - "end": 1907, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 26 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2247, - "end": 2327, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2247, - "end": 2260, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 58, - "column": 14 - }, - "identifierName": "getPercentage" - }, - "name": "getPercentage", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2261, - "end": 2267, - "loc": { - "start": { - "line": 58, - "column": 15 - }, - "end": { - "line": 58, - "column": 21 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - { - "type": "Identifier", - "start": 2269, - "end": 2280, - "loc": { - "start": { - "line": 58, - "column": 23 - }, - "end": { - "line": 58, - "column": 34 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - ], - "body": { - "type": "BlockStatement", - "start": 2282, - "end": 2327, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2287, - "end": 2323, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 38 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 2294, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 9 - }, - "end": { - "line": 59, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2295, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 22 - } - }, - "left": { - "type": "NumericLiteral", - "start": 2295, - "end": 2298, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 13 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 2301, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 16 - }, - "end": { - "line": 59, - "column": 22 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - "extra": { - "parenthesized": true, - "parenStart": 2294 - } - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 2311, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 26 - }, - "end": { - "line": 59, - "column": 37 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2750, - "end": 2841, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2750, - "end": 2755, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 69, - "column": 6 - }, - "identifierName": "clamp" - }, - "name": "clamp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2756, - "end": 2763, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 2765, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 2765, - "end": 2769, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 20 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "right": { - "type": "NumericLiteral", - "start": 2772, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "AssignmentPattern", - "start": 2775, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 2775, - "end": 2779, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "right": { - "type": "NumericLiteral", - "start": 2782, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 33 - }, - "end": { - "line": 69, - "column": 34 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 2785, - "end": 2841, - "loc": { - "start": { - "line": 69, - "column": 36 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2790, - "end": 2837, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 49 - } - }, - "argument": { - "type": "CallExpression", - "start": 2797, - "end": 2836, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2797, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 2797, - "end": 2801, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2802, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 14 - }, - "end": { - "line": 70, - "column": 17 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2806, - "end": 2810, - "loc": { - "start": { - "line": 70, - "column": 18 - }, - "end": { - "line": 70, - "column": 22 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "CallExpression", - "start": 2812, - "end": 2835, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2812, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 2812, - "end": 2816, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2817, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 29 - }, - "end": { - "line": 70, - "column": 32 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2821, - "end": 2828, - "loc": { - "start": { - "line": 70, - "column": 33 - }, - "end": { - "line": 70, - "column": 40 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "Identifier", - "start": 2830, - "end": 2834, - "loc": { - "start": { - "line": 70, - "column": 42 - }, - "end": { - "line": 70, - "column": 46 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3260, - "end": 3336, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 82, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3260, - "end": 3264, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 80, - "column": 5 - }, - "identifierName": "lerp" - }, - "name": "lerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3265, - "end": 3271, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 12 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3273, - "end": 3277, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 18 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3279, - "end": 3286, - "loc": { - "start": { - "line": 80, - "column": 20 - }, - "end": { - "line": 80, - "column": 27 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3288, - "end": 3336, - "loc": { - "start": { - "line": 80, - "column": 29 - }, - "end": { - "line": 82, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3293, - "end": 3332, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 41 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 3300, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 40 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3300, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3301, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 19 - } - }, - "left": { - "type": "NumericLiteral", - "start": 3301, - "end": 3302, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 11 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 3303, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 12 - }, - "end": { - "line": 81, - "column": 19 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "extra": { - "parenthesized": true, - "parenStart": 3300 - } - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3312, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 27 - }, - "identifierName": "pStart" - }, - "name": "pStart" - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 3319, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 3319, - "end": 3326, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 35 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3327, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 36 - }, - "end": { - "line": 81, - "column": 40 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3836, - "end": 3932, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 93, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3836, - "end": 3847, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 91, - "column": 12 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3848, - "end": 3854, - "loc": { - "start": { - "line": 91, - "column": 13 - }, - "end": { - "line": 91, - "column": 19 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3856, - "end": 3860, - "loc": { - "start": { - "line": 91, - "column": 21 - }, - "end": { - "line": 91, - "column": 25 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3862, - "end": 3869, - "loc": { - "start": { - "line": 91, - "column": 27 - }, - "end": { - "line": 91, - "column": 34 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3871, - "end": 3932, - "loc": { - "start": { - "line": 91, - "column": 36 - }, - "end": { - "line": 93, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3876, - "end": 3928, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 54 - } - }, - "argument": { - "type": "CallExpression", - "start": 3883, - "end": 3927, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3883, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 3883, - "end": 3887, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 3888, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 14 - }, - "end": { - "line": 92, - "column": 19 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3894, - "end": 3926, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 52 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3894, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 3894, - "end": 3898, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 3899, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 29 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3904, - "end": 3910, - "loc": { - "start": { - "line": 92, - "column": 30 - }, - "end": { - "line": 92, - "column": 36 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3912, - "end": 3916, - "loc": { - "start": { - "line": 92, - "column": 38 - }, - "end": { - "line": 92, - "column": 42 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3918, - "end": 3925, - "loc": { - "start": { - "line": 92, - "column": 44 - }, - "end": { - "line": 92, - "column": 51 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4259, - "end": 4338, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 103, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4259, - "end": 4264, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 101, - "column": 6 - }, - "identifierName": "round" - }, - "name": "round", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4265, - "end": 4272, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 4274, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 4274, - "end": 4280, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 22 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "right": { - "type": "NumericLiteral", - "start": 4281, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 23 - }, - "end": { - "line": 101, - "column": 24 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 4284, - "end": 4338, - "loc": { - "start": { - "line": 101, - "column": 26 - }, - "end": { - "line": 103, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 4289, - "end": 4334, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 102, - "column": 47 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4296, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 46 - } - }, - "left": { - "type": "CallExpression", - "start": 4296, - "end": 4324, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4296, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4296, - "end": 4300, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 4301, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 4307, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 4307, - "end": 4313, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 26 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 4316, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 102, - "column": 36 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - } - } - ] - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 4327, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 40 - }, - "end": { - "line": 102, - "column": 46 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4826, - "end": 4936, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 116, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4826, - "end": 4835, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 113, - "column": 10 - }, - "identifierName": "normalize" - }, - "name": "normalize", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4836, - "end": 4840, - "loc": { - "start": { - "line": 113, - "column": 11 - }, - "end": { - "line": 113, - "column": 15 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 4842, - "end": 4846, - "loc": { - "start": { - "line": 113, - "column": 17 - }, - "end": { - "line": 113, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 4848, - "end": 4852, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 4854, - "end": 4936, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 116, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 4859, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 2 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "test": { - "type": "BinaryExpression", - "start": 4863, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 23 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4863, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 10 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4870, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 13 - }, - "end": { - "line": 114, - "column": 17 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 4879, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 22 - }, - "end": { - "line": 114, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 4882, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 25 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 4889, - "end": 4890, - "loc": { - "start": { - "line": 114, - "column": 32 - }, - "end": { - "line": 114, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 4895, - "end": 4932, - "loc": { - "start": { - "line": 115, - "column": 2 - }, - "end": { - "line": 115, - "column": 39 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4902, - "end": 4931, - "loc": { - "start": { - "line": 115, - "column": 9 - }, - "end": { - "line": 115, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4903, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 4903, - "end": 4907, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4910, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 17 - }, - "end": { - "line": 115, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 4902 - } - }, - "operator": "/", - "right": { - "type": "BinaryExpression", - "start": 4919, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 4919, - "end": 4923, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4926, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 33 - }, - "end": { - "line": 115, - "column": 37 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 4918 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5335, - "end": 5405, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 127, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5335, - "end": 5341, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 125, - "column": 7 - }, - "identifierName": "within" - }, - "name": "within", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5342, - "end": 5346, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 12 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5348, - "end": 5352, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5354, - "end": 5358, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 24 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 5360, - "end": 5405, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 127, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5365, - "end": 5401, - "loc": { - "start": { - "line": 126, - "column": 2 - }, - "end": { - "line": 126, - "column": 38 - } - }, - "argument": { - "type": "LogicalExpression", - "start": 5372, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5372, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 5372, - "end": 5376, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 13 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 5380, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 17 - }, - "end": { - "line": 126, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 5388, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 29 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 5396, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 33 - }, - "end": { - "line": 126, - "column": 37 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5656, - "end": 5770, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 136, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5656, - "end": 5679, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 24 - }, - "identifierName": "formatIntegerWithCommas" - }, - "name": "formatIntegerWithCommas", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 134, - "column": 25 - }, - "end": { - "line": 134, - "column": 29 - }, - "identifierName": "pNum" - }, - "name": "pNum" - } - ], - "body": { - "type": "BlockStatement", - "start": 5686, - "end": 5770, - "loc": { - "start": { - "line": 134, - "column": 31 - }, - "end": { - "line": 136, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5691, - "end": 5766, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 77 - } - }, - "argument": { - "type": "CallExpression", - "start": 5698, - "end": 5765, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 42 - } - }, - "object": { - "type": "CallExpression", - "start": 5698, - "end": 5723, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 32 - } - }, - "object": { - "type": "CallExpression", - "start": 5698, - "end": 5712, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 5698, - "end": 5702, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 13 - }, - "identifierName": "pNum" - }, - "name": "pNum" - }, - "property": { - "type": "Identifier", - "start": 5703, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 21 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5713, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 24 - }, - "end": { - "line": 135, - "column": 32 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5724, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 35 - }, - "end": { - "line": 135, - "column": 42 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "RegExpLiteral", - "start": 5732, - "end": 5757, - "loc": { - "start": { - "line": 135, - "column": 43 - }, - "end": { - "line": 135, - "column": 68 - } - }, - "extra": { - "raw": "/(\\d)(?=(\\d{3})+(?!\\d))/g" - }, - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - { - "type": "StringLiteral", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 135, - "column": 70 - }, - "end": { - "line": 135, - "column": 75 - } - }, - "extra": { - "rawValue": "$1,", - "raw": "'$1,'" - }, - "value": "$1," - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5924, - "end": 5994, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 145, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5924, - "end": 5940, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 143, - "column": 17 - }, - "identifierName": "degreesToRadians" - }, - "name": "degreesToRadians", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5941, - "end": 5949, - "loc": { - "start": { - "line": 143, - "column": 18 - }, - "end": { - "line": 143, - "column": 26 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - } - ], - "body": { - "type": "BlockStatement", - "start": 5951, - "end": 5994, - "loc": { - "start": { - "line": 143, - "column": 28 - }, - "end": { - "line": 145, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5956, - "end": 5990, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 144, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 5963, - "end": 5989, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 5963, - "end": 5971, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 17 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 5975, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 34 - } - }, - "left": { - "type": "MemberExpression", - "start": 5975, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 5975, - "end": 5979, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 25 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 5980, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 28 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 5985, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 31 - }, - "end": { - "line": 144, - "column": 34 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "extra": { - "parenthesized": true, - "parenStart": 5974 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6148, - "end": 6218, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 154, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6148, - "end": 6164, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 152, - "column": 17 - }, - "identifierName": "radiansToDegrees" - }, - "name": "radiansToDegrees", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6165, - "end": 6173, - "loc": { - "start": { - "line": 152, - "column": 18 - }, - "end": { - "line": 152, - "column": 26 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - } - ], - "body": { - "type": "BlockStatement", - "start": 6175, - "end": 6218, - "loc": { - "start": { - "line": 152, - "column": 28 - }, - "end": { - "line": 154, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 6180, - "end": 6214, - "loc": { - "start": { - "line": 153, - "column": 2 - }, - "end": { - "line": 153, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 6187, - "end": 6213, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 6187, - "end": 6195, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 17 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 6199, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 34 - } - }, - "left": { - "type": "NumericLiteral", - "start": 6199, - "end": 6202, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 24 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 6205, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 6205, - "end": 6209, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6210, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 34 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 6198 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6388, - "end": 6503, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 164, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6388, - "end": 6392, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 161, - "column": 5 - }, - "identifierName": "pick" - }, - "name": "pick", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6393, - "end": 6399, - "loc": { - "start": { - "line": 161, - "column": 6 - }, - "end": { - "line": 161, - "column": 12 - }, - "identifierName": "pArray" - }, - "name": "pArray" - } - ], - "body": { - "type": "BlockStatement", - "start": 6401, - "end": 6503, - "loc": { - "start": { - "line": 161, - "column": 14 - }, - "end": { - "line": 164, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6406, - "end": 6468, - "loc": { - "start": { - "line": 162, - "column": 2 - }, - "end": { - "line": 162, - "column": 64 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6412, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 6412, - "end": 6423, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 19 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "init": { - "type": "CallExpression", - "start": 6426, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6426, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 6426, - "end": 6430, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 26 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6431, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 32 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 6437, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 6437, - "end": 6450, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6437, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 37 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6442, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 38 - }, - "end": { - "line": 162, - "column": 44 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 6453, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 6453, - "end": 6459, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 55 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 6460, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 56 - }, - "end": { - "line": 162, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 6472, - "end": 6499, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 163, - "column": 29 - } - }, - "argument": { - "type": "MemberExpression", - "start": 6479, - "end": 6498, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 6479, - "end": 6485, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 15 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 6486, - "end": 6497, - "loc": { - "start": { - "line": 163, - "column": 16 - }, - "end": { - "line": 163, - "column": 27 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "computed": true - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6757, - "end": 7069, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 181, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6757, - "end": 6773, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 171, - "column": 17 - }, - "identifierName": "removeProperties" - }, - "name": "removeProperties", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6774, - "end": 6781, - "loc": { - "start": { - "line": 171, - "column": 18 - }, - "end": { - "line": 171, - "column": 25 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - { - "type": "Identifier", - "start": 6783, - "end": 6791, - "loc": { - "start": { - "line": 171, - "column": 27 - }, - "end": { - "line": 171, - "column": 35 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "body": { - "type": "BlockStatement", - "start": 6793, - "end": 7069, - "loc": { - "start": { - "line": 171, - "column": 37 - }, - "end": { - "line": 181, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6798, - "end": 7064, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 6802, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 6802, - "end": 6817, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 6809, - "end": 6816, - "loc": { - "start": { - "line": 172, - "column": 13 - }, - "end": { - "line": 172, - "column": 20 - }, - "identifierName": "pObject" - }, - "name": "pObject", - "extra": { - "parenthesized": true, - "parenStart": 6808 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 6822, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 26 - }, - "end": { - "line": 172, - "column": 34 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 6832, - "end": 7064, - "loc": { - "start": { - "line": 172, - "column": 36 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "body": [ - { - "type": "ForInStatement", - "start": 6838, - "end": 7059, - "loc": { - "start": { - "line": 173, - "column": 3 - }, - "end": { - "line": 179, - "column": 4 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 6843, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "Identifier", - "start": 6857, - "end": 6864, - "loc": { - "start": { - "line": 173, - "column": 22 - }, - "end": { - "line": 173, - "column": 29 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "body": { - "type": "BlockStatement", - "start": 6866, - "end": 7059, - "loc": { - "start": { - "line": 173, - "column": 31 - }, - "end": { - "line": 179, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6912, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 69 - } - }, - "test": { - "type": "LogicalExpression", - "start": 6916, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 6916, - "end": 6939, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6916, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 6916, - "end": 6921, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 13 - }, - "identifierName": "Array" - }, - "name": "Array", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 6922, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 21 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 6930, - "end": 6938, - "loc": { - "start": { - "line": 175, - "column": 22 - }, - "end": { - "line": 175, - "column": 30 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 6943, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6943, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 6943, - "end": 6951, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 43 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - }, - "property": { - "type": "Identifier", - "start": 6952, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 44 - }, - "end": { - "line": 175, - "column": 52 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6961, - "end": 6965, - "loc": { - "start": { - "line": 175, - "column": 53 - }, - "end": { - "line": 175, - "column": 57 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "leadingComments": null - }, - "consequent": { - "type": "ContinueStatement", - "start": 6968, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 60 - }, - "end": { - "line": 175, - "column": 69 - } - }, - "label": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 6873, - "end": 6906, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 37 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 6983, - "end": 7053, - "loc": { - "start": { - "line": 176, - "column": 4 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "test": { - "type": "CallExpression", - "start": 6987, - "end": 7015, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6987, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 6987, - "end": 6994, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 15 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 6995, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 16 - }, - "end": { - "line": 176, - "column": 30 - }, - "identifierName": "hasOwnProperty" - }, - "name": "hasOwnProperty" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 7010, - "end": 7014, - "loc": { - "start": { - "line": 176, - "column": 31 - }, - "end": { - "line": 176, - "column": 35 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 7017, - "end": 7053, - "loc": { - "start": { - "line": 176, - "column": 38 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7025, - "end": 7046, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 26 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 7025, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 25 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 7032, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 7032, - "end": 7039, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 19 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 7040, - "end": 7044, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 24 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7394, - "end": 7602, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 198, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7394, - "end": 7398, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 189, - "column": 5 - }, - "identifierName": "prob" - }, - "name": "prob", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7399, - "end": 7406, - "loc": { - "start": { - "line": 189, - "column": 6 - }, - "end": { - "line": 189, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - ], - "body": { - "type": "BlockStatement", - "start": 7408, - "end": 7602, - "loc": { - "start": { - "line": 189, - "column": 15 - }, - "end": { - "line": 198, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7413, - "end": 7455, - "loc": { - "start": { - "line": 190, - "column": 2 - }, - "end": { - "line": 192, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7417, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 7417, - "end": 7424, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 7428, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 17 - }, - "end": { - "line": 190, - "column": 18 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7431, - "end": 7455, - "loc": { - "start": { - "line": 190, - "column": 20 - }, - "end": { - "line": 192, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7437, - "end": 7450, - "loc": { - "start": { - "line": 191, - "column": 3 - }, - "end": { - "line": 191, - "column": 16 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 7444, - "end": 7449, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 15 - } - }, - "value": false - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 7459, - "end": 7502, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 195, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7463, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 20 - } - }, - "left": { - "type": "Identifier", - "start": 7463, - "end": 7470, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 7474, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 17 - }, - "end": { - "line": 193, - "column": 20 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7479, - "end": 7502, - "loc": { - "start": { - "line": 193, - "column": 22 - }, - "end": { - "line": 195, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7485, - "end": 7497, - "loc": { - "start": { - "line": 194, - "column": 3 - }, - "end": { - "line": 194, - "column": 15 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 7492, - "end": 7496, - "loc": { - "start": { - "line": 194, - "column": 10 - }, - "end": { - "line": 194, - "column": 14 - } - }, - "value": true - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 7506, - "end": 7563, - "loc": { - "start": { - "line": 196, - "column": 2 - }, - "end": { - "line": 196, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7512, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 7512, - "end": 7524, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 20 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "init": { - "type": "BinaryExpression", - "start": 7527, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 7527, - "end": 7558, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7527, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 7527, - "end": 7531, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7532, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 28 - }, - "end": { - "line": 196, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7538, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 53 - } - }, - "left": { - "type": "CallExpression", - "start": 7538, - "end": 7551, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7538, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 7538, - "end": 7542, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7543, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 39 - }, - "end": { - "line": 196, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 7554, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 50 - }, - "end": { - "line": 196, - "column": 53 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 7561, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 57 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 7567, - "end": 7598, - "loc": { - "start": { - "line": 197, - "column": 2 - }, - "end": { - "line": 197, - "column": 33 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 7574, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 7574, - "end": 7586, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 21 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 7590, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 25 - }, - "end": { - "line": 197, - "column": 32 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7789, - "end": 8254, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 226, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7789, - "end": 7802, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 205, - "column": 14 - }, - "identifierName": "getInverseDir" - }, - "name": "getInverseDir", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7803, - "end": 7807, - "loc": { - "start": { - "line": 205, - "column": 15 - }, - "end": { - "line": 205, - "column": 19 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "body": { - "type": "BlockStatement", - "start": 7809, - "end": 8254, - "loc": { - "start": { - "line": 205, - "column": 21 - }, - "end": { - "line": 226, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 7814, - "end": 8250, - "loc": { - "start": { - "line": 206, - "column": 2 - }, - "end": { - "line": 225, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 7822, - "end": 7826, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 14 - }, - "identifierName": "pDir" - }, - "name": "pDir" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 7834, - "end": 7868, - "loc": { - "start": { - "line": 207, - "column": 3 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7853, - "end": 7868, - "loc": { - "start": { - "line": 208, - "column": 4 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7860, - "end": 7867, - "loc": { - "start": { - "line": 208, - "column": 11 - }, - "end": { - "line": 208, - "column": 18 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7839, - "end": 7846, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 7873, - "end": 7907, - "loc": { - "start": { - "line": 209, - "column": 3 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7892, - "end": 7907, - "loc": { - "start": { - "line": 210, - "column": 4 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7899, - "end": 7906, - "loc": { - "start": { - "line": 210, - "column": 11 - }, - "end": { - "line": 210, - "column": 18 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7878, - "end": 7885, - "loc": { - "start": { - "line": 209, - "column": 8 - }, - "end": { - "line": 209, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 7912, - "end": 7944, - "loc": { - "start": { - "line": 211, - "column": 3 - }, - "end": { - "line": 212, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7930, - "end": 7944, - "loc": { - "start": { - "line": 212, - "column": 4 - }, - "end": { - "line": 212, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7937, - "end": 7943, - "loc": { - "start": { - "line": 212, - "column": 11 - }, - "end": { - "line": 212, - "column": 17 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7917, - "end": 7923, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 7949, - "end": 7981, - "loc": { - "start": { - "line": 213, - "column": 3 - }, - "end": { - "line": 214, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7967, - "end": 7981, - "loc": { - "start": { - "line": 214, - "column": 4 - }, - "end": { - "line": 214, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7974, - "end": 7980, - "loc": { - "start": { - "line": 214, - "column": 11 - }, - "end": { - "line": 214, - "column": 17 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7954, - "end": 7960, - "loc": { - "start": { - "line": 213, - "column": 8 - }, - "end": { - "line": 213, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 7986, - "end": 8028, - "loc": { - "start": { - "line": 215, - "column": 3 - }, - "end": { - "line": 216, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8009, - "end": 8028, - "loc": { - "start": { - "line": 216, - "column": 4 - }, - "end": { - "line": 216, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8016, - "end": 8027, - "loc": { - "start": { - "line": 216, - "column": 11 - }, - "end": { - "line": 216, - "column": 22 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7991, - "end": 8002, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 8033, - "end": 8075, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8056, - "end": 8075, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8063, - "end": 8074, - "loc": { - "start": { - "line": 218, - "column": 11 - }, - "end": { - "line": 218, - "column": 22 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8038, - "end": 8049, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 8080, - "end": 8122, - "loc": { - "start": { - "line": 219, - "column": 3 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8103, - "end": 8122, - "loc": { - "start": { - "line": 220, - "column": 4 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8110, - "end": 8121, - "loc": { - "start": { - "line": 220, - "column": 11 - }, - "end": { - "line": 220, - "column": 22 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8085, - "end": 8096, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 8127, - "end": 8169, - "loc": { - "start": { - "line": 221, - "column": 3 - }, - "end": { - "line": 222, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8150, - "end": 8169, - "loc": { - "start": { - "line": 222, - "column": 4 - }, - "end": { - "line": 222, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8157, - "end": 8168, - "loc": { - "start": { - "line": 222, - "column": 11 - }, - "end": { - "line": 222, - "column": 22 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8132, - "end": 8143, - "loc": { - "start": { - "line": 221, - "column": 8 - }, - "end": { - "line": 221, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 8174, - "end": 8245, - "loc": { - "start": { - "line": 223, - "column": 3 - }, - "end": { - "line": 224, - "column": 61 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 8188, - "end": 8245, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 61 - } - }, - "expression": { - "type": "CallExpression", - "start": 8188, - "end": 8244, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 60 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8188, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 8188, - "end": 8195, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 8196, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 12 - }, - "end": { - "line": 224, - "column": 17 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 8202, - "end": 8243, - "loc": { - "start": { - "line": 224, - "column": 18 - }, - "end": { - "line": 224, - "column": 59 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 8219, - "end": 8223, - "loc": { - "start": { - "line": 224, - "column": 35 - }, - "end": { - "line": 224, - "column": 39 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 8203, - "end": 8217, - "loc": { - "start": { - "line": 224, - "column": 19 - }, - "end": { - "line": 224, - "column": 33 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 8224, - "end": 8242, - "loc": { - "start": { - "line": 224, - "column": 40 - }, - "end": { - "line": 224, - "column": 58 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8565, - "end": 9074, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 255, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8565, - "end": 8580, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 234, - "column": 16 - }, - "identifierName": "getAngleFromDir" - }, - "name": "getAngleFromDir", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 234, - "column": 17 - }, - "end": { - "line": 234, - "column": 21 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "body": { - "type": "BlockStatement", - "start": 8587, - "end": 9074, - "loc": { - "start": { - "line": 234, - "column": 23 - }, - "end": { - "line": 255, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 8592, - "end": 9070, - "loc": { - "start": { - "line": 235, - "column": 2 - }, - "end": { - "line": 254, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 8600, - "end": 8604, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 14 - }, - "identifierName": "pDir" - }, - "name": "pDir" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 8612, - "end": 8652, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 237, - "column": 25 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8631, - "end": 8652, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 25 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8639, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8639, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8639, - "end": 8643, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8644, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 17 - }, - "end": { - "line": 237, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8649, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 22 - }, - "end": { - "line": 237, - "column": 23 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 8638 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8617, - "end": 8624, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 8657, - "end": 8701, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 239, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8676, - "end": 8701, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8683, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8684, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8684, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8684, - "end": 8688, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8689, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 239, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8694, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 22 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 8683 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8699, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 27 - }, - "end": { - "line": 239, - "column": 28 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8662, - "end": 8669, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 8706, - "end": 8745, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 241, - "column": 25 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8724, - "end": 8745, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 25 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8732, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8732, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8732, - "end": 8736, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8737, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 17 - }, - "end": { - "line": 241, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8742, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 22 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 8731 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8711, - "end": 8717, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 8750, - "end": 8783, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 243, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8768, - "end": 8783, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 19 - } - }, - "argument": { - "type": "MemberExpression", - "start": 8775, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 8775, - "end": 8779, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8780, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 16 - }, - "end": { - "line": 243, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8755, - "end": 8761, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 8788, - "end": 8836, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8811, - "end": 8836, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8818, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8819, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8819, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8819, - "end": 8823, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8824, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 17 - }, - "end": { - "line": 245, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8829, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 8818 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8834, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 27 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8793, - "end": 8804, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 8841, - "end": 8883, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 247, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8864, - "end": 8883, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 23 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8871, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "left": { - "type": "MemberExpression", - "start": 8871, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 8871, - "end": 8875, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8876, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8881, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 21 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8846, - "end": 8857, - "loc": { - "start": { - "line": 246, - "column": 8 - }, - "end": { - "line": 246, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 8888, - "end": 8936, - "loc": { - "start": { - "line": 248, - "column": 3 - }, - "end": { - "line": 249, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8911, - "end": 8936, - "loc": { - "start": { - "line": 249, - "column": 4 - }, - "end": { - "line": 249, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8918, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 11 - }, - "end": { - "line": 249, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8919, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8919, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8919, - "end": 8923, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8924, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8929, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 22 - }, - "end": { - "line": 249, - "column": 23 - } - }, - "extra": { - "rawValue": 5, - "raw": "5" - }, - "value": 5 - }, - "extra": { - "parenthesized": true, - "parenStart": 8918 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8934, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 27 - }, - "end": { - "line": 249, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8893, - "end": 8904, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 8941, - "end": 8989, - "loc": { - "start": { - "line": 250, - "column": 3 - }, - "end": { - "line": 251, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8964, - "end": 8989, - "loc": { - "start": { - "line": 251, - "column": 4 - }, - "end": { - "line": 251, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8971, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 11 - }, - "end": { - "line": 251, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8972, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8972, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8972, - "end": 8976, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8977, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 17 - }, - "end": { - "line": 251, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8982, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 22 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - }, - "extra": { - "parenthesized": true, - "parenStart": 8971 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8987, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 27 - }, - "end": { - "line": 251, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8946, - "end": 8957, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 8994, - "end": 9065, - "loc": { - "start": { - "line": 252, - "column": 3 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 9008, - "end": 9065, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "expression": { - "type": "CallExpression", - "start": 9008, - "end": 9064, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 60 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9008, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 9008, - "end": 9015, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 9016, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 17 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 9022, - "end": 9063, - "loc": { - "start": { - "line": 253, - "column": 18 - }, - "end": { - "line": 253, - "column": 59 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 9039, - "end": 9043, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 39 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 9023, - "end": 9037, - "loc": { - "start": { - "line": 253, - "column": 19 - }, - "end": { - "line": 253, - "column": 33 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 9044, - "end": 9062, - "loc": { - "start": { - "line": 253, - "column": 40 - }, - "end": { - "line": 253, - "column": 58 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9213, - "end": 9638, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 277, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9213, - "end": 9223, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 262, - "column": 11 - }, - "identifierName": "generateID" - }, - "name": "generateID", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 9224, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 9224, - "end": 9233, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 21 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - }, - "right": { - "type": "NumericLiteral", - "start": 9236, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 24 - }, - "end": { - "line": 262, - "column": 25 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 9239, - "end": 9638, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 277, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9244, - "end": 9323, - "loc": { - "start": { - "line": 263, - "column": 2 - }, - "end": { - "line": 263, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9250, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 9250, - "end": 9255, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 9258, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 16 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "extra": { - "rawValue": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "raw": "'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'" - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9327, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 2 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9333, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 9333, - "end": 9339, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "init": { - "type": "FunctionExpression", - "start": 9342, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 17 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 9353, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 28 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9359, - "end": 9371, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 265, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9363, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 9363, - "end": 9365, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 9 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "StringLiteral", - "start": 9368, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 12 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 9376, - "end": 9486, - "loc": { - "start": { - "line": 266, - "column": 3 - }, - "end": { - "line": 268, - "column": 4 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 9381, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 8 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9385, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 9385, - "end": 9386, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 13 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 9389, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 9392, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 9392, - "end": 9393, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 20 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 9396, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 32 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - } - }, - "update": { - "type": "UpdateExpression", - "start": 9407, - "end": 9410, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 37 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 9407, - "end": 9408, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 35 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 9412, - "end": 9486, - "loc": { - "start": { - "line": 266, - "column": 39 - }, - "end": { - "line": 268, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9419, - "end": 9480, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 65 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9419, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 64 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 9419, - "end": 9421, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 6 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 9425, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 64 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9425, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 9425, - "end": 9430, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 15 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 9431, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 16 - }, - "end": { - "line": 267, - "column": 22 - }, - "identifierName": "charAt" - }, - "name": "charAt" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 9438, - "end": 9478, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9438, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 9438, - "end": 9442, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9443, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 28 - }, - "end": { - "line": 267, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 9449, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 9449, - "end": 9462, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9449, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 9449, - "end": 9453, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9454, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 39 - }, - "end": { - "line": 267, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 9465, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 9465, - "end": 9470, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 55 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 9471, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 56 - }, - "end": { - "line": 267, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - ] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 9491, - "end": 9501, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 269, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 9498, - "end": 9500, - "loc": { - "start": { - "line": 269, - "column": 10 - }, - "end": { - "line": 269, - "column": 12 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9510, - "end": 9528, - "loc": { - "start": { - "line": 271, - "column": 2 - }, - "end": { - "line": 271, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9514, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 9514, - "end": 9516, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 8 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "CallExpression", - "start": 9519, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 9519, - "end": 9525, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 17 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "WhileStatement", - "start": 9532, - "end": 9592, - "loc": { - "start": { - "line": 272, - "column": 2 - }, - "end": { - "line": 274, - "column": 3 - } - }, - "test": { - "type": "CallExpression", - "start": 9538, - "end": 9565, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 35 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9538, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 9538, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 9538, - "end": 9542, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 9543, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 13 - }, - "end": { - "line": 272, - "column": 22 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9553, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 23 - }, - "end": { - "line": 272, - "column": 31 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9562, - "end": 9564, - "loc": { - "start": { - "line": 272, - "column": 32 - }, - "end": { - "line": 272, - "column": 34 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - }, - "body": { - "type": "BlockStatement", - "start": 9567, - "end": 9592, - "loc": { - "start": { - "line": 272, - "column": 37 - }, - "end": { - "line": 274, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9573, - "end": 9587, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9573, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 9573, - "end": 9575, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 5 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 9578, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 9578, - "end": 9584, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 9596, - "end": 9620, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 9596, - "end": 9619, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9596, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 21 - } - }, - "object": { - "type": "MemberExpression", - "start": 9596, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 9596, - "end": 9600, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 9601, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 7 - }, - "end": { - "line": 275, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9611, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 17 - }, - "end": { - "line": 275, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9616, - "end": 9618, - "loc": { - "start": { - "line": 275, - "column": 22 - }, - "end": { - "line": 275, - "column": 24 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 9624, - "end": 9634, - "loc": { - "start": { - "line": 276, - "column": 2 - }, - "end": { - "line": 276, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 9631, - "end": 9633, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 11 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9897, - "end": 10030, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 287, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9897, - "end": 9909, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 285, - "column": 13 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 9910, - "end": 9918, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 22 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - { - "type": "AssignmentPattern", - "start": 9920, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 9920, - "end": 9926, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 30 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "right": { - "type": "NumericLiteral", - "start": 9929, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 285, - "column": 34 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 9932, - "end": 10030, - "loc": { - "start": { - "line": 285, - "column": 36 - }, - "end": { - "line": 287, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 9937, - "end": 10026, - "loc": { - "start": { - "line": 286, - "column": 2 - }, - "end": { - "line": 286, - "column": 91 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9944, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 90 - } - }, - "left": { - "type": "StringLiteral", - "start": 9944, - "end": 9947, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 12 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 9950, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 9950, - "end": 10011, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 9950, - "end": 9996, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 57 - } - }, - "object": { - "type": "BinaryExpression", - "start": 9951, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 47 - } - }, - "left": { - "type": "Identifier", - "start": 9951, - "end": 9959, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 24 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 9962, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9962, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 9962, - "end": 9966, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9967, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 32 - }, - "end": { - "line": 286, - "column": 35 - }, - "identifierName": "pow" - }, - "name": "pow" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9971, - "end": 9973, - "loc": { - "start": { - "line": 286, - "column": 36 - }, - "end": { - "line": 286, - "column": 38 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - }, - { - "type": "Identifier", - "start": 9975, - "end": 9981, - "loc": { - "start": { - "line": 286, - "column": 40 - }, - "end": { - "line": 286, - "column": 46 - }, - "identifierName": "pChars" - }, - "name": "pChars" - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 9950 - } - }, - "property": { - "type": "Identifier", - "start": 9984, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 49 - }, - "end": { - "line": 286, - "column": 57 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9993, - "end": 9995, - "loc": { - "start": { - "line": 286, - "column": 58 - }, - "end": { - "line": 286, - "column": 60 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 9997, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 62 - }, - "end": { - "line": 286, - "column": 67 - }, - "identifierName": "slice" - }, - "name": "slice" - }, - "computed": false - }, - "arguments": [ - { - "type": "UnaryExpression", - "start": 10003, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 68 - }, - "end": { - "line": 286, - "column": 75 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 10004, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 69 - }, - "end": { - "line": 286, - "column": 75 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "extra": { - "parenthesizedArgument": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 10012, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 77 - }, - "end": { - "line": 286, - "column": 88 - }, - "identifierName": "toUpperCase" - }, - "name": "toUpperCase" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 10288, - "end": 10838, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 308, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10288, - "end": 10300, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 295, - "column": 13 - }, - "identifierName": "addIntensity" - }, - "name": "addIntensity", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10301, - "end": 10307, - "loc": { - "start": { - "line": 295, - "column": 14 - }, - "end": { - "line": 295, - "column": 20 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - { - "type": "Identifier", - "start": 10309, - "end": 10317, - "loc": { - "start": { - "line": 295, - "column": 22 - }, - "end": { - "line": 295, - "column": 30 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - } - ], - "body": { - "type": "BlockStatement", - "start": 10319, - "end": 10838, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 308, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 10324, - "end": 10368, - "loc": { - "start": { - "line": 296, - "column": 2 - }, - "end": { - "line": 296, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10330, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 10330, - "end": 10333, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 11 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": { - "type": "MemberExpression", - "start": 10336, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 45 - } - }, - "object": { - "type": "CallExpression", - "start": 10336, - "end": 10358, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10336, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 28 - } - }, - "object": { - "type": "ThisExpression", - "start": 10336, - "end": 10340, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 10341, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 19 - }, - "end": { - "line": 296, - "column": 28 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10351, - "end": 10357, - "loc": { - "start": { - "line": 296, - "column": 29 - }, - "end": { - "line": 296, - "column": 35 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 10359, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 37 - }, - "end": { - "line": 296, - "column": 45 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10372, - "end": 10389, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 297, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10378, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10378, - "end": 10379, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "MemberExpression", - "start": 10382, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10382, - "end": 10385, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10386, - "end": 10387, - "loc": { - "start": { - "line": 297, - "column": 16 - }, - "end": { - "line": 297, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10393, - "end": 10410, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 298, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10399, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10399, - "end": 10400, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "MemberExpression", - "start": 10403, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10403, - "end": 10406, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10407, - "end": 10408, - "loc": { - "start": { - "line": 298, - "column": 16 - }, - "end": { - "line": 298, - "column": 17 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10414, - "end": 10431, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 299, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10420, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10420, - "end": 10421, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "MemberExpression", - "start": 10424, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10424, - "end": 10427, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10428, - "end": 10429, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 17 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10435, - "end": 10446, - "loc": { - "start": { - "line": 300, - "column": 2 - }, - "end": { - "line": 300, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10439, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10439, - "end": 10441, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 8 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "init": { - "type": "NumericLiteral", - "start": 10444, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 11 - }, - "end": { - "line": 300, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10450, - "end": 10461, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10454, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10454, - "end": 10456, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 8 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "init": { - "type": "NumericLiteral", - "start": 10459, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 11 - }, - "end": { - "line": 301, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10465, - "end": 10476, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10469, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10469, - "end": 10471, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 8 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "init": { - "type": "NumericLiteral", - "start": 10474, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 11 - }, - "end": { - "line": 302, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10480, - "end": 10541, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 63 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10486, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "id": { - "type": "Identifier", - "start": 10486, - "end": 10491, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 13 - }, - "identifierName": "black" - }, - "name": "black" - }, - "init": { - "type": "ConditionalExpression", - "start": 10494, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 16 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10495, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "left": { - "type": "LogicalExpression", - "start": 10495, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10495, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 10495, - "end": 10496, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 18 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10501, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10506, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 10506, - "end": 10507, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 29 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10512, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 34 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10517, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 10517, - "end": 10518, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10523, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 45 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 10494 - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 10528, - "end": 10532, - "loc": { - "start": { - "line": 303, - "column": 50 - }, - "end": { - "line": 303, - "column": 54 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 10535, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 57 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "value": false - } - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 10545, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 2 - }, - "end": { - "line": 304, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10549, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10549, - "end": 10550, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 7 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10554, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 11 - }, - "end": { - "line": 304, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10561, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10561, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10561, - "end": 10563, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 20 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "right": { - "type": "BinaryExpression", - "start": 10566, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10566, - "end": 10567, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 24 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10570, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10570, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10570, - "end": 10574, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10575, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 32 - }, - "end": { - "line": 304, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10581, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 38 - }, - "end": { - "line": 304, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10582, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10582, - "end": 10585, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10588, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 45 - }, - "end": { - "line": 304, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10581 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10600, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 57 - }, - "end": { - "line": 304, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 10609, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 2 - }, - "end": { - "line": 305, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10613, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10613, - "end": 10614, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 7 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10618, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 11 - }, - "end": { - "line": 305, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10625, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10625, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10625, - "end": 10627, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 20 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "right": { - "type": "BinaryExpression", - "start": 10630, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10630, - "end": 10631, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 24 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10634, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10634, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10634, - "end": 10638, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10639, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 32 - }, - "end": { - "line": 305, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10645, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 38 - }, - "end": { - "line": 305, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10646, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10646, - "end": 10649, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10652, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 45 - }, - "end": { - "line": 305, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10645 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10664, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 57 - }, - "end": { - "line": 305, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 10673, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 2 - }, - "end": { - "line": 306, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10677, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10677, - "end": 10678, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 7 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10682, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 11 - }, - "end": { - "line": 306, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10689, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10689, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10689, - "end": 10691, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 20 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "right": { - "type": "BinaryExpression", - "start": 10694, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10694, - "end": 10695, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 24 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10698, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10698, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10698, - "end": 10702, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10703, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 32 - }, - "end": { - "line": 306, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10709, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 38 - }, - "end": { - "line": 306, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10710, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10710, - "end": 10713, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10716, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 45 - }, - "end": { - "line": 306, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10709 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10728, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 57 - }, - "end": { - "line": 306, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 10737, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 307, - "column": 99 - } - }, - "argument": { - "type": "MemberExpression", - "start": 10744, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 99 - } - }, - "object": { - "type": "CallExpression", - "start": 10744, - "end": 10830, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10744, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 10744, - "end": 10748, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 10749, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 23 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 10759, - "end": 10781, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10759, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 10759, - "end": 10763, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 10764, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 29 - }, - "end": { - "line": 307, - "column": 34 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10770, - "end": 10772, - "loc": { - "start": { - "line": 307, - "column": 35 - }, - "end": { - "line": 307, - "column": 37 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - { - "type": "NumericLiteral", - "start": 10774, - "end": 10775, - "loc": { - "start": { - "line": 307, - "column": 39 - }, - "end": { - "line": 307, - "column": 40 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10777, - "end": 10780, - "loc": { - "start": { - "line": 307, - "column": 42 - }, - "end": { - "line": 307, - "column": 45 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 10783, - "end": 10805, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 70 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10783, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 10783, - "end": 10787, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 52 - } - } - }, - "property": { - "type": "Identifier", - "start": 10788, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 53 - }, - "end": { - "line": 307, - "column": 58 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10794, - "end": 10796, - "loc": { - "start": { - "line": 307, - "column": 59 - }, - "end": { - "line": 307, - "column": 61 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - { - "type": "NumericLiteral", - "start": 10798, - "end": 10799, - "loc": { - "start": { - "line": 307, - "column": 63 - }, - "end": { - "line": 307, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10801, - "end": 10804, - "loc": { - "start": { - "line": 307, - "column": 66 - }, - "end": { - "line": 307, - "column": 69 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 10807, - "end": 10829, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10807, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 82 - } - }, - "object": { - "type": "ThisExpression", - "start": 10807, - "end": 10811, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 76 - } - } - }, - "property": { - "type": "Identifier", - "start": 10812, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 77 - }, - "end": { - "line": 307, - "column": 82 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10818, - "end": 10820, - "loc": { - "start": { - "line": 307, - "column": 83 - }, - "end": { - "line": 307, - "column": 85 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - { - "type": "NumericLiteral", - "start": 10822, - "end": 10823, - "loc": { - "start": { - "line": 307, - "column": 87 - }, - "end": { - "line": 307, - "column": 88 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10825, - "end": 10828, - "loc": { - "start": { - "line": 307, - "column": 90 - }, - "end": { - "line": 307, - "column": 93 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10831, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 96 - }, - "end": { - "line": 307, - "column": 99 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11152, - "end": 11460, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 325, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11152, - "end": 11160, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 316, - "column": 9 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11161, - "end": 11163, - "loc": { - "start": { - "line": 316, - "column": 10 - }, - "end": { - "line": 316, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 11165, - "end": 11167, - "loc": { - "start": { - "line": 316, - "column": 14 - }, - "end": { - "line": 316, - "column": 16 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 11169, - "end": 11171, - "loc": { - "start": { - "line": 316, - "column": 18 - }, - "end": { - "line": 316, - "column": 20 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 11173, - "end": 11460, - "loc": { - "start": { - "line": 316, - "column": 22 - }, - "end": { - "line": 325, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 11178, - "end": 11211, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 317, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11184, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11184, - "end": 11185, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 11188, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11188, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11188, - "end": 11192, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11193, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 17 - }, - "end": { - "line": 317, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11199, - "end": 11201, - "loc": { - "start": { - "line": 317, - "column": 23 - }, - "end": { - "line": 317, - "column": 25 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "NumericLiteral", - "start": 11203, - "end": 11204, - "loc": { - "start": { - "line": 317, - "column": 27 - }, - "end": { - "line": 317, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11206, - "end": 11209, - "loc": { - "start": { - "line": 317, - "column": 30 - }, - "end": { - "line": 317, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11215, - "end": 11248, - "loc": { - "start": { - "line": 318, - "column": 2 - }, - "end": { - "line": 318, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11221, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11221, - "end": 11222, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 11225, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11225, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11225, - "end": 11229, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11230, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 17 - }, - "end": { - "line": 318, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11236, - "end": 11238, - "loc": { - "start": { - "line": 318, - "column": 23 - }, - "end": { - "line": 318, - "column": 25 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "NumericLiteral", - "start": 11240, - "end": 11241, - "loc": { - "start": { - "line": 318, - "column": 27 - }, - "end": { - "line": 318, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11243, - "end": 11246, - "loc": { - "start": { - "line": 318, - "column": 30 - }, - "end": { - "line": 318, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11252, - "end": 11285, - "loc": { - "start": { - "line": 319, - "column": 2 - }, - "end": { - "line": 319, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11258, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11258, - "end": 11259, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 11262, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11262, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11262, - "end": 11266, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11267, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 17 - }, - "end": { - "line": 319, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11273, - "end": 11275, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 25 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - { - "type": "NumericLiteral", - "start": 11277, - "end": 11278, - "loc": { - "start": { - "line": 319, - "column": 27 - }, - "end": { - "line": 319, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11280, - "end": 11283, - "loc": { - "start": { - "line": 319, - "column": 30 - }, - "end": { - "line": 319, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11289, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11295, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 11295, - "end": 11306, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 19 - }, - "identifierName": "craftString" - }, - "name": "craftString" - }, - "init": { - "type": "FunctionExpression", - "start": 11309, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 22 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11318, - "end": 11324, - "loc": { - "start": { - "line": 320, - "column": 31 - }, - "end": { - "line": 320, - "column": 37 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ], - "body": { - "type": "BlockStatement", - "start": 11326, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 39 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 11332, - "end": 11376, - "loc": { - "start": { - "line": 321, - "column": 3 - }, - "end": { - "line": 321, - "column": 47 - } - }, - "argument": { - "type": "CallExpression", - "start": 11339, - "end": 11375, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11339, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 38 - } - }, - "object": { - "type": "CallExpression", - "start": 11339, - "end": 11358, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11339, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 11339, - "end": 11345, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 16 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - "property": { - "type": "Identifier", - "start": 11346, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 17 - }, - "end": { - "line": 321, - "column": 25 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 11355, - "end": 11357, - "loc": { - "start": { - "line": 321, - "column": 26 - }, - "end": { - "line": 321, - "column": 28 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 11359, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 30 - }, - "end": { - "line": 321, - "column": 38 - }, - "identifierName": "padStart" - }, - "name": "padStart" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 11368, - "end": 11369, - "loc": { - "start": { - "line": 321, - "column": 39 - }, - "end": { - "line": 321, - "column": 40 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - { - "type": "StringLiteral", - "start": 11371, - "end": 11374, - "loc": { - "start": { - "line": 321, - "column": 42 - }, - "end": { - "line": 321, - "column": 45 - } - }, - "extra": { - "rawValue": "0", - "raw": "'0'" - }, - "value": "0" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11385, - "end": 11439, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 323, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11391, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 11391, - "end": 11394, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 11 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": { - "type": "BinaryExpression", - "start": 11397, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "left": { - "type": "StringLiteral", - "start": 11397, - "end": 11400, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 11403, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11403, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 51 - } - }, - "object": { - "type": "CallExpression", - "start": 11403, - "end": 11429, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11403, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 33 - } - }, - "object": { - "type": "ArrayExpression", - "start": 11403, - "end": 11412, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 29 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 11404, - "end": 11405, - "loc": { - "start": { - "line": 323, - "column": 21 - }, - "end": { - "line": 323, - "column": 22 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 11407, - "end": 11408, - "loc": { - "start": { - "line": 323, - "column": 24 - }, - "end": { - "line": 323, - "column": 25 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 11410, - "end": 11411, - "loc": { - "start": { - "line": 323, - "column": 27 - }, - "end": { - "line": 323, - "column": 28 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - }, - "property": { - "type": "Identifier", - "start": 11413, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 30 - }, - "end": { - "line": 323, - "column": 33 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11417, - "end": 11428, - "loc": { - "start": { - "line": 323, - "column": 34 - }, - "end": { - "line": 323, - "column": 45 - }, - "identifierName": "craftString" - }, - "name": "craftString" - } - ] - }, - "property": { - "type": "Identifier", - "start": 11430, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 47 - }, - "end": { - "line": 323, - "column": 51 - }, - "identifierName": "join" - }, - "name": "join" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11435, - "end": 11437, - "loc": { - "start": { - "line": 323, - "column": 52 - }, - "end": { - "line": 323, - "column": 54 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 11443, - "end": 11454, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 324, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 11450, - "end": 11453, - "loc": { - "start": { - "line": 324, - "column": 9 - }, - "end": { - "line": 324, - "column": 12 - }, - "identifierName": "hex" - }, - "name": "hex" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11740, - "end": 12117, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 342, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11740, - "end": 11748, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 332, - "column": 9 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11749, - "end": 11753, - "loc": { - "start": { - "line": 332, - "column": 10 - }, - "end": { - "line": 332, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 11755, - "end": 12117, - "loc": { - "start": { - "line": 332, - "column": 16 - }, - "end": { - "line": 342, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11760, - "end": 11789, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11760, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11760, - "end": 11764, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11767, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11767, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 11767, - "end": 11771, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11772, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 14 - }, - "end": { - "line": 333, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11780, - "end": 11783, - "loc": { - "start": { - "line": 333, - "column": 22 - }, - "end": { - "line": 333, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 11785, - "end": 11787, - "loc": { - "start": { - "line": 333, - "column": 27 - }, - "end": { - "line": 333, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "IfStatement", - "start": 11793, - "end": 11879, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 336, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 11797, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 11797, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 11797, - "end": 11801, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 10 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11802, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 11 - }, - "end": { - "line": 334, - "column": 17 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 11813, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 22 - }, - "end": { - "line": 334, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 11816, - "end": 11879, - "loc": { - "start": { - "line": 334, - "column": 25 - }, - "end": { - "line": 336, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11822, - "end": 11874, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 55 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11822, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11822, - "end": 11826, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 7 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11829, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11829, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 11829, - "end": 11833, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11834, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 15 - }, - "end": { - "line": 335, - "column": 22 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 11842, - "end": 11864, - "loc": { - "start": { - "line": 335, - "column": 23 - }, - "end": { - "line": 335, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 11846, - "end": 11852, - "loc": { - "start": { - "line": 335, - "column": 27 - }, - "end": { - "line": 335, - "column": 33 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11853, - "end": 11858, - "loc": { - "start": { - "line": 335, - "column": 34 - }, - "end": { - "line": 335, - "column": 39 - } - }, - "extra": { - "rawValue": "(.)", - "raw": "'(.)'" - }, - "value": "(.)" - }, - { - "type": "StringLiteral", - "start": 11860, - "end": 11863, - "loc": { - "start": { - "line": 335, - "column": 41 - }, - "end": { - "line": 335, - "column": 44 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - }, - { - "type": "StringLiteral", - "start": 11866, - "end": 11872, - "loc": { - "start": { - "line": 335, - "column": 47 - }, - "end": { - "line": 335, - "column": 53 - } - }, - "extra": { - "rawValue": "$1$1", - "raw": "'$1$1'" - }, - "value": "$1$1" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 11883, - "end": 11924, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11883, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11883, - "end": 11887, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11890, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11890, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 11890, - "end": 11894, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11895, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 14 - }, - "end": { - "line": 337, - "column": 19 - }, - "identifierName": "match" - }, - "name": "match" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 11901, - "end": 11922, - "loc": { - "start": { - "line": 337, - "column": 20 - }, - "end": { - "line": 337, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 11905, - "end": 11911, - "loc": { - "start": { - "line": 337, - "column": 24 - }, - "end": { - "line": 337, - "column": 30 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11912, - "end": 11916, - "loc": { - "start": { - "line": 337, - "column": 31 - }, - "end": { - "line": 337, - "column": 35 - } - }, - "extra": { - "rawValue": "..", - "raw": "'..'" - }, - "value": ".." - }, - { - "type": "StringLiteral", - "start": 11918, - "end": 11921, - "loc": { - "start": { - "line": 337, - "column": 37 - }, - "end": { - "line": 337, - "column": 40 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 11928, - "end": 11980, - "loc": { - "start": { - "line": 338, - "column": 2 - }, - "end": { - "line": 338, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11934, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 11934, - "end": 11935, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 11938, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11938, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11938, - "end": 11942, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11943, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 17 - }, - "end": { - "line": 338, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11949, - "end": 11970, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 11958, - "end": 11965, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 11958, - "end": 11962, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 11963, - "end": 11964, - "loc": { - "start": { - "line": 338, - "column": 37 - }, - "end": { - "line": 338, - "column": 38 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 11967, - "end": 11969, - "loc": { - "start": { - "line": 338, - "column": 41 - }, - "end": { - "line": 338, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 11972, - "end": 11973, - "loc": { - "start": { - "line": 338, - "column": 46 - }, - "end": { - "line": 338, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11975, - "end": 11978, - "loc": { - "start": { - "line": 338, - "column": 49 - }, - "end": { - "line": 338, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11984, - "end": 12036, - "loc": { - "start": { - "line": 339, - "column": 2 - }, - "end": { - "line": 339, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11990, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 11990, - "end": 11991, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 11994, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11994, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11994, - "end": 11998, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11999, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 17 - }, - "end": { - "line": 339, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12005, - "end": 12026, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 12005, - "end": 12013, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 12014, - "end": 12021, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12014, - "end": 12018, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 12019, - "end": 12020, - "loc": { - "start": { - "line": 339, - "column": 37 - }, - "end": { - "line": 339, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 12023, - "end": 12025, - "loc": { - "start": { - "line": 339, - "column": 41 - }, - "end": { - "line": 339, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 12028, - "end": 12029, - "loc": { - "start": { - "line": 339, - "column": 46 - }, - "end": { - "line": 339, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 12031, - "end": 12034, - "loc": { - "start": { - "line": 339, - "column": 49 - }, - "end": { - "line": 339, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 12040, - "end": 12092, - "loc": { - "start": { - "line": 340, - "column": 2 - }, - "end": { - "line": 340, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12046, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 12046, - "end": 12047, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 12050, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12050, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 12050, - "end": 12054, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 12055, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 17 - }, - "end": { - "line": 340, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12061, - "end": 12082, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 12061, - "end": 12069, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 12070, - "end": 12077, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12070, - "end": 12074, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 12075, - "end": 12076, - "loc": { - "start": { - "line": 340, - "column": 37 - }, - "end": { - "line": 340, - "column": 38 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 12079, - "end": 12081, - "loc": { - "start": { - "line": 340, - "column": 41 - }, - "end": { - "line": 340, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 12084, - "end": 12085, - "loc": { - "start": { - "line": 340, - "column": 46 - }, - "end": { - "line": 340, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 12087, - "end": 12090, - "loc": { - "start": { - "line": 340, - "column": 49 - }, - "end": { - "line": 340, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 12096, - "end": 12113, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 341, - "column": 19 - } - }, - "argument": { - "type": "ArrayExpression", - "start": 12103, - "end": 12112, - "loc": { - "start": { - "line": 341, - "column": 9 - }, - "end": { - "line": 341, - "column": 18 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 12104, - "end": 12105, - "loc": { - "start": { - "line": 341, - "column": 10 - }, - "end": { - "line": 341, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 12107, - "end": 12108, - "loc": { - "start": { - "line": 341, - "column": 13 - }, - "end": { - "line": 341, - "column": 14 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 12110, - "end": 12111, - "loc": { - "start": { - "line": 341, - "column": 16 - }, - "end": { - "line": 341, - "column": 17 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12419, - "end": 12486, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 352, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12419, - "end": 12431, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 350, - "column": 13 - }, - "identifierName": "rgbToDecimal" - }, - "name": "rgbToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12432, - "end": 12434, - "loc": { - "start": { - "line": 350, - "column": 14 - }, - "end": { - "line": 350, - "column": 16 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 12436, - "end": 12438, - "loc": { - "start": { - "line": 350, - "column": 18 - }, - "end": { - "line": 350, - "column": 20 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 12440, - "end": 12442, - "loc": { - "start": { - "line": 350, - "column": 22 - }, - "end": { - "line": 350, - "column": 24 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 12444, - "end": 12486, - "loc": { - "start": { - "line": 350, - "column": 26 - }, - "end": { - "line": 352, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 12449, - "end": 12482, - "loc": { - "start": { - "line": 351, - "column": 2 - }, - "end": { - "line": 351, - "column": 35 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 12457, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 33 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12457, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12457, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 12457, - "end": 12459, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 12463, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 18 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - }, - "operator": "|", - "right": { - "type": "BinaryExpression", - "start": 12468, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "left": { - "type": "Identifier", - "start": 12468, - "end": 12470, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 23 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 12474, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 27 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "extra": { - "rawValue": 8, - "raw": "8" - }, - "value": 8 - } - } - }, - "operator": "|", - "right": { - "type": "Identifier", - "start": 12478, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 31 - }, - "end": { - "line": 351, - "column": 33 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - "extra": { - "parenthesized": true, - "parenStart": 12456 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12743, - "end": 12830, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 362, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12743, - "end": 12755, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 359, - "column": 13 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12756, - "end": 12760, - "loc": { - "start": { - "line": 359, - "column": 14 - }, - "end": { - "line": 359, - "column": 18 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 12762, - "end": 12830, - "loc": { - "start": { - "line": 359, - "column": 20 - }, - "end": { - "line": 362, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 12767, - "end": 12796, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 12767, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 12767, - "end": 12771, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 12774, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12774, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 12774, - "end": 12778, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 12779, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 14 - }, - "end": { - "line": 360, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 12787, - "end": 12790, - "loc": { - "start": { - "line": 360, - "column": 22 - }, - "end": { - "line": 360, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 12792, - "end": 12794, - "loc": { - "start": { - "line": 360, - "column": 27 - }, - "end": { - "line": 360, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 12800, - "end": 12826, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 361, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 12807, - "end": 12825, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 12807, - "end": 12815, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 17 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12816, - "end": 12820, - "loc": { - "start": { - "line": 361, - "column": 18 - }, - "end": { - "line": 361, - "column": 22 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - { - "type": "NumericLiteral", - "start": 12822, - "end": 12824, - "loc": { - "start": { - "line": 361, - "column": 24 - }, - "end": { - "line": 361, - "column": 26 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 13344, - "end": 14196, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 396, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13344, - "end": 13353, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 373, - "column": 10 - }, - "identifierName": "grabColor" - }, - "name": "grabColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 13354, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 42 - } - }, - "left": { - "type": "Identifier", - "start": 13354, - "end": 13361, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 18 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 13364, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13364, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 13364, - "end": 13368, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "start": 13369, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 26 - }, - "end": { - "line": 373, - "column": 40 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "Identifier", - "start": 13387, - "end": 13389, - "loc": { - "start": { - "line": 373, - "column": 44 - }, - "end": { - "line": 373, - "column": 46 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 13391, - "end": 13393, - "loc": { - "start": { - "line": 373, - "column": 48 - }, - "end": { - "line": 373, - "column": 50 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 13395, - "end": 14196, - "loc": { - "start": { - "line": 373, - "column": 52 - }, - "end": { - "line": 396, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13400, - "end": 13413, - "loc": { - "start": { - "line": 374, - "column": 2 - }, - "end": { - "line": 374, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - } - }, - "id": { - "type": "Identifier", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": null - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 13442, - "end": 13784, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 386, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 13446, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "left": { - "type": "LogicalExpression", - "start": 13446, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13446, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13446, - "end": 13461, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13453, - "end": 13460, - "loc": { - "start": { - "line": 376, - "column": 13 - }, - "end": { - "line": 376, - "column": 20 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 13452 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13466, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 26 - }, - "end": { - "line": 376, - "column": 34 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 13478, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13478, - "end": 13488, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 48 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13485, - "end": 13487, - "loc": { - "start": { - "line": 376, - "column": 45 - }, - "end": { - "line": 376, - "column": 47 - }, - "identifierName": "pG" - }, - "name": "pG", - "extra": { - "parenthesized": true, - "parenStart": 13484 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13493, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 53 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 13505, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13505, - "end": 13515, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 75 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13512, - "end": 13514, - "loc": { - "start": { - "line": 376, - "column": 72 - }, - "end": { - "line": 376, - "column": 74 - }, - "identifierName": "pB" - }, - "name": "pB", - "extra": { - "parenthesized": true, - "parenStart": 13511 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13520, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 80 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 13530, - "end": 13578, - "loc": { - "start": { - "line": 376, - "column": 90 - }, - "end": { - "line": 378, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13536, - "end": 13573, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13536, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13536, - "end": 13539, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "CallExpression", - "start": 13542, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 13542, - "end": 13546, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 13547, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 14 - }, - "end": { - "line": 377, - "column": 22 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13556, - "end": 13563, - "loc": { - "start": { - "line": 377, - "column": 23 - }, - "end": { - "line": 377, - "column": 30 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - { - "type": "Identifier", - "start": 13565, - "end": 13567, - "loc": { - "start": { - "line": 377, - "column": 32 - }, - "end": { - "line": 377, - "column": 34 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 13569, - "end": 13571, - "loc": { - "start": { - "line": 377, - "column": 36 - }, - "end": { - "line": 377, - "column": 38 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 13584, - "end": 13784, - "loc": { - "start": { - "line": 378, - "column": 9 - }, - "end": { - "line": 386, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 13620, - "end": 13704, - "loc": { - "start": { - "line": 380, - "column": 3 - }, - "end": { - "line": 382, - "column": 4 - } - }, - "test": { - "type": "BinaryExpression", - "start": 13624, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 35 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13624, - "end": 13639, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 22 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13631, - "end": 13638, - "loc": { - "start": { - "line": 380, - "column": 14 - }, - "end": { - "line": 380, - "column": 21 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 13630 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13644, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 27 - }, - "end": { - "line": 380, - "column": 35 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 13654, - "end": 13704, - "loc": { - "start": { - "line": 380, - "column": 37 - }, - "end": { - "line": 382, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13661, - "end": 13698, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13661, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13661, - "end": 13668, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 11 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 13671, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13671, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 13671, - "end": 13675, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 13676, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 19 - }, - "end": { - "line": 381, - "column": 31 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13689, - "end": 13696, - "loc": { - "start": { - "line": 381, - "column": 32 - }, - "end": { - "line": 381, - "column": 39 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 13590, - "end": 13615, - "loc": { - "start": { - "line": 379, - "column": 3 - }, - "end": { - "line": 379, - "column": 28 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 13709, - "end": 13723, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13709, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13709, - "end": 13712, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "Identifier", - "start": 13715, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 9 - }, - "end": { - "line": 383, - "column": 16 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 13754, - "end": 13779, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13754, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13754, - "end": 13757, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 6 - }, - "identifierName": "rgb" - }, - "name": "rgb", - "leadingComments": null - }, - "right": { - "type": "CallExpression", - "start": 13760, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13760, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 13760, - "end": 13764, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 13765, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 22 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13774, - "end": 13777, - "loc": { - "start": { - "line": 385, - "column": 23 - }, - "end": { - "line": 385, - "column": 26 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - } - ] - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 13788, - "end": 14192, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 395, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 13795, - "end": 14191, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 395, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13802, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13802, - "end": 13807, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 8 - } - }, - "extra": { - "rawValue": "hex", - "raw": "'hex'" - }, - "value": "hex" - }, - "value": { - "type": "CallExpression", - "start": 13809, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13809, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 13809, - "end": 13812, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 13 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 13813, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 14 - }, - "end": { - "line": 388, - "column": 25 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 13833, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13833, - "end": 13845, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 15 - } - }, - "extra": { - "rawValue": "hexTagless", - "raw": "'hexTagless'" - }, - "value": "hexTagless" - }, - "value": { - "type": "CallExpression", - "start": 13847, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13847, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 49 - } - }, - "object": { - "type": "CallExpression", - "start": 13847, - "end": 13867, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13847, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 13847, - "end": 13850, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 20 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 13851, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 21 - }, - "end": { - "line": 389, - "column": 28 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 13859, - "end": 13862, - "loc": { - "start": { - "line": 389, - "column": 29 - }, - "end": { - "line": 389, - "column": 32 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 13864, - "end": 13866, - "loc": { - "start": { - "line": 389, - "column": 34 - }, - "end": { - "line": 389, - "column": 36 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - }, - "property": { - "type": "Identifier", - "start": 13868, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 38 - }, - "end": { - "line": 389, - "column": 49 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 13888, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13888, - "end": 13893, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 8 - } - }, - "extra": { - "rawValue": "rgb", - "raw": "'rgb'" - }, - "value": "rgb" - }, - "value": { - "type": "BinaryExpression", - "start": 13895, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 45 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 34 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 23 - } - }, - "left": { - "type": "StringLiteral", - "start": 13895, - "end": 13901, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 16 - } - }, - "extra": { - "rawValue": "rgb(", - "raw": "'rgb('" - }, - "value": "rgb(" - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13902, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 13902, - "end": 13905, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 20 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13906, - "end": 13907, - "loc": { - "start": { - "line": 390, - "column": 21 - }, - "end": { - "line": 390, - "column": 22 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13909, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 24 - }, - "end": { - "line": 390, - "column": 27 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13913, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 13913, - "end": 13916, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13917, - "end": 13918, - "loc": { - "start": { - "line": 390, - "column": 32 - }, - "end": { - "line": 390, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13920, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 35 - }, - "end": { - "line": 390, - "column": 38 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13924, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 13924, - "end": 13927, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 42 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13928, - "end": 13929, - "loc": { - "start": { - "line": 390, - "column": 43 - }, - "end": { - "line": 390, - "column": 44 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13931, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 46 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "extra": { - "rawValue": ")", - "raw": "')'" - }, - "value": ")" - } - } - }, - { - "type": "ObjectProperty", - "start": 13941, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13941, - "end": 13951, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 13 - } - }, - "extra": { - "rawValue": "rgbArray", - "raw": "'rgbArray'" - }, - "value": "rgbArray" - }, - "value": { - "type": "Identifier", - "start": 13953, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 391, - "column": 18 - }, - "identifierName": "rgb" - }, - "name": "rgb" - } - }, - { - "type": "ObjectProperty", - "start": 13963, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13963, - "end": 13974, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbObject", - "raw": "'rgbObject'" - }, - "value": "rgbObject" - }, - "value": { - "type": "ObjectExpression", - "start": 13976, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 16 - }, - "end": { - "line": 392, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13978, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13978, - "end": 13981, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 21 - } - }, - "extra": { - "rawValue": "r", - "raw": "'r'" - }, - "value": "r" - }, - "value": { - "type": "MemberExpression", - "start": 13983, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 13983, - "end": 13986, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 26 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13987, - "end": 13988, - "loc": { - "start": { - "line": 392, - "column": 27 - }, - "end": { - "line": 392, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 13991, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13991, - "end": 13994, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 34 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - }, - "value": { - "type": "MemberExpression", - "start": 13996, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 13996, - "end": 13999, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 39 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14000, - "end": 14001, - "loc": { - "start": { - "line": 392, - "column": 40 - }, - "end": { - "line": 392, - "column": 41 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 14004, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14004, - "end": 14007, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 47 - } - }, - "extra": { - "rawValue": "b", - "raw": "'b'" - }, - "value": "b" - }, - "value": { - "type": "MemberExpression", - "start": 14009, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 14009, - "end": 14012, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 52 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14013, - "end": 14014, - "loc": { - "start": { - "line": 392, - "column": 53 - }, - "end": { - "line": 392, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14024, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 124 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14024, - "end": 14035, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbNormal", - "raw": "'rgbNormal'" - }, - "value": "rgbNormal" - }, - "value": { - "type": "ArrayExpression", - "start": 14037, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 16 - }, - "end": { - "line": 393, - "column": 124 - } - }, - "elements": [ - { - "type": "BinaryExpression", - "start": 14038, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 51 - } - }, - "left": { - "type": "CallExpression", - "start": 14038, - "end": 14066, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14038, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 14038, - "end": 14042, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 21 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14043, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 22 - }, - "end": { - "line": 393, - "column": 27 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14049, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 44 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14049, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 14049, - "end": 14055, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 14049, - "end": 14052, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14053, - "end": 14054, - "loc": { - "start": { - "line": 393, - "column": 32 - }, - "end": { - "line": 393, - "column": 33 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14056, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 35 - }, - "end": { - "line": 393, - "column": 38 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14062, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 41 - }, - "end": { - "line": 393, - "column": 44 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14069, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 48 - }, - "end": { - "line": 393, - "column": 51 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 14074, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 87 - } - }, - "left": { - "type": "CallExpression", - "start": 14074, - "end": 14102, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 81 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14074, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 14074, - "end": 14078, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14079, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 58 - }, - "end": { - "line": 393, - "column": 63 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14085, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 80 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14085, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 74 - } - }, - "left": { - "type": "MemberExpression", - "start": 14085, - "end": 14091, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 14085, - "end": 14088, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 67 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14089, - "end": 14090, - "loc": { - "start": { - "line": 393, - "column": 68 - }, - "end": { - "line": 393, - "column": 69 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14092, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 71 - }, - "end": { - "line": 393, - "column": 74 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14098, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 77 - }, - "end": { - "line": 393, - "column": 80 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14105, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 84 - }, - "end": { - "line": 393, - "column": 87 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 14110, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 123 - } - }, - "left": { - "type": "CallExpression", - "start": 14110, - "end": 14138, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 117 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14110, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 14110, - "end": 14114, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 93 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14115, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 94 - }, - "end": { - "line": 393, - "column": 99 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14121, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 116 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14121, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 110 - } - }, - "left": { - "type": "MemberExpression", - "start": 14121, - "end": 14127, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 14121, - "end": 14124, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 103 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14125, - "end": 14126, - "loc": { - "start": { - "line": 393, - "column": 104 - }, - "end": { - "line": 393, - "column": 105 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14128, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 107 - }, - "end": { - "line": 393, - "column": 110 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14134, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 113 - }, - "end": { - "line": 393, - "column": 116 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14141, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 120 - }, - "end": { - "line": 393, - "column": 123 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14152, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14152, - "end": 14161, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 12 - } - }, - "extra": { - "rawValue": "decimal", - "raw": "'decimal'" - }, - "value": "decimal" - }, - "value": { - "type": "CallExpression", - "start": 14163, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14163, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 14163, - "end": 14167, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 14168, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 19 - }, - "end": { - "line": 394, - "column": 31 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 14181, - "end": 14184, - "loc": { - "start": { - "line": 394, - "column": 32 - }, - "end": { - "line": 394, - "column": 35 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14298, - "end": 14484, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 409, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14298, - "end": 14312, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 402, - "column": 15 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 14315, - "end": 14484, - "loc": { - "start": { - "line": 402, - "column": 18 - }, - "end": { - "line": 409, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 14320, - "end": 14353, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 403, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14326, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 14326, - "end": 14331, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 14334, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 16 - }, - "end": { - "line": 403, - "column": 34 - } - }, - "extra": { - "rawValue": "0123456789ABCDEF", - "raw": "'0123456789ABCDEF'" - }, - "value": "0123456789ABCDEF" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 14357, - "end": 14373, - "loc": { - "start": { - "line": 404, - "column": 2 - }, - "end": { - "line": 404, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14361, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 14361, - "end": 14366, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 11 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "StringLiteral", - "start": 14369, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 14 - }, - "end": { - "line": 404, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 14377, - "end": 14463, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 407, - "column": 3 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 14382, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 7 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14386, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 14386, - "end": 14387, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 12 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 14390, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 15 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 14393, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 14393, - "end": 14394, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 19 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "NumericLiteral", - "start": 14397, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 22 - }, - "end": { - "line": 405, - "column": 23 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - }, - "update": { - "type": "UpdateExpression", - "start": 14400, - "end": 14403, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 28 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 14400, - "end": 14401, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 26 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 14405, - "end": 14463, - "loc": { - "start": { - "line": 405, - "column": 30 - }, - "end": { - "line": 407, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 14411, - "end": 14458, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 50 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 14411, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 49 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 14411, - "end": 14416, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 8 - }, - "identifierName": "color" - }, - "name": "color" - }, - "right": { - "type": "MemberExpression", - "start": 14420, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 14420, - "end": 14425, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 17 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "CallExpression", - "start": 14426, - "end": 14456, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14426, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 14426, - "end": 14430, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 22 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14431, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 23 - }, - "end": { - "line": 406, - "column": 28 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14437, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 47 - } - }, - "left": { - "type": "CallExpression", - "start": 14437, - "end": 14450, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14437, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 14437, - "end": 14441, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 33 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14442, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 34 - }, - "end": { - "line": 406, - "column": 40 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14453, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 45 - }, - "end": { - "line": 406, - "column": 47 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - } - ] - }, - "computed": true - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 14467, - "end": 14480, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 408, - "column": 15 - } - }, - "argument": { - "type": "Identifier", - "start": 14474, - "end": 14479, - "loc": { - "start": { - "line": 408, - "column": 9 - }, - "end": { - "line": 408, - "column": 14 - }, - "identifierName": "color" - }, - "name": "color" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14946, - "end": 15147, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 423, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14946, - "end": 14967, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 420, - "column": 22 - }, - "identifierName": "getRandomColorBetween" - }, - "name": "getRandomColorBetween", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 14968, - "end": 14975, - "loc": { - "start": { - "line": 420, - "column": 23 - }, - "end": { - "line": 420, - "column": 30 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - }, - { - "type": "Identifier", - "start": 14977, - "end": 14984, - "loc": { - "start": { - "line": 420, - "column": 32 - }, - "end": { - "line": 420, - "column": 39 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - }, - { - "type": "AssignmentPattern", - "start": 14986, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 14986, - "end": 14993, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 48 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "right": { - "type": "NumericLiteral", - "start": 14996, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 51 - }, - "end": { - "line": 420, - "column": 54 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 15001, - "end": 15147, - "loc": { - "start": { - "line": 420, - "column": 56 - }, - "end": { - "line": 423, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 15044, - "end": 15143, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 101 - } - }, - "argument": { - "type": "CallExpression", - "start": 15051, - "end": 15142, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15051, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 25 - } - }, - "object": { - "type": "ThisExpression", - "start": 15051, - "end": 15055, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 13 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 15056, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 14 - }, - "end": { - "line": 422, - "column": 25 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 15068, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 57 - } - }, - "object": { - "type": "CallExpression", - "start": 15068, - "end": 15091, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15068, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 15068, - "end": 15072, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 30 - } - } - }, - "property": { - "type": "Identifier", - "start": 15073, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 31 - }, - "end": { - "line": 422, - "column": 40 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15083, - "end": 15090, - "loc": { - "start": { - "line": 422, - "column": 41 - }, - "end": { - "line": 422, - "column": 48 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - } - ] - }, - "property": { - "type": "Identifier", - "start": 15092, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 50 - }, - "end": { - "line": 422, - "column": 57 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "MemberExpression", - "start": 15101, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 90 - } - }, - "object": { - "type": "CallExpression", - "start": 15101, - "end": 15124, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15101, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 73 - } - }, - "object": { - "type": "ThisExpression", - "start": 15101, - "end": 15105, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 63 - } - } - }, - "property": { - "type": "Identifier", - "start": 15106, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 64 - }, - "end": { - "line": 422, - "column": 73 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15116, - "end": 15123, - "loc": { - "start": { - "line": 422, - "column": 74 - }, - "end": { - "line": 422, - "column": 81 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - } - ] - }, - "property": { - "type": "Identifier", - "start": 15125, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 83 - }, - "end": { - "line": 422, - "column": 90 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "Identifier", - "start": 15134, - "end": 15141, - "loc": { - "start": { - "line": 422, - "column": 92 - }, - "end": { - "line": 422, - "column": 99 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 15006, - "end": 15040, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 36 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 15941, - "end": 18972, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 516, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 15941, - "end": 15956, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 438, - "column": 16 - }, - "identifierName": "transitionColor" - }, - "name": "transitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 15957, - "end": 15966, - "loc": { - "start": { - "line": 438, - "column": 17 - }, - "end": { - "line": 438, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "AssignmentPattern", - "start": 15968, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 15968, - "end": 15979, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 39 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - }, - "right": { - "type": "StringLiteral", - "start": 15980, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 40 - }, - "end": { - "line": 438, - "column": 46 - } - }, - "extra": { - "rawValue": "#000", - "raw": "'#000'" - }, - "value": "#000" - } - }, - { - "type": "AssignmentPattern", - "start": 15988, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 64 - } - }, - "left": { - "type": "Identifier", - "start": 15988, - "end": 15997, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 57 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - }, - "right": { - "type": "StringLiteral", - "start": 15998, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 58 - }, - "end": { - "line": 438, - "column": 64 - } - }, - "extra": { - "rawValue": "#fff", - "raw": "'#fff'" - }, - "value": "#fff" - } - }, - { - "type": "AssignmentPattern", - "start": 16006, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 80 - } - }, - "left": { - "type": "Identifier", - "start": 16006, - "end": 16015, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 75 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - }, - "right": { - "type": "NumericLiteral", - "start": 16016, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 76 - }, - "end": { - "line": 438, - "column": 80 - } - }, - "extra": { - "rawValue": 1000, - "raw": "1000" - }, - "value": 1000 - } - }, - { - "type": "Identifier", - "start": 16022, - "end": 16040, - "loc": { - "start": { - "line": 438, - "column": 82 - }, - "end": { - "line": 438, - "column": 100 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - { - "type": "Identifier", - "start": 16042, - "end": 16054, - "loc": { - "start": { - "line": 438, - "column": 102 - }, - "end": { - "line": 438, - "column": 114 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 16056, - "end": 18972, - "loc": { - "start": { - "line": 438, - "column": 116 - }, - "end": { - "line": 516, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 16101, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 2 - }, - "end": { - "line": 440, - "column": 33 - } - }, - "test": { - "type": "UnaryExpression", - "start": 16105, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 6 - }, - "end": { - "line": 440, - "column": 24 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 16106, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 16106, - "end": 16116, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 17 - }, - "identifierName": "globalThis" - }, - "name": "globalThis", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 16117, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 18 - }, - "end": { - "line": 440, - "column": 24 - }, - "identifierName": "window" - }, - "name": "window" - }, - "computed": false, - "leadingComments": null - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "consequent": { - "type": "ReturnStatement", - "start": 16125, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 26 - }, - "end": { - "line": 440, - "column": 33 - } - }, - "argument": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 16061, - "end": 16097, - "loc": { - "start": { - "line": 439, - "column": 2 - }, - "end": { - "line": 439, - "column": 38 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 16136, - "end": 16232, - "loc": { - "start": { - "line": 441, - "column": 2 - }, - "end": { - "line": 441, - "column": 98 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16142, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 97 - } - }, - "id": { - "type": "Identifier", - "start": 16142, - "end": 16159, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 16162, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 97 - } - }, - "test": { - "type": "BinaryExpression", - "start": 16162, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 69 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16162, - "end": 16188, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 54 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 16169, - "end": 16187, - "loc": { - "start": { - "line": 441, - "column": 35 - }, - "end": { - "line": 441, - "column": 53 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback", - "extra": { - "parenthesized": true, - "parenStart": 16168 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16193, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 59 - }, - "end": { - "line": 441, - "column": 69 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 16206, - "end": 16224, - "loc": { - "start": { - "line": 441, - "column": 72 - }, - "end": { - "line": 441, - "column": 90 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 16227, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 93 - }, - "end": { - "line": 441, - "column": 97 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16236, - "end": 16314, - "loc": { - "start": { - "line": 442, - "column": 2 - }, - "end": { - "line": 442, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16242, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 16242, - "end": 16253, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 19 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 16256, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 79 - } - }, - "test": { - "type": "BinaryExpression", - "start": 16256, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16256, - "end": 16276, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 16263, - "end": 16275, - "loc": { - "start": { - "line": 442, - "column": 29 - }, - "end": { - "line": 442, - "column": 41 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback", - "extra": { - "parenthesized": true, - "parenStart": 16262 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16281, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 47 - }, - "end": { - "line": 442, - "column": 57 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 16294, - "end": 16306, - "loc": { - "start": { - "line": 442, - "column": 60 - }, - "end": { - "line": 442, - "column": 72 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 16309, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 75 - }, - "end": { - "line": 442, - "column": 79 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16318, - "end": 16325, - "loc": { - "start": { - "line": 443, - "column": 2 - }, - "end": { - "line": 443, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 16329, - "end": 16344, - "loc": { - "start": { - "line": 444, - "column": 2 - }, - "end": { - "line": 444, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 16348, - "end": 16365, - "loc": { - "start": { - "line": 445, - "column": 2 - }, - "end": { - "line": 445, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 16371, - "end": 16727, - "loc": { - "start": { - "line": 447, - "column": 2 - }, - "end": { - "line": 454, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 16375, - "end": 16384, - "loc": { - "start": { - "line": 447, - "column": 6 - }, - "end": { - "line": 447, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 16386, - "end": 16687, - "loc": { - "start": { - "line": 447, - "column": 17 - }, - "end": { - "line": 452, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16392, - "end": 16445, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16392, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16392, - "end": 16394, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "ConditionalExpression", - "start": 16397, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "test": { - "type": "MemberExpression", - "start": 16397, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 16397, - "end": 16406, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16407, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 18 - }, - "end": { - "line": 448, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "consequent": { - "type": "MemberExpression", - "start": 16412, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 16412, - "end": 16421, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 32 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16422, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 33 - }, - "end": { - "line": 448, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "alternate": { - "type": "CallExpression", - "start": 16427, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16427, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 16427, - "end": 16431, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 16432, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 43 - }, - "end": { - "line": 448, - "column": 53 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 16450, - "end": 16504, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16450, - "end": 16503, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16450, - "end": 16460, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 13 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "right": { - "type": "BinaryExpression", - "start": 16464, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 16464, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 16464, - "end": 16473, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16474, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 27 - }, - "end": { - "line": 449, - "column": 31 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16483, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 36 - }, - "end": { - "line": 449, - "column": 55 - } - }, - "extra": { - "rawValue": "GeneratedParticle", - "raw": "'GeneratedParticle'" - }, - "value": "GeneratedParticle" - }, - "extra": { - "parenthesized": true, - "parenStart": 16463 - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 16509, - "end": 16620, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 114 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16509, - "end": 16619, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 113 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16509, - "end": 16521, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 15 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "right": { - "type": "ConditionalExpression", - "start": 16525, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 16525, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "left": { - "type": "BinaryExpression", - "start": 16525, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 55 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16525, - "end": 16548, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 16532, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 16532, - "end": 16541, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 35 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16542, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 36 - }, - "end": { - "line": 450, - "column": 41 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 16531 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16553, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 55 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 16565, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "left": { - "type": "MemberExpression", - "start": 16565, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 86 - } - }, - "object": { - "type": "MemberExpression", - "start": 16565, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 16565, - "end": 16574, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 68 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16575, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 69 - }, - "end": { - "line": 450, - "column": 74 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16581, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 75 - }, - "end": { - "line": 450, - "column": 86 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 16597, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 91 - }, - "end": { - "line": 450, - "column": 97 - }, - "identifierName": "Object" - }, - "name": "Object" - } - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 16606, - "end": 16610, - "loc": { - "start": { - "line": 450, - "column": 100 - }, - "end": { - "line": 450, - "column": 104 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 16613, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 107 - }, - "end": { - "line": 450, - "column": 112 - } - }, - "value": false - }, - "extra": { - "parenthesized": true, - "parenStart": 16524 - } - } - } - }, - { - "type": "IfStatement", - "start": 16625, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 3 - }, - "end": { - "line": 451, - "column": 60 - } - }, - "test": { - "type": "MemberExpression", - "start": 16629, - "end": 16649, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 16629, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 16629, - "end": 16633, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 11 - } - } - }, - "property": { - "type": "Identifier", - "start": 16634, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 451, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16646, - "end": 16648, - "loc": { - "start": { - "line": 451, - "column": 24 - }, - "end": { - "line": 451, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 16651, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 16651, - "end": 16681, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16651, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 55 - } - }, - "object": { - "type": "ThisExpression", - "start": 16651, - "end": 16655, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 33 - } - } - }, - "property": { - "type": "Identifier", - "start": 16656, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 34 - }, - "end": { - "line": 451, - "column": 55 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16678, - "end": 16680, - "loc": { - "start": { - "line": 451, - "column": 56 - }, - "end": { - "line": 451, - "column": 58 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 16693, - "end": 16727, - "loc": { - "start": { - "line": 452, - "column": 9 - }, - "end": { - "line": 454, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16699, - "end": 16722, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 26 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16699, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 25 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16699, - "end": 16701, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "CallExpression", - "start": 16704, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16704, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 16704, - "end": 16708, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 16709, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 13 - }, - "end": { - "line": 453, - "column": 23 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 16736, - "end": 16853, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 459, - "column": 4 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16736, - "end": 16852, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 459, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 16736, - "end": 16756, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 16736, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 16736, - "end": 16740, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 16741, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 7 - }, - "end": { - "line": 456, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16753, - "end": 16755, - "loc": { - "start": { - "line": 456, - "column": 19 - }, - "end": { - "line": 456, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "right": { - "type": "ObjectExpression", - "start": 16759, - "end": 16852, - "loc": { - "start": { - "line": 456, - "column": 25 - }, - "end": { - "line": 459, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16765, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 16765, - "end": 16775, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 13 - } - }, - "extra": { - "rawValue": "duration", - "raw": "'duration'" - }, - "value": "duration" - }, - "value": { - "type": "Identifier", - "start": 16777, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 15 - }, - "end": { - "line": 457, - "column": 24 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - }, - { - "type": "ObjectProperty", - "start": 16792, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 16792, - "end": 16805, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 16 - } - }, - "extra": { - "rawValue": "timeTracker", - "raw": "'timeTracker'" - }, - "value": "timeTracker" - }, - "value": { - "type": "ConditionalExpression", - "start": 16807, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "test": { - "type": "Identifier", - "start": 16807, - "end": 16817, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 28 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "MemberExpression", - "start": 16820, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 54 - } - }, - "object": { - "type": "MemberExpression", - "start": 16820, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 16820, - "end": 16829, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 40 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16830, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 41 - }, - "end": { - "line": 458, - "column": 45 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16835, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 46 - }, - "end": { - "line": 458, - "column": 54 - }, - "identifierName": "lifetime" - }, - "name": "lifetime" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 16846, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 57 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 16859, - "end": 16918, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 461, - "column": 61 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16865, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 60 - } - }, - "id": { - "type": "Identifier", - "start": 16865, - "end": 16878, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 21 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "init": { - "type": "MemberExpression", - "start": 16881, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 60 - } - }, - "object": { - "type": "CallExpression", - "start": 16881, - "end": 16908, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16881, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 38 - } - }, - "object": { - "type": "ThisExpression", - "start": 16881, - "end": 16885, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 16886, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 29 - }, - "end": { - "line": 461, - "column": 38 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16896, - "end": 16907, - "loc": { - "start": { - "line": 461, - "column": 39 - }, - "end": { - "line": 461, - "column": 50 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16909, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 52 - }, - "end": { - "line": 461, - "column": 60 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16922, - "end": 16977, - "loc": { - "start": { - "line": 462, - "column": 2 - }, - "end": { - "line": 462, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16928, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 16928, - "end": 16939, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 19 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "init": { - "type": "MemberExpression", - "start": 16942, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 56 - } - }, - "object": { - "type": "CallExpression", - "start": 16942, - "end": 16967, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16942, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 36 - } - }, - "object": { - "type": "ThisExpression", - "start": 16942, - "end": 16946, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "start": 16947, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 27 - }, - "end": { - "line": 462, - "column": 36 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16957, - "end": 16966, - "loc": { - "start": { - "line": 462, - "column": 37 - }, - "end": { - "line": 462, - "column": 46 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16968, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 48 - }, - "end": { - "line": 462, - "column": 56 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16983, - "end": 17001, - "loc": { - "start": { - "line": 464, - "column": 2 - }, - "end": { - "line": 464, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16989, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 16989, - "end": 16993, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 12 - }, - "identifierName": "self" - }, - "name": "self" - }, - "init": { - "type": "ThisExpression", - "start": 16996, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 15 - }, - "end": { - "line": 464, - "column": 19 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 17005, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17005, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 17005, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 17005, - "end": 17025, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 17005, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 17005, - "end": 17009, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 17010, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 7 - }, - "end": { - "line": 465, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17022, - "end": 17024, - "loc": { - "start": { - "line": 465, - "column": 19 - }, - "end": { - "line": 465, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17026, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 23 - }, - "end": { - "line": 465, - "column": 27 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - }, - "right": { - "type": "ArrowFunctionExpression", - "start": 17033, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 30 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 17034, - "end": 17044, - "loc": { - "start": { - "line": 465, - "column": 31 - }, - "end": { - "line": 465, - "column": 41 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - ], - "body": { - "type": "BlockStatement", - "start": 17049, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 46 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17055, - "end": 18856, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 511, - "column": 4 - } - }, - "test": { - "type": "MemberExpression", - "start": 17059, - "end": 17079, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 17059, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 17059, - "end": 17063, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 11 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17064, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 12 - }, - "end": { - "line": 466, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17076, - "end": 17078, - "loc": { - "start": { - "line": 466, - "column": 24 - }, - "end": { - "line": 466, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 17081, - "end": 18856, - "loc": { - "start": { - "line": 466, - "column": 29 - }, - "end": { - "line": 511, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17088, - "end": 17370, - "loc": { - "start": { - "line": 467, - "column": 4 - }, - "end": { - "line": 478, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 17092, - "end": 17102, - "loc": { - "start": { - "line": 467, - "column": 8 - }, - "end": { - "line": 467, - "column": 18 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "BlockStatement", - "start": 17104, - "end": 17370, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 478, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17112, - "end": 17363, - "loc": { - "start": { - "line": 468, - "column": 5 - }, - "end": { - "line": 477, - "column": 6 - } - }, - "test": { - "type": "MemberExpression", - "start": 17116, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 17116, - "end": 17125, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17126, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 19 - }, - "end": { - "line": 468, - "column": 23 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17132, - "end": 17264, - "loc": { - "start": { - "line": 468, - "column": 25 - }, - "end": { - "line": 474, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17141, - "end": 17256, - "loc": { - "start": { - "line": 469, - "column": 6 - }, - "end": { - "line": 473, - "column": 7 - } - }, - "test": { - "type": "MemberExpression", - "start": 17145, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 17145, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 17145, - "end": 17154, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 19 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17155, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 20 - }, - "end": { - "line": 469, - "column": 24 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17160, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 25 - }, - "end": { - "line": 469, - "column": 30 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17167, - "end": 17256, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 473, - "column": 7 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17177, - "end": 17247, - "loc": { - "start": { - "line": 470, - "column": 7 - }, - "end": { - "line": 472, - "column": 8 - } - }, - "test": { - "type": "MemberExpression", - "start": 17181, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 40 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 17181, - "end": 17190, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 20 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17191, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 21 - }, - "end": { - "line": 470, - "column": 25 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17196, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 26 - }, - "end": { - "line": 470, - "column": 31 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17202, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 32 - }, - "end": { - "line": 470, - "column": 40 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17211, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 41 - }, - "end": { - "line": 470, - "column": 47 - }, - "identifierName": "paused" - }, - "name": "paused" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17219, - "end": 17247, - "loc": { - "start": { - "line": 470, - "column": 49 - }, - "end": { - "line": 472, - "column": 8 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 17230, - "end": 17237, - "loc": { - "start": { - "line": 471, - "column": 8 - }, - "end": { - "line": 471, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 17270, - "end": 17363, - "loc": { - "start": { - "line": 474, - "column": 12 - }, - "end": { - "line": 477, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17279, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 6 - }, - "end": { - "line": 475, - "column": 63 - } - }, - "test": { - "type": "MemberExpression", - "start": 17283, - "end": 17303, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 17283, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 17283, - "end": 17287, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 14 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17288, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 15 - }, - "end": { - "line": 475, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17300, - "end": 17302, - "loc": { - "start": { - "line": 475, - "column": 27 - }, - "end": { - "line": 475, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 17305, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 17305, - "end": 17335, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17305, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 17305, - "end": 17309, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 36 - } - } - }, - "property": { - "type": "Identifier", - "start": 17310, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 37 - }, - "end": { - "line": 475, - "column": 58 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17332, - "end": 17334, - "loc": { - "start": { - "line": 475, - "column": 59 - }, - "end": { - "line": 475, - "column": 61 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 17344, - "end": 17351, - "loc": { - "start": { - "line": 476, - "column": 6 - }, - "end": { - "line": 476, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 17378, - "end": 17401, - "loc": { - "start": { - "line": 480, - "column": 4 - }, - "end": { - "line": 480, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17384, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 17384, - "end": 17387, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 13 - }, - "identifierName": "now" - }, - "name": "now" - }, - "init": { - "type": "Identifier", - "start": 17390, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 16 - }, - "end": { - "line": 480, - "column": 26 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 17407, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 4 - }, - "end": { - "line": 481, - "column": 76 - } - }, - "test": { - "type": "UnaryExpression", - "start": 17411, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 38 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 17412, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 38 - } - }, - "object": { - "type": "MemberExpression", - "start": 17412, - "end": 17432, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 17412, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 17412, - "end": 17416, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17417, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 14 - }, - "end": { - "line": 481, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17429, - "end": 17431, - "loc": { - "start": { - "line": 481, - "column": 26 - }, - "end": { - "line": 481, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17433, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 30 - }, - "end": { - "line": 481, - "column": 38 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 17443, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 76 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17443, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 75 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 17443, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 69 - } - }, - "object": { - "type": "MemberExpression", - "start": 17443, - "end": 17463, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 17443, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 17443, - "end": 17447, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 44 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17448, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 45 - }, - "end": { - "line": 481, - "column": 56 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17460, - "end": 17462, - "loc": { - "start": { - "line": 481, - "column": 57 - }, - "end": { - "line": 481, - "column": 59 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17464, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 61 - }, - "end": { - "line": 481, - "column": 69 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 17475, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 72 - }, - "end": { - "line": 481, - "column": 75 - }, - "identifierName": "now" - }, - "name": "now" - } - } - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 17485, - "end": 17537, - "loc": { - "start": { - "line": 482, - "column": 4 - }, - "end": { - "line": 482, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17491, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 17491, - "end": 17498, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 17 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "init": { - "type": "BinaryExpression", - "start": 17501, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 17501, - "end": 17504, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 23 - }, - "identifierName": "now" - }, - "name": "now" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 17507, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "object": { - "type": "MemberExpression", - "start": 17507, - "end": 17527, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 17507, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 17507, - "end": 17511, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 30 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17512, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 31 - }, - "end": { - "line": 482, - "column": 42 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17524, - "end": 17526, - "loc": { - "start": { - "line": 482, - "column": 43 - }, - "end": { - "line": 482, - "column": 45 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17528, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 47 - }, - "end": { - "line": 482, - "column": 55 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 17732, - "end": 17776, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 48 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17732, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 47 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 17732, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 17732, - "end": 17752, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 17732, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 17732, - "end": 17736, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17737, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 9 - }, - "end": { - "line": 484, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17749, - "end": 17751, - "loc": { - "start": { - "line": 484, - "column": 21 - }, - "end": { - "line": 484, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17753, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 25 - }, - "end": { - "line": 484, - "column": 36 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 17768, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 40 - }, - "end": { - "line": 484, - "column": 47 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17844, - "end": 17941, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 101 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17850, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 100 - } - }, - "id": { - "type": "Identifier", - "start": 17850, - "end": 17860, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 20 - }, - "identifierName": "percentage" - }, - "name": "percentage", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 17863, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17863, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 17863, - "end": 17867, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 17868, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 28 - }, - "end": { - "line": 486, - "column": 31 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 17872, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 96 - } - }, - "left": { - "type": "MemberExpression", - "start": 17872, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 64 - } - }, - "object": { - "type": "MemberExpression", - "start": 17872, - "end": 17892, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 17872, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 17872, - "end": 17876, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 36 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17877, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 37 - }, - "end": { - "line": 486, - "column": 48 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17889, - "end": 17891, - "loc": { - "start": { - "line": 486, - "column": 49 - }, - "end": { - "line": 486, - "column": 51 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17893, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 53 - }, - "end": { - "line": 486, - "column": 64 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 17907, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 96 - } - }, - "object": { - "type": "MemberExpression", - "start": 17907, - "end": 17927, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 17907, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 17907, - "end": 17911, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 71 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17912, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 72 - }, - "end": { - "line": 486, - "column": 83 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17924, - "end": 17926, - "loc": { - "start": { - "line": 486, - "column": 84 - }, - "end": { - "line": 486, - "column": 86 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17928, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 88 - }, - "end": { - "line": 486, - "column": 96 - }, - "identifierName": "duration" - }, - "name": "duration" - }, - "computed": false - } - }, - { - "type": "NumericLiteral", - "start": 17938, - "end": 17939, - "loc": { - "start": { - "line": 486, - "column": 98 - }, - "end": { - "line": 486, - "column": 99 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17953, - "end": 18033, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17959, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 17959, - "end": 17960, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 17963, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 17963, - "end": 17971, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 17972, - "end": 18027, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17972, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 17972, - "end": 17976, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17977, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 28 - }, - "end": { - "line": 488, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 17982, - "end": 17998, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 17982, - "end": 17995, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 17996, - "end": 17997, - "loc": { - "start": { - "line": 488, - "column": 47 - }, - "end": { - "line": 488, - "column": 48 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18000, - "end": 18014, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18000, - "end": 18011, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18012, - "end": 18013, - "loc": { - "start": { - "line": 488, - "column": 63 - }, - "end": { - "line": 488, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18016, - "end": 18026, - "loc": { - "start": { - "line": 488, - "column": 67 - }, - "end": { - "line": 488, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18029, - "end": 18031, - "loc": { - "start": { - "line": 488, - "column": 80 - }, - "end": { - "line": 488, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18039, - "end": 18119, - "loc": { - "start": { - "line": 489, - "column": 4 - }, - "end": { - "line": 489, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18045, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 18045, - "end": 18046, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 11 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 18049, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 18049, - "end": 18057, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18058, - "end": 18113, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18058, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18058, - "end": 18062, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18063, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 28 - }, - "end": { - "line": 489, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18068, - "end": 18084, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 18068, - "end": 18081, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18082, - "end": 18083, - "loc": { - "start": { - "line": 489, - "column": 47 - }, - "end": { - "line": 489, - "column": 48 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18086, - "end": 18100, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18086, - "end": 18097, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18098, - "end": 18099, - "loc": { - "start": { - "line": 489, - "column": 63 - }, - "end": { - "line": 489, - "column": 64 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18102, - "end": 18112, - "loc": { - "start": { - "line": 489, - "column": 67 - }, - "end": { - "line": 489, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18115, - "end": 18117, - "loc": { - "start": { - "line": 489, - "column": 80 - }, - "end": { - "line": 489, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18125, - "end": 18205, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18131, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 18131, - "end": 18132, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 11 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 18135, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 18135, - "end": 18143, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18144, - "end": 18199, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18144, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18144, - "end": 18148, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18149, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 28 - }, - "end": { - "line": 490, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18154, - "end": 18170, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 18154, - "end": 18167, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18168, - "end": 18169, - "loc": { - "start": { - "line": 490, - "column": 47 - }, - "end": { - "line": 490, - "column": 48 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18172, - "end": 18186, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18172, - "end": 18183, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18184, - "end": 18185, - "loc": { - "start": { - "line": 490, - "column": 63 - }, - "end": { - "line": 490, - "column": 64 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18188, - "end": 18198, - "loc": { - "start": { - "line": 490, - "column": 67 - }, - "end": { - "line": 490, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18201, - "end": 18203, - "loc": { - "start": { - "line": 490, - "column": 80 - }, - "end": { - "line": 490, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18211, - "end": 18249, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 491, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18217, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 18217, - "end": 18222, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 15 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "CallExpression", - "start": 18225, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18225, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18225, - "end": 18229, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 22 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18230, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 23 - }, - "end": { - "line": 491, - "column": 32 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18240, - "end": 18241, - "loc": { - "start": { - "line": 491, - "column": 33 - }, - "end": { - "line": 491, - "column": 34 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 18243, - "end": 18244, - "loc": { - "start": { - "line": 491, - "column": 36 - }, - "end": { - "line": 491, - "column": 37 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 18246, - "end": 18247, - "loc": { - "start": { - "line": 491, - "column": 39 - }, - "end": { - "line": 491, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 18257, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 52 - } - }, - "test": { - "type": "Identifier", - "start": 18261, - "end": 18278, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18280, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 52 - } - }, - "expression": { - "type": "CallExpression", - "start": 18280, - "end": 18304, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 51 - } - }, - "callee": { - "type": "Identifier", - "start": 18280, - "end": 18297, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 44 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 18298, - "end": 18303, - "loc": { - "start": { - "line": 493, - "column": 45 - }, - "end": { - "line": 493, - "column": 50 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18313, - "end": 18508, - "loc": { - "start": { - "line": 495, - "column": 4 - }, - "end": { - "line": 502, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 18317, - "end": 18326, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 18328, - "end": 18508, - "loc": { - "start": { - "line": 495, - "column": 19 - }, - "end": { - "line": 502, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 18336, - "end": 18501, - "loc": { - "start": { - "line": 496, - "column": 5 - }, - "end": { - "line": 501, - "column": 6 - } - }, - "test": { - "type": "Identifier", - "start": 18340, - "end": 18352, - "loc": { - "start": { - "line": 496, - "column": 9 - }, - "end": { - "line": 496, - "column": 21 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "consequent": { - "type": "BlockStatement", - "start": 18354, - "end": 18450, - "loc": { - "start": { - "line": 496, - "column": 23 - }, - "end": { - "line": 499, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18363, - "end": 18400, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18363, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18363, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 18363, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18363, - "end": 18372, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18373, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 16 - }, - "end": { - "line": 497, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18379, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 22 - }, - "end": { - "line": 497, - "column": 26 - }, - "identifierName": "tint" - }, - "name": "tint" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18386, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 18386, - "end": 18391, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 34 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 18392, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 35 - }, - "end": { - "line": 497, - "column": 42 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - } - } - }, - { - "type": "ExpressionStatement", - "start": 18408, - "end": 18442, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18408, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18408, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18408, - "end": 18417, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18418, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 16 - }, - "end": { - "line": 498, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18426, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 18426, - "end": 18435, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 33 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18436, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 34 - }, - "end": { - "line": 498, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 18456, - "end": 18501, - "loc": { - "start": { - "line": 499, - "column": 12 - }, - "end": { - "line": 501, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18465, - "end": 18493, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 34 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18465, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 33 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18465, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18465, - "end": 18474, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18475, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18483, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 18483, - "end": 18488, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 29 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 18489, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 30 - }, - "end": { - "line": 500, - "column": 33 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18516, - "end": 18715, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 508, - "column": 5 - } - }, - "test": { - "type": "LogicalExpression", - "start": 18520, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 72 - } - }, - "left": { - "type": "BinaryExpression", - "start": 18520, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 18520, - "end": 18530, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 18 - }, - "identifierName": "percentage" - }, - "name": "percentage" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 18534, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 22 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "operator": "||", - "right": { - "type": "BinaryExpression", - "start": 18539, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 72 - } - }, - "left": { - "type": "MemberExpression", - "start": 18539, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 59 - } - }, - "object": { - "type": "MemberExpression", - "start": 18539, - "end": 18559, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 18539, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 18539, - "end": 18543, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 31 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18544, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 43 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18556, - "end": 18558, - "loc": { - "start": { - "line": 504, - "column": 44 - }, - "end": { - "line": 504, - "column": 46 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18560, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 59 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 18575, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 72 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 18586, - "end": 18715, - "loc": { - "start": { - "line": 504, - "column": 74 - }, - "end": { - "line": 508, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 18594, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 5 - }, - "end": { - "line": 505, - "column": 62 - } - }, - "test": { - "type": "MemberExpression", - "start": 18598, - "end": 18618, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 18598, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 18598, - "end": 18602, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18603, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 14 - }, - "end": { - "line": 505, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18615, - "end": 18617, - "loc": { - "start": { - "line": 505, - "column": 26 - }, - "end": { - "line": 505, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18620, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 18620, - "end": 18650, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18620, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 57 - } - }, - "object": { - "type": "ThisExpression", - "start": 18620, - "end": 18624, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 18625, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 36 - }, - "end": { - "line": 505, - "column": 57 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18647, - "end": 18649, - "loc": { - "start": { - "line": 505, - "column": 58 - }, - "end": { - "line": 505, - "column": 60 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18658, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 5 - }, - "end": { - "line": 506, - "column": 41 - } - }, - "test": { - "type": "Identifier", - "start": 18662, - "end": 18673, - "loc": { - "start": { - "line": 506, - "column": 9 - }, - "end": { - "line": 506, - "column": 20 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18675, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 18675, - "end": 18693, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 18675, - "end": 18686, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 33 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 18687, - "end": 18692, - "loc": { - "start": { - "line": 506, - "column": 34 - }, - "end": { - "line": 506, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 18701, - "end": 18708, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 12 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 18721, - "end": 18808, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 91 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18721, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 90 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18721, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 28 - } - }, - "object": { - "type": "MemberExpression", - "start": 18721, - "end": 18741, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 18721, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 18721, - "end": 18725, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18726, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 9 - }, - "end": { - "line": 509, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18738, - "end": 18740, - "loc": { - "start": { - "line": 509, - "column": 21 - }, - "end": { - "line": 509, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18742, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 25 - }, - "end": { - "line": 509, - "column": 28 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 18748, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18748, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 18748, - "end": 18758, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 41 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 18759, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 42 - }, - "end": { - "line": 509, - "column": 63 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18781, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 18781, - "end": 18801, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 84 - } - }, - "object": { - "type": "MemberExpression", - "start": 18781, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 80 - } - }, - "object": { - "type": "Identifier", - "start": 18781, - "end": 18785, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 68 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18786, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 69 - }, - "end": { - "line": 509, - "column": 80 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18798, - "end": 18800, - "loc": { - "start": { - "line": 509, - "column": 81 - }, - "end": { - "line": 509, - "column": 83 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18802, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 85 - }, - "end": { - "line": 509, - "column": 89 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 18814, - "end": 18850, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18814, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18814, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 33 - } - }, - "object": { - "type": "MemberExpression", - "start": 18814, - "end": 18834, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 18814, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 18814, - "end": 18818, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18819, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 9 - }, - "end": { - "line": 510, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18831, - "end": 18833, - "loc": { - "start": { - "line": 510, - "column": 21 - }, - "end": { - "line": 510, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18835, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 25 - }, - "end": { - "line": 510, - "column": 33 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 18846, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 36 - }, - "end": { - "line": 510, - "column": 39 - }, - "identifierName": "now" - }, - "name": "now" - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 18867, - "end": 18954, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18867, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18867, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 18867, - "end": 18887, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 18867, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 18867, - "end": 18871, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 18872, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 7 - }, - "end": { - "line": 514, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18884, - "end": 18886, - "loc": { - "start": { - "line": 514, - "column": 19 - }, - "end": { - "line": 514, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18888, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 26 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 18894, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 88 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18894, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 18894, - "end": 18904, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 39 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 18905, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 40 - }, - "end": { - "line": 514, - "column": 61 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18927, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 18927, - "end": 18947, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 82 - } - }, - "object": { - "type": "MemberExpression", - "start": 18927, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 78 - } - }, - "object": { - "type": "ThisExpression", - "start": 18927, - "end": 18931, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 66 - } - } - }, - "property": { - "type": "Identifier", - "start": 18932, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 67 - }, - "end": { - "line": 514, - "column": 78 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18944, - "end": 18946, - "loc": { - "start": { - "line": 514, - "column": 79 - }, - "end": { - "line": 514, - "column": 81 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18948, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 83 - }, - "end": { - "line": 514, - "column": 87 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 18958, - "end": 18968, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 18965, - "end": 18967, - "loc": { - "start": { - "line": 515, - "column": 9 - }, - "end": { - "line": 515, - "column": 11 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19098, - "end": 19265, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 527, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19098, - "end": 19119, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 522, - "column": 22 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19120, - "end": 19123, - "loc": { - "start": { - "line": 522, - "column": 23 - }, - "end": { - "line": 522, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - } - ], - "body": { - "type": "BlockStatement", - "start": 19125, - "end": 19265, - "loc": { - "start": { - "line": 522, - "column": 28 - }, - "end": { - "line": 527, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 19130, - "end": 19261, - "loc": { - "start": { - "line": 523, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "test": { - "type": "MemberExpression", - "start": 19134, - "end": 19155, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 19134, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 19134, - "end": 19138, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "start": 19139, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 11 - }, - "end": { - "line": 523, - "column": 22 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19151, - "end": 19154, - "loc": { - "start": { - "line": 523, - "column": 23 - }, - "end": { - "line": 523, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 19157, - "end": 19261, - "loc": { - "start": { - "line": 523, - "column": 29 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19163, - "end": 19222, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 19163, - "end": 19221, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19163, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 19163, - "end": 19173, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 13 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 19174, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 34 - }, - "identifierName": "cancelAnimationFrame" - }, - "name": "cancelAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 19195, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 19195, - "end": 19216, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 56 - } - }, - "object": { - "type": "MemberExpression", - "start": 19195, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 51 - } - }, - "object": { - "type": "ThisExpression", - "start": 19195, - "end": 19199, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 19200, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 40 - }, - "end": { - "line": 524, - "column": 51 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19212, - "end": 19215, - "loc": { - "start": { - "line": 524, - "column": 52 - }, - "end": { - "line": 524, - "column": 55 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 19217, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 57 - }, - "end": { - "line": 524, - "column": 60 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 19227, - "end": 19256, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 32 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 19227, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 31 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 19234, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 19234, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 26 - } - }, - "object": { - "type": "ThisExpression", - "start": 19234, - "end": 19238, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 14 - } - } - }, - "property": { - "type": "Identifier", - "start": 19239, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 15 - }, - "end": { - "line": 525, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19251, - "end": 19254, - "loc": { - "start": { - "line": 525, - "column": 27 - }, - "end": { - "line": 525, - "column": 30 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19952, - "end": 20745, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 558, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19952, - "end": 19967, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 539, - "column": 16 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19968, - "end": 19973, - "loc": { - "start": { - "line": 539, - "column": 17 - }, - "end": { - "line": 539, - "column": 22 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 19975, - "end": 19981, - "loc": { - "start": { - "line": 539, - "column": 24 - }, - "end": { - "line": 539, - "column": 30 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "Identifier", - "start": 19983, - "end": 19989, - "loc": { - "start": { - "line": 539, - "column": 32 - }, - "end": { - "line": 539, - "column": 38 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 19991, - "end": 20745, - "loc": { - "start": { - "line": 539, - "column": 40 - }, - "end": { - "line": 558, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 20134, - "end": 20246, - "loc": { - "start": { - "line": 543, - "column": 2 - }, - "end": { - "line": 543, - "column": 114 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20140, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "id": { - "type": "Identifier", - "start": 20140, - "end": 20142, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 10 - }, - "identifierName": "cx" - }, - "name": "cx", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20145, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 20145, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 20145, - "end": 20150, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20151, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 19 - }, - "end": { - "line": 543, - "column": 20 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20155, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 20155, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 20155, - "end": 20160, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20161, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 29 - }, - "end": { - "line": 543, - "column": 34 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 20170, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 20170, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 89 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20170, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 71 - } - }, - "left": { - "type": "UnaryExpression", - "start": 20170, - "end": 20190, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 58 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 20177, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 20177, - "end": 20182, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 50 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20183, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 51 - }, - "end": { - "line": 543, - "column": 57 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 20176 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 20195, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 63 - }, - "end": { - "line": 543, - "column": 71 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 20207, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 20207, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 20207, - "end": 20212, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 80 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20213, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 81 - }, - "end": { - "line": 543, - "column": 87 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20220, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 88 - }, - "end": { - "line": 543, - "column": 89 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 20224, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 106 - } - }, - "object": { - "type": "MemberExpression", - "start": 20224, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 104 - } - }, - "object": { - "type": "Identifier", - "start": 20224, - "end": 20229, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20230, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 98 - }, - "end": { - "line": 543, - "column": 104 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20237, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 105 - }, - "end": { - "line": 543, - "column": 106 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 20241, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 109 - }, - "end": { - "line": 543, - "column": 112 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 20169 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 19996, - "end": 20036, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 540, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 20040, - "end": 20093, - "loc": { - "start": { - "line": 541, - "column": 2 - }, - "end": { - "line": 541, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 20097, - "end": 20130, - "loc": { - "start": { - "line": 542, - "column": 2 - }, - "end": { - "line": 542, - "column": 35 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20250, - "end": 20363, - "loc": { - "start": { - "line": 544, - "column": 2 - }, - "end": { - "line": 544, - "column": 115 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20256, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "id": { - "type": "Identifier", - "start": 20256, - "end": 20258, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 10 - }, - "identifierName": "cy" - }, - "name": "cy" - }, - "init": { - "type": "BinaryExpression", - "start": 20261, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 20261, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 20261, - "end": 20266, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20267, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 19 - }, - "end": { - "line": 544, - "column": 20 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20271, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 20271, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20271, - "end": 20276, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20277, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 29 - }, - "end": { - "line": 544, - "column": 35 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 20287, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 113 - } - }, - "test": { - "type": "LogicalExpression", - "start": 20287, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 90 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20287, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 72 - } - }, - "left": { - "type": "UnaryExpression", - "start": 20287, - "end": 20307, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 59 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 20294, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 20294, - "end": 20299, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 51 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20300, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 52 - }, - "end": { - "line": 544, - "column": 58 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 20293 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 20312, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 64 - }, - "end": { - "line": 544, - "column": 72 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 20324, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 90 - } - }, - "object": { - "type": "MemberExpression", - "start": 20324, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 88 - } - }, - "object": { - "type": "Identifier", - "start": 20324, - "end": 20329, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 81 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20330, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 82 - }, - "end": { - "line": 544, - "column": 88 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20337, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 89 - }, - "end": { - "line": 544, - "column": 90 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 20341, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 107 - } - }, - "object": { - "type": "MemberExpression", - "start": 20341, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 105 - } - }, - "object": { - "type": "Identifier", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 98 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20347, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 99 - }, - "end": { - "line": 544, - "column": 105 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20354, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 106 - }, - "end": { - "line": 544, - "column": 107 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 20358, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 110 - }, - "end": { - "line": 544, - "column": 113 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 20286 - } - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20401, - "end": 20429, - "loc": { - "start": { - "line": 547, - "column": 2 - }, - "end": { - "line": 547, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20407, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 20407, - "end": 20412, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 13 - }, - "identifierName": "tempX" - }, - "name": "tempX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20415, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 20415, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 20415, - "end": 20421, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 20422, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 20426, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 27 - }, - "end": { - "line": 547, - "column": 29 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20433, - "end": 20461, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20439, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 20439, - "end": 20444, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 13 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "init": { - "type": "BinaryExpression", - "start": 20447, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 20447, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 20447, - "end": 20453, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 20454, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 23 - }, - "end": { - "line": 548, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 20458, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 29 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20492, - "end": 20560, - "loc": { - "start": { - "line": 551, - "column": 2 - }, - "end": { - "line": 551, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20498, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 20498, - "end": 20506, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 16 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20509, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20509, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 41 - } - }, - "left": { - "type": "Identifier", - "start": 20509, - "end": 20514, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 20515, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20515, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 20515, - "end": 20519, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20520, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 30 - }, - "end": { - "line": 551, - "column": 33 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20524, - "end": 20530, - "loc": { - "start": { - "line": 551, - "column": 34 - }, - "end": { - "line": 551, - "column": 40 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 20534, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 20534, - "end": 20539, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 49 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 20541, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 51 - }, - "end": { - "line": 551, - "column": 68 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 20542, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 68 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20542, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 20542, - "end": 20546, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 56 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20547, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 57 - }, - "end": { - "line": 551, - "column": 60 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20551, - "end": 20557, - "loc": { - "start": { - "line": 551, - "column": 61 - }, - "end": { - "line": 551, - "column": 67 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 20540 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20564, - "end": 20632, - "loc": { - "start": { - "line": 552, - "column": 2 - }, - "end": { - "line": 552, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20570, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 20570, - "end": 20578, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 16 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "init": { - "type": "BinaryExpression", - "start": 20581, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20581, - "end": 20606, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 44 - } - }, - "left": { - "type": "Identifier", - "start": 20581, - "end": 20586, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 20588, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 26 - }, - "end": { - "line": 552, - "column": 43 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 20589, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20589, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20589, - "end": 20593, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20594, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 32 - }, - "end": { - "line": 552, - "column": 35 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 552, - "column": 36 - }, - "end": { - "line": 552, - "column": 42 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 20587 - } - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20609, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 20609, - "end": 20614, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 52 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 20615, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20615, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 20615, - "end": 20619, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20620, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 58 - }, - "end": { - "line": 552, - "column": 61 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20624, - "end": 20630, - "loc": { - "start": { - "line": 552, - "column": 62 - }, - "end": { - "line": 552, - "column": 68 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20659, - "end": 20683, - "loc": { - "start": { - "line": 555, - "column": 2 - }, - "end": { - "line": 555, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20665, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20665, - "end": 20666, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20669, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 20669, - "end": 20677, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 20 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 20680, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 23 - }, - "end": { - "line": 555, - "column": 25 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20687, - "end": 20711, - "loc": { - "start": { - "line": 556, - "column": 2 - }, - "end": { - "line": 556, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20693, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20693, - "end": 20694, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 20697, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 20697, - "end": 20705, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 20 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 20708, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 23 - }, - "end": { - "line": 556, - "column": 25 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 20715, - "end": 20741, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 28 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 20722, - "end": 20740, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20724, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20724, - "end": 20727, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 14 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "Identifier", - "start": 20729, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 16 - }, - "end": { - "line": 557, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - } - }, - { - "type": "ObjectProperty", - "start": 20732, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20732, - "end": 20735, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 22 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "Identifier", - "start": 20737, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 24 - }, - "end": { - "line": 557, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21246, - "end": 21875, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 574, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21246, - "end": 21268, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 567, - "column": 23 - }, - "identifierName": "getPointsOfRotatedRect" - }, - "name": "getPointsOfRotatedRect", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 21269, - "end": 21274, - "loc": { - "start": { - "line": 567, - "column": 24 - }, - "end": { - "line": 567, - "column": 29 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21276, - "end": 21282, - "loc": { - "start": { - "line": 567, - "column": 31 - }, - "end": { - "line": 567, - "column": 37 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ], - "body": { - "type": "BlockStatement", - "start": 21284, - "end": 21875, - "loc": { - "start": { - "line": 567, - "column": 39 - }, - "end": { - "line": 574, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 21289, - "end": 21368, - "loc": { - "start": { - "line": 568, - "column": 2 - }, - "end": { - "line": 568, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21295, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 21295, - "end": 21297, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 10 - }, - "identifierName": "tl" - }, - "name": "tl" - }, - "init": { - "type": "CallExpression", - "start": 21300, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 80 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21300, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21300, - "end": 21304, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21305, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 18 - }, - "end": { - "line": 568, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21321, - "end": 21326, - "loc": { - "start": { - "line": 568, - "column": 34 - }, - "end": { - "line": 568, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21328, - "end": 21334, - "loc": { - "start": { - "line": 568, - "column": 41 - }, - "end": { - "line": 568, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21336, - "end": 21366, - "loc": { - "start": { - "line": 568, - "column": 49 - }, - "end": { - "line": 568, - "column": 79 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21338, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21338, - "end": 21341, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 21343, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21343, - "end": 21348, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21349, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 62 - }, - "end": { - "line": 568, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 21352, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21352, - "end": 21355, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 21357, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21357, - "end": 21362, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21363, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 76 - }, - "end": { - "line": 568, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21372, - "end": 21465, - "loc": { - "start": { - "line": 569, - "column": 2 - }, - "end": { - "line": 569, - "column": 95 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21378, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 94 - } - }, - "id": { - "type": "Identifier", - "start": 21378, - "end": 21380, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 10 - }, - "identifierName": "tr" - }, - "name": "tr" - }, - "init": { - "type": "CallExpression", - "start": 21383, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21383, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21383, - "end": 21387, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21388, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 569, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21404, - "end": 21409, - "loc": { - "start": { - "line": 569, - "column": 34 - }, - "end": { - "line": 569, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21411, - "end": 21417, - "loc": { - "start": { - "line": 569, - "column": 41 - }, - "end": { - "line": 569, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21419, - "end": 21463, - "loc": { - "start": { - "line": 569, - "column": 49 - }, - "end": { - "line": 569, - "column": 93 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21421, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21421, - "end": 21424, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21426, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 21426, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21426, - "end": 21431, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21432, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 62 - }, - "end": { - "line": 569, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21436, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21436, - "end": 21441, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21442, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 72 - }, - "end": { - "line": 569, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 21449, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 91 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21449, - "end": 21452, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 21454, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 21454, - "end": 21459, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21460, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 90 - }, - "end": { - "line": 569, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21469, - "end": 21563, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 570, - "column": 96 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21475, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 95 - } - }, - "id": { - "type": "Identifier", - "start": 21475, - "end": 21477, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 10 - }, - "identifierName": "bl" - }, - "name": "bl" - }, - "init": { - "type": "CallExpression", - "start": 21480, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21480, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21480, - "end": 21484, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21485, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 18 - }, - "end": { - "line": 570, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21501, - "end": 21506, - "loc": { - "start": { - "line": 570, - "column": 34 - }, - "end": { - "line": 570, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21508, - "end": 21514, - "loc": { - "start": { - "line": 570, - "column": 41 - }, - "end": { - "line": 570, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21516, - "end": 21561, - "loc": { - "start": { - "line": 570, - "column": 49 - }, - "end": { - "line": 570, - "column": 94 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21518, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21518, - "end": 21521, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 21523, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21523, - "end": 21528, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21529, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 62 - }, - "end": { - "line": 570, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 21532, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21532, - "end": 21535, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21537, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "left": { - "type": "MemberExpression", - "start": 21537, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21537, - "end": 21542, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21543, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 76 - }, - "end": { - "line": 570, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21547, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "object": { - "type": "Identifier", - "start": 21547, - "end": 21552, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 85 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21553, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 86 - }, - "end": { - "line": 570, - "column": 92 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21567, - "end": 21675, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 110 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21573, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 109 - } - }, - "id": { - "type": "Identifier", - "start": 21573, - "end": 21575, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 10 - }, - "identifierName": "br" - }, - "name": "br" - }, - "init": { - "type": "CallExpression", - "start": 21578, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 109 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21578, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21578, - "end": 21582, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21583, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 18 - }, - "end": { - "line": 571, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21599, - "end": 21604, - "loc": { - "start": { - "line": 571, - "column": 34 - }, - "end": { - "line": 571, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21606, - "end": 21612, - "loc": { - "start": { - "line": 571, - "column": 41 - }, - "end": { - "line": 571, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21614, - "end": 21673, - "loc": { - "start": { - "line": 571, - "column": 49 - }, - "end": { - "line": 571, - "column": 108 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21616, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21616, - "end": 21619, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21621, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 21621, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21621, - "end": 21626, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21627, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 62 - }, - "end": { - "line": 571, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21631, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21631, - "end": 21636, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21637, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 72 - }, - "end": { - "line": 571, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 21644, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21644, - "end": 21647, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21649, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "left": { - "type": "MemberExpression", - "start": 21649, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 21649, - "end": 21654, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 90 - }, - "end": { - "line": 571, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21659, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 21659, - "end": 21664, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 99 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21665, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 100 - }, - "end": { - "line": 571, - "column": 106 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21679, - "end": 21799, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 122 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21685, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 121 - } - }, - "id": { - "type": "Identifier", - "start": 21685, - "end": 21691, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 14 - }, - "identifierName": "center" - }, - "name": "center" - }, - "init": { - "type": "CallExpression", - "start": 21694, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 121 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21694, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 37 - } - }, - "object": { - "type": "ThisExpression", - "start": 21694, - "end": 21698, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "start": 21699, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 22 - }, - "end": { - "line": 572, - "column": 37 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21715, - "end": 21720, - "loc": { - "start": { - "line": 572, - "column": 38 - }, - "end": { - "line": 572, - "column": 43 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21722, - "end": 21728, - "loc": { - "start": { - "line": 572, - "column": 45 - }, - "end": { - "line": 572, - "column": 51 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21730, - "end": 21797, - "loc": { - "start": { - "line": 572, - "column": 53 - }, - "end": { - "line": 572, - "column": 120 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21732, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21732, - "end": 21735, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 58 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21737, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 21737, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 21737, - "end": 21742, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 65 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21743, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 66 - }, - "end": { - "line": 572, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 21747, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 21747, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 81 - } - }, - "object": { - "type": "Identifier", - "start": 21747, - "end": 21752, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21753, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 76 - }, - "end": { - "line": 572, - "column": 81 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21761, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 84 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 21764, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21764, - "end": 21767, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 90 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21769, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 21769, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 21769, - "end": 21774, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21775, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 98 - }, - "end": { - "line": 572, - "column": 99 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 21779, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 21779, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 114 - } - }, - "object": { - "type": "Identifier", - "start": 21779, - "end": 21784, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 107 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21785, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 108 - }, - "end": { - "line": 572, - "column": 114 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21794, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 117 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 21803, - "end": 21871, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 573, - "column": 70 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 21810, - "end": 21870, - "loc": { - "start": { - "line": 573, - "column": 9 - }, - "end": { - "line": 573, - "column": 69 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21812, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21812, - "end": 21816, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 15 - } - }, - "extra": { - "rawValue": "tl", - "raw": "'tl'" - }, - "value": "tl" - }, - "value": { - "type": "Identifier", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 17 - }, - "end": { - "line": 573, - "column": 19 - }, - "identifierName": "tl" - }, - "name": "tl" - } - }, - { - "type": "ObjectProperty", - "start": 21822, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21822, - "end": 21826, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 25 - } - }, - "extra": { - "rawValue": "tr", - "raw": "'tr'" - }, - "value": "tr" - }, - "value": { - "type": "Identifier", - "start": 21828, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 27 - }, - "end": { - "line": 573, - "column": 29 - }, - "identifierName": "tr" - }, - "name": "tr" - } - }, - { - "type": "ObjectProperty", - "start": 21832, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21832, - "end": 21836, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 35 - } - }, - "extra": { - "rawValue": "bl", - "raw": "'bl'" - }, - "value": "bl" - }, - "value": { - "type": "Identifier", - "start": 21838, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 37 - }, - "end": { - "line": 573, - "column": 39 - }, - "identifierName": "bl" - }, - "name": "bl" - } - }, - { - "type": "ObjectProperty", - "start": 21842, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21842, - "end": 21846, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 45 - } - }, - "extra": { - "rawValue": "br", - "raw": "'br'" - }, - "value": "br" - }, - "value": { - "type": "Identifier", - "start": 21848, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 47 - }, - "end": { - "line": 573, - "column": 49 - }, - "identifierName": "br" - }, - "name": "br" - } - }, - { - "type": "ObjectProperty", - "start": 21852, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 67 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21852, - "end": 21860, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 59 - } - }, - "extra": { - "rawValue": "center", - "raw": "'center'" - }, - "value": "center" - }, - "value": { - "type": "Identifier", - "start": 21862, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 61 - }, - "end": { - "line": 573, - "column": 67 - }, - "identifierName": "center" - }, - "name": "center" - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class EUtilsSingleton\r\n* @license EUtils does not have a license at this time. For licensing contact the author\r\n* @author https://github.com/doubleactii\r\n* Copyright (c) 2023 Evitca Studio\r\n", - "start": 2, - "end": 224, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - } - ], - "__PseudoExport__": true, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class EUtilsSingleton\r\n* @license EUtils does not have a license at this time. For licensing contact the author\r\n* @author https://github.com/doubleactii\r\n* Copyright (c) 2023 Evitca Studio\r\n", - "start": 2, - "end": 224, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the library\r\n\t ", - "start": 252, - "end": 293, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 12, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t\t * Object storing all color objects being transitioned at the moment\r\n\t\t * \r\n\t\t * @type {Object}\r\n\t\t ", - "start": 343, - "end": 453, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 6873, - "end": 6906, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 37 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 13590, - "end": 13615, - "loc": { - "start": { - "line": 379, - "column": 3 - }, - "end": { - "line": 379, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 15006, - "end": 15040, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 36 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 16061, - "end": 16097, - "loc": { - "start": { - "line": 439, - "column": 2 - }, - "end": { - "line": 439, - "column": 38 - } - } - }, - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - }, - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 19996, - "end": 20036, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 540, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 20040, - "end": 20093, - "loc": { - "start": { - "line": 541, - "column": 2 - }, - "end": { - "line": 541, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 20097, - "end": 20130, - "loc": { - "start": { - "line": 542, - "column": 2 - }, - "end": { - "line": 542, - "column": 35 - } - } - }, - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - }, - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ], - "tokens": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class EUtilsSingleton\r\n* @license EUtils does not have a license at this time. For licensing contact the author\r\n* @author https://github.com/doubleactii\r\n* Copyright (c) 2023 Evitca Studio\r\n", - "start": 2, - "end": 224, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - }, - { - "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": 226, - "end": 231, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "EUtilsSingleton", - "start": 232, - "end": 247, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 248, - "end": 249, - "loc": { - "start": { - "line": 9, - "column": 22 - }, - "end": { - "line": 9, - "column": 23 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the library\r\n\t ", - "start": 252, - "end": 293, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 12, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 296, - "end": 302, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "version", - "start": 303, - "end": 310, - "loc": { - "start": { - "line": 13, - "column": 8 - }, - "end": { - "line": 13, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 311, - "end": 312, - "loc": { - "start": { - "line": 13, - "column": 16 - }, - "end": { - "line": 13, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "1.0.0", - "start": 313, - "end": 320, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 13, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 320, - "end": 321, - "loc": { - "start": { - "line": 13, - "column": 25 - }, - "end": { - "line": 13, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "constructor", - "start": 324, - "end": 335, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 14, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 335, - "end": 336, - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 336, - "end": 337, - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 338, - "end": 339, - "loc": { - "start": { - "line": 14, - "column": 15 - }, - "end": { - "line": 14, - "column": 16 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t\t * Object storing all color objects being transitioned at the moment\r\n\t\t * \r\n\t\t * @type {Object}\r\n\t\t ", - "start": 343, - "end": 453, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "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": 457, - "end": 461, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 461, - "end": 462, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 462, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 7 - }, - "end": { - "line": 20, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 474, - "end": 475, - "loc": { - "start": { - "line": 20, - "column": 19 - }, - "end": { - "line": 20, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 476, - "end": 477, - "loc": { - "start": { - "line": 20, - "column": 21 - }, - "end": { - "line": 20, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 477, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 22 - }, - "end": { - "line": 20, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 478, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 23 - }, - "end": { - "line": 20, - "column": 24 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "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": 575, - "end": 579, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 579, - "end": 580, - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 580, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 590, - "end": 591, - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 592, - "end": 593, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 20 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 593, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 20 - }, - "end": { - "line": 26, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 594, - "end": 595, - "loc": { - "start": { - "line": 26, - "column": 21 - }, - "end": { - "line": 26, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 598, - "end": 599, - "loc": { - "start": { - "line": 27, - "column": 1 - }, - "end": { - "line": 27, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalRand", - "start": 1175, - "end": 1186, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 36, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1186, - "end": 1187, - "loc": { - "start": { - "line": 36, - "column": 12 - }, - "end": { - "line": 36, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 36, - "column": 13 - }, - "end": { - "line": 36, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1192, - "end": 1193, - "loc": { - "start": { - "line": 36, - "column": 18 - }, - "end": { - "line": 36, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1194, - "end": 1199, - "loc": { - "start": { - "line": 36, - "column": 20 - }, - "end": { - "line": 36, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1199, - "end": 1200, - "loc": { - "start": { - "line": 36, - "column": 25 - }, - "end": { - "line": 36, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlaces", - "start": 1201, - "end": 1208, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 34 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1209, - "end": 1210, - "loc": { - "start": { - "line": 36, - "column": 35 - }, - "end": { - "line": 36, - "column": 36 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1211, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 37 - }, - "end": { - "line": 36, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1212, - "end": 1213, - "loc": { - "start": { - "line": 36, - "column": 38 - }, - "end": { - "line": 36, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1214, - "end": 1215, - "loc": { - "start": { - "line": 36, - "column": 40 - }, - "end": { - "line": 36, - "column": 41 - } - } - }, - { - "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": 1219, - "end": 1224, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "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": "result", - "start": 1225, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1232, - "end": 1233, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Number", - "start": 1234, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1240, - "end": 1241, - "loc": { - "start": { - "line": 37, - "column": 23 - }, - "end": { - "line": 37, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1241, - "end": 1242, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1242, - "end": 1246, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1246, - "end": 1247, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 1247, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 30 - }, - "end": { - "line": 37, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1253, - "end": 1254, - "loc": { - "start": { - "line": 37, - "column": 36 - }, - "end": { - "line": 37, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1254, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 37 - }, - "end": { - "line": 37, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 1256, - "end": 1257, - "loc": { - "start": { - "line": 37, - "column": 39 - }, - "end": { - "line": 37, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1258, - "end": 1259, - "loc": { - "start": { - "line": 37, - "column": 41 - }, - "end": { - "line": 37, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 1265, - "end": 1266, - "loc": { - "start": { - "line": 37, - "column": 48 - }, - "end": { - "line": 37, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1267, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1272, - "end": 1273, - "loc": { - "start": { - "line": 37, - "column": 55 - }, - "end": { - "line": 37, - "column": 56 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1274, - "end": 1275, - "loc": { - "start": { - "line": 37, - "column": 57 - }, - "end": { - "line": 37, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1276, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 59 - }, - "end": { - "line": 37, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1281, - "end": 1282, - "loc": { - "start": { - "line": 37, - "column": 64 - }, - "end": { - "line": 37, - "column": 65 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1282, - "end": 1283, - "loc": { - "start": { - "line": 37, - "column": 65 - }, - "end": { - "line": 37, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toFixed", - "start": 1283, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 66 - }, - "end": { - "line": 37, - "column": 73 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1290, - "end": 1291, - "loc": { - "start": { - "line": 37, - "column": 73 - }, - "end": { - "line": 37, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlaces", - "start": 1291, - "end": 1298, - "loc": { - "start": { - "line": 37, - "column": 74 - }, - "end": { - "line": 37, - "column": 81 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1298, - "end": 1299, - "loc": { - "start": { - "line": 37, - "column": 81 - }, - "end": { - "line": 37, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1299, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 82 - }, - "end": { - "line": 37, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1300, - "end": 1301, - "loc": { - "start": { - "line": 37, - "column": 83 - }, - "end": { - "line": 37, - "column": 84 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1305, - "end": 1311, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 38, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1312, - "end": 1313, - "loc": { - "start": { - "line": 38, - "column": 9 - }, - "end": { - "line": 38, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1313, - "end": 1319, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 16 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 1320, - "end": 1322, - "loc": { - "start": { - "line": 38, - "column": 17 - }, - "end": { - "line": 38, - "column": 19 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1323, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1325, - "end": 1326, - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1327, - "end": 1331, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1331, - "end": 1332, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 38, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 1332, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 29 - }, - "end": { - "line": 38, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1337, - "end": 1338, - "loc": { - "start": { - "line": 38, - "column": 34 - }, - "end": { - "line": 38, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1344, - "end": 1345, - "loc": { - "start": { - "line": 38, - "column": 41 - }, - "end": { - "line": 38, - "column": 42 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1346, - "end": 1347, - "loc": { - "start": { - "line": 38, - "column": 43 - }, - "end": { - "line": 38, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1348, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1354, - "end": 1355, - "loc": { - "start": { - "line": 38, - "column": 51 - }, - "end": { - "line": 38, - "column": 52 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1355, - "end": 1356, - "loc": { - "start": { - "line": 38, - "column": 52 - }, - "end": { - "line": 38, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1359, - "end": 1360, - "loc": { - "start": { - "line": 39, - "column": 1 - }, - "end": { - "line": 39, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rand", - "start": 1790, - "end": 1794, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1794, - "end": 1795, - "loc": { - "start": { - "line": 47, - "column": 5 - }, - "end": { - "line": 47, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1795, - "end": 1800, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1800, - "end": 1801, - "loc": { - "start": { - "line": 47, - "column": 11 - }, - "end": { - "line": 47, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1802, - "end": 1807, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1807, - "end": 1808, - "loc": { - "start": { - "line": 47, - "column": 18 - }, - "end": { - "line": 47, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1809, - "end": 1810, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 21 - } - } - }, - { - "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": 1814, - "end": 1819, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1820, - "end": 1826, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1827, - "end": 1828, - "loc": { - "start": { - "line": 48, - "column": 15 - }, - "end": { - "line": 48, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Number", - "start": 1829, - "end": 1835, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1835, - "end": 1836, - "loc": { - "start": { - "line": 48, - "column": 23 - }, - "end": { - "line": 48, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1836, - "end": 1837, - "loc": { - "start": { - "line": 48, - "column": 24 - }, - "end": { - "line": 48, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1837, - "end": 1841, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1841, - "end": 1842, - "loc": { - "start": { - "line": 48, - "column": 29 - }, - "end": { - "line": 48, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 1842, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 30 - }, - "end": { - "line": 48, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1848, - "end": 1849, - "loc": { - "start": { - "line": 48, - "column": 36 - }, - "end": { - "line": 48, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1849, - "end": 1850, - "loc": { - "start": { - "line": 48, - "column": 37 - }, - "end": { - "line": 48, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 1851, - "end": 1852, - "loc": { - "start": { - "line": 48, - "column": 39 - }, - "end": { - "line": 48, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1853, - "end": 1854, - "loc": { - "start": { - "line": 48, - "column": 41 - }, - "end": { - "line": 48, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1854, - "end": 1859, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 1860, - "end": 1861, - "loc": { - "start": { - "line": 48, - "column": 48 - }, - "end": { - "line": 48, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 50 - }, - "end": { - "line": 48, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1867, - "end": 1868, - "loc": { - "start": { - "line": 48, - "column": 55 - }, - "end": { - "line": 48, - "column": 56 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1869, - "end": 1870, - "loc": { - "start": { - "line": 48, - "column": 57 - }, - "end": { - "line": 48, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1871, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 59 - }, - "end": { - "line": 48, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1876, - "end": 1877, - "loc": { - "start": { - "line": 48, - "column": 64 - }, - "end": { - "line": 48, - "column": 65 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1877, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 65 - }, - "end": { - "line": 48, - "column": 66 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1878, - "end": 1879, - "loc": { - "start": { - "line": 48, - "column": 66 - }, - "end": { - "line": 48, - "column": 67 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1883, - "end": 1889, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1890, - "end": 1894, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1894, - "end": 1895, - "loc": { - "start": { - "line": 49, - "column": 13 - }, - "end": { - "line": 49, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 1895, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1900, - "end": 1901, - "loc": { - "start": { - "line": 49, - "column": 19 - }, - "end": { - "line": 49, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1901, - "end": 1907, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1907, - "end": 1908, - "loc": { - "start": { - "line": 49, - "column": 26 - }, - "end": { - "line": 49, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1908, - "end": 1909, - "loc": { - "start": { - "line": 49, - "column": 27 - }, - "end": { - "line": 49, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1912, - "end": 1913, - "loc": { - "start": { - "line": 50, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPercentage", - "start": 2247, - "end": 2260, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 58, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2260, - "end": 2261, - "loc": { - "start": { - "line": 58, - "column": 14 - }, - "end": { - "line": 58, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pValue", - "start": 2261, - "end": 2267, - "loc": { - "start": { - "line": 58, - "column": 15 - }, - "end": { - "line": 58, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2267, - "end": 2268, - "loc": { - "start": { - "line": 58, - "column": 21 - }, - "end": { - "line": 58, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTotalValue", - "start": 2269, - "end": 2280, - "loc": { - "start": { - "line": 58, - "column": 23 - }, - "end": { - "line": 58, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2280, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 34 - }, - "end": { - "line": 58, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2282, - "end": 2283, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 58, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2287, - "end": 2293, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2294, - "end": 2295, - "loc": { - "start": { - "line": 59, - "column": 9 - }, - "end": { - "line": 59, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 2295, - "end": 2298, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 13 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 2299, - "end": 2300, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pValue", - "start": 2301, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 16 - }, - "end": { - "line": 59, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2307, - "end": 2308, - "loc": { - "start": { - "line": 59, - "column": 22 - }, - "end": { - "line": 59, - "column": 23 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 2309, - "end": 2310, - "loc": { - "start": { - "line": 59, - "column": 24 - }, - "end": { - "line": 59, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTotalValue", - "start": 2311, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 26 - }, - "end": { - "line": 59, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2322, - "end": 2323, - "loc": { - "start": { - "line": 59, - "column": 37 - }, - "end": { - "line": 59, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2326, - "end": 2327, - "loc": { - "start": { - "line": 60, - "column": 1 - }, - "end": { - "line": 60, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 2750, - "end": 2755, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 69, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2755, - "end": 2756, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 2756, - "end": 2763, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2763, - "end": 2764, - "loc": { - "start": { - "line": 69, - "column": 14 - }, - "end": { - "line": 69, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 2765, - "end": 2769, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2770, - "end": 2771, - "loc": { - "start": { - "line": 69, - "column": 21 - }, - "end": { - "line": 69, - "column": 22 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 2772, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2773, - "end": 2774, - "loc": { - "start": { - "line": 69, - "column": 24 - }, - "end": { - "line": 69, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 2775, - "end": 2779, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2780, - "end": 2781, - "loc": { - "start": { - "line": 69, - "column": 31 - }, - "end": { - "line": 69, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 2782, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 33 - }, - "end": { - "line": 69, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2783, - "end": 2784, - "loc": { - "start": { - "line": 69, - "column": 34 - }, - "end": { - "line": 69, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2785, - "end": 2786, - "loc": { - "start": { - "line": 69, - "column": 36 - }, - "end": { - "line": 69, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2790, - "end": 2796, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 2797, - "end": 2801, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2801, - "end": 2802, - "loc": { - "start": { - "line": 70, - "column": 13 - }, - "end": { - "line": 70, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "max", - "start": 2802, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 14 - }, - "end": { - "line": 70, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2805, - "end": 2806, - "loc": { - "start": { - "line": 70, - "column": 17 - }, - "end": { - "line": 70, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 2806, - "end": 2810, - "loc": { - "start": { - "line": 70, - "column": 18 - }, - "end": { - "line": 70, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2810, - "end": 2811, - "loc": { - "start": { - "line": 70, - "column": 22 - }, - "end": { - "line": 70, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 2812, - "end": 2816, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2816, - "end": 2817, - "loc": { - "start": { - "line": 70, - "column": 28 - }, - "end": { - "line": 70, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "min", - "start": 2817, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 29 - }, - "end": { - "line": 70, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2820, - "end": 2821, - "loc": { - "start": { - "line": 70, - "column": 32 - }, - "end": { - "line": 70, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 2821, - "end": 2828, - "loc": { - "start": { - "line": 70, - "column": 33 - }, - "end": { - "line": 70, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2828, - "end": 2829, - "loc": { - "start": { - "line": 70, - "column": 40 - }, - "end": { - "line": 70, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 2830, - "end": 2834, - "loc": { - "start": { - "line": 70, - "column": 42 - }, - "end": { - "line": 70, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2834, - "end": 2835, - "loc": { - "start": { - "line": 70, - "column": 46 - }, - "end": { - "line": 70, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2835, - "end": 2836, - "loc": { - "start": { - "line": 70, - "column": 47 - }, - "end": { - "line": 70, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2836, - "end": 2837, - "loc": { - "start": { - "line": 70, - "column": 48 - }, - "end": { - "line": 70, - "column": 49 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2840, - "end": 2841, - "loc": { - "start": { - "line": 71, - "column": 1 - }, - "end": { - "line": 71, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 3260, - "end": 3264, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3264, - "end": 3265, - "loc": { - "start": { - "line": 80, - "column": 5 - }, - "end": { - "line": 80, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 3265, - "end": 3271, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3271, - "end": 3272, - "loc": { - "start": { - "line": 80, - "column": 12 - }, - "end": { - "line": 80, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3273, - "end": 3277, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3277, - "end": 3278, - "loc": { - "start": { - "line": 80, - "column": 18 - }, - "end": { - "line": 80, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3279, - "end": 3286, - "loc": { - "start": { - "line": 80, - "column": 20 - }, - "end": { - "line": 80, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3286, - "end": 3287, - "loc": { - "start": { - "line": 80, - "column": 27 - }, - "end": { - "line": 80, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3288, - "end": 3289, - "loc": { - "start": { - "line": 80, - "column": 29 - }, - "end": { - "line": 80, - "column": 30 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3293, - "end": 3299, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3300, - "end": 3301, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 3301, - "end": 3302, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 11 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 3302, - "end": 3303, - "loc": { - "start": { - "line": 81, - "column": 11 - }, - "end": { - "line": 81, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3303, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 12 - }, - "end": { - "line": 81, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3310, - "end": 3311, - "loc": { - "start": { - "line": 81, - "column": 19 - }, - "end": { - "line": 81, - "column": 20 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 3311, - "end": 3312, - "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": "pStart", - "start": 3312, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 27 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 3318, - "end": 3319, - "loc": { - "start": { - "line": 81, - "column": 27 - }, - "end": { - "line": 81, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3319, - "end": 3326, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 35 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 3326, - "end": 3327, - "loc": { - "start": { - "line": 81, - "column": 35 - }, - "end": { - "line": 81, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3327, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 36 - }, - "end": { - "line": 81, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3331, - "end": 3332, - "loc": { - "start": { - "line": 81, - "column": 40 - }, - "end": { - "line": 81, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3335, - "end": 3336, - "loc": { - "start": { - "line": 82, - "column": 1 - }, - "end": { - "line": 82, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "flooredLerp", - "start": 3836, - "end": 3847, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 91, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3847, - "end": 3848, - "loc": { - "start": { - "line": 91, - "column": 12 - }, - "end": { - "line": 91, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 3848, - "end": 3854, - "loc": { - "start": { - "line": 91, - "column": 13 - }, - "end": { - "line": 91, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3854, - "end": 3855, - "loc": { - "start": { - "line": 91, - "column": 19 - }, - "end": { - "line": 91, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3856, - "end": 3860, - "loc": { - "start": { - "line": 91, - "column": 21 - }, - "end": { - "line": 91, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3860, - "end": 3861, - "loc": { - "start": { - "line": 91, - "column": 25 - }, - "end": { - "line": 91, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3862, - "end": 3869, - "loc": { - "start": { - "line": 91, - "column": 27 - }, - "end": { - "line": 91, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3869, - "end": 3870, - "loc": { - "start": { - "line": 91, - "column": 34 - }, - "end": { - "line": 91, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3871, - "end": 3872, - "loc": { - "start": { - "line": 91, - "column": 36 - }, - "end": { - "line": 91, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3876, - "end": 3882, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 3883, - "end": 3887, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3887, - "end": 3888, - "loc": { - "start": { - "line": 92, - "column": 13 - }, - "end": { - "line": 92, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 3888, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 14 - }, - "end": { - "line": 92, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3893, - "end": 3894, - "loc": { - "start": { - "line": 92, - "column": 19 - }, - "end": { - "line": 92, - "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": 3894, - "end": 3898, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "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": 3898, - "end": 3899, - "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": "lerp", - "start": 3899, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3903, - "end": 3904, - "loc": { - "start": { - "line": 92, - "column": 29 - }, - "end": { - "line": 92, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 3904, - "end": 3910, - "loc": { - "start": { - "line": 92, - "column": 30 - }, - "end": { - "line": 92, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3910, - "end": 3911, - "loc": { - "start": { - "line": 92, - "column": 36 - }, - "end": { - "line": 92, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3912, - "end": 3916, - "loc": { - "start": { - "line": 92, - "column": 38 - }, - "end": { - "line": 92, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3916, - "end": 3917, - "loc": { - "start": { - "line": 92, - "column": 42 - }, - "end": { - "line": 92, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3918, - "end": 3925, - "loc": { - "start": { - "line": 92, - "column": 44 - }, - "end": { - "line": 92, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3925, - "end": 3926, - "loc": { - "start": { - "line": 92, - "column": 51 - }, - "end": { - "line": 92, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3926, - "end": 3927, - "loc": { - "start": { - "line": 92, - "column": 52 - }, - "end": { - "line": 92, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3927, - "end": 3928, - "loc": { - "start": { - "line": 92, - "column": 53 - }, - "end": { - "line": 92, - "column": 54 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3931, - "end": 3932, - "loc": { - "start": { - "line": 93, - "column": 1 - }, - "end": { - "line": 93, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 4259, - "end": 4264, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 101, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4264, - "end": 4265, - "loc": { - "start": { - "line": 101, - "column": 6 - }, - "end": { - "line": 101, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 4265, - "end": 4272, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4272, - "end": 4273, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 101, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4274, - "end": 4280, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4280, - "end": 4281, - "loc": { - "start": { - "line": 101, - "column": 22 - }, - "end": { - "line": 101, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 4281, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 23 - }, - "end": { - "line": 101, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4282, - "end": 4283, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4284, - "end": 4285, - "loc": { - "start": { - "line": 101, - "column": 26 - }, - "end": { - "line": 101, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4289, - "end": 4295, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 102, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 4296, - "end": 4300, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4300, - "end": 4301, - "loc": { - "start": { - "line": 102, - "column": 13 - }, - "end": { - "line": 102, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 4301, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4306, - "end": 4307, - "loc": { - "start": { - "line": 102, - "column": 19 - }, - "end": { - "line": 102, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4307, - "end": 4313, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 26 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 4314, - "end": 4315, - "loc": { - "start": { - "line": 102, - "column": 27 - }, - "end": { - "line": 102, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 4316, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 102, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4323, - "end": 4324, - "loc": { - "start": { - "line": 102, - "column": 36 - }, - "end": { - "line": 102, - "column": 37 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 4325, - "end": 4326, - "loc": { - "start": { - "line": 102, - "column": 38 - }, - "end": { - "line": 102, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4327, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 40 - }, - "end": { - "line": 102, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4333, - "end": 4334, - "loc": { - "start": { - "line": 102, - "column": 46 - }, - "end": { - "line": 102, - "column": 47 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4337, - "end": 4338, - "loc": { - "start": { - "line": 103, - "column": 1 - }, - "end": { - "line": 103, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "normalize", - "start": 4826, - "end": 4835, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 113, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4835, - "end": 4836, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 4836, - "end": 4840, - "loc": { - "start": { - "line": 113, - "column": 11 - }, - "end": { - "line": 113, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4840, - "end": 4841, - "loc": { - "start": { - "line": 113, - "column": 15 - }, - "end": { - "line": 113, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 4842, - "end": 4846, - "loc": { - "start": { - "line": 113, - "column": 17 - }, - "end": { - "line": 113, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4846, - "end": 4847, - "loc": { - "start": { - "line": 113, - "column": 21 - }, - "end": { - "line": 113, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 4848, - "end": 4852, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4852, - "end": 4853, - "loc": { - "start": { - "line": 113, - "column": 27 - }, - "end": { - "line": 113, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4854, - "end": 4855, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 113, - "column": 30 - } - } - }, - { - "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": 4859, - "end": 4861, - "loc": { - "start": { - "line": 114, - "column": 2 - }, - "end": { - "line": 114, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4862, - "end": 4863, - "loc": { - "start": { - "line": 114, - "column": 5 - }, - "end": { - "line": 114, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 10 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 4868, - "end": 4869, - "loc": { - "start": { - "line": 114, - "column": 11 - }, - "end": { - "line": 114, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 4870, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 13 - }, - "end": { - "line": 114, - "column": 17 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 4875, - "end": 4878, - "loc": { - "start": { - "line": 114, - "column": 18 - }, - "end": { - "line": 114, - "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": 4879, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 22 - }, - "end": { - "line": 114, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4880, - "end": 4881, - "loc": { - "start": { - "line": 114, - "column": 23 - }, - "end": { - "line": 114, - "column": 24 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4882, - "end": 4888, - "loc": { - "start": { - "line": 114, - "column": 25 - }, - "end": { - "line": 114, - "column": 31 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 4889, - "end": 4890, - "loc": { - "start": { - "line": 114, - "column": 32 - }, - "end": { - "line": 114, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4890, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 33 - }, - "end": { - "line": 114, - "column": 34 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4895, - "end": 4901, - "loc": { - "start": { - "line": 115, - "column": 2 - }, - "end": { - "line": 115, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4902, - "end": 4903, - "loc": { - "start": { - "line": 115, - "column": 9 - }, - "end": { - "line": 115, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 4903, - "end": 4907, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 14 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 4908, - "end": 4909, - "loc": { - "start": { - "line": 115, - "column": 15 - }, - "end": { - "line": 115, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 4910, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 17 - }, - "end": { - "line": 115, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4914, - "end": 4915, - "loc": { - "start": { - "line": 115, - "column": 21 - }, - "end": { - "line": 115, - "column": 22 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 4916, - "end": 4917, - "loc": { - "start": { - "line": 115, - "column": 23 - }, - "end": { - "line": 115, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4918, - "end": 4919, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 115, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 4919, - "end": 4923, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 30 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 4924, - "end": 4925, - "loc": { - "start": { - "line": 115, - "column": 31 - }, - "end": { - "line": 115, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 4926, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 33 - }, - "end": { - "line": 115, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4930, - "end": 4931, - "loc": { - "start": { - "line": 115, - "column": 37 - }, - "end": { - "line": 115, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4931, - "end": 4932, - "loc": { - "start": { - "line": 115, - "column": 38 - }, - "end": { - "line": 115, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4935, - "end": 4936, - "loc": { - "start": { - "line": 116, - "column": 1 - }, - "end": { - "line": 116, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "within", - "start": 5335, - "end": 5341, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 125, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5341, - "end": 5342, - "loc": { - "start": { - "line": 125, - "column": 7 - }, - "end": { - "line": 125, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5342, - "end": 5346, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5346, - "end": 5347, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5348, - "end": 5352, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5352, - "end": 5353, - "loc": { - "start": { - "line": 125, - "column": 18 - }, - "end": { - "line": 125, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5354, - "end": 5358, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5358, - "end": 5359, - "loc": { - "start": { - "line": 125, - "column": 24 - }, - "end": { - "line": 125, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5360, - "end": 5361, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 125, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5365, - "end": 5371, - "loc": { - "start": { - "line": 126, - "column": 2 - }, - "end": { - "line": 126, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5372, - "end": 5376, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 5377, - "end": 5379, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5380, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 17 - }, - "end": { - "line": 126, - "column": 21 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 5385, - "end": 5387, - "loc": { - "start": { - "line": 126, - "column": 22 - }, - "end": { - "line": 126, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 29 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 5393, - "end": 5395, - "loc": { - "start": { - "line": 126, - "column": 30 - }, - "end": { - "line": 126, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5396, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 33 - }, - "end": { - "line": 126, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5400, - "end": 5401, - "loc": { - "start": { - "line": 126, - "column": 37 - }, - "end": { - "line": 126, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5404, - "end": 5405, - "loc": { - "start": { - "line": 127, - "column": 1 - }, - "end": { - "line": 127, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formatIntegerWithCommas", - "start": 5656, - "end": 5679, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5679, - "end": 5680, - "loc": { - "start": { - "line": 134, - "column": 24 - }, - "end": { - "line": 134, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 134, - "column": 25 - }, - "end": { - "line": 134, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5684, - "end": 5685, - "loc": { - "start": { - "line": 134, - "column": 29 - }, - "end": { - "line": 134, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5686, - "end": 5687, - "loc": { - "start": { - "line": 134, - "column": 31 - }, - "end": { - "line": 134, - "column": 32 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5691, - "end": 5697, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum", - "start": 5698, - "end": 5702, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5702, - "end": 5703, - "loc": { - "start": { - "line": 135, - "column": 13 - }, - "end": { - "line": 135, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toFixed", - "start": 5703, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5710, - "end": 5711, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5711, - "end": 5712, - "loc": { - "start": { - "line": 135, - "column": 22 - }, - "end": { - "line": 135, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5712, - "end": 5713, - "loc": { - "start": { - "line": 135, - "column": 23 - }, - "end": { - "line": 135, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 5713, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 24 - }, - "end": { - "line": 135, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5721, - "end": 5722, - "loc": { - "start": { - "line": 135, - "column": 32 - }, - "end": { - "line": 135, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5722, - "end": 5723, - "loc": { - "start": { - "line": 135, - "column": 33 - }, - "end": { - "line": 135, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5723, - "end": 5724, - "loc": { - "start": { - "line": 135, - "column": 34 - }, - "end": { - "line": 135, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 5724, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 35 - }, - "end": { - "line": 135, - "column": 42 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5731, - "end": 5732, - "loc": { - "start": { - "line": 135, - "column": 42 - }, - "end": { - "line": 135, - "column": 43 - } - } - }, - { - "type": { - "label": "regexp", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": { - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - "start": 5732, - "end": 5757, - "loc": { - "start": { - "line": 135, - "column": 43 - }, - "end": { - "line": 135, - "column": 68 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5757, - "end": 5758, - "loc": { - "start": { - "line": 135, - "column": 68 - }, - "end": { - "line": 135, - "column": 69 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "$1,", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 135, - "column": 70 - }, - "end": { - "line": 135, - "column": 75 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5764, - "end": 5765, - "loc": { - "start": { - "line": 135, - "column": 75 - }, - "end": { - "line": 135, - "column": 76 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5765, - "end": 5766, - "loc": { - "start": { - "line": 135, - "column": 76 - }, - "end": { - "line": 135, - "column": 77 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5769, - "end": 5770, - "loc": { - "start": { - "line": 136, - "column": 1 - }, - "end": { - "line": 136, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "degreesToRadians", - "start": 5924, - "end": 5940, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 143, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5940, - "end": 5941, - "loc": { - "start": { - "line": 143, - "column": 17 - }, - "end": { - "line": 143, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDegrees", - "start": 5941, - "end": 5949, - "loc": { - "start": { - "line": 143, - "column": 18 - }, - "end": { - "line": 143, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5949, - "end": 5950, - "loc": { - "start": { - "line": 143, - "column": 26 - }, - "end": { - "line": 143, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5951, - "end": 5952, - "loc": { - "start": { - "line": 143, - "column": 28 - }, - "end": { - "line": 143, - "column": 29 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5956, - "end": 5962, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 144, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDegrees", - "start": 5963, - "end": 5971, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 17 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 5972, - "end": 5973, - "loc": { - "start": { - "line": 144, - "column": 18 - }, - "end": { - "line": 144, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5974, - "end": 5975, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 144, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 5975, - "end": 5979, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5979, - "end": 5980, - "loc": { - "start": { - "line": 144, - "column": 25 - }, - "end": { - "line": 144, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 5980, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 28 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 5983, - "end": 5984, - "loc": { - "start": { - "line": 144, - "column": 29 - }, - "end": { - "line": 144, - "column": 30 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 180, - "start": 5985, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 31 - }, - "end": { - "line": 144, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5988, - "end": 5989, - "loc": { - "start": { - "line": 144, - "column": 34 - }, - "end": { - "line": 144, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5989, - "end": 5990, - "loc": { - "start": { - "line": 144, - "column": 35 - }, - "end": { - "line": 144, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5993, - "end": 5994, - "loc": { - "start": { - "line": 145, - "column": 1 - }, - "end": { - "line": 145, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "radiansToDegrees", - "start": 6148, - "end": 6164, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 152, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6164, - "end": 6165, - "loc": { - "start": { - "line": 152, - "column": 17 - }, - "end": { - "line": 152, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRadians", - "start": 6165, - "end": 6173, - "loc": { - "start": { - "line": 152, - "column": 18 - }, - "end": { - "line": 152, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6173, - "end": 6174, - "loc": { - "start": { - "line": 152, - "column": 26 - }, - "end": { - "line": 152, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6175, - "end": 6176, - "loc": { - "start": { - "line": 152, - "column": 28 - }, - "end": { - "line": 152, - "column": 29 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 6180, - "end": 6186, - "loc": { - "start": { - "line": 153, - "column": 2 - }, - "end": { - "line": 153, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRadians", - "start": 6187, - "end": 6195, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 17 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 6196, - "end": 6197, - "loc": { - "start": { - "line": 153, - "column": 18 - }, - "end": { - "line": 153, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6198, - "end": 6199, - "loc": { - "start": { - "line": 153, - "column": 20 - }, - "end": { - "line": 153, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 180, - "start": 6199, - "end": 6202, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 6203, - "end": 6204, - "loc": { - "start": { - "line": 153, - "column": 25 - }, - "end": { - "line": 153, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 6205, - "end": 6209, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6209, - "end": 6210, - "loc": { - "start": { - "line": 153, - "column": 31 - }, - "end": { - "line": 153, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 6210, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6212, - "end": 6213, - "loc": { - "start": { - "line": 153, - "column": 34 - }, - "end": { - "line": 153, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6213, - "end": 6214, - "loc": { - "start": { - "line": 153, - "column": 35 - }, - "end": { - "line": 153, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6217, - "end": 6218, - "loc": { - "start": { - "line": 154, - "column": 1 - }, - "end": { - "line": 154, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pick", - "start": 6388, - "end": 6392, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 161, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6392, - "end": 6393, - "loc": { - "start": { - "line": 161, - "column": 5 - }, - "end": { - "line": 161, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 6393, - "end": 6399, - "loc": { - "start": { - "line": 161, - "column": 6 - }, - "end": { - "line": 161, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6399, - "end": 6400, - "loc": { - "start": { - "line": 161, - "column": 12 - }, - "end": { - "line": 161, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6401, - "end": 6402, - "loc": { - "start": { - "line": 161, - "column": 14 - }, - "end": { - "line": 161, - "column": 15 - } - } - }, - { - "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": 6406, - "end": 6411, - "loc": { - "start": { - "line": 162, - "column": 2 - }, - "end": { - "line": 162, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomIndex", - "start": 6412, - "end": 6423, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6424, - "end": 6425, - "loc": { - "start": { - "line": 162, - "column": 20 - }, - "end": { - "line": 162, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 6426, - "end": 6430, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6430, - "end": 6431, - "loc": { - "start": { - "line": 162, - "column": 26 - }, - "end": { - "line": 162, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 6431, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6436, - "end": 6437, - "loc": { - "start": { - "line": 162, - "column": 32 - }, - "end": { - "line": 162, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6441, - "end": 6442, - "loc": { - "start": { - "line": 162, - "column": 37 - }, - "end": { - "line": 162, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 6442, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 38 - }, - "end": { - "line": 162, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6448, - "end": 6449, - "loc": { - "start": { - "line": 162, - "column": 44 - }, - "end": { - "line": 162, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6449, - "end": 6450, - "loc": { - "start": { - "line": 162, - "column": 45 - }, - "end": { - "line": 162, - "column": 46 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 6451, - "end": 6452, - "loc": { - "start": { - "line": 162, - "column": 47 - }, - "end": { - "line": 162, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 6453, - "end": 6459, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 55 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6459, - "end": 6460, - "loc": { - "start": { - "line": 162, - "column": 55 - }, - "end": { - "line": 162, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 6460, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 56 - }, - "end": { - "line": 162, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6466, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 62 - }, - "end": { - "line": 162, - "column": 63 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6467, - "end": 6468, - "loc": { - "start": { - "line": 162, - "column": 63 - }, - "end": { - "line": 162, - "column": 64 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 6472, - "end": 6478, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 163, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 6479, - "end": 6485, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6485, - "end": 6486, - "loc": { - "start": { - "line": 163, - "column": 15 - }, - "end": { - "line": 163, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomIndex", - "start": 6486, - "end": 6497, - "loc": { - "start": { - "line": 163, - "column": 16 - }, - "end": { - "line": 163, - "column": 27 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6497, - "end": 6498, - "loc": { - "start": { - "line": 163, - "column": 27 - }, - "end": { - "line": 163, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6498, - "end": 6499, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6502, - "end": 6503, - "loc": { - "start": { - "line": 164, - "column": 1 - }, - "end": { - "line": 164, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeProperties", - "start": 6757, - "end": 6773, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 171, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6773, - "end": 6774, - "loc": { - "start": { - "line": 171, - "column": 17 - }, - "end": { - "line": 171, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 6774, - "end": 6781, - "loc": { - "start": { - "line": 171, - "column": 18 - }, - "end": { - "line": 171, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6781, - "end": 6782, - "loc": { - "start": { - "line": 171, - "column": 25 - }, - "end": { - "line": 171, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 6783, - "end": 6791, - "loc": { - "start": { - "line": 171, - "column": 27 - }, - "end": { - "line": 171, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6791, - "end": 6792, - "loc": { - "start": { - "line": 171, - "column": 35 - }, - "end": { - "line": 171, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6793, - "end": 6794, - "loc": { - "start": { - "line": 171, - "column": 37 - }, - "end": { - "line": 171, - "column": 38 - } - } - }, - { - "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": 6798, - "end": 6800, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 172, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6801, - "end": 6802, - "loc": { - "start": { - "line": 172, - "column": 5 - }, - "end": { - "line": 172, - "column": 6 - } - } - }, - { - "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": 6802, - "end": 6808, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6808, - "end": 6809, - "loc": { - "start": { - "line": 172, - "column": 12 - }, - "end": { - "line": 172, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 6809, - "end": 6816, - "loc": { - "start": { - "line": 172, - "column": 13 - }, - "end": { - "line": 172, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6816, - "end": 6817, - "loc": { - "start": { - "line": 172, - "column": 20 - }, - "end": { - "line": 172, - "column": 21 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 6818, - "end": 6821, - "loc": { - "start": { - "line": 172, - "column": 22 - }, - "end": { - "line": 172, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 6822, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 26 - }, - "end": { - "line": 172, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6830, - "end": 6831, - "loc": { - "start": { - "line": 172, - "column": 34 - }, - "end": { - "line": 172, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6832, - "end": 6833, - "loc": { - "start": { - "line": 172, - "column": 36 - }, - "end": { - "line": 172, - "column": 37 - } - } - }, - { - "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": 6838, - "end": 6841, - "loc": { - "start": { - "line": 173, - "column": 3 - }, - "end": { - "line": 173, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6842, - "end": 6843, - "loc": { - "start": { - "line": 173, - "column": 7 - }, - "end": { - "line": 173, - "column": 8 - } - } - }, - { - "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": 6843, - "end": 6848, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - } - } - }, - { - "type": { - "label": "in", - "keyword": "in", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "in", - "start": 6854, - "end": 6856, - "loc": { - "start": { - "line": 173, - "column": 19 - }, - "end": { - "line": 173, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 6857, - "end": 6864, - "loc": { - "start": { - "line": 173, - "column": 22 - }, - "end": { - "line": 173, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6864, - "end": 6865, - "loc": { - "start": { - "line": 173, - "column": 29 - }, - "end": { - "line": 173, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6866, - "end": 6867, - "loc": { - "start": { - "line": 173, - "column": 31 - }, - "end": { - "line": 173, - "column": 32 - } - } - }, - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 6873, - "end": 6906, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 37 - } - } - }, - { - "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": 6912, - "end": 6914, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6915, - "end": 6916, - "loc": { - "start": { - "line": 175, - "column": 7 - }, - "end": { - "line": 175, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 6916, - "end": 6921, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6921, - "end": 6922, - "loc": { - "start": { - "line": 175, - "column": 13 - }, - "end": { - "line": 175, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 6922, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6929, - "end": 6930, - "loc": { - "start": { - "line": 175, - "column": 21 - }, - "end": { - "line": 175, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 6930, - "end": 6938, - "loc": { - "start": { - "line": 175, - "column": 22 - }, - "end": { - "line": 175, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6938, - "end": 6939, - "loc": { - "start": { - "line": 175, - "column": 30 - }, - "end": { - "line": 175, - "column": 31 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 6940, - "end": 6942, - "loc": { - "start": { - "line": 175, - "column": 32 - }, - "end": { - "line": 175, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 6943, - "end": 6951, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6951, - "end": 6952, - "loc": { - "start": { - "line": 175, - "column": 43 - }, - "end": { - "line": 175, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 6952, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 44 - }, - "end": { - "line": 175, - "column": 52 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6960, - "end": 6961, - "loc": { - "start": { - "line": 175, - "column": 52 - }, - "end": { - "line": 175, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 6961, - "end": 6965, - "loc": { - "start": { - "line": 175, - "column": 53 - }, - "end": { - "line": 175, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6965, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 57 - }, - "end": { - "line": 175, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6966, - "end": 6967, - "loc": { - "start": { - "line": 175, - "column": 58 - }, - "end": { - "line": 175, - "column": 59 - } - } - }, - { - "type": { - "label": "continue", - "keyword": "continue", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "continue", - "start": 6968, - "end": 6976, - "loc": { - "start": { - "line": 175, - "column": 60 - }, - "end": { - "line": 175, - "column": 68 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6976, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 68 - }, - "end": { - "line": 175, - "column": 69 - } - } - }, - { - "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": 6983, - "end": 6985, - "loc": { - "start": { - "line": 176, - "column": 4 - }, - "end": { - "line": 176, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6986, - "end": 6987, - "loc": { - "start": { - "line": 176, - "column": 7 - }, - "end": { - "line": 176, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 6987, - "end": 6994, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6994, - "end": 6995, - "loc": { - "start": { - "line": 176, - "column": 15 - }, - "end": { - "line": 176, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasOwnProperty", - "start": 6995, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 16 - }, - "end": { - "line": 176, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7009, - "end": 7010, - "loc": { - "start": { - "line": 176, - "column": 30 - }, - "end": { - "line": 176, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 7010, - "end": 7014, - "loc": { - "start": { - "line": 176, - "column": 31 - }, - "end": { - "line": 176, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7014, - "end": 7015, - "loc": { - "start": { - "line": 176, - "column": 35 - }, - "end": { - "line": 176, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7015, - "end": 7016, - "loc": { - "start": { - "line": 176, - "column": 36 - }, - "end": { - "line": 176, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7017, - "end": 7018, - "loc": { - "start": { - "line": 176, - "column": 38 - }, - "end": { - "line": 176, - "column": 39 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 7025, - "end": 7031, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 7032, - "end": 7039, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 19 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7039, - "end": 7040, - "loc": { - "start": { - "line": 177, - "column": 19 - }, - "end": { - "line": 177, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 7040, - "end": 7044, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 24 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7044, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 24 - }, - "end": { - "line": 177, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7045, - "end": 7046, - "loc": { - "start": { - "line": 177, - "column": 25 - }, - "end": { - "line": 177, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7052, - "end": 7053, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7058, - "end": 7059, - "loc": { - "start": { - "line": 179, - "column": 3 - }, - "end": { - "line": 179, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7063, - "end": 7064, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 180, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7068, - "end": 7069, - "loc": { - "start": { - "line": 181, - "column": 1 - }, - "end": { - "line": 181, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prob", - "start": 7394, - "end": 7398, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 189, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7398, - "end": 7399, - "loc": { - "start": { - "line": 189, - "column": 5 - }, - "end": { - "line": 189, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 7399, - "end": 7406, - "loc": { - "start": { - "line": 189, - "column": 6 - }, - "end": { - "line": 189, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7406, - "end": 7407, - "loc": { - "start": { - "line": 189, - "column": 13 - }, - "end": { - "line": 189, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7408, - "end": 7409, - "loc": { - "start": { - "line": 189, - "column": 15 - }, - "end": { - "line": 189, - "column": 16 - } - } - }, - { - "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": 7413, - "end": 7415, - "loc": { - "start": { - "line": 190, - "column": 2 - }, - "end": { - "line": 190, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7416, - "end": 7417, - "loc": { - "start": { - "line": 190, - "column": 5 - }, - "end": { - "line": 190, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 7417, - "end": 7424, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 7425, - "end": 7427, - "loc": { - "start": { - "line": 190, - "column": 14 - }, - "end": { - "line": 190, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 7428, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 17 - }, - "end": { - "line": 190, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7429, - "end": 7430, - "loc": { - "start": { - "line": 190, - "column": 18 - }, - "end": { - "line": 190, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7431, - "end": 7432, - "loc": { - "start": { - "line": 190, - "column": 20 - }, - "end": { - "line": 190, - "column": 21 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7437, - "end": 7443, - "loc": { - "start": { - "line": 191, - "column": 3 - }, - "end": { - "line": 191, - "column": 9 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 7444, - "end": 7449, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 15 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7449, - "end": 7450, - "loc": { - "start": { - "line": 191, - "column": 15 - }, - "end": { - "line": 191, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7454, - "end": 7455, - "loc": { - "start": { - "line": 192, - "column": 2 - }, - "end": { - "line": 192, - "column": 3 - } - } - }, - { - "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": 7459, - "end": 7461, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 193, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7462, - "end": 7463, - "loc": { - "start": { - "line": 193, - "column": 5 - }, - "end": { - "line": 193, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 7463, - "end": 7470, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 7471, - "end": 7473, - "loc": { - "start": { - "line": 193, - "column": 14 - }, - "end": { - "line": 193, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 7474, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 17 - }, - "end": { - "line": 193, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7477, - "end": 7478, - "loc": { - "start": { - "line": 193, - "column": 20 - }, - "end": { - "line": 193, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7479, - "end": 7480, - "loc": { - "start": { - "line": 193, - "column": 22 - }, - "end": { - "line": 193, - "column": 23 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7485, - "end": 7491, - "loc": { - "start": { - "line": 194, - "column": 3 - }, - "end": { - "line": 194, - "column": 9 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 7492, - "end": 7496, - "loc": { - "start": { - "line": 194, - "column": 10 - }, - "end": { - "line": 194, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7496, - "end": 7497, - "loc": { - "start": { - "line": 194, - "column": 14 - }, - "end": { - "line": 194, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7501, - "end": 7502, - "loc": { - "start": { - "line": 195, - "column": 2 - }, - "end": { - "line": 195, - "column": 3 - } - } - }, - { - "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": 7506, - "end": 7511, - "loc": { - "start": { - "line": 196, - "column": 2 - }, - "end": { - "line": 196, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomNumber", - "start": 7512, - "end": 7524, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7525, - "end": 7526, - "loc": { - "start": { - "line": 196, - "column": 21 - }, - "end": { - "line": 196, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 7527, - "end": 7531, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7531, - "end": 7532, - "loc": { - "start": { - "line": 196, - "column": 27 - }, - "end": { - "line": 196, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 7532, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 28 - }, - "end": { - "line": 196, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7537, - "end": 7538, - "loc": { - "start": { - "line": 196, - "column": 33 - }, - "end": { - "line": 196, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 7538, - "end": 7542, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7542, - "end": 7543, - "loc": { - "start": { - "line": 196, - "column": 38 - }, - "end": { - "line": 196, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 7543, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 39 - }, - "end": { - "line": 196, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7549, - "end": 7550, - "loc": { - "start": { - "line": 196, - "column": 45 - }, - "end": { - "line": 196, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7550, - "end": 7551, - "loc": { - "start": { - "line": 196, - "column": 46 - }, - "end": { - "line": 196, - "column": 47 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 7552, - "end": 7553, - "loc": { - "start": { - "line": 196, - "column": 48 - }, - "end": { - "line": 196, - "column": 49 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 7554, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 50 - }, - "end": { - "line": 196, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7557, - "end": 7558, - "loc": { - "start": { - "line": 196, - "column": 53 - }, - "end": { - "line": 196, - "column": 54 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 7559, - "end": 7560, - "loc": { - "start": { - "line": 196, - "column": 55 - }, - "end": { - "line": 196, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 7561, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 57 - }, - "end": { - "line": 196, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7562, - "end": 7563, - "loc": { - "start": { - "line": 196, - "column": 58 - }, - "end": { - "line": 196, - "column": 59 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7567, - "end": 7573, - "loc": { - "start": { - "line": 197, - "column": 2 - }, - "end": { - "line": 197, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomNumber", - "start": 7574, - "end": 7586, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 21 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 7587, - "end": 7589, - "loc": { - "start": { - "line": 197, - "column": 22 - }, - "end": { - "line": 197, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 7590, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 25 - }, - "end": { - "line": 197, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7597, - "end": 7598, - "loc": { - "start": { - "line": 197, - "column": 32 - }, - "end": { - "line": 197, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7601, - "end": 7602, - "loc": { - "start": { - "line": 198, - "column": 1 - }, - "end": { - "line": 198, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getInverseDir", - "start": 7789, - "end": 7802, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 205, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7802, - "end": 7803, - "loc": { - "start": { - "line": 205, - "column": 14 - }, - "end": { - "line": 205, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 7803, - "end": 7807, - "loc": { - "start": { - "line": 205, - "column": 15 - }, - "end": { - "line": 205, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7807, - "end": 7808, - "loc": { - "start": { - "line": 205, - "column": 19 - }, - "end": { - "line": 205, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7809, - "end": 7810, - "loc": { - "start": { - "line": 205, - "column": 21 - }, - "end": { - "line": 205, - "column": 22 - } - } - }, - { - "type": { - "label": "switch", - "keyword": "switch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "switch", - "start": 7814, - "end": 7820, - "loc": { - "start": { - "line": 206, - "column": 2 - }, - "end": { - "line": 206, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7821, - "end": 7822, - "loc": { - "start": { - "line": 206, - "column": 9 - }, - "end": { - "line": 206, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 7822, - "end": 7826, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7826, - "end": 7827, - "loc": { - "start": { - "line": 206, - "column": 14 - }, - "end": { - "line": 206, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7828, - "end": 7829, - "loc": { - "start": { - "line": 206, - "column": 16 - }, - "end": { - "line": 206, - "column": 17 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7834, - "end": 7838, - "loc": { - "start": { - "line": 207, - "column": 3 - }, - "end": { - "line": 207, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 7839, - "end": 7846, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7846, - "end": 7847, - "loc": { - "start": { - "line": 207, - "column": 15 - }, - "end": { - "line": 207, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7853, - "end": 7859, - "loc": { - "start": { - "line": 208, - "column": 4 - }, - "end": { - "line": 208, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 7860, - "end": 7867, - "loc": { - "start": { - "line": 208, - "column": 11 - }, - "end": { - "line": 208, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7867, - "end": 7868, - "loc": { - "start": { - "line": 208, - "column": 18 - }, - "end": { - "line": 208, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7873, - "end": 7877, - "loc": { - "start": { - "line": 209, - "column": 3 - }, - "end": { - "line": 209, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 7878, - "end": 7885, - "loc": { - "start": { - "line": 209, - "column": 8 - }, - "end": { - "line": 209, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7885, - "end": 7886, - "loc": { - "start": { - "line": 209, - "column": 15 - }, - "end": { - "line": 209, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7892, - "end": 7898, - "loc": { - "start": { - "line": 210, - "column": 4 - }, - "end": { - "line": 210, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 7899, - "end": 7906, - "loc": { - "start": { - "line": 210, - "column": 11 - }, - "end": { - "line": 210, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7906, - "end": 7907, - "loc": { - "start": { - "line": 210, - "column": 18 - }, - "end": { - "line": 210, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7912, - "end": 7916, - "loc": { - "start": { - "line": 211, - "column": 3 - }, - "end": { - "line": 211, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 7917, - "end": 7923, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7923, - "end": 7924, - "loc": { - "start": { - "line": 211, - "column": 14 - }, - "end": { - "line": 211, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7930, - "end": 7936, - "loc": { - "start": { - "line": 212, - "column": 4 - }, - "end": { - "line": 212, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 7937, - "end": 7943, - "loc": { - "start": { - "line": 212, - "column": 11 - }, - "end": { - "line": 212, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7943, - "end": 7944, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 18 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7949, - "end": 7953, - "loc": { - "start": { - "line": 213, - "column": 3 - }, - "end": { - "line": 213, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 7954, - "end": 7960, - "loc": { - "start": { - "line": 213, - "column": 8 - }, - "end": { - "line": 213, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7960, - "end": 7961, - "loc": { - "start": { - "line": 213, - "column": 14 - }, - "end": { - "line": 213, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7967, - "end": 7973, - "loc": { - "start": { - "line": 214, - "column": 4 - }, - "end": { - "line": 214, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 7974, - "end": 7980, - "loc": { - "start": { - "line": 214, - "column": 11 - }, - "end": { - "line": 214, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7980, - "end": 7981, - "loc": { - "start": { - "line": 214, - "column": 17 - }, - "end": { - "line": 214, - "column": 18 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7986, - "end": 7990, - "loc": { - "start": { - "line": 215, - "column": 3 - }, - "end": { - "line": 215, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 7991, - "end": 8002, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8002, - "end": 8003, - "loc": { - "start": { - "line": 215, - "column": 19 - }, - "end": { - "line": 215, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8009, - "end": 8015, - "loc": { - "start": { - "line": 216, - "column": 4 - }, - "end": { - "line": 216, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 8016, - "end": 8027, - "loc": { - "start": { - "line": 216, - "column": 11 - }, - "end": { - "line": 216, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8027, - "end": 8028, - "loc": { - "start": { - "line": 216, - "column": 22 - }, - "end": { - "line": 216, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8033, - "end": 8037, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 217, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 8038, - "end": 8049, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8049, - "end": 8050, - "loc": { - "start": { - "line": 217, - "column": 19 - }, - "end": { - "line": 217, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8056, - "end": 8062, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 8063, - "end": 8074, - "loc": { - "start": { - "line": 218, - "column": 11 - }, - "end": { - "line": 218, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8074, - "end": 8075, - "loc": { - "start": { - "line": 218, - "column": 22 - }, - "end": { - "line": 218, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8080, - "end": 8084, - "loc": { - "start": { - "line": 219, - "column": 3 - }, - "end": { - "line": 219, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 8085, - "end": 8096, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8096, - "end": 8097, - "loc": { - "start": { - "line": 219, - "column": 19 - }, - "end": { - "line": 219, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8103, - "end": 8109, - "loc": { - "start": { - "line": 220, - "column": 4 - }, - "end": { - "line": 220, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 8110, - "end": 8121, - "loc": { - "start": { - "line": 220, - "column": 11 - }, - "end": { - "line": 220, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8121, - "end": 8122, - "loc": { - "start": { - "line": 220, - "column": 22 - }, - "end": { - "line": 220, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8127, - "end": 8131, - "loc": { - "start": { - "line": 221, - "column": 3 - }, - "end": { - "line": 221, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 8132, - "end": 8143, - "loc": { - "start": { - "line": 221, - "column": 8 - }, - "end": { - "line": 221, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8143, - "end": 8144, - "loc": { - "start": { - "line": 221, - "column": 19 - }, - "end": { - "line": 221, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8150, - "end": 8156, - "loc": { - "start": { - "line": 222, - "column": 4 - }, - "end": { - "line": 222, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 8157, - "end": 8168, - "loc": { - "start": { - "line": 222, - "column": 11 - }, - "end": { - "line": 222, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8168, - "end": 8169, - "loc": { - "start": { - "line": 222, - "column": 22 - }, - "end": { - "line": 222, - "column": 23 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 8174, - "end": 8181, - "loc": { - "start": { - "line": 223, - "column": 3 - }, - "end": { - "line": 223, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8181, - "end": 8182, - "loc": { - "start": { - "line": 223, - "column": 10 - }, - "end": { - "line": 223, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 8188, - "end": 8195, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8195, - "end": 8196, - "loc": { - "start": { - "line": 224, - "column": 11 - }, - "end": { - "line": 224, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 8196, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 12 - }, - "end": { - "line": 224, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8201, - "end": 8202, - "loc": { - "start": { - "line": 224, - "column": 17 - }, - "end": { - "line": 224, - "column": 18 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8202, - "end": 8203, - "loc": { - "start": { - "line": 224, - "column": 18 - }, - "end": { - "line": 224, - "column": 19 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "The direction ", - "start": 8203, - "end": 8217, - "loc": { - "start": { - "line": 224, - "column": 19 - }, - "end": { - "line": 224, - "column": 33 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8217, - "end": 8219, - "loc": { - "start": { - "line": 224, - "column": 33 - }, - "end": { - "line": 224, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 8219, - "end": 8223, - "loc": { - "start": { - "line": 224, - "column": 35 - }, - "end": { - "line": 224, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8223, - "end": 8224, - "loc": { - "start": { - "line": 224, - "column": 39 - }, - "end": { - "line": 224, - "column": 40 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " is not supported.", - "start": 8224, - "end": 8242, - "loc": { - "start": { - "line": 224, - "column": 40 - }, - "end": { - "line": 224, - "column": 58 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8242, - "end": 8243, - "loc": { - "start": { - "line": 224, - "column": 58 - }, - "end": { - "line": 224, - "column": 59 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8243, - "end": 8244, - "loc": { - "start": { - "line": 224, - "column": 59 - }, - "end": { - "line": 224, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8244, - "end": 8245, - "loc": { - "start": { - "line": 224, - "column": 60 - }, - "end": { - "line": 224, - "column": 61 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8249, - "end": 8250, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 225, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8253, - "end": 8254, - "loc": { - "start": { - "line": 226, - "column": 1 - }, - "end": { - "line": 226, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getAngleFromDir", - "start": 8565, - "end": 8580, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 234, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8580, - "end": 8581, - "loc": { - "start": { - "line": 234, - "column": 16 - }, - "end": { - "line": 234, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 234, - "column": 17 - }, - "end": { - "line": 234, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8585, - "end": 8586, - "loc": { - "start": { - "line": 234, - "column": 21 - }, - "end": { - "line": 234, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8587, - "end": 8588, - "loc": { - "start": { - "line": 234, - "column": 23 - }, - "end": { - "line": 234, - "column": 24 - } - } - }, - { - "type": { - "label": "switch", - "keyword": "switch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "switch", - "start": 8592, - "end": 8598, - "loc": { - "start": { - "line": 235, - "column": 2 - }, - "end": { - "line": 235, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8599, - "end": 8600, - "loc": { - "start": { - "line": 235, - "column": 9 - }, - "end": { - "line": 235, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 8600, - "end": 8604, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8604, - "end": 8605, - "loc": { - "start": { - "line": 235, - "column": 14 - }, - "end": { - "line": 235, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8606, - "end": 8607, - "loc": { - "start": { - "line": 235, - "column": 16 - }, - "end": { - "line": 235, - "column": 17 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8612, - "end": 8616, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 236, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 8617, - "end": 8624, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8624, - "end": 8625, - "loc": { - "start": { - "line": 236, - "column": 15 - }, - "end": { - "line": 236, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8631, - "end": 8637, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8638, - "end": 8639, - "loc": { - "start": { - "line": 237, - "column": 11 - }, - "end": { - "line": 237, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8639, - "end": 8643, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8643, - "end": 8644, - "loc": { - "start": { - "line": 237, - "column": 16 - }, - "end": { - "line": 237, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8644, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 17 - }, - "end": { - "line": 237, - "column": 19 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8647, - "end": 8648, - "loc": { - "start": { - "line": 237, - "column": 20 - }, - "end": { - "line": 237, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 8649, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 22 - }, - "end": { - "line": 237, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8650, - "end": 8651, - "loc": { - "start": { - "line": 237, - "column": 23 - }, - "end": { - "line": 237, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8651, - "end": 8652, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 25 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8657, - "end": 8661, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 238, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 8662, - "end": 8669, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8669, - "end": 8670, - "loc": { - "start": { - "line": 238, - "column": 15 - }, - "end": { - "line": 238, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8676, - "end": 8682, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8683, - "end": 8684, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8684, - "end": 8688, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8688, - "end": 8689, - "loc": { - "start": { - "line": 239, - "column": 16 - }, - "end": { - "line": 239, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8689, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 239, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8692, - "end": 8693, - "loc": { - "start": { - "line": 239, - "column": 20 - }, - "end": { - "line": 239, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 8694, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 22 - }, - "end": { - "line": 239, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8695, - "end": 8696, - "loc": { - "start": { - "line": 239, - "column": 23 - }, - "end": { - "line": 239, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8697, - "end": 8698, - "loc": { - "start": { - "line": 239, - "column": 25 - }, - "end": { - "line": 239, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 8699, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 27 - }, - "end": { - "line": 239, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8700, - "end": 8701, - "loc": { - "start": { - "line": 239, - "column": 28 - }, - "end": { - "line": 239, - "column": 29 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8706, - "end": 8710, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 240, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 8711, - "end": 8717, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8717, - "end": 8718, - "loc": { - "start": { - "line": 240, - "column": 14 - }, - "end": { - "line": 240, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8724, - "end": 8730, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8731, - "end": 8732, - "loc": { - "start": { - "line": 241, - "column": 11 - }, - "end": { - "line": 241, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8732, - "end": 8736, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8736, - "end": 8737, - "loc": { - "start": { - "line": 241, - "column": 16 - }, - "end": { - "line": 241, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8737, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 17 - }, - "end": { - "line": 241, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8740, - "end": 8741, - "loc": { - "start": { - "line": 241, - "column": 20 - }, - "end": { - "line": 241, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 8742, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 22 - }, - "end": { - "line": 241, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8743, - "end": 8744, - "loc": { - "start": { - "line": 241, - "column": 23 - }, - "end": { - "line": 241, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8744, - "end": 8745, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 25 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8750, - "end": 8754, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 242, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 8755, - "end": 8761, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8761, - "end": 8762, - "loc": { - "start": { - "line": 242, - "column": 14 - }, - "end": { - "line": 242, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8768, - "end": 8774, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8775, - "end": 8779, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8779, - "end": 8780, - "loc": { - "start": { - "line": 243, - "column": 15 - }, - "end": { - "line": 243, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8780, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 16 - }, - "end": { - "line": 243, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8782, - "end": 8783, - "loc": { - "start": { - "line": 243, - "column": 18 - }, - "end": { - "line": 243, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8788, - "end": 8792, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 244, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 8793, - "end": 8804, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8804, - "end": 8805, - "loc": { - "start": { - "line": 244, - "column": 19 - }, - "end": { - "line": 244, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8811, - "end": 8817, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8818, - "end": 8819, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8819, - "end": 8823, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8823, - "end": 8824, - "loc": { - "start": { - "line": 245, - "column": 16 - }, - "end": { - "line": 245, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8824, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 17 - }, - "end": { - "line": 245, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8827, - "end": 8828, - "loc": { - "start": { - "line": 245, - "column": 20 - }, - "end": { - "line": 245, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 8829, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8830, - "end": 8831, - "loc": { - "start": { - "line": 245, - "column": 23 - }, - "end": { - "line": 245, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8832, - "end": 8833, - "loc": { - "start": { - "line": 245, - "column": 25 - }, - "end": { - "line": 245, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 8834, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 27 - }, - "end": { - "line": 245, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8835, - "end": 8836, - "loc": { - "start": { - "line": 245, - "column": 28 - }, - "end": { - "line": 245, - "column": 29 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8841, - "end": 8845, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 246, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 8846, - "end": 8857, - "loc": { - "start": { - "line": 246, - "column": 8 - }, - "end": { - "line": 246, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8857, - "end": 8858, - "loc": { - "start": { - "line": 246, - "column": 19 - }, - "end": { - "line": 246, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8864, - "end": 8870, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8871, - "end": 8875, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8875, - "end": 8876, - "loc": { - "start": { - "line": 247, - "column": 15 - }, - "end": { - "line": 247, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8876, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 18 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8879, - "end": 8880, - "loc": { - "start": { - "line": 247, - "column": 19 - }, - "end": { - "line": 247, - "column": 20 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 8881, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 21 - }, - "end": { - "line": 247, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8882, - "end": 8883, - "loc": { - "start": { - "line": 247, - "column": 22 - }, - "end": { - "line": 247, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8888, - "end": 8892, - "loc": { - "start": { - "line": 248, - "column": 3 - }, - "end": { - "line": 248, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 8893, - "end": 8904, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8904, - "end": 8905, - "loc": { - "start": { - "line": 248, - "column": 19 - }, - "end": { - "line": 248, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8911, - "end": 8917, - "loc": { - "start": { - "line": 249, - "column": 4 - }, - "end": { - "line": 249, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8918, - "end": 8919, - "loc": { - "start": { - "line": 249, - "column": 11 - }, - "end": { - "line": 249, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8919, - "end": 8923, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8923, - "end": 8924, - "loc": { - "start": { - "line": 249, - "column": 16 - }, - "end": { - "line": 249, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8924, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8927, - "end": 8928, - "loc": { - "start": { - "line": 249, - "column": 20 - }, - "end": { - "line": 249, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 5, - "start": 8929, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 22 - }, - "end": { - "line": 249, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8930, - "end": 8931, - "loc": { - "start": { - "line": 249, - "column": 23 - }, - "end": { - "line": 249, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8932, - "end": 8933, - "loc": { - "start": { - "line": 249, - "column": 25 - }, - "end": { - "line": 249, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 8934, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 27 - }, - "end": { - "line": 249, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8935, - "end": 8936, - "loc": { - "start": { - "line": 249, - "column": 28 - }, - "end": { - "line": 249, - "column": 29 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8941, - "end": 8945, - "loc": { - "start": { - "line": 250, - "column": 3 - }, - "end": { - "line": 250, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 8946, - "end": 8957, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8957, - "end": 8958, - "loc": { - "start": { - "line": 250, - "column": 19 - }, - "end": { - "line": 250, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8964, - "end": 8970, - "loc": { - "start": { - "line": 251, - "column": 4 - }, - "end": { - "line": 251, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8971, - "end": 8972, - "loc": { - "start": { - "line": 251, - "column": 11 - }, - "end": { - "line": 251, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8972, - "end": 8976, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8976, - "end": 8977, - "loc": { - "start": { - "line": 251, - "column": 16 - }, - "end": { - "line": 251, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8977, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 17 - }, - "end": { - "line": 251, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8980, - "end": 8981, - "loc": { - "start": { - "line": 251, - "column": 20 - }, - "end": { - "line": 251, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 7, - "start": 8982, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 22 - }, - "end": { - "line": 251, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8983, - "end": 8984, - "loc": { - "start": { - "line": 251, - "column": 23 - }, - "end": { - "line": 251, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8985, - "end": 8986, - "loc": { - "start": { - "line": 251, - "column": 25 - }, - "end": { - "line": 251, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 8987, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 27 - }, - "end": { - "line": 251, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8988, - "end": 8989, - "loc": { - "start": { - "line": 251, - "column": 28 - }, - "end": { - "line": 251, - "column": 29 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 8994, - "end": 9001, - "loc": { - "start": { - "line": 252, - "column": 3 - }, - "end": { - "line": 252, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9001, - "end": 9002, - "loc": { - "start": { - "line": 252, - "column": 10 - }, - "end": { - "line": 252, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 9008, - "end": 9015, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9015, - "end": 9016, - "loc": { - "start": { - "line": 253, - "column": 11 - }, - "end": { - "line": 253, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 9016, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9021, - "end": 9022, - "loc": { - "start": { - "line": 253, - "column": 17 - }, - "end": { - "line": 253, - "column": 18 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9022, - "end": 9023, - "loc": { - "start": { - "line": 253, - "column": 18 - }, - "end": { - "line": 253, - "column": 19 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "The direction ", - "start": 9023, - "end": 9037, - "loc": { - "start": { - "line": 253, - "column": 19 - }, - "end": { - "line": 253, - "column": 33 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9037, - "end": 9039, - "loc": { - "start": { - "line": 253, - "column": 33 - }, - "end": { - "line": 253, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 9039, - "end": 9043, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9043, - "end": 9044, - "loc": { - "start": { - "line": 253, - "column": 39 - }, - "end": { - "line": 253, - "column": 40 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " is not supported.", - "start": 9044, - "end": 9062, - "loc": { - "start": { - "line": 253, - "column": 40 - }, - "end": { - "line": 253, - "column": 58 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9062, - "end": 9063, - "loc": { - "start": { - "line": 253, - "column": 58 - }, - "end": { - "line": 253, - "column": 59 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9063, - "end": 9064, - "loc": { - "start": { - "line": 253, - "column": 59 - }, - "end": { - "line": 253, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9064, - "end": 9065, - "loc": { - "start": { - "line": 253, - "column": 60 - }, - "end": { - "line": 253, - "column": 61 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9069, - "end": 9070, - "loc": { - "start": { - "line": 254, - "column": 2 - }, - "end": { - "line": 254, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9073, - "end": 9074, - "loc": { - "start": { - "line": 255, - "column": 1 - }, - "end": { - "line": 255, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 9213, - "end": 9223, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 262, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9223, - "end": 9224, - "loc": { - "start": { - "line": 262, - "column": 11 - }, - "end": { - "line": 262, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIDLength", - "start": 9224, - "end": 9233, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9234, - "end": 9235, - "loc": { - "start": { - "line": 262, - "column": 22 - }, - "end": { - "line": 262, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 7, - "start": 9236, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 24 - }, - "end": { - "line": 262, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9237, - "end": 9238, - "loc": { - "start": { - "line": 262, - "column": 25 - }, - "end": { - "line": 262, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9239, - "end": 9240, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 262, - "column": 28 - } - } - }, - { - "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": 9244, - "end": 9249, - "loc": { - "start": { - "line": 263, - "column": 2 - }, - "end": { - "line": 263, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 9250, - "end": 9255, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9256, - "end": 9257, - "loc": { - "start": { - "line": 263, - "column": 14 - }, - "end": { - "line": 263, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "start": 9258, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 16 - }, - "end": { - "line": 263, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9322, - "end": 9323, - "loc": { - "start": { - "line": 263, - "column": 80 - }, - "end": { - "line": 263, - "column": 81 - } - } - }, - { - "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": 9327, - "end": 9332, - "loc": { - "start": { - "line": 264, - "column": 2 - }, - "end": { - "line": 264, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 9333, - "end": 9339, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9340, - "end": 9341, - "loc": { - "start": { - "line": 264, - "column": 15 - }, - "end": { - "line": 264, - "column": 16 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 9342, - "end": 9350, - "loc": { - "start": { - "line": 264, - "column": 17 - }, - "end": { - "line": 264, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9350, - "end": 9351, - "loc": { - "start": { - "line": 264, - "column": 25 - }, - "end": { - "line": 264, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9351, - "end": 9352, - "loc": { - "start": { - "line": 264, - "column": 26 - }, - "end": { - "line": 264, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9353, - "end": 9354, - "loc": { - "start": { - "line": 264, - "column": 28 - }, - "end": { - "line": 264, - "column": 29 - } - } - }, - { - "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": 9359, - "end": 9362, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 265, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9363, - "end": 9365, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9366, - "end": 9367, - "loc": { - "start": { - "line": 265, - "column": 10 - }, - "end": { - "line": 265, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 9368, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 12 - }, - "end": { - "line": 265, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9370, - "end": 9371, - "loc": { - "start": { - "line": 265, - "column": 14 - }, - "end": { - "line": 265, - "column": 15 - } - } - }, - { - "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": 9376, - "end": 9379, - "loc": { - "start": { - "line": 266, - "column": 3 - }, - "end": { - "line": 266, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9380, - "end": 9381, - "loc": { - "start": { - "line": 266, - "column": 7 - }, - "end": { - "line": 266, - "column": 8 - } - } - }, - { - "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": 9381, - "end": 9384, - "loc": { - "start": { - "line": 266, - "column": 8 - }, - "end": { - "line": 266, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 9385, - "end": 9386, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9387, - "end": 9388, - "loc": { - "start": { - "line": 266, - "column": 14 - }, - "end": { - "line": 266, - "column": 15 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 9389, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9390, - "end": 9391, - "loc": { - "start": { - "line": 266, - "column": 17 - }, - "end": { - "line": 266, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 9392, - "end": 9393, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 20 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 9394, - "end": 9395, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 266, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIDLength", - "start": 9396, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9405, - "end": 9406, - "loc": { - "start": { - "line": 266, - "column": 32 - }, - "end": { - "line": 266, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 9407, - "end": 9408, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 35 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 9408, - "end": 9410, - "loc": { - "start": { - "line": 266, - "column": 35 - }, - "end": { - "line": 266, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9410, - "end": 9411, - "loc": { - "start": { - "line": 266, - "column": 37 - }, - "end": { - "line": 266, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9412, - "end": 9413, - "loc": { - "start": { - "line": 266, - "column": 39 - }, - "end": { - "line": 266, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9419, - "end": 9421, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 6 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 9422, - "end": 9424, - "loc": { - "start": { - "line": 267, - "column": 7 - }, - "end": { - "line": 267, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 9425, - "end": 9430, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9430, - "end": 9431, - "loc": { - "start": { - "line": 267, - "column": 15 - }, - "end": { - "line": 267, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "charAt", - "start": 9431, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 16 - }, - "end": { - "line": 267, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9437, - "end": 9438, - "loc": { - "start": { - "line": 267, - "column": 22 - }, - "end": { - "line": 267, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9438, - "end": 9442, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9442, - "end": 9443, - "loc": { - "start": { - "line": 267, - "column": 27 - }, - "end": { - "line": 267, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 9443, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 28 - }, - "end": { - "line": 267, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9448, - "end": 9449, - "loc": { - "start": { - "line": 267, - "column": 33 - }, - "end": { - "line": 267, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9449, - "end": 9453, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9453, - "end": 9454, - "loc": { - "start": { - "line": 267, - "column": 38 - }, - "end": { - "line": 267, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 9454, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 39 - }, - "end": { - "line": 267, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9460, - "end": 9461, - "loc": { - "start": { - "line": 267, - "column": 45 - }, - "end": { - "line": 267, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9461, - "end": 9462, - "loc": { - "start": { - "line": 267, - "column": 46 - }, - "end": { - "line": 267, - "column": 47 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 9463, - "end": 9464, - "loc": { - "start": { - "line": 267, - "column": 48 - }, - "end": { - "line": 267, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 9465, - "end": 9470, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 55 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9470, - "end": 9471, - "loc": { - "start": { - "line": 267, - "column": 55 - }, - "end": { - "line": 267, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 9471, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 56 - }, - "end": { - "line": 267, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9477, - "end": 9478, - "loc": { - "start": { - "line": 267, - "column": 62 - }, - "end": { - "line": 267, - "column": 63 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9478, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 63 - }, - "end": { - "line": 267, - "column": 64 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9479, - "end": 9480, - "loc": { - "start": { - "line": 267, - "column": 64 - }, - "end": { - "line": 267, - "column": 65 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9485, - "end": 9486, - "loc": { - "start": { - "line": 268, - "column": 3 - }, - "end": { - "line": 268, - "column": 4 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9491, - "end": 9497, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 269, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9498, - "end": 9500, - "loc": { - "start": { - "line": 269, - "column": 10 - }, - "end": { - "line": 269, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9500, - "end": 9501, - "loc": { - "start": { - "line": 269, - "column": 12 - }, - "end": { - "line": 269, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9505, - "end": 9506, - "loc": { - "start": { - "line": 270, - "column": 2 - }, - "end": { - "line": 270, - "column": 3 - } - } - }, - { - "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": 9510, - "end": 9513, - "loc": { - "start": { - "line": 271, - "column": 2 - }, - "end": { - "line": 271, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9514, - "end": 9516, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9517, - "end": 9518, - "loc": { - "start": { - "line": 271, - "column": 9 - }, - "end": { - "line": 271, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 9519, - "end": 9525, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9525, - "end": 9526, - "loc": { - "start": { - "line": 271, - "column": 17 - }, - "end": { - "line": 271, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9526, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 18 - }, - "end": { - "line": 271, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9527, - "end": 9528, - "loc": { - "start": { - "line": 271, - "column": 19 - }, - "end": { - "line": 271, - "column": 20 - } - } - }, - { - "type": { - "label": "while", - "keyword": "while", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "while", - "start": 9532, - "end": 9537, - "loc": { - "start": { - "line": 272, - "column": 2 - }, - "end": { - "line": 272, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9537, - "end": 9538, - "loc": { - "start": { - "line": 272, - "column": 7 - }, - "end": { - "line": 272, - "column": 8 - } - } - }, - { - "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": 9538, - "end": 9542, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9542, - "end": 9543, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 9543, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 13 - }, - "end": { - "line": 272, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9552, - "end": 9553, - "loc": { - "start": { - "line": 272, - "column": 22 - }, - "end": { - "line": 272, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 9553, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 23 - }, - "end": { - "line": 272, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9561, - "end": 9562, - "loc": { - "start": { - "line": 272, - "column": 31 - }, - "end": { - "line": 272, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9562, - "end": 9564, - "loc": { - "start": { - "line": 272, - "column": 32 - }, - "end": { - "line": 272, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9564, - "end": 9565, - "loc": { - "start": { - "line": 272, - "column": 34 - }, - "end": { - "line": 272, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9565, - "end": 9566, - "loc": { - "start": { - "line": 272, - "column": 35 - }, - "end": { - "line": 272, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9567, - "end": 9568, - "loc": { - "start": { - "line": 272, - "column": 37 - }, - "end": { - "line": 272, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9573, - "end": 9575, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9576, - "end": 9577, - "loc": { - "start": { - "line": 273, - "column": 6 - }, - "end": { - "line": 273, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 9578, - "end": 9584, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9584, - "end": 9585, - "loc": { - "start": { - "line": 273, - "column": 14 - }, - "end": { - "line": 273, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9585, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 15 - }, - "end": { - "line": 273, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9586, - "end": 9587, - "loc": { - "start": { - "line": 273, - "column": 16 - }, - "end": { - "line": 273, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9591, - "end": 9592, - "loc": { - "start": { - "line": 274, - "column": 2 - }, - "end": { - "line": 274, - "column": 3 - } - } - }, - { - "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": 9596, - "end": 9600, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9600, - "end": 9601, - "loc": { - "start": { - "line": 275, - "column": 6 - }, - "end": { - "line": 275, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 9601, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 7 - }, - "end": { - "line": 275, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9610, - "end": 9611, - "loc": { - "start": { - "line": 275, - "column": 16 - }, - "end": { - "line": 275, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 9611, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 17 - }, - "end": { - "line": 275, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9615, - "end": 9616, - "loc": { - "start": { - "line": 275, - "column": 21 - }, - "end": { - "line": 275, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9616, - "end": 9618, - "loc": { - "start": { - "line": 275, - "column": 22 - }, - "end": { - "line": 275, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9618, - "end": 9619, - "loc": { - "start": { - "line": 275, - "column": 24 - }, - "end": { - "line": 275, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9619, - "end": 9620, - "loc": { - "start": { - "line": 275, - "column": 25 - }, - "end": { - "line": 275, - "column": 26 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9624, - "end": 9630, - "loc": { - "start": { - "line": 276, - "column": 2 - }, - "end": { - "line": 276, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9631, - "end": 9633, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9633, - "end": 9634, - "loc": { - "start": { - "line": 276, - "column": 11 - }, - "end": { - "line": 276, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9637, - "end": 9638, - "loc": { - "start": { - "line": 277, - "column": 1 - }, - "end": { - "line": 277, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalToHex", - "start": 9897, - "end": 9909, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 285, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9909, - "end": 9910, - "loc": { - "start": { - "line": 285, - "column": 13 - }, - "end": { - "line": 285, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDecimal", - "start": 9910, - "end": 9918, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9918, - "end": 9919, - "loc": { - "start": { - "line": 285, - "column": 22 - }, - "end": { - "line": 285, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 9920, - "end": 9926, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9927, - "end": 9928, - "loc": { - "start": { - "line": 285, - "column": 31 - }, - "end": { - "line": 285, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 6, - "start": 9929, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 285, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9930, - "end": 9931, - "loc": { - "start": { - "line": 285, - "column": 34 - }, - "end": { - "line": 285, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9932, - "end": 9933, - "loc": { - "start": { - "line": 285, - "column": 36 - }, - "end": { - "line": 285, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9937, - "end": 9943, - "loc": { - "start": { - "line": 286, - "column": 2 - }, - "end": { - "line": 286, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 9944, - "end": 9947, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 12 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 9948, - "end": 9949, - "loc": { - "start": { - "line": 286, - "column": 13 - }, - "end": { - "line": 286, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9950, - "end": 9951, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDecimal", - "start": 9951, - "end": 9959, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 9960, - "end": 9961, - "loc": { - "start": { - "line": 286, - "column": 25 - }, - "end": { - "line": 286, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9962, - "end": 9966, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9966, - "end": 9967, - "loc": { - "start": { - "line": 286, - "column": 31 - }, - "end": { - "line": 286, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pow", - "start": 9967, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 32 - }, - "end": { - "line": 286, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9970, - "end": 9971, - "loc": { - "start": { - "line": 286, - "column": 35 - }, - "end": { - "line": 286, - "column": 36 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 9971, - "end": 9973, - "loc": { - "start": { - "line": 286, - "column": 36 - }, - "end": { - "line": 286, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9973, - "end": 9974, - "loc": { - "start": { - "line": 286, - "column": 38 - }, - "end": { - "line": 286, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 9975, - "end": 9981, - "loc": { - "start": { - "line": 286, - "column": 40 - }, - "end": { - "line": 286, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9981, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 46 - }, - "end": { - "line": 286, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9982, - "end": 9983, - "loc": { - "start": { - "line": 286, - "column": 47 - }, - "end": { - "line": 286, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9983, - "end": 9984, - "loc": { - "start": { - "line": 286, - "column": 48 - }, - "end": { - "line": 286, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 9984, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 49 - }, - "end": { - "line": 286, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9992, - "end": 9993, - "loc": { - "start": { - "line": 286, - "column": 57 - }, - "end": { - "line": 286, - "column": 58 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 9993, - "end": 9995, - "loc": { - "start": { - "line": 286, - "column": 58 - }, - "end": { - "line": 286, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9995, - "end": 9996, - "loc": { - "start": { - "line": 286, - "column": 60 - }, - "end": { - "line": 286, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9996, - "end": 9997, - "loc": { - "start": { - "line": 286, - "column": 61 - }, - "end": { - "line": 286, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "slice", - "start": 9997, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 62 - }, - "end": { - "line": 286, - "column": 67 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10002, - "end": 10003, - "loc": { - "start": { - "line": 286, - "column": 67 - }, - "end": { - "line": 286, - "column": 68 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 10003, - "end": 10004, - "loc": { - "start": { - "line": 286, - "column": 68 - }, - "end": { - "line": 286, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 10004, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 69 - }, - "end": { - "line": 286, - "column": 75 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10010, - "end": 10011, - "loc": { - "start": { - "line": 286, - "column": 75 - }, - "end": { - "line": 286, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10011, - "end": 10012, - "loc": { - "start": { - "line": 286, - "column": 76 - }, - "end": { - "line": 286, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toUpperCase", - "start": 10012, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 77 - }, - "end": { - "line": 286, - "column": 88 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10023, - "end": 10024, - "loc": { - "start": { - "line": 286, - "column": 88 - }, - "end": { - "line": 286, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10024, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 89 - }, - "end": { - "line": 286, - "column": 90 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10025, - "end": 10026, - "loc": { - "start": { - "line": 286, - "column": 90 - }, - "end": { - "line": 286, - "column": 91 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10029, - "end": 10030, - "loc": { - "start": { - "line": 287, - "column": 1 - }, - "end": { - "line": 287, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "addIntensity", - "start": 10288, - "end": 10300, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 295, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10300, - "end": 10301, - "loc": { - "start": { - "line": 295, - "column": 13 - }, - "end": { - "line": 295, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 10301, - "end": 10307, - "loc": { - "start": { - "line": 295, - "column": 14 - }, - "end": { - "line": 295, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10307, - "end": 10308, - "loc": { - "start": { - "line": 295, - "column": 20 - }, - "end": { - "line": 295, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 10309, - "end": 10317, - "loc": { - "start": { - "line": 295, - "column": 22 - }, - "end": { - "line": 295, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10317, - "end": 10318, - "loc": { - "start": { - "line": 295, - "column": 30 - }, - "end": { - "line": 295, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10319, - "end": 10320, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 295, - "column": 33 - } - } - }, - { - "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": 10324, - "end": 10329, - "loc": { - "start": { - "line": 296, - "column": 2 - }, - "end": { - "line": 296, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 10330, - "end": 10333, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10334, - "end": 10335, - "loc": { - "start": { - "line": 296, - "column": 12 - }, - "end": { - "line": 296, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 10336, - "end": 10340, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10340, - "end": 10341, - "loc": { - "start": { - "line": 296, - "column": 18 - }, - "end": { - "line": 296, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 10341, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 19 - }, - "end": { - "line": 296, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10350, - "end": 10351, - "loc": { - "start": { - "line": 296, - "column": 28 - }, - "end": { - "line": 296, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 10351, - "end": 10357, - "loc": { - "start": { - "line": 296, - "column": 29 - }, - "end": { - "line": 296, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10357, - "end": 10358, - "loc": { - "start": { - "line": 296, - "column": 35 - }, - "end": { - "line": 296, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10358, - "end": 10359, - "loc": { - "start": { - "line": 296, - "column": 36 - }, - "end": { - "line": 296, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 10359, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 37 - }, - "end": { - "line": 296, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10367, - "end": 10368, - "loc": { - "start": { - "line": 296, - "column": 45 - }, - "end": { - "line": 296, - "column": 46 - } - } - }, - { - "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": 10372, - "end": 10377, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 297, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 10378, - "end": 10379, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10380, - "end": 10381, - "loc": { - "start": { - "line": 297, - "column": 10 - }, - "end": { - "line": 297, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 10382, - "end": 10385, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10385, - "end": 10386, - "loc": { - "start": { - "line": 297, - "column": 15 - }, - "end": { - "line": 297, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10386, - "end": 10387, - "loc": { - "start": { - "line": 297, - "column": 16 - }, - "end": { - "line": 297, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10387, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 17 - }, - "end": { - "line": 297, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10388, - "end": 10389, - "loc": { - "start": { - "line": 297, - "column": 18 - }, - "end": { - "line": 297, - "column": 19 - } - } - }, - { - "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": 10393, - "end": 10398, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 298, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 10399, - "end": 10400, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10401, - "end": 10402, - "loc": { - "start": { - "line": 298, - "column": 10 - }, - "end": { - "line": 298, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 10403, - "end": 10406, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10406, - "end": 10407, - "loc": { - "start": { - "line": 298, - "column": 15 - }, - "end": { - "line": 298, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 10407, - "end": 10408, - "loc": { - "start": { - "line": 298, - "column": 16 - }, - "end": { - "line": 298, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10408, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 17 - }, - "end": { - "line": 298, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10409, - "end": 10410, - "loc": { - "start": { - "line": 298, - "column": 18 - }, - "end": { - "line": 298, - "column": 19 - } - } - }, - { - "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": 10414, - "end": 10419, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 299, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 10420, - "end": 10421, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10422, - "end": 10423, - "loc": { - "start": { - "line": 299, - "column": 10 - }, - "end": { - "line": 299, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 10424, - "end": 10427, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10427, - "end": 10428, - "loc": { - "start": { - "line": 299, - "column": 15 - }, - "end": { - "line": 299, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 10428, - "end": 10429, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10429, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 17 - }, - "end": { - "line": 299, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10430, - "end": 10431, - "loc": { - "start": { - "line": 299, - "column": 18 - }, - "end": { - "line": 299, - "column": 19 - } - } - }, - { - "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": 10435, - "end": 10438, - "loc": { - "start": { - "line": 300, - "column": 2 - }, - "end": { - "line": 300, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 10439, - "end": 10441, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10442, - "end": 10443, - "loc": { - "start": { - "line": 300, - "column": 9 - }, - "end": { - "line": 300, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10444, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 11 - }, - "end": { - "line": 300, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10445, - "end": 10446, - "loc": { - "start": { - "line": 300, - "column": 12 - }, - "end": { - "line": 300, - "column": 13 - } - } - }, - { - "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": 10450, - "end": 10453, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 10454, - "end": 10456, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10457, - "end": 10458, - "loc": { - "start": { - "line": 301, - "column": 9 - }, - "end": { - "line": 301, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10459, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 11 - }, - "end": { - "line": 301, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10460, - "end": 10461, - "loc": { - "start": { - "line": 301, - "column": 12 - }, - "end": { - "line": 301, - "column": 13 - } - } - }, - { - "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": 10465, - "end": 10468, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 10469, - "end": 10471, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10472, - "end": 10473, - "loc": { - "start": { - "line": 302, - "column": 9 - }, - "end": { - "line": 302, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10474, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 11 - }, - "end": { - "line": 302, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10475, - "end": 10476, - "loc": { - "start": { - "line": 302, - "column": 12 - }, - "end": { - "line": 302, - "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": 10480, - "end": 10485, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 10486, - "end": 10491, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10492, - "end": 10493, - "loc": { - "start": { - "line": 303, - "column": 14 - }, - "end": { - "line": 303, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10494, - "end": 10495, - "loc": { - "start": { - "line": 303, - "column": 16 - }, - "end": { - "line": 303, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 10495, - "end": 10496, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 18 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 10497, - "end": 10500, - "loc": { - "start": { - "line": 303, - "column": 19 - }, - "end": { - "line": 303, - "column": 22 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10501, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 10503, - "end": 10505, - "loc": { - "start": { - "line": 303, - "column": 25 - }, - "end": { - "line": 303, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 10506, - "end": 10507, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 29 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 10508, - "end": 10511, - "loc": { - "start": { - "line": 303, - "column": 30 - }, - "end": { - "line": 303, - "column": 33 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10512, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 34 - }, - "end": { - "line": 303, - "column": 35 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 10514, - "end": 10516, - "loc": { - "start": { - "line": 303, - "column": 36 - }, - "end": { - "line": 303, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 10517, - "end": 10518, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 40 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 10519, - "end": 10522, - "loc": { - "start": { - "line": 303, - "column": 41 - }, - "end": { - "line": 303, - "column": 44 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10523, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 45 - }, - "end": { - "line": 303, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10524, - "end": 10525, - "loc": { - "start": { - "line": 303, - "column": 46 - }, - "end": { - "line": 303, - "column": 47 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10526, - "end": 10527, - "loc": { - "start": { - "line": 303, - "column": 48 - }, - "end": { - "line": 303, - "column": 49 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 10528, - "end": 10532, - "loc": { - "start": { - "line": 303, - "column": 50 - }, - "end": { - "line": 303, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10533, - "end": 10534, - "loc": { - "start": { - "line": 303, - "column": 55 - }, - "end": { - "line": 303, - "column": 56 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 10535, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 57 - }, - "end": { - "line": 303, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10540, - "end": 10541, - "loc": { - "start": { - "line": 303, - "column": 62 - }, - "end": { - "line": 303, - "column": 63 - } - } - }, - { - "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": 10545, - "end": 10547, - "loc": { - "start": { - "line": 304, - "column": 2 - }, - "end": { - "line": 304, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10548, - "end": 10549, - "loc": { - "start": { - "line": 304, - "column": 5 - }, - "end": { - "line": 304, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 10549, - "end": 10550, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 10551, - "end": 10553, - "loc": { - "start": { - "line": 304, - "column": 8 - }, - "end": { - "line": 304, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 10554, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 11 - }, - "end": { - "line": 304, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10559, - "end": 10560, - "loc": { - "start": { - "line": 304, - "column": 16 - }, - "end": { - "line": 304, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 10561, - "end": 10563, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10564, - "end": 10565, - "loc": { - "start": { - "line": 304, - "column": 21 - }, - "end": { - "line": 304, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 10566, - "end": 10567, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 10568, - "end": 10569, - "loc": { - "start": { - "line": 304, - "column": 25 - }, - "end": { - "line": 304, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10570, - "end": 10574, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10574, - "end": 10575, - "loc": { - "start": { - "line": 304, - "column": 31 - }, - "end": { - "line": 304, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 10575, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 32 - }, - "end": { - "line": 304, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10580, - "end": 10581, - "loc": { - "start": { - "line": 304, - "column": 37 - }, - "end": { - "line": 304, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10581, - "end": 10582, - "loc": { - "start": { - "line": 304, - "column": 38 - }, - "end": { - "line": 304, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10582, - "end": 10585, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 10586, - "end": 10587, - "loc": { - "start": { - "line": 304, - "column": 43 - }, - "end": { - "line": 304, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 10588, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 45 - }, - "end": { - "line": 304, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10596, - "end": 10597, - "loc": { - "start": { - "line": 304, - "column": 53 - }, - "end": { - "line": 304, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10598, - "end": 10599, - "loc": { - "start": { - "line": 304, - "column": 55 - }, - "end": { - "line": 304, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 10600, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 57 - }, - "end": { - "line": 304, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10603, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 60 - }, - "end": { - "line": 304, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10604, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 61 - }, - "end": { - "line": 304, - "column": 62 - } - } - }, - { - "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": 10609, - "end": 10611, - "loc": { - "start": { - "line": 305, - "column": 2 - }, - "end": { - "line": 305, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10612, - "end": 10613, - "loc": { - "start": { - "line": 305, - "column": 5 - }, - "end": { - "line": 305, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 10613, - "end": 10614, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 10615, - "end": 10617, - "loc": { - "start": { - "line": 305, - "column": 8 - }, - "end": { - "line": 305, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 10618, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 11 - }, - "end": { - "line": 305, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10623, - "end": 10624, - "loc": { - "start": { - "line": 305, - "column": 16 - }, - "end": { - "line": 305, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 10625, - "end": 10627, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10628, - "end": 10629, - "loc": { - "start": { - "line": 305, - "column": 21 - }, - "end": { - "line": 305, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 10630, - "end": 10631, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 10632, - "end": 10633, - "loc": { - "start": { - "line": 305, - "column": 25 - }, - "end": { - "line": 305, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10634, - "end": 10638, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10638, - "end": 10639, - "loc": { - "start": { - "line": 305, - "column": 31 - }, - "end": { - "line": 305, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 10639, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 32 - }, - "end": { - "line": 305, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10644, - "end": 10645, - "loc": { - "start": { - "line": 305, - "column": 37 - }, - "end": { - "line": 305, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10645, - "end": 10646, - "loc": { - "start": { - "line": 305, - "column": 38 - }, - "end": { - "line": 305, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10646, - "end": 10649, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 10650, - "end": 10651, - "loc": { - "start": { - "line": 305, - "column": 43 - }, - "end": { - "line": 305, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 10652, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 45 - }, - "end": { - "line": 305, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10660, - "end": 10661, - "loc": { - "start": { - "line": 305, - "column": 53 - }, - "end": { - "line": 305, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10662, - "end": 10663, - "loc": { - "start": { - "line": 305, - "column": 55 - }, - "end": { - "line": 305, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 10664, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 57 - }, - "end": { - "line": 305, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10667, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 60 - }, - "end": { - "line": 305, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10668, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 61 - }, - "end": { - "line": 305, - "column": 62 - } - } - }, - { - "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": 10673, - "end": 10675, - "loc": { - "start": { - "line": 306, - "column": 2 - }, - "end": { - "line": 306, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10676, - "end": 10677, - "loc": { - "start": { - "line": 306, - "column": 5 - }, - "end": { - "line": 306, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 10677, - "end": 10678, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 10679, - "end": 10681, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 10682, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 11 - }, - "end": { - "line": 306, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10687, - "end": 10688, - "loc": { - "start": { - "line": 306, - "column": 16 - }, - "end": { - "line": 306, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 10689, - "end": 10691, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10692, - "end": 10693, - "loc": { - "start": { - "line": 306, - "column": 21 - }, - "end": { - "line": 306, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 10694, - "end": 10695, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 10696, - "end": 10697, - "loc": { - "start": { - "line": 306, - "column": 25 - }, - "end": { - "line": 306, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10698, - "end": 10702, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10702, - "end": 10703, - "loc": { - "start": { - "line": 306, - "column": 31 - }, - "end": { - "line": 306, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 10703, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 32 - }, - "end": { - "line": 306, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10708, - "end": 10709, - "loc": { - "start": { - "line": 306, - "column": 37 - }, - "end": { - "line": 306, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10709, - "end": 10710, - "loc": { - "start": { - "line": 306, - "column": 38 - }, - "end": { - "line": 306, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10710, - "end": 10713, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 10714, - "end": 10715, - "loc": { - "start": { - "line": 306, - "column": 43 - }, - "end": { - "line": 306, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 10716, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 45 - }, - "end": { - "line": 306, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10724, - "end": 10725, - "loc": { - "start": { - "line": 306, - "column": 53 - }, - "end": { - "line": 306, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10726, - "end": 10727, - "loc": { - "start": { - "line": 306, - "column": 55 - }, - "end": { - "line": 306, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 10728, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 57 - }, - "end": { - "line": 306, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10731, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 60 - }, - "end": { - "line": 306, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10732, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 61 - }, - "end": { - "line": 306, - "column": 62 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 10737, - "end": 10743, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 307, - "column": 8 - } - } - }, - { - "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": 10744, - "end": 10748, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10748, - "end": 10749, - "loc": { - "start": { - "line": 307, - "column": 13 - }, - "end": { - "line": 307, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 10749, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10758, - "end": 10759, - "loc": { - "start": { - "line": 307, - "column": 23 - }, - "end": { - "line": 307, - "column": 24 - } - } - }, - { - "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": 10759, - "end": 10763, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10763, - "end": 10764, - "loc": { - "start": { - "line": 307, - "column": 28 - }, - "end": { - "line": 307, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 10764, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 29 - }, - "end": { - "line": 307, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10769, - "end": 10770, - "loc": { - "start": { - "line": 307, - "column": 34 - }, - "end": { - "line": 307, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 10770, - "end": 10772, - "loc": { - "start": { - "line": 307, - "column": 35 - }, - "end": { - "line": 307, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10772, - "end": 10773, - "loc": { - "start": { - "line": 307, - "column": 37 - }, - "end": { - "line": 307, - "column": 38 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10774, - "end": 10775, - "loc": { - "start": { - "line": 307, - "column": 39 - }, - "end": { - "line": 307, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10775, - "end": 10776, - "loc": { - "start": { - "line": 307, - "column": 40 - }, - "end": { - "line": 307, - "column": 41 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10777, - "end": 10780, - "loc": { - "start": { - "line": 307, - "column": 42 - }, - "end": { - "line": 307, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10780, - "end": 10781, - "loc": { - "start": { - "line": 307, - "column": 45 - }, - "end": { - "line": 307, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10781, - "end": 10782, - "loc": { - "start": { - "line": 307, - "column": 46 - }, - "end": { - "line": 307, - "column": 47 - } - } - }, - { - "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": 10783, - "end": 10787, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10787, - "end": 10788, - "loc": { - "start": { - "line": 307, - "column": 52 - }, - "end": { - "line": 307, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 10788, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 53 - }, - "end": { - "line": 307, - "column": 58 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10793, - "end": 10794, - "loc": { - "start": { - "line": 307, - "column": 58 - }, - "end": { - "line": 307, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 10794, - "end": 10796, - "loc": { - "start": { - "line": 307, - "column": 59 - }, - "end": { - "line": 307, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10796, - "end": 10797, - "loc": { - "start": { - "line": 307, - "column": 61 - }, - "end": { - "line": 307, - "column": 62 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10798, - "end": 10799, - "loc": { - "start": { - "line": 307, - "column": 63 - }, - "end": { - "line": 307, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10799, - "end": 10800, - "loc": { - "start": { - "line": 307, - "column": 64 - }, - "end": { - "line": 307, - "column": 65 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10801, - "end": 10804, - "loc": { - "start": { - "line": 307, - "column": 66 - }, - "end": { - "line": 307, - "column": 69 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10804, - "end": 10805, - "loc": { - "start": { - "line": 307, - "column": 69 - }, - "end": { - "line": 307, - "column": 70 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10805, - "end": 10806, - "loc": { - "start": { - "line": 307, - "column": 70 - }, - "end": { - "line": 307, - "column": 71 - } - } - }, - { - "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": 10807, - "end": 10811, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10811, - "end": 10812, - "loc": { - "start": { - "line": 307, - "column": 76 - }, - "end": { - "line": 307, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 10812, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 77 - }, - "end": { - "line": 307, - "column": 82 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10817, - "end": 10818, - "loc": { - "start": { - "line": 307, - "column": 82 - }, - "end": { - "line": 307, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 10818, - "end": 10820, - "loc": { - "start": { - "line": 307, - "column": 83 - }, - "end": { - "line": 307, - "column": 85 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10820, - "end": 10821, - "loc": { - "start": { - "line": 307, - "column": 85 - }, - "end": { - "line": 307, - "column": 86 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10822, - "end": 10823, - "loc": { - "start": { - "line": 307, - "column": 87 - }, - "end": { - "line": 307, - "column": 88 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10823, - "end": 10824, - "loc": { - "start": { - "line": 307, - "column": 88 - }, - "end": { - "line": 307, - "column": 89 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10825, - "end": 10828, - "loc": { - "start": { - "line": 307, - "column": 90 - }, - "end": { - "line": 307, - "column": 93 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10828, - "end": 10829, - "loc": { - "start": { - "line": 307, - "column": 93 - }, - "end": { - "line": 307, - "column": 94 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10829, - "end": 10830, - "loc": { - "start": { - "line": 307, - "column": 94 - }, - "end": { - "line": 307, - "column": 95 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10830, - "end": 10831, - "loc": { - "start": { - "line": 307, - "column": 95 - }, - "end": { - "line": 307, - "column": 96 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 10831, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 96 - }, - "end": { - "line": 307, - "column": 99 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10837, - "end": 10838, - "loc": { - "start": { - "line": 308, - "column": 1 - }, - "end": { - "line": 308, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToHex", - "start": 11152, - "end": 11160, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 316, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11160, - "end": 11161, - "loc": { - "start": { - "line": 316, - "column": 9 - }, - "end": { - "line": 316, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 11161, - "end": 11163, - "loc": { - "start": { - "line": 316, - "column": 10 - }, - "end": { - "line": 316, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11163, - "end": 11164, - "loc": { - "start": { - "line": 316, - "column": 12 - }, - "end": { - "line": 316, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 11165, - "end": 11167, - "loc": { - "start": { - "line": 316, - "column": 14 - }, - "end": { - "line": 316, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11167, - "end": 11168, - "loc": { - "start": { - "line": 316, - "column": 16 - }, - "end": { - "line": 316, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 11169, - "end": 11171, - "loc": { - "start": { - "line": 316, - "column": 18 - }, - "end": { - "line": 316, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11171, - "end": 11172, - "loc": { - "start": { - "line": 316, - "column": 20 - }, - "end": { - "line": 316, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11173, - "end": 11174, - "loc": { - "start": { - "line": 316, - "column": 22 - }, - "end": { - "line": 316, - "column": 23 - } - } - }, - { - "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": 11178, - "end": 11183, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 317, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 11184, - "end": 11185, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11186, - "end": 11187, - "loc": { - "start": { - "line": 317, - "column": 10 - }, - "end": { - "line": 317, - "column": 11 - } - } - }, - { - "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": 11188, - "end": 11192, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11192, - "end": 11193, - "loc": { - "start": { - "line": 317, - "column": 16 - }, - "end": { - "line": 317, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11193, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 17 - }, - "end": { - "line": 317, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11198, - "end": 11199, - "loc": { - "start": { - "line": 317, - "column": 22 - }, - "end": { - "line": 317, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 11199, - "end": 11201, - "loc": { - "start": { - "line": 317, - "column": 23 - }, - "end": { - "line": 317, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11201, - "end": 11202, - "loc": { - "start": { - "line": 317, - "column": 25 - }, - "end": { - "line": 317, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11203, - "end": 11204, - "loc": { - "start": { - "line": 317, - "column": 27 - }, - "end": { - "line": 317, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11204, - "end": 11205, - "loc": { - "start": { - "line": 317, - "column": 28 - }, - "end": { - "line": 317, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 11206, - "end": 11209, - "loc": { - "start": { - "line": 317, - "column": 30 - }, - "end": { - "line": 317, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11209, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 33 - }, - "end": { - "line": 317, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11210, - "end": 11211, - "loc": { - "start": { - "line": 317, - "column": 34 - }, - "end": { - "line": 317, - "column": 35 - } - } - }, - { - "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": 11215, - "end": 11220, - "loc": { - "start": { - "line": 318, - "column": 2 - }, - "end": { - "line": 318, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 11221, - "end": 11222, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11223, - "end": 11224, - "loc": { - "start": { - "line": 318, - "column": 10 - }, - "end": { - "line": 318, - "column": 11 - } - } - }, - { - "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": 11225, - "end": 11229, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11229, - "end": 11230, - "loc": { - "start": { - "line": 318, - "column": 16 - }, - "end": { - "line": 318, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11230, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 17 - }, - "end": { - "line": 318, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11235, - "end": 11236, - "loc": { - "start": { - "line": 318, - "column": 22 - }, - "end": { - "line": 318, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 11236, - "end": 11238, - "loc": { - "start": { - "line": 318, - "column": 23 - }, - "end": { - "line": 318, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11238, - "end": 11239, - "loc": { - "start": { - "line": 318, - "column": 25 - }, - "end": { - "line": 318, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11240, - "end": 11241, - "loc": { - "start": { - "line": 318, - "column": 27 - }, - "end": { - "line": 318, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11241, - "end": 11242, - "loc": { - "start": { - "line": 318, - "column": 28 - }, - "end": { - "line": 318, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 11243, - "end": 11246, - "loc": { - "start": { - "line": 318, - "column": 30 - }, - "end": { - "line": 318, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11246, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 33 - }, - "end": { - "line": 318, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11247, - "end": 11248, - "loc": { - "start": { - "line": 318, - "column": 34 - }, - "end": { - "line": 318, - "column": 35 - } - } - }, - { - "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": 11252, - "end": 11257, - "loc": { - "start": { - "line": 319, - "column": 2 - }, - "end": { - "line": 319, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 11258, - "end": 11259, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11260, - "end": 11261, - "loc": { - "start": { - "line": 319, - "column": 10 - }, - "end": { - "line": 319, - "column": 11 - } - } - }, - { - "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": 11262, - "end": 11266, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11266, - "end": 11267, - "loc": { - "start": { - "line": 319, - "column": 16 - }, - "end": { - "line": 319, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11267, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 17 - }, - "end": { - "line": 319, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11272, - "end": 11273, - "loc": { - "start": { - "line": 319, - "column": 22 - }, - "end": { - "line": 319, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 11273, - "end": 11275, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11275, - "end": 11276, - "loc": { - "start": { - "line": 319, - "column": 25 - }, - "end": { - "line": 319, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11277, - "end": 11278, - "loc": { - "start": { - "line": 319, - "column": 27 - }, - "end": { - "line": 319, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11278, - "end": 11279, - "loc": { - "start": { - "line": 319, - "column": 28 - }, - "end": { - "line": 319, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 11280, - "end": 11283, - "loc": { - "start": { - "line": 319, - "column": 30 - }, - "end": { - "line": 319, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11283, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 33 - }, - "end": { - "line": 319, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11284, - "end": 11285, - "loc": { - "start": { - "line": 319, - "column": 34 - }, - "end": { - "line": 319, - "column": 35 - } - } - }, - { - "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": 11289, - "end": 11294, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 320, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "craftString", - "start": 11295, - "end": 11306, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11307, - "end": 11308, - "loc": { - "start": { - "line": 320, - "column": 20 - }, - "end": { - "line": 320, - "column": 21 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 11309, - "end": 11317, - "loc": { - "start": { - "line": 320, - "column": 22 - }, - "end": { - "line": 320, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11317, - "end": 11318, - "loc": { - "start": { - "line": 320, - "column": 30 - }, - "end": { - "line": 320, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 11318, - "end": 11324, - "loc": { - "start": { - "line": 320, - "column": 31 - }, - "end": { - "line": 320, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11324, - "end": 11325, - "loc": { - "start": { - "line": 320, - "column": 37 - }, - "end": { - "line": 320, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11326, - "end": 11327, - "loc": { - "start": { - "line": 320, - "column": 39 - }, - "end": { - "line": 320, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 11332, - "end": 11338, - "loc": { - "start": { - "line": 321, - "column": 3 - }, - "end": { - "line": 321, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 11339, - "end": 11345, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11345, - "end": 11346, - "loc": { - "start": { - "line": 321, - "column": 16 - }, - "end": { - "line": 321, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 11346, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 17 - }, - "end": { - "line": 321, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11354, - "end": 11355, - "loc": { - "start": { - "line": 321, - "column": 25 - }, - "end": { - "line": 321, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 11355, - "end": 11357, - "loc": { - "start": { - "line": 321, - "column": 26 - }, - "end": { - "line": 321, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11357, - "end": 11358, - "loc": { - "start": { - "line": 321, - "column": 28 - }, - "end": { - "line": 321, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11358, - "end": 11359, - "loc": { - "start": { - "line": 321, - "column": 29 - }, - "end": { - "line": 321, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "padStart", - "start": 11359, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 30 - }, - "end": { - "line": 321, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11367, - "end": 11368, - "loc": { - "start": { - "line": 321, - "column": 38 - }, - "end": { - "line": 321, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 11368, - "end": 11369, - "loc": { - "start": { - "line": 321, - "column": 39 - }, - "end": { - "line": 321, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11369, - "end": 11370, - "loc": { - "start": { - "line": 321, - "column": 40 - }, - "end": { - "line": 321, - "column": 41 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "0", - "start": 11371, - "end": 11374, - "loc": { - "start": { - "line": 321, - "column": 42 - }, - "end": { - "line": 321, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11374, - "end": 11375, - "loc": { - "start": { - "line": 321, - "column": 45 - }, - "end": { - "line": 321, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11375, - "end": 11376, - "loc": { - "start": { - "line": 321, - "column": 46 - }, - "end": { - "line": 321, - "column": 47 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11380, - "end": 11381, - "loc": { - "start": { - "line": 322, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - } - }, - { - "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": 11385, - "end": 11390, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 323, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 11391, - "end": 11394, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11395, - "end": 11396, - "loc": { - "start": { - "line": 323, - "column": 12 - }, - "end": { - "line": 323, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 11397, - "end": 11400, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 17 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 11401, - "end": 11402, - "loc": { - "start": { - "line": 323, - "column": 18 - }, - "end": { - "line": 323, - "column": 19 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11403, - "end": 11404, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 11404, - "end": 11405, - "loc": { - "start": { - "line": 323, - "column": 21 - }, - "end": { - "line": 323, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11405, - "end": 11406, - "loc": { - "start": { - "line": 323, - "column": 22 - }, - "end": { - "line": 323, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 11407, - "end": 11408, - "loc": { - "start": { - "line": 323, - "column": 24 - }, - "end": { - "line": 323, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11408, - "end": 11409, - "loc": { - "start": { - "line": 323, - "column": 25 - }, - "end": { - "line": 323, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 11410, - "end": 11411, - "loc": { - "start": { - "line": 323, - "column": 27 - }, - "end": { - "line": 323, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11411, - "end": 11412, - "loc": { - "start": { - "line": 323, - "column": 28 - }, - "end": { - "line": 323, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11412, - "end": 11413, - "loc": { - "start": { - "line": 323, - "column": 29 - }, - "end": { - "line": 323, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 11413, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 30 - }, - "end": { - "line": 323, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11416, - "end": 11417, - "loc": { - "start": { - "line": 323, - "column": 33 - }, - "end": { - "line": 323, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "craftString", - "start": 11417, - "end": 11428, - "loc": { - "start": { - "line": 323, - "column": 34 - }, - "end": { - "line": 323, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11428, - "end": 11429, - "loc": { - "start": { - "line": 323, - "column": 45 - }, - "end": { - "line": 323, - "column": 46 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11429, - "end": 11430, - "loc": { - "start": { - "line": 323, - "column": 46 - }, - "end": { - "line": 323, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "join", - "start": 11430, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 47 - }, - "end": { - "line": 323, - "column": 51 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11434, - "end": 11435, - "loc": { - "start": { - "line": 323, - "column": 51 - }, - "end": { - "line": 323, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 11435, - "end": 11437, - "loc": { - "start": { - "line": 323, - "column": 52 - }, - "end": { - "line": 323, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11437, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 54 - }, - "end": { - "line": 323, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11438, - "end": 11439, - "loc": { - "start": { - "line": 323, - "column": 55 - }, - "end": { - "line": 323, - "column": 56 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 11443, - "end": 11449, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 324, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 11450, - "end": 11453, - "loc": { - "start": { - "line": 324, - "column": 9 - }, - "end": { - "line": 324, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11453, - "end": 11454, - "loc": { - "start": { - "line": 324, - "column": 12 - }, - "end": { - "line": 324, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11459, - "end": 11460, - "loc": { - "start": { - "line": 325, - "column": 1 - }, - "end": { - "line": 325, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToRgb", - "start": 11740, - "end": 11748, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 332, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11748, - "end": 11749, - "loc": { - "start": { - "line": 332, - "column": 9 - }, - "end": { - "line": 332, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11749, - "end": 11753, - "loc": { - "start": { - "line": 332, - "column": 10 - }, - "end": { - "line": 332, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11753, - "end": 11754, - "loc": { - "start": { - "line": 332, - "column": 14 - }, - "end": { - "line": 332, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11755, - "end": 11756, - "loc": { - "start": { - "line": 332, - "column": 16 - }, - "end": { - "line": 332, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11760, - "end": 11764, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11765, - "end": 11766, - "loc": { - "start": { - "line": 333, - "column": 7 - }, - "end": { - "line": 333, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11767, - "end": 11771, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11771, - "end": 11772, - "loc": { - "start": { - "line": 333, - "column": 13 - }, - "end": { - "line": 333, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 11772, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 14 - }, - "end": { - "line": 333, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11779, - "end": 11780, - "loc": { - "start": { - "line": 333, - "column": 21 - }, - "end": { - "line": 333, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 11780, - "end": 11783, - "loc": { - "start": { - "line": 333, - "column": 22 - }, - "end": { - "line": 333, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11783, - "end": 11784, - "loc": { - "start": { - "line": 333, - "column": 25 - }, - "end": { - "line": 333, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 11785, - "end": 11787, - "loc": { - "start": { - "line": 333, - "column": 27 - }, - "end": { - "line": 333, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11787, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 29 - }, - "end": { - "line": 333, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11788, - "end": 11789, - "loc": { - "start": { - "line": 333, - "column": 30 - }, - "end": { - "line": 333, - "column": 31 - } - } - }, - { - "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": 11793, - "end": 11795, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 334, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11796, - "end": 11797, - "loc": { - "start": { - "line": 334, - "column": 5 - }, - "end": { - "line": 334, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11797, - "end": 11801, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11801, - "end": 11802, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 11802, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 11 - }, - "end": { - "line": 334, - "column": 17 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 11809, - "end": 11812, - "loc": { - "start": { - "line": 334, - "column": 18 - }, - "end": { - "line": 334, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 11813, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 22 - }, - "end": { - "line": 334, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11814, - "end": 11815, - "loc": { - "start": { - "line": 334, - "column": 23 - }, - "end": { - "line": 334, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11816, - "end": 11817, - "loc": { - "start": { - "line": 334, - "column": 25 - }, - "end": { - "line": 334, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11822, - "end": 11826, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 7 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11827, - "end": 11828, - "loc": { - "start": { - "line": 335, - "column": 8 - }, - "end": { - "line": 335, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11829, - "end": 11833, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11833, - "end": 11834, - "loc": { - "start": { - "line": 335, - "column": 14 - }, - "end": { - "line": 335, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 11834, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 15 - }, - "end": { - "line": 335, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11841, - "end": 11842, - "loc": { - "start": { - "line": 335, - "column": 22 - }, - "end": { - "line": 335, - "column": 23 - } - } - }, - { - "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": 11842, - "end": 11845, - "loc": { - "start": { - "line": 335, - "column": 23 - }, - "end": { - "line": 335, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "RegExp", - "start": 11846, - "end": 11852, - "loc": { - "start": { - "line": 335, - "column": 27 - }, - "end": { - "line": 335, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11852, - "end": 11853, - "loc": { - "start": { - "line": 335, - "column": 33 - }, - "end": { - "line": 335, - "column": 34 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "(.)", - "start": 11853, - "end": 11858, - "loc": { - "start": { - "line": 335, - "column": 34 - }, - "end": { - "line": 335, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11858, - "end": 11859, - "loc": { - "start": { - "line": 335, - "column": 39 - }, - "end": { - "line": 335, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 11860, - "end": 11863, - "loc": { - "start": { - "line": 335, - "column": 41 - }, - "end": { - "line": 335, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11863, - "end": 11864, - "loc": { - "start": { - "line": 335, - "column": 44 - }, - "end": { - "line": 335, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11864, - "end": 11865, - "loc": { - "start": { - "line": 335, - "column": 45 - }, - "end": { - "line": 335, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "$1$1", - "start": 11866, - "end": 11872, - "loc": { - "start": { - "line": 335, - "column": 47 - }, - "end": { - "line": 335, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11872, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 53 - }, - "end": { - "line": 335, - "column": 54 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11873, - "end": 11874, - "loc": { - "start": { - "line": 335, - "column": 54 - }, - "end": { - "line": 335, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11878, - "end": 11879, - "loc": { - "start": { - "line": 336, - "column": 2 - }, - "end": { - "line": 336, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11883, - "end": 11887, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11888, - "end": 11889, - "loc": { - "start": { - "line": 337, - "column": 7 - }, - "end": { - "line": 337, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11890, - "end": 11894, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11894, - "end": 11895, - "loc": { - "start": { - "line": 337, - "column": 13 - }, - "end": { - "line": 337, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "match", - "start": 11895, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 14 - }, - "end": { - "line": 337, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11900, - "end": 11901, - "loc": { - "start": { - "line": 337, - "column": 19 - }, - "end": { - "line": 337, - "column": 20 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 11901, - "end": 11904, - "loc": { - "start": { - "line": 337, - "column": 20 - }, - "end": { - "line": 337, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "RegExp", - "start": 11905, - "end": 11911, - "loc": { - "start": { - "line": 337, - "column": 24 - }, - "end": { - "line": 337, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11911, - "end": 11912, - "loc": { - "start": { - "line": 337, - "column": 30 - }, - "end": { - "line": 337, - "column": 31 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "..", - "start": 11912, - "end": 11916, - "loc": { - "start": { - "line": 337, - "column": 31 - }, - "end": { - "line": 337, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11916, - "end": 11917, - "loc": { - "start": { - "line": 337, - "column": 35 - }, - "end": { - "line": 337, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 11918, - "end": 11921, - "loc": { - "start": { - "line": 337, - "column": 37 - }, - "end": { - "line": 337, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11921, - "end": 11922, - "loc": { - "start": { - "line": 337, - "column": 40 - }, - "end": { - "line": 337, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11922, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 41 - }, - "end": { - "line": 337, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11923, - "end": 11924, - "loc": { - "start": { - "line": 337, - "column": 42 - }, - "end": { - "line": 337, - "column": 43 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 11928, - "end": 11933, - "loc": { - "start": { - "line": 338, - "column": 2 - }, - "end": { - "line": 338, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 11934, - "end": 11935, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11936, - "end": 11937, - "loc": { - "start": { - "line": 338, - "column": 10 - }, - "end": { - "line": 338, - "column": 11 - } - } - }, - { - "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": 11938, - "end": 11942, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11942, - "end": 11943, - "loc": { - "start": { - "line": 338, - "column": 16 - }, - "end": { - "line": 338, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11943, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 17 - }, - "end": { - "line": 338, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11948, - "end": 11949, - "loc": { - "start": { - "line": 338, - "column": 22 - }, - "end": { - "line": 338, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11957, - "end": 11958, - "loc": { - "start": { - "line": 338, - "column": 31 - }, - "end": { - "line": 338, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11958, - "end": 11962, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11962, - "end": 11963, - "loc": { - "start": { - "line": 338, - "column": 36 - }, - "end": { - "line": 338, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11963, - "end": 11964, - "loc": { - "start": { - "line": 338, - "column": 37 - }, - "end": { - "line": 338, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11964, - "end": 11965, - "loc": { - "start": { - "line": 338, - "column": 38 - }, - "end": { - "line": 338, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11965, - "end": 11966, - "loc": { - "start": { - "line": 338, - "column": 39 - }, - "end": { - "line": 338, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 11967, - "end": 11969, - "loc": { - "start": { - "line": 338, - "column": 41 - }, - "end": { - "line": 338, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11969, - "end": 11970, - "loc": { - "start": { - "line": 338, - "column": 43 - }, - "end": { - "line": 338, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11970, - "end": 11971, - "loc": { - "start": { - "line": 338, - "column": 44 - }, - "end": { - "line": 338, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11972, - "end": 11973, - "loc": { - "start": { - "line": 338, - "column": 46 - }, - "end": { - "line": 338, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11973, - "end": 11974, - "loc": { - "start": { - "line": 338, - "column": 47 - }, - "end": { - "line": 338, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 11975, - "end": 11978, - "loc": { - "start": { - "line": 338, - "column": 49 - }, - "end": { - "line": 338, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11978, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 52 - }, - "end": { - "line": 338, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11979, - "end": 11980, - "loc": { - "start": { - "line": 338, - "column": 53 - }, - "end": { - "line": 338, - "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": 11984, - "end": 11989, - "loc": { - "start": { - "line": 339, - "column": 2 - }, - "end": { - "line": 339, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 11990, - "end": 11991, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11992, - "end": 11993, - "loc": { - "start": { - "line": 339, - "column": 10 - }, - "end": { - "line": 339, - "column": 11 - } - } - }, - { - "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": 11994, - "end": 11998, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11998, - "end": 11999, - "loc": { - "start": { - "line": 339, - "column": 16 - }, - "end": { - "line": 339, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11999, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 17 - }, - "end": { - "line": 339, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12004, - "end": 12005, - "loc": { - "start": { - "line": 339, - "column": 22 - }, - "end": { - "line": 339, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 12005, - "end": 12013, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12013, - "end": 12014, - "loc": { - "start": { - "line": 339, - "column": 31 - }, - "end": { - "line": 339, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12014, - "end": 12018, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12018, - "end": 12019, - "loc": { - "start": { - "line": 339, - "column": 36 - }, - "end": { - "line": 339, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 12019, - "end": 12020, - "loc": { - "start": { - "line": 339, - "column": 37 - }, - "end": { - "line": 339, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12020, - "end": 12021, - "loc": { - "start": { - "line": 339, - "column": 38 - }, - "end": { - "line": 339, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12021, - "end": 12022, - "loc": { - "start": { - "line": 339, - "column": 39 - }, - "end": { - "line": 339, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 12023, - "end": 12025, - "loc": { - "start": { - "line": 339, - "column": 41 - }, - "end": { - "line": 339, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12025, - "end": 12026, - "loc": { - "start": { - "line": 339, - "column": 43 - }, - "end": { - "line": 339, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12026, - "end": 12027, - "loc": { - "start": { - "line": 339, - "column": 44 - }, - "end": { - "line": 339, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 12028, - "end": 12029, - "loc": { - "start": { - "line": 339, - "column": 46 - }, - "end": { - "line": 339, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12029, - "end": 12030, - "loc": { - "start": { - "line": 339, - "column": 47 - }, - "end": { - "line": 339, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 12031, - "end": 12034, - "loc": { - "start": { - "line": 339, - "column": 49 - }, - "end": { - "line": 339, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12034, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 52 - }, - "end": { - "line": 339, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12035, - "end": 12036, - "loc": { - "start": { - "line": 339, - "column": 53 - }, - "end": { - "line": 339, - "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": 12040, - "end": 12045, - "loc": { - "start": { - "line": 340, - "column": 2 - }, - "end": { - "line": 340, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 12046, - "end": 12047, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 12048, - "end": 12049, - "loc": { - "start": { - "line": 340, - "column": 10 - }, - "end": { - "line": 340, - "column": 11 - } - } - }, - { - "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": 12050, - "end": 12054, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12054, - "end": 12055, - "loc": { - "start": { - "line": 340, - "column": 16 - }, - "end": { - "line": 340, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 12055, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 17 - }, - "end": { - "line": 340, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12060, - "end": 12061, - "loc": { - "start": { - "line": 340, - "column": 22 - }, - "end": { - "line": 340, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 12061, - "end": 12069, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12069, - "end": 12070, - "loc": { - "start": { - "line": 340, - "column": 31 - }, - "end": { - "line": 340, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12070, - "end": 12074, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12074, - "end": 12075, - "loc": { - "start": { - "line": 340, - "column": 36 - }, - "end": { - "line": 340, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 12075, - "end": 12076, - "loc": { - "start": { - "line": 340, - "column": 37 - }, - "end": { - "line": 340, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12076, - "end": 12077, - "loc": { - "start": { - "line": 340, - "column": 38 - }, - "end": { - "line": 340, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12077, - "end": 12078, - "loc": { - "start": { - "line": 340, - "column": 39 - }, - "end": { - "line": 340, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 12079, - "end": 12081, - "loc": { - "start": { - "line": 340, - "column": 41 - }, - "end": { - "line": 340, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12081, - "end": 12082, - "loc": { - "start": { - "line": 340, - "column": 43 - }, - "end": { - "line": 340, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12082, - "end": 12083, - "loc": { - "start": { - "line": 340, - "column": 44 - }, - "end": { - "line": 340, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 12084, - "end": 12085, - "loc": { - "start": { - "line": 340, - "column": 46 - }, - "end": { - "line": 340, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12085, - "end": 12086, - "loc": { - "start": { - "line": 340, - "column": 47 - }, - "end": { - "line": 340, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 12087, - "end": 12090, - "loc": { - "start": { - "line": 340, - "column": 49 - }, - "end": { - "line": 340, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12090, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 52 - }, - "end": { - "line": 340, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12091, - "end": 12092, - "loc": { - "start": { - "line": 340, - "column": 53 - }, - "end": { - "line": 340, - "column": 54 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12096, - "end": 12102, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 341, - "column": 8 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12103, - "end": 12104, - "loc": { - "start": { - "line": 341, - "column": 9 - }, - "end": { - "line": 341, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 12104, - "end": 12105, - "loc": { - "start": { - "line": 341, - "column": 10 - }, - "end": { - "line": 341, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12105, - "end": 12106, - "loc": { - "start": { - "line": 341, - "column": 11 - }, - "end": { - "line": 341, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 12107, - "end": 12108, - "loc": { - "start": { - "line": 341, - "column": 13 - }, - "end": { - "line": 341, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12108, - "end": 12109, - "loc": { - "start": { - "line": 341, - "column": 14 - }, - "end": { - "line": 341, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 12110, - "end": 12111, - "loc": { - "start": { - "line": 341, - "column": 16 - }, - "end": { - "line": 341, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12111, - "end": 12112, - "loc": { - "start": { - "line": 341, - "column": 17 - }, - "end": { - "line": 341, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12112, - "end": 12113, - "loc": { - "start": { - "line": 341, - "column": 18 - }, - "end": { - "line": 341, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12116, - "end": 12117, - "loc": { - "start": { - "line": 342, - "column": 1 - }, - "end": { - "line": 342, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToDecimal", - "start": 12419, - "end": 12431, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 350, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12431, - "end": 12432, - "loc": { - "start": { - "line": 350, - "column": 13 - }, - "end": { - "line": 350, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 12432, - "end": 12434, - "loc": { - "start": { - "line": 350, - "column": 14 - }, - "end": { - "line": 350, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12434, - "end": 12435, - "loc": { - "start": { - "line": 350, - "column": 16 - }, - "end": { - "line": 350, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 12436, - "end": 12438, - "loc": { - "start": { - "line": 350, - "column": 18 - }, - "end": { - "line": 350, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12438, - "end": 12439, - "loc": { - "start": { - "line": 350, - "column": 20 - }, - "end": { - "line": 350, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 12440, - "end": 12442, - "loc": { - "start": { - "line": 350, - "column": 22 - }, - "end": { - "line": 350, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12442, - "end": 12443, - "loc": { - "start": { - "line": 350, - "column": 24 - }, - "end": { - "line": 350, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12444, - "end": 12445, - "loc": { - "start": { - "line": 350, - "column": 26 - }, - "end": { - "line": 350, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12449, - "end": 12455, - "loc": { - "start": { - "line": 351, - "column": 2 - }, - "end": { - "line": 351, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12456, - "end": 12457, - "loc": { - "start": { - "line": 351, - "column": 9 - }, - "end": { - "line": 351, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 12457, - "end": 12459, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 12 - } - } - }, - { - "type": { - "label": "<>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 8, - "updateContext": null - }, - "value": "<<", - "start": 12460, - "end": 12462, - "loc": { - "start": { - "line": 351, - "column": 13 - }, - "end": { - "line": 351, - "column": 15 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 12463, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 18 - } - } - }, - { - "type": { - "label": "|", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 3, - "updateContext": null - }, - "value": "|", - "start": 12466, - "end": 12467, - "loc": { - "start": { - "line": 351, - "column": 19 - }, - "end": { - "line": 351, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 12468, - "end": 12470, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 23 - } - } - }, - { - "type": { - "label": "<>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 8, - "updateContext": null - }, - "value": "<<", - "start": 12471, - "end": 12473, - "loc": { - "start": { - "line": 351, - "column": 24 - }, - "end": { - "line": 351, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 8, - "start": 12474, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 27 - }, - "end": { - "line": 351, - "column": 28 - } - } - }, - { - "type": { - "label": "|", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 3, - "updateContext": null - }, - "value": "|", - "start": 12476, - "end": 12477, - "loc": { - "start": { - "line": 351, - "column": 29 - }, - "end": { - "line": 351, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 12478, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 31 - }, - "end": { - "line": 351, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12480, - "end": 12481, - "loc": { - "start": { - "line": 351, - "column": 33 - }, - "end": { - "line": 351, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12481, - "end": 12482, - "loc": { - "start": { - "line": 351, - "column": 34 - }, - "end": { - "line": 351, - "column": 35 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12485, - "end": 12486, - "loc": { - "start": { - "line": 352, - "column": 1 - }, - "end": { - "line": 352, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToDecimal", - "start": 12743, - "end": 12755, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 359, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12755, - "end": 12756, - "loc": { - "start": { - "line": 359, - "column": 13 - }, - "end": { - "line": 359, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12756, - "end": 12760, - "loc": { - "start": { - "line": 359, - "column": 14 - }, - "end": { - "line": 359, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12760, - "end": 12761, - "loc": { - "start": { - "line": 359, - "column": 18 - }, - "end": { - "line": 359, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12762, - "end": 12763, - "loc": { - "start": { - "line": 359, - "column": 20 - }, - "end": { - "line": 359, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12767, - "end": 12771, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 12772, - "end": 12773, - "loc": { - "start": { - "line": 360, - "column": 7 - }, - "end": { - "line": 360, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12774, - "end": 12778, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12778, - "end": 12779, - "loc": { - "start": { - "line": 360, - "column": 13 - }, - "end": { - "line": 360, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 12779, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 14 - }, - "end": { - "line": 360, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12786, - "end": 12787, - "loc": { - "start": { - "line": 360, - "column": 21 - }, - "end": { - "line": 360, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 12787, - "end": 12790, - "loc": { - "start": { - "line": 360, - "column": 22 - }, - "end": { - "line": 360, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12790, - "end": 12791, - "loc": { - "start": { - "line": 360, - "column": 25 - }, - "end": { - "line": 360, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 12792, - "end": 12794, - "loc": { - "start": { - "line": 360, - "column": 27 - }, - "end": { - "line": 360, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12794, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 29 - }, - "end": { - "line": 360, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12795, - "end": 12796, - "loc": { - "start": { - "line": 360, - "column": 30 - }, - "end": { - "line": 360, - "column": 31 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12800, - "end": 12806, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 361, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 12807, - "end": 12815, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12815, - "end": 12816, - "loc": { - "start": { - "line": 361, - "column": 17 - }, - "end": { - "line": 361, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12816, - "end": 12820, - "loc": { - "start": { - "line": 361, - "column": 18 - }, - "end": { - "line": 361, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12820, - "end": 12821, - "loc": { - "start": { - "line": 361, - "column": 22 - }, - "end": { - "line": 361, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 12822, - "end": 12824, - "loc": { - "start": { - "line": 361, - "column": 24 - }, - "end": { - "line": 361, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12824, - "end": 12825, - "loc": { - "start": { - "line": 361, - "column": 26 - }, - "end": { - "line": 361, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12825, - "end": 12826, - "loc": { - "start": { - "line": 361, - "column": 27 - }, - "end": { - "line": 361, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12829, - "end": 12830, - "loc": { - "start": { - "line": 362, - "column": 1 - }, - "end": { - "line": 362, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 13344, - "end": 13353, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 373, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13353, - "end": 13354, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13354, - "end": 13361, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13362, - "end": 13363, - "loc": { - "start": { - "line": 373, - "column": 19 - }, - "end": { - "line": 373, - "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": 13364, - "end": 13368, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13368, - "end": 13369, - "loc": { - "start": { - "line": 373, - "column": 25 - }, - "end": { - "line": 373, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColor", - "start": 13369, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 26 - }, - "end": { - "line": 373, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13383, - "end": 13384, - "loc": { - "start": { - "line": 373, - "column": 40 - }, - "end": { - "line": 373, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13384, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 41 - }, - "end": { - "line": 373, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13385, - "end": 13386, - "loc": { - "start": { - "line": 373, - "column": 42 - }, - "end": { - "line": 373, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 13387, - "end": 13389, - "loc": { - "start": { - "line": 373, - "column": 44 - }, - "end": { - "line": 373, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13389, - "end": 13390, - "loc": { - "start": { - "line": 373, - "column": 46 - }, - "end": { - "line": 373, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 13391, - "end": 13393, - "loc": { - "start": { - "line": 373, - "column": 48 - }, - "end": { - "line": 373, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13393, - "end": 13394, - "loc": { - "start": { - "line": 373, - "column": 50 - }, - "end": { - "line": 373, - "column": 51 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13395, - "end": 13396, - "loc": { - "start": { - "line": 373, - "column": 52 - }, - "end": { - "line": 373, - "column": 53 - } - } - }, - { - "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": 13400, - "end": 13403, - "loc": { - "start": { - "line": 374, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13407, - "end": 13408, - "loc": { - "start": { - "line": 374, - "column": 9 - }, - "end": { - "line": 374, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13412, - "end": 13413, - "loc": { - "start": { - "line": 374, - "column": 14 - }, - "end": { - "line": 374, - "column": 15 - } - } - }, - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "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": 13442, - "end": 13444, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 376, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13445, - "end": 13446, - "loc": { - "start": { - "line": 376, - "column": 5 - }, - "end": { - "line": 376, - "column": 6 - } - } - }, - { - "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": 13446, - "end": 13452, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13452, - "end": 13453, - "loc": { - "start": { - "line": 376, - "column": 12 - }, - "end": { - "line": 376, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13453, - "end": 13460, - "loc": { - "start": { - "line": 376, - "column": 13 - }, - "end": { - "line": 376, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13460, - "end": 13461, - "loc": { - "start": { - "line": 376, - "column": 20 - }, - "end": { - "line": 376, - "column": 21 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 13462, - "end": 13465, - "loc": { - "start": { - "line": 376, - "column": 22 - }, - "end": { - "line": 376, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 13466, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 26 - }, - "end": { - "line": 376, - "column": 34 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 13475, - "end": 13477, - "loc": { - "start": { - "line": 376, - "column": 35 - }, - "end": { - "line": 376, - "column": 37 - } - } - }, - { - "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": 13478, - "end": 13484, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13484, - "end": 13485, - "loc": { - "start": { - "line": 376, - "column": 44 - }, - "end": { - "line": 376, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 13485, - "end": 13487, - "loc": { - "start": { - "line": 376, - "column": 45 - }, - "end": { - "line": 376, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13487, - "end": 13488, - "loc": { - "start": { - "line": 376, - "column": 47 - }, - "end": { - "line": 376, - "column": 48 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 13489, - "end": 13492, - "loc": { - "start": { - "line": 376, - "column": 49 - }, - "end": { - "line": 376, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 13493, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 53 - }, - "end": { - "line": 376, - "column": 61 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 13502, - "end": 13504, - "loc": { - "start": { - "line": 376, - "column": 62 - }, - "end": { - "line": 376, - "column": 64 - } - } - }, - { - "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": 13505, - "end": 13511, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 71 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13511, - "end": 13512, - "loc": { - "start": { - "line": 376, - "column": 71 - }, - "end": { - "line": 376, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 13512, - "end": 13514, - "loc": { - "start": { - "line": 376, - "column": 72 - }, - "end": { - "line": 376, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13514, - "end": 13515, - "loc": { - "start": { - "line": 376, - "column": 74 - }, - "end": { - "line": 376, - "column": 75 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 13516, - "end": 13519, - "loc": { - "start": { - "line": 376, - "column": 76 - }, - "end": { - "line": 376, - "column": 79 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 13520, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 80 - }, - "end": { - "line": 376, - "column": 88 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13528, - "end": 13529, - "loc": { - "start": { - "line": 376, - "column": 88 - }, - "end": { - "line": 376, - "column": 89 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13530, - "end": 13531, - "loc": { - "start": { - "line": 376, - "column": 90 - }, - "end": { - "line": 376, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13536, - "end": 13539, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13540, - "end": 13541, - "loc": { - "start": { - "line": 377, - "column": 7 - }, - "end": { - "line": 377, - "column": 8 - } - } - }, - { - "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": 13542, - "end": 13546, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13546, - "end": 13547, - "loc": { - "start": { - "line": 377, - "column": 13 - }, - "end": { - "line": 377, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToHex", - "start": 13547, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 14 - }, - "end": { - "line": 377, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13555, - "end": 13556, - "loc": { - "start": { - "line": 377, - "column": 22 - }, - "end": { - "line": 377, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13556, - "end": 13563, - "loc": { - "start": { - "line": 377, - "column": 23 - }, - "end": { - "line": 377, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13563, - "end": 13564, - "loc": { - "start": { - "line": 377, - "column": 30 - }, - "end": { - "line": 377, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 13565, - "end": 13567, - "loc": { - "start": { - "line": 377, - "column": 32 - }, - "end": { - "line": 377, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13567, - "end": 13568, - "loc": { - "start": { - "line": 377, - "column": 34 - }, - "end": { - "line": 377, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 13569, - "end": 13571, - "loc": { - "start": { - "line": 377, - "column": 36 - }, - "end": { - "line": 377, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13571, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 38 - }, - "end": { - "line": 377, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13572, - "end": 13573, - "loc": { - "start": { - "line": 377, - "column": 39 - }, - "end": { - "line": 377, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13577, - "end": 13578, - "loc": { - "start": { - "line": 378, - "column": 2 - }, - "end": { - "line": 378, - "column": 3 - } - } - }, - { - "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": 13579, - "end": 13583, - "loc": { - "start": { - "line": 378, - "column": 4 - }, - "end": { - "line": 378, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13584, - "end": 13585, - "loc": { - "start": { - "line": 378, - "column": 9 - }, - "end": { - "line": 378, - "column": 10 - } - } - }, - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 13590, - "end": 13615, - "loc": { - "start": { - "line": 379, - "column": 3 - }, - "end": { - "line": 379, - "column": 28 - } - } - }, - { - "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": 13620, - "end": 13622, - "loc": { - "start": { - "line": 380, - "column": 3 - }, - "end": { - "line": 380, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13623, - "end": 13624, - "loc": { - "start": { - "line": 380, - "column": 6 - }, - "end": { - "line": 380, - "column": 7 - } - } - }, - { - "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": 13624, - "end": 13630, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13630, - "end": 13631, - "loc": { - "start": { - "line": 380, - "column": 13 - }, - "end": { - "line": 380, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13631, - "end": 13638, - "loc": { - "start": { - "line": 380, - "column": 14 - }, - "end": { - "line": 380, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13638, - "end": 13639, - "loc": { - "start": { - "line": 380, - "column": 21 - }, - "end": { - "line": 380, - "column": 22 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 13640, - "end": 13643, - "loc": { - "start": { - "line": 380, - "column": 23 - }, - "end": { - "line": 380, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 13644, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 27 - }, - "end": { - "line": 380, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13652, - "end": 13653, - "loc": { - "start": { - "line": 380, - "column": 35 - }, - "end": { - "line": 380, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13654, - "end": 13655, - "loc": { - "start": { - "line": 380, - "column": 37 - }, - "end": { - "line": 380, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13661, - "end": 13668, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13669, - "end": 13670, - "loc": { - "start": { - "line": 381, - "column": 12 - }, - "end": { - "line": 381, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 13671, - "end": 13675, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13675, - "end": 13676, - "loc": { - "start": { - "line": 381, - "column": 18 - }, - "end": { - "line": 381, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalToHex", - "start": 13676, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 19 - }, - "end": { - "line": 381, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13688, - "end": 13689, - "loc": { - "start": { - "line": 381, - "column": 31 - }, - "end": { - "line": 381, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13689, - "end": 13696, - "loc": { - "start": { - "line": 381, - "column": 32 - }, - "end": { - "line": 381, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13696, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 39 - }, - "end": { - "line": 381, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13697, - "end": 13698, - "loc": { - "start": { - "line": 381, - "column": 40 - }, - "end": { - "line": 381, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13703, - "end": 13704, - "loc": { - "start": { - "line": 382, - "column": 3 - }, - "end": { - "line": 382, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13709, - "end": 13712, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13713, - "end": 13714, - "loc": { - "start": { - "line": 383, - "column": 7 - }, - "end": { - "line": 383, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13715, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 9 - }, - "end": { - "line": 383, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13722, - "end": 13723, - "loc": { - "start": { - "line": 383, - "column": 16 - }, - "end": { - "line": 383, - "column": 17 - } - } - }, - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13754, - "end": 13757, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13758, - "end": 13759, - "loc": { - "start": { - "line": 385, - "column": 7 - }, - "end": { - "line": 385, - "column": 8 - } - } - }, - { - "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": 13760, - "end": 13764, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13764, - "end": 13765, - "loc": { - "start": { - "line": 385, - "column": 13 - }, - "end": { - "line": 385, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToRgb", - "start": 13765, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13773, - "end": 13774, - "loc": { - "start": { - "line": 385, - "column": 22 - }, - "end": { - "line": 385, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13774, - "end": 13777, - "loc": { - "start": { - "line": 385, - "column": 23 - }, - "end": { - "line": 385, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13777, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 26 - }, - "end": { - "line": 385, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13778, - "end": 13779, - "loc": { - "start": { - "line": 385, - "column": 27 - }, - "end": { - "line": 385, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13783, - "end": 13784, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 13788, - "end": 13794, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 387, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13795, - "end": 13796, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 387, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "hex", - "start": 13802, - "end": 13807, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13807, - "end": 13808, - "loc": { - "start": { - "line": 388, - "column": 8 - }, - "end": { - "line": 388, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13809, - "end": 13812, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13812, - "end": 13813, - "loc": { - "start": { - "line": 388, - "column": 13 - }, - "end": { - "line": 388, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 13813, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 14 - }, - "end": { - "line": 388, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13824, - "end": 13825, - "loc": { - "start": { - "line": 388, - "column": 25 - }, - "end": { - "line": 388, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13825, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 26 - }, - "end": { - "line": 388, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13826, - "end": 13827, - "loc": { - "start": { - "line": 388, - "column": 27 - }, - "end": { - "line": 388, - "column": 28 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "hexTagless", - "start": 13833, - "end": 13845, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13845, - "end": 13846, - "loc": { - "start": { - "line": 389, - "column": 15 - }, - "end": { - "line": 389, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13847, - "end": 13850, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13850, - "end": 13851, - "loc": { - "start": { - "line": 389, - "column": 20 - }, - "end": { - "line": 389, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 13851, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 21 - }, - "end": { - "line": 389, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13858, - "end": 13859, - "loc": { - "start": { - "line": 389, - "column": 28 - }, - "end": { - "line": 389, - "column": 29 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 13859, - "end": 13862, - "loc": { - "start": { - "line": 389, - "column": 29 - }, - "end": { - "line": 389, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13862, - "end": 13863, - "loc": { - "start": { - "line": 389, - "column": 32 - }, - "end": { - "line": 389, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 13864, - "end": 13866, - "loc": { - "start": { - "line": 389, - "column": 34 - }, - "end": { - "line": 389, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13866, - "end": 13867, - "loc": { - "start": { - "line": 389, - "column": 36 - }, - "end": { - "line": 389, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13867, - "end": 13868, - "loc": { - "start": { - "line": 389, - "column": 37 - }, - "end": { - "line": 389, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 13868, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 38 - }, - "end": { - "line": 389, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13879, - "end": 13880, - "loc": { - "start": { - "line": 389, - "column": 49 - }, - "end": { - "line": 389, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13880, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 50 - }, - "end": { - "line": 389, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13881, - "end": 13882, - "loc": { - "start": { - "line": 389, - "column": 51 - }, - "end": { - "line": 389, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgb", - "start": 13888, - "end": 13893, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13893, - "end": 13894, - "loc": { - "start": { - "line": 390, - "column": 8 - }, - "end": { - "line": 390, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgb(", - "start": 13895, - "end": 13901, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 16 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13901, - "end": 13902, - "loc": { - "start": { - "line": 390, - "column": 16 - }, - "end": { - "line": 390, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13902, - "end": 13905, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13905, - "end": 13906, - "loc": { - "start": { - "line": 390, - "column": 20 - }, - "end": { - "line": 390, - "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": 13906, - "end": 13907, - "loc": { - "start": { - "line": 390, - "column": 21 - }, - "end": { - "line": 390, - "column": 22 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13907, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 22 - }, - "end": { - "line": 390, - "column": 23 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13908, - "end": 13909, - "loc": { - "start": { - "line": 390, - "column": 23 - }, - "end": { - "line": 390, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ",", - "start": 13909, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 24 - }, - "end": { - "line": 390, - "column": 27 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13912, - "end": 13913, - "loc": { - "start": { - "line": 390, - "column": 27 - }, - "end": { - "line": 390, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13913, - "end": 13916, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 31 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13916, - "end": 13917, - "loc": { - "start": { - "line": 390, - "column": 31 - }, - "end": { - "line": 390, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 13917, - "end": 13918, - "loc": { - "start": { - "line": 390, - "column": 32 - }, - "end": { - "line": 390, - "column": 33 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13918, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 33 - }, - "end": { - "line": 390, - "column": 34 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13919, - "end": 13920, - "loc": { - "start": { - "line": 390, - "column": 34 - }, - "end": { - "line": 390, - "column": 35 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ",", - "start": 13920, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 35 - }, - "end": { - "line": 390, - "column": 38 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13923, - "end": 13924, - "loc": { - "start": { - "line": 390, - "column": 38 - }, - "end": { - "line": 390, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13924, - "end": 13927, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 42 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13927, - "end": 13928, - "loc": { - "start": { - "line": 390, - "column": 42 - }, - "end": { - "line": 390, - "column": 43 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 13928, - "end": 13929, - "loc": { - "start": { - "line": 390, - "column": 43 - }, - "end": { - "line": 390, - "column": 44 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13929, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 44 - }, - "end": { - "line": 390, - "column": 45 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13930, - "end": 13931, - "loc": { - "start": { - "line": 390, - "column": 45 - }, - "end": { - "line": 390, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ")", - "start": 13931, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 46 - }, - "end": { - "line": 390, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13934, - "end": 13935, - "loc": { - "start": { - "line": 390, - "column": 49 - }, - "end": { - "line": 390, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbArray", - "start": 13941, - "end": 13951, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 13 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13951, - "end": 13952, - "loc": { - "start": { - "line": 391, - "column": 13 - }, - "end": { - "line": 391, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13953, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 391, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13956, - "end": 13957, - "loc": { - "start": { - "line": 391, - "column": 18 - }, - "end": { - "line": 391, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbObject", - "start": 13963, - "end": 13974, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13974, - "end": 13975, - "loc": { - "start": { - "line": 392, - "column": 14 - }, - "end": { - "line": 392, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13976, - "end": 13977, - "loc": { - "start": { - "line": 392, - "column": 16 - }, - "end": { - "line": 392, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "r", - "start": 13978, - "end": 13981, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13981, - "end": 13982, - "loc": { - "start": { - "line": 392, - "column": 21 - }, - "end": { - "line": 392, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13983, - "end": 13986, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13986, - "end": 13987, - "loc": { - "start": { - "line": 392, - "column": 26 - }, - "end": { - "line": 392, - "column": 27 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 13987, - "end": 13988, - "loc": { - "start": { - "line": 392, - "column": 27 - }, - "end": { - "line": 392, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13988, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 28 - }, - "end": { - "line": 392, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13989, - "end": 13990, - "loc": { - "start": { - "line": 392, - "column": 29 - }, - "end": { - "line": 392, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 13991, - "end": 13994, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 34 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13994, - "end": 13995, - "loc": { - "start": { - "line": 392, - "column": 34 - }, - "end": { - "line": 392, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13996, - "end": 13999, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 39 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13999, - "end": 14000, - "loc": { - "start": { - "line": 392, - "column": 39 - }, - "end": { - "line": 392, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 14000, - "end": 14001, - "loc": { - "start": { - "line": 392, - "column": 40 - }, - "end": { - "line": 392, - "column": 41 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14001, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 41 - }, - "end": { - "line": 392, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14002, - "end": 14003, - "loc": { - "start": { - "line": 392, - "column": 42 - }, - "end": { - "line": 392, - "column": 43 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "b", - "start": 14004, - "end": 14007, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 47 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14007, - "end": 14008, - "loc": { - "start": { - "line": 392, - "column": 47 - }, - "end": { - "line": 392, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 14009, - "end": 14012, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 52 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14012, - "end": 14013, - "loc": { - "start": { - "line": 392, - "column": 52 - }, - "end": { - "line": 392, - "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": 14013, - "end": 14014, - "loc": { - "start": { - "line": 392, - "column": 53 - }, - "end": { - "line": 392, - "column": 54 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14014, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 54 - }, - "end": { - "line": 392, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14016, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 56 - }, - "end": { - "line": 392, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14017, - "end": 14018, - "loc": { - "start": { - "line": 392, - "column": 57 - }, - "end": { - "line": 392, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbNormal", - "start": 14024, - "end": 14035, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14035, - "end": 14036, - "loc": { - "start": { - "line": 393, - "column": 14 - }, - "end": { - "line": 393, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14037, - "end": 14038, - "loc": { - "start": { - "line": 393, - "column": 16 - }, - "end": { - "line": 393, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14038, - "end": 14042, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14042, - "end": 14043, - "loc": { - "start": { - "line": 393, - "column": 21 - }, - "end": { - "line": 393, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 14043, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 22 - }, - "end": { - "line": 393, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14048, - "end": 14049, - "loc": { - "start": { - "line": 393, - "column": 27 - }, - "end": { - "line": 393, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 14049, - "end": 14052, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 31 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14052, - "end": 14053, - "loc": { - "start": { - "line": 393, - "column": 31 - }, - "end": { - "line": 393, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 14053, - "end": 14054, - "loc": { - "start": { - "line": 393, - "column": 32 - }, - "end": { - "line": 393, - "column": 33 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14054, - "end": 14055, - "loc": { - "start": { - "line": 393, - "column": 33 - }, - "end": { - "line": 393, - "column": 34 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14055, - "end": 14056, - "loc": { - "start": { - "line": 393, - "column": 34 - }, - "end": { - "line": 393, - "column": 35 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 14056, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 35 - }, - "end": { - "line": 393, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 14060, - "end": 14061, - "loc": { - "start": { - "line": 393, - "column": 39 - }, - "end": { - "line": 393, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14062, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 41 - }, - "end": { - "line": 393, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14065, - "end": 14066, - "loc": { - "start": { - "line": 393, - "column": 44 - }, - "end": { - "line": 393, - "column": 45 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14067, - "end": 14068, - "loc": { - "start": { - "line": 393, - "column": 46 - }, - "end": { - "line": 393, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14069, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 48 - }, - "end": { - "line": 393, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14072, - "end": 14073, - "loc": { - "start": { - "line": 393, - "column": 51 - }, - "end": { - "line": 393, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14074, - "end": 14078, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14078, - "end": 14079, - "loc": { - "start": { - "line": 393, - "column": 57 - }, - "end": { - "line": 393, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 14079, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 58 - }, - "end": { - "line": 393, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14084, - "end": 14085, - "loc": { - "start": { - "line": 393, - "column": 63 - }, - "end": { - "line": 393, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 14085, - "end": 14088, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 67 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14088, - "end": 14089, - "loc": { - "start": { - "line": 393, - "column": 67 - }, - "end": { - "line": 393, - "column": 68 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 14089, - "end": 14090, - "loc": { - "start": { - "line": 393, - "column": 68 - }, - "end": { - "line": 393, - "column": 69 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14090, - "end": 14091, - "loc": { - "start": { - "line": 393, - "column": 69 - }, - "end": { - "line": 393, - "column": 70 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14091, - "end": 14092, - "loc": { - "start": { - "line": 393, - "column": 70 - }, - "end": { - "line": 393, - "column": 71 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 14092, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 71 - }, - "end": { - "line": 393, - "column": 74 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 14096, - "end": 14097, - "loc": { - "start": { - "line": 393, - "column": 75 - }, - "end": { - "line": 393, - "column": 76 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14098, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 77 - }, - "end": { - "line": 393, - "column": 80 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14101, - "end": 14102, - "loc": { - "start": { - "line": 393, - "column": 80 - }, - "end": { - "line": 393, - "column": 81 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14103, - "end": 14104, - "loc": { - "start": { - "line": 393, - "column": 82 - }, - "end": { - "line": 393, - "column": 83 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14105, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 84 - }, - "end": { - "line": 393, - "column": 87 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14108, - "end": 14109, - "loc": { - "start": { - "line": 393, - "column": 87 - }, - "end": { - "line": 393, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14110, - "end": 14114, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 93 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14114, - "end": 14115, - "loc": { - "start": { - "line": 393, - "column": 93 - }, - "end": { - "line": 393, - "column": 94 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 14115, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 94 - }, - "end": { - "line": 393, - "column": 99 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14120, - "end": 14121, - "loc": { - "start": { - "line": 393, - "column": 99 - }, - "end": { - "line": 393, - "column": 100 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 14121, - "end": 14124, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 103 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14124, - "end": 14125, - "loc": { - "start": { - "line": 393, - "column": 103 - }, - "end": { - "line": 393, - "column": 104 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 14125, - "end": 14126, - "loc": { - "start": { - "line": 393, - "column": 104 - }, - "end": { - "line": 393, - "column": 105 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14126, - "end": 14127, - "loc": { - "start": { - "line": 393, - "column": 105 - }, - "end": { - "line": 393, - "column": 106 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14127, - "end": 14128, - "loc": { - "start": { - "line": 393, - "column": 106 - }, - "end": { - "line": 393, - "column": 107 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 14128, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 107 - }, - "end": { - "line": 393, - "column": 110 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 14132, - "end": 14133, - "loc": { - "start": { - "line": 393, - "column": 111 - }, - "end": { - "line": 393, - "column": 112 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14134, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 113 - }, - "end": { - "line": 393, - "column": 116 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14137, - "end": 14138, - "loc": { - "start": { - "line": 393, - "column": 116 - }, - "end": { - "line": 393, - "column": 117 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14139, - "end": 14140, - "loc": { - "start": { - "line": 393, - "column": 118 - }, - "end": { - "line": 393, - "column": 119 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14141, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 120 - }, - "end": { - "line": 393, - "column": 123 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14144, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 123 - }, - "end": { - "line": 393, - "column": 124 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14145, - "end": 14146, - "loc": { - "start": { - "line": 393, - "column": 124 - }, - "end": { - "line": 393, - "column": 125 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "decimal", - "start": 14152, - "end": 14161, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14161, - "end": 14162, - "loc": { - "start": { - "line": 394, - "column": 12 - }, - "end": { - "line": 394, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 14163, - "end": 14167, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14167, - "end": 14168, - "loc": { - "start": { - "line": 394, - "column": 18 - }, - "end": { - "line": 394, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToDecimal", - "start": 14168, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 19 - }, - "end": { - "line": 394, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14180, - "end": 14181, - "loc": { - "start": { - "line": 394, - "column": 31 - }, - "end": { - "line": 394, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 14181, - "end": 14184, - "loc": { - "start": { - "line": 394, - "column": 32 - }, - "end": { - "line": 394, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14184, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 35 - }, - "end": { - "line": 394, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14190, - "end": 14191, - "loc": { - "start": { - "line": 395, - "column": 2 - }, - "end": { - "line": 395, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14191, - "end": 14192, - "loc": { - "start": { - "line": 395, - "column": 3 - }, - "end": { - "line": 395, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14195, - "end": 14196, - "loc": { - "start": { - "line": 396, - "column": 1 - }, - "end": { - "line": 396, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColor", - "start": 14298, - "end": 14312, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 402, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14312, - "end": 14313, - "loc": { - "start": { - "line": 402, - "column": 15 - }, - "end": { - "line": 402, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14313, - "end": 14314, - "loc": { - "start": { - "line": 402, - "column": 16 - }, - "end": { - "line": 402, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14315, - "end": 14316, - "loc": { - "start": { - "line": 402, - "column": 18 - }, - "end": { - "line": 402, - "column": 19 - } - } - }, - { - "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": 14320, - "end": 14325, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 403, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 14326, - "end": 14331, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14332, - "end": 14333, - "loc": { - "start": { - "line": 403, - "column": 14 - }, - "end": { - "line": 403, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "0123456789ABCDEF", - "start": 14334, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 16 - }, - "end": { - "line": 403, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14352, - "end": 14353, - "loc": { - "start": { - "line": 403, - "column": 34 - }, - "end": { - "line": 403, - "column": 35 - } - } - }, - { - "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": 14357, - "end": 14360, - "loc": { - "start": { - "line": 404, - "column": 2 - }, - "end": { - "line": 404, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 14361, - "end": 14366, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14367, - "end": 14368, - "loc": { - "start": { - "line": 404, - "column": 12 - }, - "end": { - "line": 404, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 14369, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 14 - }, - "end": { - "line": 404, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14372, - "end": 14373, - "loc": { - "start": { - "line": 404, - "column": 17 - }, - "end": { - "line": 404, - "column": 18 - } - } - }, - { - "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": 14377, - "end": 14380, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 405, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14381, - "end": 14382, - "loc": { - "start": { - "line": 405, - "column": 6 - }, - "end": { - "line": 405, - "column": 7 - } - } - }, - { - "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": 14382, - "end": 14385, - "loc": { - "start": { - "line": 405, - "column": 7 - }, - "end": { - "line": 405, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 14386, - "end": 14387, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14388, - "end": 14389, - "loc": { - "start": { - "line": 405, - "column": 13 - }, - "end": { - "line": 405, - "column": 14 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 14390, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 15 - }, - "end": { - "line": 405, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14391, - "end": 14392, - "loc": { - "start": { - "line": 405, - "column": 16 - }, - "end": { - "line": 405, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 14393, - "end": 14394, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 19 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 14395, - "end": 14396, - "loc": { - "start": { - "line": 405, - "column": 20 - }, - "end": { - "line": 405, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 6, - "start": 14397, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 22 - }, - "end": { - "line": 405, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14398, - "end": 14399, - "loc": { - "start": { - "line": 405, - "column": 23 - }, - "end": { - "line": 405, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 14400, - "end": 14401, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 26 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 14401, - "end": 14403, - "loc": { - "start": { - "line": 405, - "column": 26 - }, - "end": { - "line": 405, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14403, - "end": 14404, - "loc": { - "start": { - "line": 405, - "column": 28 - }, - "end": { - "line": 405, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14405, - "end": 14406, - "loc": { - "start": { - "line": 405, - "column": 30 - }, - "end": { - "line": 405, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 14411, - "end": 14416, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 8 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 14417, - "end": 14419, - "loc": { - "start": { - "line": 406, - "column": 9 - }, - "end": { - "line": 406, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 14420, - "end": 14425, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 17 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14425, - "end": 14426, - "loc": { - "start": { - "line": 406, - "column": 17 - }, - "end": { - "line": 406, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14426, - "end": 14430, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14430, - "end": 14431, - "loc": { - "start": { - "line": 406, - "column": 22 - }, - "end": { - "line": 406, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 14431, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 23 - }, - "end": { - "line": 406, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14436, - "end": 14437, - "loc": { - "start": { - "line": 406, - "column": 28 - }, - "end": { - "line": 406, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14437, - "end": 14441, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14441, - "end": 14442, - "loc": { - "start": { - "line": 406, - "column": 33 - }, - "end": { - "line": 406, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 14442, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 34 - }, - "end": { - "line": 406, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14448, - "end": 14449, - "loc": { - "start": { - "line": 406, - "column": 40 - }, - "end": { - "line": 406, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14449, - "end": 14450, - "loc": { - "start": { - "line": 406, - "column": 41 - }, - "end": { - "line": 406, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 14451, - "end": 14452, - "loc": { - "start": { - "line": 406, - "column": 43 - }, - "end": { - "line": 406, - "column": 44 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 14453, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 45 - }, - "end": { - "line": 406, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14455, - "end": 14456, - "loc": { - "start": { - "line": 406, - "column": 47 - }, - "end": { - "line": 406, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14456, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 48 - }, - "end": { - "line": 406, - "column": 49 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14457, - "end": 14458, - "loc": { - "start": { - "line": 406, - "column": 49 - }, - "end": { - "line": 406, - "column": 50 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14462, - "end": 14463, - "loc": { - "start": { - "line": 407, - "column": 2 - }, - "end": { - "line": 407, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 14467, - "end": 14473, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 408, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 14474, - "end": 14479, - "loc": { - "start": { - "line": 408, - "column": 9 - }, - "end": { - "line": 408, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14479, - "end": 14480, - "loc": { - "start": { - "line": 408, - "column": 14 - }, - "end": { - "line": 408, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14483, - "end": 14484, - "loc": { - "start": { - "line": 409, - "column": 1 - }, - "end": { - "line": 409, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColorBetween", - "start": 14946, - "end": 14967, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 420, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14967, - "end": 14968, - "loc": { - "start": { - "line": 420, - "column": 22 - }, - "end": { - "line": 420, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor1", - "start": 14968, - "end": 14975, - "loc": { - "start": { - "line": 420, - "column": 23 - }, - "end": { - "line": 420, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14975, - "end": 14976, - "loc": { - "start": { - "line": 420, - "column": 30 - }, - "end": { - "line": 420, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor2", - "start": 14977, - "end": 14984, - "loc": { - "start": { - "line": 420, - "column": 32 - }, - "end": { - "line": 420, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14984, - "end": 14985, - "loc": { - "start": { - "line": 420, - "column": 39 - }, - "end": { - "line": 420, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 14986, - "end": 14993, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 48 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14994, - "end": 14995, - "loc": { - "start": { - "line": 420, - "column": 49 - }, - "end": { - "line": 420, - "column": 50 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 14996, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 51 - }, - "end": { - "line": 420, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14999, - "end": 15000, - "loc": { - "start": { - "line": 420, - "column": 54 - }, - "end": { - "line": 420, - "column": 55 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15001, - "end": 15002, - "loc": { - "start": { - "line": 420, - "column": 56 - }, - "end": { - "line": 420, - "column": 57 - } - } - }, - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 15006, - "end": 15040, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 36 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 15044, - "end": 15050, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 8 - } - } - }, - { - "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": 15051, - "end": 15055, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15055, - "end": 15056, - "loc": { - "start": { - "line": 422, - "column": 13 - }, - "end": { - "line": 422, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "flooredLerp", - "start": 15056, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 14 - }, - "end": { - "line": 422, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15067, - "end": 15068, - "loc": { - "start": { - "line": 422, - "column": 25 - }, - "end": { - "line": 422, - "column": 26 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 15068, - "end": 15072, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15072, - "end": 15073, - "loc": { - "start": { - "line": 422, - "column": 30 - }, - "end": { - "line": 422, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 15073, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 31 - }, - "end": { - "line": 422, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15082, - "end": 15083, - "loc": { - "start": { - "line": 422, - "column": 40 - }, - "end": { - "line": 422, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor1", - "start": 15083, - "end": 15090, - "loc": { - "start": { - "line": 422, - "column": 41 - }, - "end": { - "line": 422, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15090, - "end": 15091, - "loc": { - "start": { - "line": 422, - "column": 48 - }, - "end": { - "line": 422, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15091, - "end": 15092, - "loc": { - "start": { - "line": 422, - "column": 49 - }, - "end": { - "line": 422, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 15092, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 50 - }, - "end": { - "line": 422, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15099, - "end": 15100, - "loc": { - "start": { - "line": 422, - "column": 57 - }, - "end": { - "line": 422, - "column": 58 - } - } - }, - { - "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": 15101, - "end": 15105, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 63 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15105, - "end": 15106, - "loc": { - "start": { - "line": 422, - "column": 63 - }, - "end": { - "line": 422, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 15106, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 64 - }, - "end": { - "line": 422, - "column": 73 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15115, - "end": 15116, - "loc": { - "start": { - "line": 422, - "column": 73 - }, - "end": { - "line": 422, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor2", - "start": 15116, - "end": 15123, - "loc": { - "start": { - "line": 422, - "column": 74 - }, - "end": { - "line": 422, - "column": 81 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15123, - "end": 15124, - "loc": { - "start": { - "line": 422, - "column": 81 - }, - "end": { - "line": 422, - "column": 82 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15124, - "end": 15125, - "loc": { - "start": { - "line": 422, - "column": 82 - }, - "end": { - "line": 422, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 15125, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 83 - }, - "end": { - "line": 422, - "column": 90 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15132, - "end": 15133, - "loc": { - "start": { - "line": 422, - "column": 90 - }, - "end": { - "line": 422, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 15134, - "end": 15141, - "loc": { - "start": { - "line": 422, - "column": 92 - }, - "end": { - "line": 422, - "column": 99 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15141, - "end": 15142, - "loc": { - "start": { - "line": 422, - "column": 99 - }, - "end": { - "line": 422, - "column": 100 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15142, - "end": 15143, - "loc": { - "start": { - "line": 422, - "column": 100 - }, - "end": { - "line": 422, - "column": 101 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15146, - "end": 15147, - "loc": { - "start": { - "line": 423, - "column": 1 - }, - "end": { - "line": 423, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitionColor", - "start": 15941, - "end": 15956, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 438, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15956, - "end": 15957, - "loc": { - "start": { - "line": 438, - "column": 16 - }, - "end": { - "line": 438, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 15957, - "end": 15966, - "loc": { - "start": { - "line": 438, - "column": 17 - }, - "end": { - "line": 438, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15966, - "end": 15967, - "loc": { - "start": { - "line": 438, - "column": 26 - }, - "end": { - "line": 438, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartColor", - "start": 15968, - "end": 15979, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 39 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 15979, - "end": 15980, - "loc": { - "start": { - "line": 438, - "column": 39 - }, - "end": { - "line": 438, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#000", - "start": 15980, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 40 - }, - "end": { - "line": 438, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15986, - "end": 15987, - "loc": { - "start": { - "line": 438, - "column": 46 - }, - "end": { - "line": 438, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndColor", - "start": 15988, - "end": 15997, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 57 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 15997, - "end": 15998, - "loc": { - "start": { - "line": 438, - "column": 57 - }, - "end": { - "line": 438, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#fff", - "start": 15998, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 58 - }, - "end": { - "line": 438, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16004, - "end": 16005, - "loc": { - "start": { - "line": 438, - "column": 64 - }, - "end": { - "line": 438, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 16006, - "end": 16015, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 75 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16015, - "end": 16016, - "loc": { - "start": { - "line": 438, - "column": 75 - }, - "end": { - "line": 438, - "column": 76 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1000, - "start": 16016, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 76 - }, - "end": { - "line": 438, - "column": 80 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16020, - "end": 16021, - "loc": { - "start": { - "line": 438, - "column": 80 - }, - "end": { - "line": 438, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 16022, - "end": 16040, - "loc": { - "start": { - "line": 438, - "column": 82 - }, - "end": { - "line": 438, - "column": 100 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16040, - "end": 16041, - "loc": { - "start": { - "line": 438, - "column": 100 - }, - "end": { - "line": 438, - "column": 101 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 16042, - "end": 16054, - "loc": { - "start": { - "line": 438, - "column": 102 - }, - "end": { - "line": 438, - "column": 114 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16054, - "end": 16055, - "loc": { - "start": { - "line": 438, - "column": 114 - }, - "end": { - "line": 438, - "column": 115 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16056, - "end": 16057, - "loc": { - "start": { - "line": 438, - "column": 116 - }, - "end": { - "line": 438, - "column": 117 - } - } - }, - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 16061, - "end": 16097, - "loc": { - "start": { - "line": 439, - "column": 2 - }, - "end": { - "line": 439, - "column": 38 - } - } - }, - { - "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": 16101, - "end": 16103, - "loc": { - "start": { - "line": 440, - "column": 2 - }, - "end": { - "line": 440, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16104, - "end": 16105, - "loc": { - "start": { - "line": 440, - "column": 5 - }, - "end": { - "line": 440, - "column": 6 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 16105, - "end": 16106, - "loc": { - "start": { - "line": 440, - "column": 6 - }, - "end": { - "line": 440, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 16106, - "end": 16116, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16116, - "end": 16117, - "loc": { - "start": { - "line": 440, - "column": 17 - }, - "end": { - "line": 440, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "window", - "start": 16117, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 18 - }, - "end": { - "line": 440, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16123, - "end": 16124, - "loc": { - "start": { - "line": 440, - "column": 24 - }, - "end": { - "line": 440, - "column": 25 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 16125, - "end": 16131, - "loc": { - "start": { - "line": 440, - "column": 26 - }, - "end": { - "line": 440, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16131, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 32 - }, - "end": { - "line": 440, - "column": 33 - } - } - }, - { - "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": 16136, - "end": 16141, - "loc": { - "start": { - "line": 441, - "column": 2 - }, - "end": { - "line": 441, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 16142, - "end": 16159, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16160, - "end": 16161, - "loc": { - "start": { - "line": 441, - "column": 26 - }, - "end": { - "line": 441, - "column": 27 - } - } - }, - { - "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": 16162, - "end": 16168, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16168, - "end": 16169, - "loc": { - "start": { - "line": 441, - "column": 34 - }, - "end": { - "line": 441, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 16169, - "end": 16187, - "loc": { - "start": { - "line": 441, - "column": 35 - }, - "end": { - "line": 441, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16187, - "end": 16188, - "loc": { - "start": { - "line": 441, - "column": 53 - }, - "end": { - "line": 441, - "column": 54 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16189, - "end": 16192, - "loc": { - "start": { - "line": 441, - "column": 55 - }, - "end": { - "line": 441, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "function", - "start": 16193, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 59 - }, - "end": { - "line": 441, - "column": 69 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16204, - "end": 16205, - "loc": { - "start": { - "line": 441, - "column": 70 - }, - "end": { - "line": 441, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 16206, - "end": 16224, - "loc": { - "start": { - "line": 441, - "column": 72 - }, - "end": { - "line": 441, - "column": 90 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16225, - "end": 16226, - "loc": { - "start": { - "line": 441, - "column": 91 - }, - "end": { - "line": 441, - "column": 92 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 16227, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 93 - }, - "end": { - "line": 441, - "column": 97 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16231, - "end": 16232, - "loc": { - "start": { - "line": 441, - "column": 97 - }, - "end": { - "line": 441, - "column": 98 - } - } - }, - { - "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": 16236, - "end": 16241, - "loc": { - "start": { - "line": 442, - "column": 2 - }, - "end": { - "line": 442, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 16242, - "end": 16253, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16254, - "end": 16255, - "loc": { - "start": { - "line": 442, - "column": 20 - }, - "end": { - "line": 442, - "column": 21 - } - } - }, - { - "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": 16256, - "end": 16262, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16262, - "end": 16263, - "loc": { - "start": { - "line": 442, - "column": 28 - }, - "end": { - "line": 442, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 16263, - "end": 16275, - "loc": { - "start": { - "line": 442, - "column": 29 - }, - "end": { - "line": 442, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16275, - "end": 16276, - "loc": { - "start": { - "line": 442, - "column": 41 - }, - "end": { - "line": 442, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16277, - "end": 16280, - "loc": { - "start": { - "line": 442, - "column": 43 - }, - "end": { - "line": 442, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "function", - "start": 16281, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 47 - }, - "end": { - "line": 442, - "column": 57 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16292, - "end": 16293, - "loc": { - "start": { - "line": 442, - "column": 58 - }, - "end": { - "line": 442, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 16294, - "end": 16306, - "loc": { - "start": { - "line": 442, - "column": 60 - }, - "end": { - "line": 442, - "column": 72 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16307, - "end": 16308, - "loc": { - "start": { - "line": 442, - "column": 73 - }, - "end": { - "line": 442, - "column": 74 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 16309, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 75 - }, - "end": { - "line": 442, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16313, - "end": 16314, - "loc": { - "start": { - "line": 442, - "column": 79 - }, - "end": { - "line": 442, - "column": 80 - } - } - }, - { - "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": 16318, - "end": 16321, - "loc": { - "start": { - "line": 443, - "column": 2 - }, - "end": { - "line": 443, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16324, - "end": 16325, - "loc": { - "start": { - "line": 443, - "column": 8 - }, - "end": { - "line": 443, - "column": 9 - } - } - }, - { - "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": 16329, - "end": 16332, - "loc": { - "start": { - "line": 444, - "column": 2 - }, - "end": { - "line": 444, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16343, - "end": 16344, - "loc": { - "start": { - "line": 444, - "column": 16 - }, - "end": { - "line": 444, - "column": 17 - } - } - }, - { - "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": 16348, - "end": 16351, - "loc": { - "start": { - "line": 445, - "column": 2 - }, - "end": { - "line": 445, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16364, - "end": 16365, - "loc": { - "start": { - "line": 445, - "column": 18 - }, - "end": { - "line": 445, - "column": 19 - } - } - }, - { - "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": 16371, - "end": 16373, - "loc": { - "start": { - "line": 447, - "column": 2 - }, - "end": { - "line": 447, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16374, - "end": 16375, - "loc": { - "start": { - "line": 447, - "column": 5 - }, - "end": { - "line": 447, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16375, - "end": 16384, - "loc": { - "start": { - "line": 447, - "column": 6 - }, - "end": { - "line": 447, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16384, - "end": 16385, - "loc": { - "start": { - "line": 447, - "column": 15 - }, - "end": { - "line": 447, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16386, - "end": 16387, - "loc": { - "start": { - "line": 447, - "column": 17 - }, - "end": { - "line": 447, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16392, - "end": 16394, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16395, - "end": 16396, - "loc": { - "start": { - "line": 448, - "column": 6 - }, - "end": { - "line": 448, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16397, - "end": 16406, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16406, - "end": 16407, - "loc": { - "start": { - "line": 448, - "column": 17 - }, - "end": { - "line": 448, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16407, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 18 - }, - "end": { - "line": 448, - "column": 20 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16410, - "end": 16411, - "loc": { - "start": { - "line": 448, - "column": 21 - }, - "end": { - "line": 448, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16412, - "end": 16421, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16421, - "end": 16422, - "loc": { - "start": { - "line": 448, - "column": 32 - }, - "end": { - "line": 448, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16422, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 33 - }, - "end": { - "line": 448, - "column": 35 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16425, - "end": 16426, - "loc": { - "start": { - "line": 448, - "column": 36 - }, - "end": { - "line": 448, - "column": 37 - } - } - }, - { - "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": 16427, - "end": 16431, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16431, - "end": 16432, - "loc": { - "start": { - "line": 448, - "column": 42 - }, - "end": { - "line": 448, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 16432, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 43 - }, - "end": { - "line": 448, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16442, - "end": 16443, - "loc": { - "start": { - "line": 448, - "column": 53 - }, - "end": { - "line": 448, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16443, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 54 - }, - "end": { - "line": 448, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16444, - "end": 16445, - "loc": { - "start": { - "line": 448, - "column": 55 - }, - "end": { - "line": 448, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 16450, - "end": 16460, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16461, - "end": 16462, - "loc": { - "start": { - "line": 449, - "column": 14 - }, - "end": { - "line": 449, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16463, - "end": 16464, - "loc": { - "start": { - "line": 449, - "column": 16 - }, - "end": { - "line": 449, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16464, - "end": 16473, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16473, - "end": 16474, - "loc": { - "start": { - "line": 449, - "column": 26 - }, - "end": { - "line": 449, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 16474, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 27 - }, - "end": { - "line": 449, - "column": 31 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16479, - "end": 16482, - "loc": { - "start": { - "line": 449, - "column": 32 - }, - "end": { - "line": 449, - "column": 35 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GeneratedParticle", - "start": 16483, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 36 - }, - "end": { - "line": 449, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16502, - "end": 16503, - "loc": { - "start": { - "line": 449, - "column": 55 - }, - "end": { - "line": 449, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16503, - "end": 16504, - "loc": { - "start": { - "line": 449, - "column": 56 - }, - "end": { - "line": 449, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 16509, - "end": 16521, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16522, - "end": 16523, - "loc": { - "start": { - "line": 450, - "column": 16 - }, - "end": { - "line": 450, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16524, - "end": 16525, - "loc": { - "start": { - "line": 450, - "column": 18 - }, - "end": { - "line": 450, - "column": 19 - } - } - }, - { - "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": 16525, - "end": 16531, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16531, - "end": 16532, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16532, - "end": 16541, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16541, - "end": 16542, - "loc": { - "start": { - "line": 450, - "column": 35 - }, - "end": { - "line": 450, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 16542, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 36 - }, - "end": { - "line": 450, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16547, - "end": 16548, - "loc": { - "start": { - "line": 450, - "column": 41 - }, - "end": { - "line": 450, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16549, - "end": 16552, - "loc": { - "start": { - "line": 450, - "column": 43 - }, - "end": { - "line": 450, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 16553, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 55 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 16562, - "end": 16564, - "loc": { - "start": { - "line": 450, - "column": 56 - }, - "end": { - "line": 450, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16565, - "end": 16574, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 68 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16574, - "end": 16575, - "loc": { - "start": { - "line": 450, - "column": 68 - }, - "end": { - "line": 450, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 16575, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 69 - }, - "end": { - "line": 450, - "column": 74 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16580, - "end": 16581, - "loc": { - "start": { - "line": 450, - "column": 74 - }, - "end": { - "line": 450, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "constructor", - "start": 16581, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 75 - }, - "end": { - "line": 450, - "column": 86 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16593, - "end": 16596, - "loc": { - "start": { - "line": 450, - "column": 87 - }, - "end": { - "line": 450, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 16597, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 91 - }, - "end": { - "line": 450, - "column": 97 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16604, - "end": 16605, - "loc": { - "start": { - "line": 450, - "column": 98 - }, - "end": { - "line": 450, - "column": 99 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 16606, - "end": 16610, - "loc": { - "start": { - "line": 450, - "column": 100 - }, - "end": { - "line": 450, - "column": 104 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16611, - "end": 16612, - "loc": { - "start": { - "line": 450, - "column": 105 - }, - "end": { - "line": 450, - "column": 106 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 16613, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 107 - }, - "end": { - "line": 450, - "column": 112 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16618, - "end": 16619, - "loc": { - "start": { - "line": 450, - "column": 112 - }, - "end": { - "line": 450, - "column": 113 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16619, - "end": 16620, - "loc": { - "start": { - "line": 450, - "column": 113 - }, - "end": { - "line": 450, - "column": 114 - } - } - }, - { - "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": 16625, - "end": 16627, - "loc": { - "start": { - "line": 451, - "column": 3 - }, - "end": { - "line": 451, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16628, - "end": 16629, - "loc": { - "start": { - "line": 451, - "column": 6 - }, - "end": { - "line": 451, - "column": 7 - } - } - }, - { - "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": 16629, - "end": 16633, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16633, - "end": 16634, - "loc": { - "start": { - "line": 451, - "column": 11 - }, - "end": { - "line": 451, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 16634, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 451, - "column": 23 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16645, - "end": 16646, - "loc": { - "start": { - "line": 451, - "column": 23 - }, - "end": { - "line": 451, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16646, - "end": 16648, - "loc": { - "start": { - "line": 451, - "column": 24 - }, - "end": { - "line": 451, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16648, - "end": 16649, - "loc": { - "start": { - "line": 451, - "column": 26 - }, - "end": { - "line": 451, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16649, - "end": 16650, - "loc": { - "start": { - "line": 451, - "column": 27 - }, - "end": { - "line": 451, - "column": 28 - } - } - }, - { - "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": 16651, - "end": 16655, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16655, - "end": 16656, - "loc": { - "start": { - "line": 451, - "column": 33 - }, - "end": { - "line": 451, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 16656, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 34 - }, - "end": { - "line": 451, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16677, - "end": 16678, - "loc": { - "start": { - "line": 451, - "column": 55 - }, - "end": { - "line": 451, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16678, - "end": 16680, - "loc": { - "start": { - "line": 451, - "column": 56 - }, - "end": { - "line": 451, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16680, - "end": 16681, - "loc": { - "start": { - "line": 451, - "column": 58 - }, - "end": { - "line": 451, - "column": 59 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16681, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 59 - }, - "end": { - "line": 451, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16686, - "end": 16687, - "loc": { - "start": { - "line": 452, - "column": 2 - }, - "end": { - "line": 452, - "column": 3 - } - } - }, - { - "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": 16688, - "end": 16692, - "loc": { - "start": { - "line": 452, - "column": 4 - }, - "end": { - "line": 452, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16693, - "end": 16694, - "loc": { - "start": { - "line": 452, - "column": 9 - }, - "end": { - "line": 452, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16699, - "end": 16701, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16702, - "end": 16703, - "loc": { - "start": { - "line": 453, - "column": 6 - }, - "end": { - "line": 453, - "column": 7 - } - } - }, - { - "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": 16704, - "end": 16708, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16708, - "end": 16709, - "loc": { - "start": { - "line": 453, - "column": 12 - }, - "end": { - "line": 453, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 16709, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 13 - }, - "end": { - "line": 453, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16719, - "end": 16720, - "loc": { - "start": { - "line": 453, - "column": 23 - }, - "end": { - "line": 453, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16720, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 24 - }, - "end": { - "line": 453, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16721, - "end": 16722, - "loc": { - "start": { - "line": 453, - "column": 25 - }, - "end": { - "line": 453, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16726, - "end": 16727, - "loc": { - "start": { - "line": 454, - "column": 2 - }, - "end": { - "line": 454, - "column": 3 - } - } - }, - { - "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": 16736, - "end": 16740, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16740, - "end": 16741, - "loc": { - "start": { - "line": 456, - "column": 6 - }, - "end": { - "line": 456, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 16741, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 7 - }, - "end": { - "line": 456, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16752, - "end": 16753, - "loc": { - "start": { - "line": 456, - "column": 18 - }, - "end": { - "line": 456, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16753, - "end": 16755, - "loc": { - "start": { - "line": 456, - "column": 19 - }, - "end": { - "line": 456, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16755, - "end": 16756, - "loc": { - "start": { - "line": 456, - "column": 21 - }, - "end": { - "line": 456, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16757, - "end": 16758, - "loc": { - "start": { - "line": 456, - "column": 23 - }, - "end": { - "line": 456, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16759, - "end": 16760, - "loc": { - "start": { - "line": 456, - "column": 25 - }, - "end": { - "line": 456, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "duration", - "start": 16765, - "end": 16775, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 13 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16775, - "end": 16776, - "loc": { - "start": { - "line": 457, - "column": 13 - }, - "end": { - "line": 457, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 16777, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 15 - }, - "end": { - "line": 457, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16786, - "end": 16787, - "loc": { - "start": { - "line": 457, - "column": 24 - }, - "end": { - "line": 457, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "timeTracker", - "start": 16792, - "end": 16805, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16805, - "end": 16806, - "loc": { - "start": { - "line": 458, - "column": 16 - }, - "end": { - "line": 458, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 16807, - "end": 16817, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 28 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16818, - "end": 16819, - "loc": { - "start": { - "line": 458, - "column": 29 - }, - "end": { - "line": 458, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16820, - "end": 16829, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16829, - "end": 16830, - "loc": { - "start": { - "line": 458, - "column": 40 - }, - "end": { - "line": 458, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 16830, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 41 - }, - "end": { - "line": 458, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16834, - "end": 16835, - "loc": { - "start": { - "line": 458, - "column": 45 - }, - "end": { - "line": 458, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lifetime", - "start": 16835, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 46 - }, - "end": { - "line": 458, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16844, - "end": 16845, - "loc": { - "start": { - "line": 458, - "column": 55 - }, - "end": { - "line": 458, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 16846, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 57 - }, - "end": { - "line": 458, - "column": 58 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16851, - "end": 16852, - "loc": { - "start": { - "line": 459, - "column": 2 - }, - "end": { - "line": 459, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16852, - "end": 16853, - "loc": { - "start": { - "line": 459, - "column": 3 - }, - "end": { - "line": 459, - "column": 4 - } - } - }, - { - "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": 16859, - "end": 16864, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 461, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 16865, - "end": 16878, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16879, - "end": 16880, - "loc": { - "start": { - "line": 461, - "column": 22 - }, - "end": { - "line": 461, - "column": 23 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 16881, - "end": 16885, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16885, - "end": 16886, - "loc": { - "start": { - "line": 461, - "column": 28 - }, - "end": { - "line": 461, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 16886, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 29 - }, - "end": { - "line": 461, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16895, - "end": 16896, - "loc": { - "start": { - "line": 461, - "column": 38 - }, - "end": { - "line": 461, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartColor", - "start": 16896, - "end": 16907, - "loc": { - "start": { - "line": 461, - "column": 39 - }, - "end": { - "line": 461, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16907, - "end": 16908, - "loc": { - "start": { - "line": 461, - "column": 50 - }, - "end": { - "line": 461, - "column": 51 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16908, - "end": 16909, - "loc": { - "start": { - "line": 461, - "column": 51 - }, - "end": { - "line": 461, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 16909, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 52 - }, - "end": { - "line": 461, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16917, - "end": 16918, - "loc": { - "start": { - "line": 461, - "column": 60 - }, - "end": { - "line": 461, - "column": 61 - } - } - }, - { - "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": 16922, - "end": 16927, - "loc": { - "start": { - "line": 462, - "column": 2 - }, - "end": { - "line": 462, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 16928, - "end": 16939, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16940, - "end": 16941, - "loc": { - "start": { - "line": 462, - "column": 20 - }, - "end": { - "line": 462, - "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": 16942, - "end": 16946, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16946, - "end": 16947, - "loc": { - "start": { - "line": 462, - "column": 26 - }, - "end": { - "line": 462, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 16947, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 27 - }, - "end": { - "line": 462, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16956, - "end": 16957, - "loc": { - "start": { - "line": 462, - "column": 36 - }, - "end": { - "line": 462, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndColor", - "start": 16957, - "end": 16966, - "loc": { - "start": { - "line": 462, - "column": 37 - }, - "end": { - "line": 462, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16966, - "end": 16967, - "loc": { - "start": { - "line": 462, - "column": 46 - }, - "end": { - "line": 462, - "column": 47 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16967, - "end": 16968, - "loc": { - "start": { - "line": 462, - "column": 47 - }, - "end": { - "line": 462, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 16968, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 48 - }, - "end": { - "line": 462, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16976, - "end": 16977, - "loc": { - "start": { - "line": 462, - "column": 56 - }, - "end": { - "line": 462, - "column": 57 - } - } - }, - { - "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": 16983, - "end": 16988, - "loc": { - "start": { - "line": 464, - "column": 2 - }, - "end": { - "line": 464, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 16989, - "end": 16993, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16994, - "end": 16995, - "loc": { - "start": { - "line": 464, - "column": 13 - }, - "end": { - "line": 464, - "column": 14 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 16996, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 15 - }, - "end": { - "line": 464, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17000, - "end": 17001, - "loc": { - "start": { - "line": 464, - "column": 19 - }, - "end": { - "line": 464, - "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": 17005, - "end": 17009, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17009, - "end": 17010, - "loc": { - "start": { - "line": 465, - "column": 6 - }, - "end": { - "line": 465, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17010, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 7 - }, - "end": { - "line": 465, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17021, - "end": 17022, - "loc": { - "start": { - "line": 465, - "column": 18 - }, - "end": { - "line": 465, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17022, - "end": 17024, - "loc": { - "start": { - "line": 465, - "column": 19 - }, - "end": { - "line": 465, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17024, - "end": 17025, - "loc": { - "start": { - "line": 465, - "column": 21 - }, - "end": { - "line": 465, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17025, - "end": 17026, - "loc": { - "start": { - "line": 465, - "column": 22 - }, - "end": { - "line": 465, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 17026, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 23 - }, - "end": { - "line": 465, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17031, - "end": 17032, - "loc": { - "start": { - "line": 465, - "column": 28 - }, - "end": { - "line": 465, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17033, - "end": 17034, - "loc": { - "start": { - "line": 465, - "column": 30 - }, - "end": { - "line": 465, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTimeStamp", - "start": 17034, - "end": 17044, - "loc": { - "start": { - "line": 465, - "column": 31 - }, - "end": { - "line": 465, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17044, - "end": 17045, - "loc": { - "start": { - "line": 465, - "column": 41 - }, - "end": { - "line": 465, - "column": 42 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17046, - "end": 17048, - "loc": { - "start": { - "line": 465, - "column": 43 - }, - "end": { - "line": 465, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17049, - "end": 17050, - "loc": { - "start": { - "line": 465, - "column": 46 - }, - "end": { - "line": 465, - "column": 47 - } - } - }, - { - "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": 17055, - "end": 17057, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 466, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17058, - "end": 17059, - "loc": { - "start": { - "line": 466, - "column": 6 - }, - "end": { - "line": 466, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17059, - "end": 17063, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17063, - "end": 17064, - "loc": { - "start": { - "line": 466, - "column": 11 - }, - "end": { - "line": 466, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17064, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 12 - }, - "end": { - "line": 466, - "column": 23 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17075, - "end": 17076, - "loc": { - "start": { - "line": 466, - "column": 23 - }, - "end": { - "line": 466, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17076, - "end": 17078, - "loc": { - "start": { - "line": 466, - "column": 24 - }, - "end": { - "line": 466, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17078, - "end": 17079, - "loc": { - "start": { - "line": 466, - "column": 26 - }, - "end": { - "line": 466, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17079, - "end": 17080, - "loc": { - "start": { - "line": 466, - "column": 27 - }, - "end": { - "line": 466, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17081, - "end": 17082, - "loc": { - "start": { - "line": 466, - "column": 29 - }, - "end": { - "line": 466, - "column": 30 - } - } - }, - { - "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": 17088, - "end": 17090, - "loc": { - "start": { - "line": 467, - "column": 4 - }, - "end": { - "line": 467, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17091, - "end": 17092, - "loc": { - "start": { - "line": 467, - "column": 7 - }, - "end": { - "line": 467, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 17092, - "end": 17102, - "loc": { - "start": { - "line": 467, - "column": 8 - }, - "end": { - "line": 467, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17102, - "end": 17103, - "loc": { - "start": { - "line": 467, - "column": 18 - }, - "end": { - "line": 467, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17104, - "end": 17105, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 467, - "column": 21 - } - } - }, - { - "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": 17112, - "end": 17114, - "loc": { - "start": { - "line": 468, - "column": 5 - }, - "end": { - "line": 468, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17115, - "end": 17116, - "loc": { - "start": { - "line": 468, - "column": 8 - }, - "end": { - "line": 468, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 17116, - "end": 17125, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17125, - "end": 17126, - "loc": { - "start": { - "line": 468, - "column": 18 - }, - "end": { - "line": 468, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 17126, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 19 - }, - "end": { - "line": 468, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17130, - "end": 17131, - "loc": { - "start": { - "line": 468, - "column": 23 - }, - "end": { - "line": 468, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17132, - "end": 17133, - "loc": { - "start": { - "line": 468, - "column": 25 - }, - "end": { - "line": 468, - "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": 17141, - "end": 17143, - "loc": { - "start": { - "line": 469, - "column": 6 - }, - "end": { - "line": 469, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17144, - "end": 17145, - "loc": { - "start": { - "line": 469, - "column": 9 - }, - "end": { - "line": 469, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 17145, - "end": 17154, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17154, - "end": 17155, - "loc": { - "start": { - "line": 469, - "column": 19 - }, - "end": { - "line": 469, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 17155, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 20 - }, - "end": { - "line": 469, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17159, - "end": 17160, - "loc": { - "start": { - "line": 469, - "column": 24 - }, - "end": { - "line": 469, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "owner", - "start": 17160, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 25 - }, - "end": { - "line": 469, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17165, - "end": 17166, - "loc": { - "start": { - "line": 469, - "column": 30 - }, - "end": { - "line": 469, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17167, - "end": 17168, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 469, - "column": 33 - } - } - }, - { - "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": 17177, - "end": 17179, - "loc": { - "start": { - "line": 470, - "column": 7 - }, - "end": { - "line": 470, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17180, - "end": 17181, - "loc": { - "start": { - "line": 470, - "column": 10 - }, - "end": { - "line": 470, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 17181, - "end": 17190, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17190, - "end": 17191, - "loc": { - "start": { - "line": 470, - "column": 20 - }, - "end": { - "line": 470, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 17191, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 21 - }, - "end": { - "line": 470, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17195, - "end": 17196, - "loc": { - "start": { - "line": 470, - "column": 25 - }, - "end": { - "line": 470, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "owner", - "start": 17196, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 26 - }, - "end": { - "line": 470, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17201, - "end": 17202, - "loc": { - "start": { - "line": 470, - "column": 31 - }, - "end": { - "line": 470, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 17202, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 32 - }, - "end": { - "line": 470, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17210, - "end": 17211, - "loc": { - "start": { - "line": 470, - "column": 40 - }, - "end": { - "line": 470, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "paused", - "start": 17211, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 41 - }, - "end": { - "line": 470, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17217, - "end": 17218, - "loc": { - "start": { - "line": 470, - "column": 47 - }, - "end": { - "line": 470, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17219, - "end": 17220, - "loc": { - "start": { - "line": 470, - "column": 49 - }, - "end": { - "line": 470, - "column": 50 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 17230, - "end": 17236, - "loc": { - "start": { - "line": 471, - "column": 8 - }, - "end": { - "line": 471, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17236, - "end": 17237, - "loc": { - "start": { - "line": 471, - "column": 14 - }, - "end": { - "line": 471, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17246, - "end": 17247, - "loc": { - "start": { - "line": 472, - "column": 7 - }, - "end": { - "line": 472, - "column": 8 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17255, - "end": 17256, - "loc": { - "start": { - "line": 473, - "column": 6 - }, - "end": { - "line": 473, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17263, - "end": 17264, - "loc": { - "start": { - "line": 474, - "column": 5 - }, - "end": { - "line": 474, - "column": 6 - } - } - }, - { - "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": 17265, - "end": 17269, - "loc": { - "start": { - "line": 474, - "column": 7 - }, - "end": { - "line": 474, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17270, - "end": 17271, - "loc": { - "start": { - "line": 474, - "column": 12 - }, - "end": { - "line": 474, - "column": 13 - } - } - }, - { - "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": 17279, - "end": 17281, - "loc": { - "start": { - "line": 475, - "column": 6 - }, - "end": { - "line": 475, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17282, - "end": 17283, - "loc": { - "start": { - "line": 475, - "column": 9 - }, - "end": { - "line": 475, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17283, - "end": 17287, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17287, - "end": 17288, - "loc": { - "start": { - "line": 475, - "column": 14 - }, - "end": { - "line": 475, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17288, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 15 - }, - "end": { - "line": 475, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17299, - "end": 17300, - "loc": { - "start": { - "line": 475, - "column": 26 - }, - "end": { - "line": 475, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17300, - "end": 17302, - "loc": { - "start": { - "line": 475, - "column": 27 - }, - "end": { - "line": 475, - "column": 29 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17302, - "end": 17303, - "loc": { - "start": { - "line": 475, - "column": 29 - }, - "end": { - "line": 475, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17303, - "end": 17304, - "loc": { - "start": { - "line": 475, - "column": 30 - }, - "end": { - "line": 475, - "column": 31 - } - } - }, - { - "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": 17305, - "end": 17309, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17309, - "end": 17310, - "loc": { - "start": { - "line": 475, - "column": 36 - }, - "end": { - "line": 475, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 17310, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 37 - }, - "end": { - "line": 475, - "column": 58 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17331, - "end": 17332, - "loc": { - "start": { - "line": 475, - "column": 58 - }, - "end": { - "line": 475, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17332, - "end": 17334, - "loc": { - "start": { - "line": 475, - "column": 59 - }, - "end": { - "line": 475, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17334, - "end": 17335, - "loc": { - "start": { - "line": 475, - "column": 61 - }, - "end": { - "line": 475, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17335, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 62 - }, - "end": { - "line": 475, - "column": 63 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 17344, - "end": 17350, - "loc": { - "start": { - "line": 476, - "column": 6 - }, - "end": { - "line": 476, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17350, - "end": 17351, - "loc": { - "start": { - "line": 476, - "column": 12 - }, - "end": { - "line": 476, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17362, - "end": 17363, - "loc": { - "start": { - "line": 477, - "column": 5 - }, - "end": { - "line": 477, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17369, - "end": 17370, - "loc": { - "start": { - "line": 478, - "column": 4 - }, - "end": { - "line": 478, - "column": 5 - } - } - }, - { - "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": 17378, - "end": 17383, - "loc": { - "start": { - "line": 480, - "column": 4 - }, - "end": { - "line": 480, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 17384, - "end": 17387, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17388, - "end": 17389, - "loc": { - "start": { - "line": 480, - "column": 14 - }, - "end": { - "line": 480, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTimeStamp", - "start": 17390, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 16 - }, - "end": { - "line": 480, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17400, - "end": 17401, - "loc": { - "start": { - "line": 480, - "column": 26 - }, - "end": { - "line": 480, - "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": 17407, - "end": 17409, - "loc": { - "start": { - "line": 481, - "column": 4 - }, - "end": { - "line": 481, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17410, - "end": 17411, - "loc": { - "start": { - "line": 481, - "column": 7 - }, - "end": { - "line": 481, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 17411, - "end": 17412, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17412, - "end": 17416, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17416, - "end": 17417, - "loc": { - "start": { - "line": 481, - "column": 13 - }, - "end": { - "line": 481, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17417, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 14 - }, - "end": { - "line": 481, - "column": 25 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17428, - "end": 17429, - "loc": { - "start": { - "line": 481, - "column": 25 - }, - "end": { - "line": 481, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17429, - "end": 17431, - "loc": { - "start": { - "line": 481, - "column": 26 - }, - "end": { - "line": 481, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17431, - "end": 17432, - "loc": { - "start": { - "line": 481, - "column": 28 - }, - "end": { - "line": 481, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17432, - "end": 17433, - "loc": { - "start": { - "line": 481, - "column": 29 - }, - "end": { - "line": 481, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 17433, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 30 - }, - "end": { - "line": 481, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17441, - "end": 17442, - "loc": { - "start": { - "line": 481, - "column": 38 - }, - "end": { - "line": 481, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17443, - "end": 17447, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17447, - "end": 17448, - "loc": { - "start": { - "line": 481, - "column": 44 - }, - "end": { - "line": 481, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17448, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 45 - }, - "end": { - "line": 481, - "column": 56 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17459, - "end": 17460, - "loc": { - "start": { - "line": 481, - "column": 56 - }, - "end": { - "line": 481, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17460, - "end": 17462, - "loc": { - "start": { - "line": 481, - "column": 57 - }, - "end": { - "line": 481, - "column": 59 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17462, - "end": 17463, - "loc": { - "start": { - "line": 481, - "column": 59 - }, - "end": { - "line": 481, - "column": 60 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17463, - "end": 17464, - "loc": { - "start": { - "line": 481, - "column": 60 - }, - "end": { - "line": 481, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 17464, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 61 - }, - "end": { - "line": 481, - "column": 69 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17473, - "end": 17474, - "loc": { - "start": { - "line": 481, - "column": 70 - }, - "end": { - "line": 481, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 17475, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 72 - }, - "end": { - "line": 481, - "column": 75 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17478, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 75 - }, - "end": { - "line": 481, - "column": 76 - } - } - }, - { - "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": 17485, - "end": 17490, - "loc": { - "start": { - "line": 482, - "column": 4 - }, - "end": { - "line": 482, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "elapsed", - "start": 17491, - "end": 17498, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17499, - "end": 17500, - "loc": { - "start": { - "line": 482, - "column": 18 - }, - "end": { - "line": 482, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 17501, - "end": 17504, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 23 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 17505, - "end": 17506, - "loc": { - "start": { - "line": 482, - "column": 24 - }, - "end": { - "line": 482, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17507, - "end": 17511, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17511, - "end": 17512, - "loc": { - "start": { - "line": 482, - "column": 30 - }, - "end": { - "line": 482, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17512, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 31 - }, - "end": { - "line": 482, - "column": 42 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17523, - "end": 17524, - "loc": { - "start": { - "line": 482, - "column": 42 - }, - "end": { - "line": 482, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17524, - "end": 17526, - "loc": { - "start": { - "line": 482, - "column": 43 - }, - "end": { - "line": 482, - "column": 45 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17526, - "end": 17527, - "loc": { - "start": { - "line": 482, - "column": 45 - }, - "end": { - "line": 482, - "column": 46 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17527, - "end": 17528, - "loc": { - "start": { - "line": 482, - "column": 46 - }, - "end": { - "line": 482, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 17528, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 47 - }, - "end": { - "line": 482, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17536, - "end": 17537, - "loc": { - "start": { - "line": 482, - "column": 55 - }, - "end": { - "line": 482, - "column": 56 - } - } - }, - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17732, - "end": 17736, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17736, - "end": 17737, - "loc": { - "start": { - "line": 484, - "column": 8 - }, - "end": { - "line": 484, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17737, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 9 - }, - "end": { - "line": 484, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17748, - "end": 17749, - "loc": { - "start": { - "line": 484, - "column": 20 - }, - "end": { - "line": 484, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17749, - "end": 17751, - "loc": { - "start": { - "line": 484, - "column": 21 - }, - "end": { - "line": 484, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17751, - "end": 17752, - "loc": { - "start": { - "line": 484, - "column": 23 - }, - "end": { - "line": 484, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17752, - "end": 17753, - "loc": { - "start": { - "line": 484, - "column": 24 - }, - "end": { - "line": 484, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 17753, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 25 - }, - "end": { - "line": 484, - "column": 36 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 17765, - "end": 17767, - "loc": { - "start": { - "line": 484, - "column": 37 - }, - "end": { - "line": 484, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "elapsed", - "start": 17768, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 40 - }, - "end": { - "line": 484, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17775, - "end": 17776, - "loc": { - "start": { - "line": 484, - "column": 47 - }, - "end": { - "line": 484, - "column": 48 - } - } - }, - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - }, - { - "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": 17844, - "end": 17849, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 17850, - "end": 17860, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17861, - "end": 17862, - "loc": { - "start": { - "line": 486, - "column": 21 - }, - "end": { - "line": 486, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 17863, - "end": 17867, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17867, - "end": 17868, - "loc": { - "start": { - "line": 486, - "column": 27 - }, - "end": { - "line": 486, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "min", - "start": 17868, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 28 - }, - "end": { - "line": 486, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17871, - "end": 17872, - "loc": { - "start": { - "line": 486, - "column": 31 - }, - "end": { - "line": 486, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17872, - "end": 17876, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17876, - "end": 17877, - "loc": { - "start": { - "line": 486, - "column": 36 - }, - "end": { - "line": 486, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17877, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 37 - }, - "end": { - "line": 486, - "column": 48 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17888, - "end": 17889, - "loc": { - "start": { - "line": 486, - "column": 48 - }, - "end": { - "line": 486, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17889, - "end": 17891, - "loc": { - "start": { - "line": 486, - "column": 49 - }, - "end": { - "line": 486, - "column": 51 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17891, - "end": 17892, - "loc": { - "start": { - "line": 486, - "column": 51 - }, - "end": { - "line": 486, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17892, - "end": 17893, - "loc": { - "start": { - "line": 486, - "column": 52 - }, - "end": { - "line": 486, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 17893, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 53 - }, - "end": { - "line": 486, - "column": 64 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 17905, - "end": 17906, - "loc": { - "start": { - "line": 486, - "column": 65 - }, - "end": { - "line": 486, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17907, - "end": 17911, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17911, - "end": 17912, - "loc": { - "start": { - "line": 486, - "column": 71 - }, - "end": { - "line": 486, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17912, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 72 - }, - "end": { - "line": 486, - "column": 83 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17923, - "end": 17924, - "loc": { - "start": { - "line": 486, - "column": 83 - }, - "end": { - "line": 486, - "column": 84 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17924, - "end": 17926, - "loc": { - "start": { - "line": 486, - "column": 84 - }, - "end": { - "line": 486, - "column": 86 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17926, - "end": 17927, - "loc": { - "start": { - "line": 486, - "column": 86 - }, - "end": { - "line": 486, - "column": 87 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17927, - "end": 17928, - "loc": { - "start": { - "line": 486, - "column": 87 - }, - "end": { - "line": 486, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duration", - "start": 17928, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 88 - }, - "end": { - "line": 486, - "column": 96 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17936, - "end": 17937, - "loc": { - "start": { - "line": 486, - "column": 96 - }, - "end": { - "line": 486, - "column": 97 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 17938, - "end": 17939, - "loc": { - "start": { - "line": 486, - "column": 98 - }, - "end": { - "line": 486, - "column": 99 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17939, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 99 - }, - "end": { - "line": 486, - "column": 100 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17940, - "end": 17941, - "loc": { - "start": { - "line": 486, - "column": 100 - }, - "end": { - "line": 486, - "column": 101 - } - } - }, - { - "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": 17953, - "end": 17958, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 17959, - "end": 17960, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17961, - "end": 17962, - "loc": { - "start": { - "line": 488, - "column": 12 - }, - "end": { - "line": 488, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 17963, - "end": 17971, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17971, - "end": 17972, - "loc": { - "start": { - "line": 488, - "column": 22 - }, - "end": { - "line": 488, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17972, - "end": 17976, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17976, - "end": 17977, - "loc": { - "start": { - "line": 488, - "column": 27 - }, - "end": { - "line": 488, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 17977, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 28 - }, - "end": { - "line": 488, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17981, - "end": 17982, - "loc": { - "start": { - "line": 488, - "column": 32 - }, - "end": { - "line": 488, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 17982, - "end": 17995, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17995, - "end": 17996, - "loc": { - "start": { - "line": 488, - "column": 46 - }, - "end": { - "line": 488, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 17996, - "end": 17997, - "loc": { - "start": { - "line": 488, - "column": 47 - }, - "end": { - "line": 488, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17997, - "end": 17998, - "loc": { - "start": { - "line": 488, - "column": 48 - }, - "end": { - "line": 488, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17998, - "end": 17999, - "loc": { - "start": { - "line": 488, - "column": 49 - }, - "end": { - "line": 488, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 18000, - "end": 18011, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18011, - "end": 18012, - "loc": { - "start": { - "line": 488, - "column": 62 - }, - "end": { - "line": 488, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 18012, - "end": 18013, - "loc": { - "start": { - "line": 488, - "column": 63 - }, - "end": { - "line": 488, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18013, - "end": 18014, - "loc": { - "start": { - "line": 488, - "column": 64 - }, - "end": { - "line": 488, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18014, - "end": 18015, - "loc": { - "start": { - "line": 488, - "column": 65 - }, - "end": { - "line": 488, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 18016, - "end": 18026, - "loc": { - "start": { - "line": 488, - "column": 67 - }, - "end": { - "line": 488, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18026, - "end": 18027, - "loc": { - "start": { - "line": 488, - "column": 77 - }, - "end": { - "line": 488, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18027, - "end": 18028, - "loc": { - "start": { - "line": 488, - "column": 78 - }, - "end": { - "line": 488, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 18029, - "end": 18031, - "loc": { - "start": { - "line": 488, - "column": 80 - }, - "end": { - "line": 488, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18031, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 82 - }, - "end": { - "line": 488, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18032, - "end": 18033, - "loc": { - "start": { - "line": 488, - "column": 83 - }, - "end": { - "line": 488, - "column": 84 - } - } - }, - { - "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": 18039, - "end": 18044, - "loc": { - "start": { - "line": 489, - "column": 4 - }, - "end": { - "line": 489, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 18045, - "end": 18046, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18047, - "end": 18048, - "loc": { - "start": { - "line": 489, - "column": 12 - }, - "end": { - "line": 489, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 18049, - "end": 18057, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18057, - "end": 18058, - "loc": { - "start": { - "line": 489, - "column": 22 - }, - "end": { - "line": 489, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18058, - "end": 18062, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18062, - "end": 18063, - "loc": { - "start": { - "line": 489, - "column": 27 - }, - "end": { - "line": 489, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 18063, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 28 - }, - "end": { - "line": 489, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18067, - "end": 18068, - "loc": { - "start": { - "line": 489, - "column": 32 - }, - "end": { - "line": 489, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 18068, - "end": 18081, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18081, - "end": 18082, - "loc": { - "start": { - "line": 489, - "column": 46 - }, - "end": { - "line": 489, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 18082, - "end": 18083, - "loc": { - "start": { - "line": 489, - "column": 47 - }, - "end": { - "line": 489, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18083, - "end": 18084, - "loc": { - "start": { - "line": 489, - "column": 48 - }, - "end": { - "line": 489, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18084, - "end": 18085, - "loc": { - "start": { - "line": 489, - "column": 49 - }, - "end": { - "line": 489, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 18086, - "end": 18097, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18097, - "end": 18098, - "loc": { - "start": { - "line": 489, - "column": 62 - }, - "end": { - "line": 489, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 18098, - "end": 18099, - "loc": { - "start": { - "line": 489, - "column": 63 - }, - "end": { - "line": 489, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18099, - "end": 18100, - "loc": { - "start": { - "line": 489, - "column": 64 - }, - "end": { - "line": 489, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18100, - "end": 18101, - "loc": { - "start": { - "line": 489, - "column": 65 - }, - "end": { - "line": 489, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 18102, - "end": 18112, - "loc": { - "start": { - "line": 489, - "column": 67 - }, - "end": { - "line": 489, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18112, - "end": 18113, - "loc": { - "start": { - "line": 489, - "column": 77 - }, - "end": { - "line": 489, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18113, - "end": 18114, - "loc": { - "start": { - "line": 489, - "column": 78 - }, - "end": { - "line": 489, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 18115, - "end": 18117, - "loc": { - "start": { - "line": 489, - "column": 80 - }, - "end": { - "line": 489, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18117, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 82 - }, - "end": { - "line": 489, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18118, - "end": 18119, - "loc": { - "start": { - "line": 489, - "column": 83 - }, - "end": { - "line": 489, - "column": 84 - } - } - }, - { - "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": 18125, - "end": 18130, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 18131, - "end": 18132, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18133, - "end": 18134, - "loc": { - "start": { - "line": 490, - "column": 12 - }, - "end": { - "line": 490, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 18135, - "end": 18143, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18143, - "end": 18144, - "loc": { - "start": { - "line": 490, - "column": 22 - }, - "end": { - "line": 490, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18144, - "end": 18148, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18148, - "end": 18149, - "loc": { - "start": { - "line": 490, - "column": 27 - }, - "end": { - "line": 490, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 18149, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 28 - }, - "end": { - "line": 490, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18153, - "end": 18154, - "loc": { - "start": { - "line": 490, - "column": 32 - }, - "end": { - "line": 490, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 18154, - "end": 18167, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18167, - "end": 18168, - "loc": { - "start": { - "line": 490, - "column": 46 - }, - "end": { - "line": 490, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 18168, - "end": 18169, - "loc": { - "start": { - "line": 490, - "column": 47 - }, - "end": { - "line": 490, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18169, - "end": 18170, - "loc": { - "start": { - "line": 490, - "column": 48 - }, - "end": { - "line": 490, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18170, - "end": 18171, - "loc": { - "start": { - "line": 490, - "column": 49 - }, - "end": { - "line": 490, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 18172, - "end": 18183, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18183, - "end": 18184, - "loc": { - "start": { - "line": 490, - "column": 62 - }, - "end": { - "line": 490, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 18184, - "end": 18185, - "loc": { - "start": { - "line": 490, - "column": 63 - }, - "end": { - "line": 490, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18185, - "end": 18186, - "loc": { - "start": { - "line": 490, - "column": 64 - }, - "end": { - "line": 490, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18186, - "end": 18187, - "loc": { - "start": { - "line": 490, - "column": 65 - }, - "end": { - "line": 490, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 18188, - "end": 18198, - "loc": { - "start": { - "line": 490, - "column": 67 - }, - "end": { - "line": 490, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18198, - "end": 18199, - "loc": { - "start": { - "line": 490, - "column": 77 - }, - "end": { - "line": 490, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18199, - "end": 18200, - "loc": { - "start": { - "line": 490, - "column": 78 - }, - "end": { - "line": 490, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 18201, - "end": 18203, - "loc": { - "start": { - "line": 490, - "column": 80 - }, - "end": { - "line": 490, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18203, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 82 - }, - "end": { - "line": 490, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18204, - "end": 18205, - "loc": { - "start": { - "line": 490, - "column": 83 - }, - "end": { - "line": 490, - "column": 84 - } - } - }, - { - "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": 18211, - "end": 18216, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 491, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18217, - "end": 18222, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18223, - "end": 18224, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 491, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18225, - "end": 18229, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18229, - "end": 18230, - "loc": { - "start": { - "line": 491, - "column": 22 - }, - "end": { - "line": 491, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 18230, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 23 - }, - "end": { - "line": 491, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18239, - "end": 18240, - "loc": { - "start": { - "line": 491, - "column": 32 - }, - "end": { - "line": 491, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 18240, - "end": 18241, - "loc": { - "start": { - "line": 491, - "column": 33 - }, - "end": { - "line": 491, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18241, - "end": 18242, - "loc": { - "start": { - "line": 491, - "column": 34 - }, - "end": { - "line": 491, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 18243, - "end": 18244, - "loc": { - "start": { - "line": 491, - "column": 36 - }, - "end": { - "line": 491, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18244, - "end": 18245, - "loc": { - "start": { - "line": 491, - "column": 37 - }, - "end": { - "line": 491, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 18246, - "end": 18247, - "loc": { - "start": { - "line": 491, - "column": 39 - }, - "end": { - "line": 491, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18247, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 40 - }, - "end": { - "line": 491, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18248, - "end": 18249, - "loc": { - "start": { - "line": 491, - "column": 41 - }, - "end": { - "line": 491, - "column": 42 - } - } - }, - { - "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": 18257, - "end": 18259, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18260, - "end": 18261, - "loc": { - "start": { - "line": 493, - "column": 7 - }, - "end": { - "line": 493, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 18261, - "end": 18278, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18278, - "end": 18279, - "loc": { - "start": { - "line": 493, - "column": 25 - }, - "end": { - "line": 493, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 18280, - "end": 18297, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18297, - "end": 18298, - "loc": { - "start": { - "line": 493, - "column": 44 - }, - "end": { - "line": 493, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18298, - "end": 18303, - "loc": { - "start": { - "line": 493, - "column": 45 - }, - "end": { - "line": 493, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18303, - "end": 18304, - "loc": { - "start": { - "line": 493, - "column": 50 - }, - "end": { - "line": 493, - "column": 51 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18304, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 51 - }, - "end": { - "line": 493, - "column": 52 - } - } - }, - { - "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": 18313, - "end": 18315, - "loc": { - "start": { - "line": 495, - "column": 4 - }, - "end": { - "line": 495, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18316, - "end": 18317, - "loc": { - "start": { - "line": 495, - "column": 7 - }, - "end": { - "line": 495, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18317, - "end": 18326, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18326, - "end": 18327, - "loc": { - "start": { - "line": 495, - "column": 17 - }, - "end": { - "line": 495, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18328, - "end": 18329, - "loc": { - "start": { - "line": 495, - "column": 19 - }, - "end": { - "line": 495, - "column": 20 - } - } - }, - { - "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": 18336, - "end": 18338, - "loc": { - "start": { - "line": 496, - "column": 5 - }, - "end": { - "line": 496, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18339, - "end": 18340, - "loc": { - "start": { - "line": 496, - "column": 8 - }, - "end": { - "line": 496, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 18340, - "end": 18352, - "loc": { - "start": { - "line": 496, - "column": 9 - }, - "end": { - "line": 496, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18352, - "end": 18353, - "loc": { - "start": { - "line": 496, - "column": 21 - }, - "end": { - "line": 496, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18354, - "end": 18355, - "loc": { - "start": { - "line": 496, - "column": 23 - }, - "end": { - "line": 496, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18363, - "end": 18372, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18372, - "end": 18373, - "loc": { - "start": { - "line": 497, - "column": 15 - }, - "end": { - "line": 497, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18373, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 16 - }, - "end": { - "line": 497, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18378, - "end": 18379, - "loc": { - "start": { - "line": 497, - "column": 21 - }, - "end": { - "line": 497, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tint", - "start": 18379, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 22 - }, - "end": { - "line": 497, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18384, - "end": 18385, - "loc": { - "start": { - "line": 497, - "column": 27 - }, - "end": { - "line": 497, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18386, - "end": 18391, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18391, - "end": 18392, - "loc": { - "start": { - "line": 497, - "column": 34 - }, - "end": { - "line": 497, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 18392, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 35 - }, - "end": { - "line": 497, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18399, - "end": 18400, - "loc": { - "start": { - "line": 497, - "column": 42 - }, - "end": { - "line": 497, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18408, - "end": 18417, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18417, - "end": 18418, - "loc": { - "start": { - "line": 498, - "column": 15 - }, - "end": { - "line": 498, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18418, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 16 - }, - "end": { - "line": 498, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18424, - "end": 18425, - "loc": { - "start": { - "line": 498, - "column": 22 - }, - "end": { - "line": 498, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18426, - "end": 18435, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18435, - "end": 18436, - "loc": { - "start": { - "line": 498, - "column": 33 - }, - "end": { - "line": 498, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18436, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 34 - }, - "end": { - "line": 498, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18441, - "end": 18442, - "loc": { - "start": { - "line": 498, - "column": 39 - }, - "end": { - "line": 498, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18449, - "end": 18450, - "loc": { - "start": { - "line": 499, - "column": 5 - }, - "end": { - "line": 499, - "column": 6 - } - } - }, - { - "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": 18451, - "end": 18455, - "loc": { - "start": { - "line": 499, - "column": 7 - }, - "end": { - "line": 499, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18456, - "end": 18457, - "loc": { - "start": { - "line": 499, - "column": 12 - }, - "end": { - "line": 499, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18465, - "end": 18474, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18474, - "end": 18475, - "loc": { - "start": { - "line": 500, - "column": 15 - }, - "end": { - "line": 500, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18475, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18481, - "end": 18482, - "loc": { - "start": { - "line": 500, - "column": 22 - }, - "end": { - "line": 500, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18483, - "end": 18488, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18488, - "end": 18489, - "loc": { - "start": { - "line": 500, - "column": 29 - }, - "end": { - "line": 500, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 18489, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 30 - }, - "end": { - "line": 500, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18492, - "end": 18493, - "loc": { - "start": { - "line": 500, - "column": 33 - }, - "end": { - "line": 500, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18500, - "end": 18501, - "loc": { - "start": { - "line": 501, - "column": 5 - }, - "end": { - "line": 501, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18507, - "end": 18508, - "loc": { - "start": { - "line": 502, - "column": 4 - }, - "end": { - "line": 502, - "column": 5 - } - } - }, - { - "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": 18516, - "end": 18518, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18519, - "end": 18520, - "loc": { - "start": { - "line": 504, - "column": 7 - }, - "end": { - "line": 504, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 18520, - "end": 18530, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 18 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 18531, - "end": 18533, - "loc": { - "start": { - "line": 504, - "column": 19 - }, - "end": { - "line": 504, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 18534, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 22 - }, - "end": { - "line": 504, - "column": 23 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 18536, - "end": 18538, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18539, - "end": 18543, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18543, - "end": 18544, - "loc": { - "start": { - "line": 504, - "column": 31 - }, - "end": { - "line": 504, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18544, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 43 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18555, - "end": 18556, - "loc": { - "start": { - "line": 504, - "column": 43 - }, - "end": { - "line": 504, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18556, - "end": 18558, - "loc": { - "start": { - "line": 504, - "column": 44 - }, - "end": { - "line": 504, - "column": 46 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18558, - "end": 18559, - "loc": { - "start": { - "line": 504, - "column": 46 - }, - "end": { - "line": 504, - "column": 47 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18559, - "end": 18560, - "loc": { - "start": { - "line": 504, - "column": 47 - }, - "end": { - "line": 504, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 18560, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 59 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 18572, - "end": 18574, - "loc": { - "start": { - "line": 504, - "column": 60 - }, - "end": { - "line": 504, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 18575, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 72 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18584, - "end": 18585, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 73 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18586, - "end": 18587, - "loc": { - "start": { - "line": 504, - "column": 74 - }, - "end": { - "line": 504, - "column": 75 - } - } - }, - { - "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": 18594, - "end": 18596, - "loc": { - "start": { - "line": 505, - "column": 5 - }, - "end": { - "line": 505, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18597, - "end": 18598, - "loc": { - "start": { - "line": 505, - "column": 8 - }, - "end": { - "line": 505, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18598, - "end": 18602, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18602, - "end": 18603, - "loc": { - "start": { - "line": 505, - "column": 13 - }, - "end": { - "line": 505, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18603, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 14 - }, - "end": { - "line": 505, - "column": 25 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18614, - "end": 18615, - "loc": { - "start": { - "line": 505, - "column": 25 - }, - "end": { - "line": 505, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18615, - "end": 18617, - "loc": { - "start": { - "line": 505, - "column": 26 - }, - "end": { - "line": 505, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18617, - "end": 18618, - "loc": { - "start": { - "line": 505, - "column": 28 - }, - "end": { - "line": 505, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18618, - "end": 18619, - "loc": { - "start": { - "line": 505, - "column": 29 - }, - "end": { - "line": 505, - "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": 18620, - "end": 18624, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18624, - "end": 18625, - "loc": { - "start": { - "line": 505, - "column": 35 - }, - "end": { - "line": 505, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 18625, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 36 - }, - "end": { - "line": 505, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18646, - "end": 18647, - "loc": { - "start": { - "line": 505, - "column": 57 - }, - "end": { - "line": 505, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18647, - "end": 18649, - "loc": { - "start": { - "line": 505, - "column": 58 - }, - "end": { - "line": 505, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18649, - "end": 18650, - "loc": { - "start": { - "line": 505, - "column": 60 - }, - "end": { - "line": 505, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18650, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 61 - }, - "end": { - "line": 505, - "column": 62 - } - } - }, - { - "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": 18658, - "end": 18660, - "loc": { - "start": { - "line": 506, - "column": 5 - }, - "end": { - "line": 506, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18661, - "end": 18662, - "loc": { - "start": { - "line": 506, - "column": 8 - }, - "end": { - "line": 506, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 18662, - "end": 18673, - "loc": { - "start": { - "line": 506, - "column": 9 - }, - "end": { - "line": 506, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18673, - "end": 18674, - "loc": { - "start": { - "line": 506, - "column": 20 - }, - "end": { - "line": 506, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 18675, - "end": 18686, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18686, - "end": 18687, - "loc": { - "start": { - "line": 506, - "column": 33 - }, - "end": { - "line": 506, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18687, - "end": 18692, - "loc": { - "start": { - "line": 506, - "column": 34 - }, - "end": { - "line": 506, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18692, - "end": 18693, - "loc": { - "start": { - "line": 506, - "column": 39 - }, - "end": { - "line": 506, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18693, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 40 - }, - "end": { - "line": 506, - "column": 41 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 18701, - "end": 18707, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18707, - "end": 18708, - "loc": { - "start": { - "line": 507, - "column": 11 - }, - "end": { - "line": 507, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18714, - "end": 18715, - "loc": { - "start": { - "line": 508, - "column": 4 - }, - "end": { - "line": 508, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18721, - "end": 18725, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18725, - "end": 18726, - "loc": { - "start": { - "line": 509, - "column": 8 - }, - "end": { - "line": 509, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18726, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 9 - }, - "end": { - "line": 509, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18737, - "end": 18738, - "loc": { - "start": { - "line": 509, - "column": 20 - }, - "end": { - "line": 509, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18738, - "end": 18740, - "loc": { - "start": { - "line": 509, - "column": 21 - }, - "end": { - "line": 509, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18740, - "end": 18741, - "loc": { - "start": { - "line": 509, - "column": 23 - }, - "end": { - "line": 509, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18741, - "end": 18742, - "loc": { - "start": { - "line": 509, - "column": 24 - }, - "end": { - "line": 509, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 18742, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 25 - }, - "end": { - "line": 509, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18746, - "end": 18747, - "loc": { - "start": { - "line": 509, - "column": 29 - }, - "end": { - "line": 509, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 18748, - "end": 18758, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18758, - "end": 18759, - "loc": { - "start": { - "line": 509, - "column": 41 - }, - "end": { - "line": 509, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requestAnimationFrame", - "start": 18759, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 42 - }, - "end": { - "line": 509, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18780, - "end": 18781, - "loc": { - "start": { - "line": 509, - "column": 63 - }, - "end": { - "line": 509, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18781, - "end": 18785, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 68 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18785, - "end": 18786, - "loc": { - "start": { - "line": 509, - "column": 68 - }, - "end": { - "line": 509, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18786, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 69 - }, - "end": { - "line": 509, - "column": 80 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18797, - "end": 18798, - "loc": { - "start": { - "line": 509, - "column": 80 - }, - "end": { - "line": 509, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18798, - "end": 18800, - "loc": { - "start": { - "line": 509, - "column": 81 - }, - "end": { - "line": 509, - "column": 83 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18800, - "end": 18801, - "loc": { - "start": { - "line": 509, - "column": 83 - }, - "end": { - "line": 509, - "column": 84 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18801, - "end": 18802, - "loc": { - "start": { - "line": 509, - "column": 84 - }, - "end": { - "line": 509, - "column": 85 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 18802, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 85 - }, - "end": { - "line": 509, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18806, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 89 - }, - "end": { - "line": 509, - "column": 90 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18807, - "end": 18808, - "loc": { - "start": { - "line": 509, - "column": 90 - }, - "end": { - "line": 509, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18814, - "end": 18818, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18818, - "end": 18819, - "loc": { - "start": { - "line": 510, - "column": 8 - }, - "end": { - "line": 510, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18819, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 9 - }, - "end": { - "line": 510, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18830, - "end": 18831, - "loc": { - "start": { - "line": 510, - "column": 20 - }, - "end": { - "line": 510, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18831, - "end": 18833, - "loc": { - "start": { - "line": 510, - "column": 21 - }, - "end": { - "line": 510, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18833, - "end": 18834, - "loc": { - "start": { - "line": 510, - "column": 23 - }, - "end": { - "line": 510, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18834, - "end": 18835, - "loc": { - "start": { - "line": 510, - "column": 24 - }, - "end": { - "line": 510, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 18835, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 25 - }, - "end": { - "line": 510, - "column": 33 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18844, - "end": 18845, - "loc": { - "start": { - "line": 510, - "column": 34 - }, - "end": { - "line": 510, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 18846, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 36 - }, - "end": { - "line": 510, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18849, - "end": 18850, - "loc": { - "start": { - "line": 510, - "column": 39 - }, - "end": { - "line": 510, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18855, - "end": 18856, - "loc": { - "start": { - "line": 511, - "column": 3 - }, - "end": { - "line": 511, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18860, - "end": 18861, - "loc": { - "start": { - "line": 512, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - } - }, - { - "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": 18867, - "end": 18871, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18871, - "end": 18872, - "loc": { - "start": { - "line": 514, - "column": 6 - }, - "end": { - "line": 514, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18872, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 7 - }, - "end": { - "line": 514, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18883, - "end": 18884, - "loc": { - "start": { - "line": 514, - "column": 18 - }, - "end": { - "line": 514, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18884, - "end": 18886, - "loc": { - "start": { - "line": 514, - "column": 19 - }, - "end": { - "line": 514, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18886, - "end": 18887, - "loc": { - "start": { - "line": 514, - "column": 21 - }, - "end": { - "line": 514, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18887, - "end": 18888, - "loc": { - "start": { - "line": 514, - "column": 22 - }, - "end": { - "line": 514, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 18888, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18892, - "end": 18893, - "loc": { - "start": { - "line": 514, - "column": 27 - }, - "end": { - "line": 514, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 18894, - "end": 18904, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18904, - "end": 18905, - "loc": { - "start": { - "line": 514, - "column": 39 - }, - "end": { - "line": 514, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requestAnimationFrame", - "start": 18905, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 40 - }, - "end": { - "line": 514, - "column": 61 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18926, - "end": 18927, - "loc": { - "start": { - "line": 514, - "column": 61 - }, - "end": { - "line": 514, - "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": 18927, - "end": 18931, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 66 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18931, - "end": 18932, - "loc": { - "start": { - "line": 514, - "column": 66 - }, - "end": { - "line": 514, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18932, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 67 - }, - "end": { - "line": 514, - "column": 78 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18943, - "end": 18944, - "loc": { - "start": { - "line": 514, - "column": 78 - }, - "end": { - "line": 514, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18944, - "end": 18946, - "loc": { - "start": { - "line": 514, - "column": 79 - }, - "end": { - "line": 514, - "column": 81 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18946, - "end": 18947, - "loc": { - "start": { - "line": 514, - "column": 81 - }, - "end": { - "line": 514, - "column": 82 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18947, - "end": 18948, - "loc": { - "start": { - "line": 514, - "column": 82 - }, - "end": { - "line": 514, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 18948, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 83 - }, - "end": { - "line": 514, - "column": 87 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18952, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 87 - }, - "end": { - "line": 514, - "column": 88 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18953, - "end": 18954, - "loc": { - "start": { - "line": 514, - "column": 88 - }, - "end": { - "line": 514, - "column": 89 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 18958, - "end": 18964, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18965, - "end": 18967, - "loc": { - "start": { - "line": 515, - "column": 9 - }, - "end": { - "line": 515, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18967, - "end": 18968, - "loc": { - "start": { - "line": 515, - "column": 11 - }, - "end": { - "line": 515, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18971, - "end": 18972, - "loc": { - "start": { - "line": 516, - "column": 1 - }, - "end": { - "line": 516, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 19098, - "end": 19119, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 522, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19119, - "end": 19120, - "loc": { - "start": { - "line": 522, - "column": 22 - }, - "end": { - "line": 522, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 19120, - "end": 19123, - "loc": { - "start": { - "line": 522, - "column": 23 - }, - "end": { - "line": 522, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19123, - "end": 19124, - "loc": { - "start": { - "line": 522, - "column": 26 - }, - "end": { - "line": 522, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19125, - "end": 19126, - "loc": { - "start": { - "line": 522, - "column": 28 - }, - "end": { - "line": 522, - "column": 29 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 19130, - "end": 19132, - "loc": { - "start": { - "line": 523, - "column": 2 - }, - "end": { - "line": 523, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19133, - "end": 19134, - "loc": { - "start": { - "line": 523, - "column": 5 - }, - "end": { - "line": 523, - "column": 6 - } - } - }, - { - "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": 19134, - "end": 19138, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19138, - "end": 19139, - "loc": { - "start": { - "line": 523, - "column": 10 - }, - "end": { - "line": 523, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 19139, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 11 - }, - "end": { - "line": 523, - "column": 22 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19150, - "end": 19151, - "loc": { - "start": { - "line": 523, - "column": 22 - }, - "end": { - "line": 523, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 19151, - "end": 19154, - "loc": { - "start": { - "line": 523, - "column": 23 - }, - "end": { - "line": 523, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19154, - "end": 19155, - "loc": { - "start": { - "line": 523, - "column": 26 - }, - "end": { - "line": 523, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19155, - "end": 19156, - "loc": { - "start": { - "line": 523, - "column": 27 - }, - "end": { - "line": 523, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19157, - "end": 19158, - "loc": { - "start": { - "line": 523, - "column": 29 - }, - "end": { - "line": 523, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 19163, - "end": 19173, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19173, - "end": 19174, - "loc": { - "start": { - "line": 524, - "column": 13 - }, - "end": { - "line": 524, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelAnimationFrame", - "start": 19174, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19194, - "end": 19195, - "loc": { - "start": { - "line": 524, - "column": 34 - }, - "end": { - "line": 524, - "column": 35 - } - } - }, - { - "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": 19195, - "end": 19199, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19199, - "end": 19200, - "loc": { - "start": { - "line": 524, - "column": 39 - }, - "end": { - "line": 524, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 19200, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 40 - }, - "end": { - "line": 524, - "column": 51 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19211, - "end": 19212, - "loc": { - "start": { - "line": 524, - "column": 51 - }, - "end": { - "line": 524, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 19212, - "end": 19215, - "loc": { - "start": { - "line": 524, - "column": 52 - }, - "end": { - "line": 524, - "column": 55 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19215, - "end": 19216, - "loc": { - "start": { - "line": 524, - "column": 55 - }, - "end": { - "line": 524, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19216, - "end": 19217, - "loc": { - "start": { - "line": 524, - "column": 56 - }, - "end": { - "line": 524, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 19217, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 57 - }, - "end": { - "line": 524, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19220, - "end": 19221, - "loc": { - "start": { - "line": 524, - "column": 60 - }, - "end": { - "line": 524, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19221, - "end": 19222, - "loc": { - "start": { - "line": 524, - "column": 61 - }, - "end": { - "line": 524, - "column": 62 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 19227, - "end": 19233, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 9 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 19234, - "end": 19238, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19238, - "end": 19239, - "loc": { - "start": { - "line": 525, - "column": 14 - }, - "end": { - "line": 525, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 19239, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 15 - }, - "end": { - "line": 525, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19250, - "end": 19251, - "loc": { - "start": { - "line": 525, - "column": 26 - }, - "end": { - "line": 525, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 19251, - "end": 19254, - "loc": { - "start": { - "line": 525, - "column": 27 - }, - "end": { - "line": 525, - "column": 30 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19254, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 30 - }, - "end": { - "line": 525, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19255, - "end": 19256, - "loc": { - "start": { - "line": 525, - "column": 31 - }, - "end": { - "line": 525, - "column": 32 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19260, - "end": 19261, - "loc": { - "start": { - "line": 526, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19264, - "end": 19265, - "loc": { - "start": { - "line": 527, - "column": 1 - }, - "end": { - "line": 527, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 19952, - "end": 19967, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 539, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19967, - "end": 19968, - "loc": { - "start": { - "line": 539, - "column": 16 - }, - "end": { - "line": 539, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 19968, - "end": 19973, - "loc": { - "start": { - "line": 539, - "column": 17 - }, - "end": { - "line": 539, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19973, - "end": 19974, - "loc": { - "start": { - "line": 539, - "column": 22 - }, - "end": { - "line": 539, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 19975, - "end": 19981, - "loc": { - "start": { - "line": 539, - "column": 24 - }, - "end": { - "line": 539, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19981, - "end": 19982, - "loc": { - "start": { - "line": 539, - "column": 30 - }, - "end": { - "line": 539, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 19983, - "end": 19989, - "loc": { - "start": { - "line": 539, - "column": 32 - }, - "end": { - "line": 539, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19989, - "end": 19990, - "loc": { - "start": { - "line": 539, - "column": 38 - }, - "end": { - "line": 539, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19991, - "end": 19992, - "loc": { - "start": { - "line": 539, - "column": 40 - }, - "end": { - "line": 539, - "column": 41 - } - } - }, - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 19996, - "end": 20036, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 540, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 20040, - "end": 20093, - "loc": { - "start": { - "line": 541, - "column": 2 - }, - "end": { - "line": 541, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 20097, - "end": 20130, - "loc": { - "start": { - "line": 542, - "column": 2 - }, - "end": { - "line": 542, - "column": 35 - } - } - }, - { - "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": 20134, - "end": 20139, - "loc": { - "start": { - "line": 543, - "column": 2 - }, - "end": { - "line": 543, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 20140, - "end": 20142, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20143, - "end": 20144, - "loc": { - "start": { - "line": 543, - "column": 11 - }, - "end": { - "line": 543, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20145, - "end": 20150, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20150, - "end": 20151, - "loc": { - "start": { - "line": 543, - "column": 18 - }, - "end": { - "line": 543, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20151, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 19 - }, - "end": { - "line": 543, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20153, - "end": 20154, - "loc": { - "start": { - "line": 543, - "column": 21 - }, - "end": { - "line": 543, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20155, - "end": 20160, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20160, - "end": 20161, - "loc": { - "start": { - "line": 543, - "column": 28 - }, - "end": { - "line": 543, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 20161, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 29 - }, - "end": { - "line": 543, - "column": 34 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20167, - "end": 20168, - "loc": { - "start": { - "line": 543, - "column": 35 - }, - "end": { - "line": 543, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20169, - "end": 20170, - "loc": { - "start": { - "line": 543, - "column": 37 - }, - "end": { - "line": 543, - "column": 38 - } - } - }, - { - "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": 20170, - "end": 20176, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20176, - "end": 20177, - "loc": { - "start": { - "line": 543, - "column": 44 - }, - "end": { - "line": 543, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20177, - "end": 20182, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20182, - "end": 20183, - "loc": { - "start": { - "line": 543, - "column": 50 - }, - "end": { - "line": 543, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20183, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 51 - }, - "end": { - "line": 543, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20189, - "end": 20190, - "loc": { - "start": { - "line": 543, - "column": 57 - }, - "end": { - "line": 543, - "column": 58 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 20191, - "end": 20194, - "loc": { - "start": { - "line": 543, - "column": 59 - }, - "end": { - "line": 543, - "column": 62 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 20195, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 63 - }, - "end": { - "line": 543, - "column": 71 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 20204, - "end": 20206, - "loc": { - "start": { - "line": 543, - "column": 72 - }, - "end": { - "line": 543, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20207, - "end": 20212, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 80 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20212, - "end": 20213, - "loc": { - "start": { - "line": 543, - "column": 80 - }, - "end": { - "line": 543, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20213, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 81 - }, - "end": { - "line": 543, - "column": 87 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20219, - "end": 20220, - "loc": { - "start": { - "line": 543, - "column": 87 - }, - "end": { - "line": 543, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20220, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 88 - }, - "end": { - "line": 543, - "column": 89 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20222, - "end": 20223, - "loc": { - "start": { - "line": 543, - "column": 90 - }, - "end": { - "line": 543, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20224, - "end": 20229, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 97 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20229, - "end": 20230, - "loc": { - "start": { - "line": 543, - "column": 97 - }, - "end": { - "line": 543, - "column": 98 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20230, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 98 - }, - "end": { - "line": 543, - "column": 104 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20236, - "end": 20237, - "loc": { - "start": { - "line": 543, - "column": 104 - }, - "end": { - "line": 543, - "column": 105 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20237, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 105 - }, - "end": { - "line": 543, - "column": 106 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20239, - "end": 20240, - "loc": { - "start": { - "line": 543, - "column": 107 - }, - "end": { - "line": 543, - "column": 108 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 20241, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 109 - }, - "end": { - "line": 543, - "column": 112 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20244, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 112 - }, - "end": { - "line": 543, - "column": 113 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20245, - "end": 20246, - "loc": { - "start": { - "line": 543, - "column": 113 - }, - "end": { - "line": 543, - "column": 114 - } - } - }, - { - "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": 20250, - "end": 20255, - "loc": { - "start": { - "line": 544, - "column": 2 - }, - "end": { - "line": 544, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 20256, - "end": 20258, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20259, - "end": 20260, - "loc": { - "start": { - "line": 544, - "column": 11 - }, - "end": { - "line": 544, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20261, - "end": 20266, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20266, - "end": 20267, - "loc": { - "start": { - "line": 544, - "column": 18 - }, - "end": { - "line": 544, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20267, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 19 - }, - "end": { - "line": 544, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20269, - "end": 20270, - "loc": { - "start": { - "line": 544, - "column": 21 - }, - "end": { - "line": 544, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20271, - "end": 20276, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20276, - "end": 20277, - "loc": { - "start": { - "line": 544, - "column": 28 - }, - "end": { - "line": 544, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 20277, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 29 - }, - "end": { - "line": 544, - "column": 35 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20284, - "end": 20285, - "loc": { - "start": { - "line": 544, - "column": 36 - }, - "end": { - "line": 544, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20286, - "end": 20287, - "loc": { - "start": { - "line": 544, - "column": 38 - }, - "end": { - "line": 544, - "column": 39 - } - } - }, - { - "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": 20287, - "end": 20293, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20293, - "end": 20294, - "loc": { - "start": { - "line": 544, - "column": 45 - }, - "end": { - "line": 544, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20294, - "end": 20299, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 51 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20299, - "end": 20300, - "loc": { - "start": { - "line": 544, - "column": 51 - }, - "end": { - "line": 544, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20300, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 52 - }, - "end": { - "line": 544, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20306, - "end": 20307, - "loc": { - "start": { - "line": 544, - "column": 58 - }, - "end": { - "line": 544, - "column": 59 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 20308, - "end": 20311, - "loc": { - "start": { - "line": 544, - "column": 60 - }, - "end": { - "line": 544, - "column": 63 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 20312, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 64 - }, - "end": { - "line": 544, - "column": 72 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 544, - "column": 73 - }, - "end": { - "line": 544, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20324, - "end": 20329, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 81 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20329, - "end": 20330, - "loc": { - "start": { - "line": 544, - "column": 81 - }, - "end": { - "line": 544, - "column": 82 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20330, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 82 - }, - "end": { - "line": 544, - "column": 88 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20336, - "end": 20337, - "loc": { - "start": { - "line": 544, - "column": 88 - }, - "end": { - "line": 544, - "column": 89 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20337, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 89 - }, - "end": { - "line": 544, - "column": 90 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20339, - "end": 20340, - "loc": { - "start": { - "line": 544, - "column": 91 - }, - "end": { - "line": 544, - "column": 92 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 98 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20346, - "end": 20347, - "loc": { - "start": { - "line": 544, - "column": 98 - }, - "end": { - "line": 544, - "column": 99 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20347, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 99 - }, - "end": { - "line": 544, - "column": 105 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20353, - "end": 20354, - "loc": { - "start": { - "line": 544, - "column": 105 - }, - "end": { - "line": 544, - "column": 106 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20354, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 106 - }, - "end": { - "line": 544, - "column": 107 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20356, - "end": 20357, - "loc": { - "start": { - "line": 544, - "column": 108 - }, - "end": { - "line": 544, - "column": 109 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 20358, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 110 - }, - "end": { - "line": 544, - "column": 113 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20361, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 113 - }, - "end": { - "line": 544, - "column": 114 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20362, - "end": 20363, - "loc": { - "start": { - "line": 544, - "column": 114 - }, - "end": { - "line": 544, - "column": 115 - } - } - }, - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - }, - { - "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": 20401, - "end": 20406, - "loc": { - "start": { - "line": 547, - "column": 2 - }, - "end": { - "line": 547, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 20407, - "end": 20412, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20413, - "end": 20414, - "loc": { - "start": { - "line": 547, - "column": 14 - }, - "end": { - "line": 547, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 20415, - "end": 20421, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20421, - "end": 20422, - "loc": { - "start": { - "line": 547, - "column": 22 - }, - "end": { - "line": 547, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20422, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20424, - "end": 20425, - "loc": { - "start": { - "line": 547, - "column": 25 - }, - "end": { - "line": 547, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 20426, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 27 - }, - "end": { - "line": 547, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20428, - "end": 20429, - "loc": { - "start": { - "line": 547, - "column": 29 - }, - "end": { - "line": 547, - "column": 30 - } - } - }, - { - "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": 20433, - "end": 20438, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 20439, - "end": 20444, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20445, - "end": 20446, - "loc": { - "start": { - "line": 548, - "column": 14 - }, - "end": { - "line": 548, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 20447, - "end": 20453, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20453, - "end": 20454, - "loc": { - "start": { - "line": 548, - "column": 22 - }, - "end": { - "line": 548, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20454, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 23 - }, - "end": { - "line": 548, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20456, - "end": 20457, - "loc": { - "start": { - "line": 548, - "column": 25 - }, - "end": { - "line": 548, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 20458, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20460, - "end": 20461, - "loc": { - "start": { - "line": 548, - "column": 29 - }, - "end": { - "line": 548, - "column": 30 - } - } - }, - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - }, - { - "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": 20492, - "end": 20497, - "loc": { - "start": { - "line": 551, - "column": 2 - }, - "end": { - "line": 551, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedX", - "start": 20498, - "end": 20506, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20507, - "end": 20508, - "loc": { - "start": { - "line": 551, - "column": 17 - }, - "end": { - "line": 551, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 20509, - "end": 20514, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 24 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20514, - "end": 20515, - "loc": { - "start": { - "line": 551, - "column": 24 - }, - "end": { - "line": 551, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 20515, - "end": 20519, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20519, - "end": 20520, - "loc": { - "start": { - "line": 551, - "column": 29 - }, - "end": { - "line": 551, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cos", - "start": 20520, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 30 - }, - "end": { - "line": 551, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20523, - "end": 20524, - "loc": { - "start": { - "line": 551, - "column": 33 - }, - "end": { - "line": 551, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 20524, - "end": 20530, - "loc": { - "start": { - "line": 551, - "column": 34 - }, - "end": { - "line": 551, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20530, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 40 - }, - "end": { - "line": 551, - "column": 41 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20532, - "end": 20533, - "loc": { - "start": { - "line": 551, - "column": 42 - }, - "end": { - "line": 551, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 20534, - "end": 20539, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 49 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20539, - "end": 20540, - "loc": { - "start": { - "line": 551, - "column": 49 - }, - "end": { - "line": 551, - "column": 50 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20540, - "end": 20541, - "loc": { - "start": { - "line": 551, - "column": 50 - }, - "end": { - "line": 551, - "column": 51 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20541, - "end": 20542, - "loc": { - "start": { - "line": 551, - "column": 51 - }, - "end": { - "line": 551, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 20542, - "end": 20546, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20546, - "end": 20547, - "loc": { - "start": { - "line": 551, - "column": 56 - }, - "end": { - "line": 551, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sin", - "start": 20547, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 57 - }, - "end": { - "line": 551, - "column": 60 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20550, - "end": 20551, - "loc": { - "start": { - "line": 551, - "column": 60 - }, - "end": { - "line": 551, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 20551, - "end": 20557, - "loc": { - "start": { - "line": 551, - "column": 61 - }, - "end": { - "line": 551, - "column": 67 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20557, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 67 - }, - "end": { - "line": 551, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20558, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 68 - }, - "end": { - "line": 551, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20559, - "end": 20560, - "loc": { - "start": { - "line": 551, - "column": 69 - }, - "end": { - "line": 551, - "column": 70 - } - } - }, - { - "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": 20564, - "end": 20569, - "loc": { - "start": { - "line": 552, - "column": 2 - }, - "end": { - "line": 552, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedY", - "start": 20570, - "end": 20578, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20579, - "end": 20580, - "loc": { - "start": { - "line": 552, - "column": 17 - }, - "end": { - "line": 552, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 20581, - "end": 20586, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 24 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20586, - "end": 20587, - "loc": { - "start": { - "line": 552, - "column": 24 - }, - "end": { - "line": 552, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20587, - "end": 20588, - "loc": { - "start": { - "line": 552, - "column": 25 - }, - "end": { - "line": 552, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20588, - "end": 20589, - "loc": { - "start": { - "line": 552, - "column": 26 - }, - "end": { - "line": 552, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 20589, - "end": 20593, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20593, - "end": 20594, - "loc": { - "start": { - "line": 552, - "column": 31 - }, - "end": { - "line": 552, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sin", - "start": 20594, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 32 - }, - "end": { - "line": 552, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20597, - "end": 20598, - "loc": { - "start": { - "line": 552, - "column": 35 - }, - "end": { - "line": 552, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 552, - "column": 36 - }, - "end": { - "line": 552, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20604, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 42 - }, - "end": { - "line": 552, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20605, - "end": 20606, - "loc": { - "start": { - "line": 552, - "column": 43 - }, - "end": { - "line": 552, - "column": 44 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20607, - "end": 20608, - "loc": { - "start": { - "line": 552, - "column": 45 - }, - "end": { - "line": 552, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 20609, - "end": 20614, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 52 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20614, - "end": 20615, - "loc": { - "start": { - "line": 552, - "column": 52 - }, - "end": { - "line": 552, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 20615, - "end": 20619, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20619, - "end": 20620, - "loc": { - "start": { - "line": 552, - "column": 57 - }, - "end": { - "line": 552, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cos", - "start": 20620, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 58 - }, - "end": { - "line": 552, - "column": 61 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20623, - "end": 20624, - "loc": { - "start": { - "line": 552, - "column": 61 - }, - "end": { - "line": 552, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 20624, - "end": 20630, - "loc": { - "start": { - "line": 552, - "column": 62 - }, - "end": { - "line": 552, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20630, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 68 - }, - "end": { - "line": 552, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20631, - "end": 20632, - "loc": { - "start": { - "line": 552, - "column": 69 - }, - "end": { - "line": 552, - "column": 70 - } - } - }, - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - }, - { - "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": 20659, - "end": 20664, - "loc": { - "start": { - "line": 555, - "column": 2 - }, - "end": { - "line": 555, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20665, - "end": 20666, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20667, - "end": 20668, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedX", - "start": 20669, - "end": 20677, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20678, - "end": 20679, - "loc": { - "start": { - "line": 555, - "column": 21 - }, - "end": { - "line": 555, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 20680, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 23 - }, - "end": { - "line": 555, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20682, - "end": 20683, - "loc": { - "start": { - "line": 555, - "column": 25 - }, - "end": { - "line": 555, - "column": 26 - } - } - }, - { - "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": 20687, - "end": 20692, - "loc": { - "start": { - "line": 556, - "column": 2 - }, - "end": { - "line": 556, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20693, - "end": 20694, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20695, - "end": 20696, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedY", - "start": 20697, - "end": 20705, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20706, - "end": 20707, - "loc": { - "start": { - "line": 556, - "column": 21 - }, - "end": { - "line": 556, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 20708, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 23 - }, - "end": { - "line": 556, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20710, - "end": 20711, - "loc": { - "start": { - "line": 556, - "column": 25 - }, - "end": { - "line": 556, - "column": 26 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 20715, - "end": 20721, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20722, - "end": 20723, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 20724, - "end": 20727, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20727, - "end": 20728, - "loc": { - "start": { - "line": 557, - "column": 14 - }, - "end": { - "line": 557, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20729, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 16 - }, - "end": { - "line": 557, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20730, - "end": 20731, - "loc": { - "start": { - "line": 557, - "column": 17 - }, - "end": { - "line": 557, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 20732, - "end": 20735, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20735, - "end": 20736, - "loc": { - "start": { - "line": 557, - "column": 22 - }, - "end": { - "line": 557, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20737, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 24 - }, - "end": { - "line": 557, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20739, - "end": 20740, - "loc": { - "start": { - "line": 557, - "column": 26 - }, - "end": { - "line": 557, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20740, - "end": 20741, - "loc": { - "start": { - "line": 557, - "column": 27 - }, - "end": { - "line": 557, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20744, - "end": 20745, - "loc": { - "start": { - "line": 558, - "column": 1 - }, - "end": { - "line": 558, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointsOfRotatedRect", - "start": 21246, - "end": 21268, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 567, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21268, - "end": 21269, - "loc": { - "start": { - "line": 567, - "column": 23 - }, - "end": { - "line": 567, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21269, - "end": 21274, - "loc": { - "start": { - "line": 567, - "column": 24 - }, - "end": { - "line": 567, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21274, - "end": 21275, - "loc": { - "start": { - "line": 567, - "column": 29 - }, - "end": { - "line": 567, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21276, - "end": 21282, - "loc": { - "start": { - "line": 567, - "column": 31 - }, - "end": { - "line": 567, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21282, - "end": 21283, - "loc": { - "start": { - "line": 567, - "column": 37 - }, - "end": { - "line": 567, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21284, - "end": 21285, - "loc": { - "start": { - "line": 567, - "column": 39 - }, - "end": { - "line": 567, - "column": 40 - } - } - }, - { - "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": 21289, - "end": 21294, - "loc": { - "start": { - "line": 568, - "column": 2 - }, - "end": { - "line": 568, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tl", - "start": 21295, - "end": 21297, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21298, - "end": 21299, - "loc": { - "start": { - "line": 568, - "column": 11 - }, - "end": { - "line": 568, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 21300, - "end": 21304, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21304, - "end": 21305, - "loc": { - "start": { - "line": 568, - "column": 17 - }, - "end": { - "line": 568, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21305, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 18 - }, - "end": { - "line": 568, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21320, - "end": 21321, - "loc": { - "start": { - "line": 568, - "column": 33 - }, - "end": { - "line": 568, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21321, - "end": 21326, - "loc": { - "start": { - "line": 568, - "column": 34 - }, - "end": { - "line": 568, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21326, - "end": 21327, - "loc": { - "start": { - "line": 568, - "column": 39 - }, - "end": { - "line": 568, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21328, - "end": 21334, - "loc": { - "start": { - "line": 568, - "column": 41 - }, - "end": { - "line": 568, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21334, - "end": 21335, - "loc": { - "start": { - "line": 568, - "column": 47 - }, - "end": { - "line": 568, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21336, - "end": 21337, - "loc": { - "start": { - "line": 568, - "column": 49 - }, - "end": { - "line": 568, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21338, - "end": 21341, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21341, - "end": 21342, - "loc": { - "start": { - "line": 568, - "column": 54 - }, - "end": { - "line": 568, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21343, - "end": 21348, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21348, - "end": 21349, - "loc": { - "start": { - "line": 568, - "column": 61 - }, - "end": { - "line": 568, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21349, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 62 - }, - "end": { - "line": 568, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21350, - "end": 21351, - "loc": { - "start": { - "line": 568, - "column": 63 - }, - "end": { - "line": 568, - "column": 64 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21352, - "end": 21355, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 68 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21355, - "end": 21356, - "loc": { - "start": { - "line": 568, - "column": 68 - }, - "end": { - "line": 568, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21357, - "end": 21362, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21362, - "end": 21363, - "loc": { - "start": { - "line": 568, - "column": 75 - }, - "end": { - "line": 568, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21363, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 76 - }, - "end": { - "line": 568, - "column": 77 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21365, - "end": 21366, - "loc": { - "start": { - "line": 568, - "column": 78 - }, - "end": { - "line": 568, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21366, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 79 - }, - "end": { - "line": 568, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21367, - "end": 21368, - "loc": { - "start": { - "line": 568, - "column": 80 - }, - "end": { - "line": 568, - "column": 81 - } - } - }, - { - "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": 21372, - "end": 21377, - "loc": { - "start": { - "line": 569, - "column": 2 - }, - "end": { - "line": 569, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tr", - "start": 21378, - "end": 21380, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21381, - "end": 21382, - "loc": { - "start": { - "line": 569, - "column": 11 - }, - "end": { - "line": 569, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 21383, - "end": 21387, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21387, - "end": 21388, - "loc": { - "start": { - "line": 569, - "column": 17 - }, - "end": { - "line": 569, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21388, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 569, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21403, - "end": 21404, - "loc": { - "start": { - "line": 569, - "column": 33 - }, - "end": { - "line": 569, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21404, - "end": 21409, - "loc": { - "start": { - "line": 569, - "column": 34 - }, - "end": { - "line": 569, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21409, - "end": 21410, - "loc": { - "start": { - "line": 569, - "column": 39 - }, - "end": { - "line": 569, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21411, - "end": 21417, - "loc": { - "start": { - "line": 569, - "column": 41 - }, - "end": { - "line": 569, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21417, - "end": 21418, - "loc": { - "start": { - "line": 569, - "column": 47 - }, - "end": { - "line": 569, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21419, - "end": 21420, - "loc": { - "start": { - "line": 569, - "column": 49 - }, - "end": { - "line": 569, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21421, - "end": 21424, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21424, - "end": 21425, - "loc": { - "start": { - "line": 569, - "column": 54 - }, - "end": { - "line": 569, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21426, - "end": 21431, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21431, - "end": 21432, - "loc": { - "start": { - "line": 569, - "column": 61 - }, - "end": { - "line": 569, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21432, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 62 - }, - "end": { - "line": 569, - "column": 63 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21434, - "end": 21435, - "loc": { - "start": { - "line": 569, - "column": 64 - }, - "end": { - "line": 569, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21436, - "end": 21441, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21441, - "end": 21442, - "loc": { - "start": { - "line": 569, - "column": 71 - }, - "end": { - "line": 569, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 21442, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 72 - }, - "end": { - "line": 569, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21447, - "end": 21448, - "loc": { - "start": { - "line": 569, - "column": 77 - }, - "end": { - "line": 569, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21449, - "end": 21452, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 82 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21452, - "end": 21453, - "loc": { - "start": { - "line": 569, - "column": 82 - }, - "end": { - "line": 569, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21454, - "end": 21459, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 89 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21459, - "end": 21460, - "loc": { - "start": { - "line": 569, - "column": 89 - }, - "end": { - "line": 569, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21460, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 90 - }, - "end": { - "line": 569, - "column": 91 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21462, - "end": 21463, - "loc": { - "start": { - "line": 569, - "column": 92 - }, - "end": { - "line": 569, - "column": 93 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21463, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 93 - }, - "end": { - "line": 569, - "column": 94 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21464, - "end": 21465, - "loc": { - "start": { - "line": 569, - "column": 94 - }, - "end": { - "line": 569, - "column": 95 - } - } - }, - { - "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": 21469, - "end": 21474, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 570, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bl", - "start": 21475, - "end": 21477, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21478, - "end": 21479, - "loc": { - "start": { - "line": 570, - "column": 11 - }, - "end": { - "line": 570, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 21480, - "end": 21484, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21484, - "end": 21485, - "loc": { - "start": { - "line": 570, - "column": 17 - }, - "end": { - "line": 570, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21485, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 18 - }, - "end": { - "line": 570, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21500, - "end": 21501, - "loc": { - "start": { - "line": 570, - "column": 33 - }, - "end": { - "line": 570, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21501, - "end": 21506, - "loc": { - "start": { - "line": 570, - "column": 34 - }, - "end": { - "line": 570, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21506, - "end": 21507, - "loc": { - "start": { - "line": 570, - "column": 39 - }, - "end": { - "line": 570, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21508, - "end": 21514, - "loc": { - "start": { - "line": 570, - "column": 41 - }, - "end": { - "line": 570, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21514, - "end": 21515, - "loc": { - "start": { - "line": 570, - "column": 47 - }, - "end": { - "line": 570, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21516, - "end": 21517, - "loc": { - "start": { - "line": 570, - "column": 49 - }, - "end": { - "line": 570, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21518, - "end": 21521, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21521, - "end": 21522, - "loc": { - "start": { - "line": 570, - "column": 54 - }, - "end": { - "line": 570, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21523, - "end": 21528, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21528, - "end": 21529, - "loc": { - "start": { - "line": 570, - "column": 61 - }, - "end": { - "line": 570, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21529, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 62 - }, - "end": { - "line": 570, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21530, - "end": 21531, - "loc": { - "start": { - "line": 570, - "column": 63 - }, - "end": { - "line": 570, - "column": 64 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21532, - "end": 21535, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 68 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21535, - "end": 21536, - "loc": { - "start": { - "line": 570, - "column": 68 - }, - "end": { - "line": 570, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21537, - "end": 21542, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21542, - "end": 21543, - "loc": { - "start": { - "line": 570, - "column": 75 - }, - "end": { - "line": 570, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21543, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 76 - }, - "end": { - "line": 570, - "column": 77 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21545, - "end": 21546, - "loc": { - "start": { - "line": 570, - "column": 78 - }, - "end": { - "line": 570, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21547, - "end": 21552, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 85 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21552, - "end": 21553, - "loc": { - "start": { - "line": 570, - "column": 85 - }, - "end": { - "line": 570, - "column": 86 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 21553, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 86 - }, - "end": { - "line": 570, - "column": 92 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21560, - "end": 21561, - "loc": { - "start": { - "line": 570, - "column": 93 - }, - "end": { - "line": 570, - "column": 94 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21561, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 94 - }, - "end": { - "line": 570, - "column": 95 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21562, - "end": 21563, - "loc": { - "start": { - "line": 570, - "column": 95 - }, - "end": { - "line": 570, - "column": 96 - } - } - }, - { - "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": 21567, - "end": 21572, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "br", - "start": 21573, - "end": 21575, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21576, - "end": 21577, - "loc": { - "start": { - "line": 571, - "column": 11 - }, - "end": { - "line": 571, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 21578, - "end": 21582, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21582, - "end": 21583, - "loc": { - "start": { - "line": 571, - "column": 17 - }, - "end": { - "line": 571, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21583, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 18 - }, - "end": { - "line": 571, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21598, - "end": 21599, - "loc": { - "start": { - "line": 571, - "column": 33 - }, - "end": { - "line": 571, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21599, - "end": 21604, - "loc": { - "start": { - "line": 571, - "column": 34 - }, - "end": { - "line": 571, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21604, - "end": 21605, - "loc": { - "start": { - "line": 571, - "column": 39 - }, - "end": { - "line": 571, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21606, - "end": 21612, - "loc": { - "start": { - "line": 571, - "column": 41 - }, - "end": { - "line": 571, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21612, - "end": 21613, - "loc": { - "start": { - "line": 571, - "column": 47 - }, - "end": { - "line": 571, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21614, - "end": 21615, - "loc": { - "start": { - "line": 571, - "column": 49 - }, - "end": { - "line": 571, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21616, - "end": 21619, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21619, - "end": 21620, - "loc": { - "start": { - "line": 571, - "column": 54 - }, - "end": { - "line": 571, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21621, - "end": 21626, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21626, - "end": 21627, - "loc": { - "start": { - "line": 571, - "column": 61 - }, - "end": { - "line": 571, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21627, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 62 - }, - "end": { - "line": 571, - "column": 63 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21629, - "end": 21630, - "loc": { - "start": { - "line": 571, - "column": 64 - }, - "end": { - "line": 571, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21631, - "end": 21636, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21636, - "end": 21637, - "loc": { - "start": { - "line": 571, - "column": 71 - }, - "end": { - "line": 571, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 21637, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 72 - }, - "end": { - "line": 571, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21642, - "end": 21643, - "loc": { - "start": { - "line": 571, - "column": 77 - }, - "end": { - "line": 571, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21644, - "end": 21647, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 82 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21647, - "end": 21648, - "loc": { - "start": { - "line": 571, - "column": 82 - }, - "end": { - "line": 571, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21649, - "end": 21654, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 89 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21654, - "end": 21655, - "loc": { - "start": { - "line": 571, - "column": 89 - }, - "end": { - "line": 571, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 90 - }, - "end": { - "line": 571, - "column": 91 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21657, - "end": 21658, - "loc": { - "start": { - "line": 571, - "column": 92 - }, - "end": { - "line": 571, - "column": 93 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21659, - "end": 21664, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 99 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21664, - "end": 21665, - "loc": { - "start": { - "line": 571, - "column": 99 - }, - "end": { - "line": 571, - "column": 100 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 21665, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 100 - }, - "end": { - "line": 571, - "column": 106 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21672, - "end": 21673, - "loc": { - "start": { - "line": 571, - "column": 107 - }, - "end": { - "line": 571, - "column": 108 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21673, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 108 - }, - "end": { - "line": 571, - "column": 109 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21674, - "end": 21675, - "loc": { - "start": { - "line": 571, - "column": 109 - }, - "end": { - "line": 571, - "column": 110 - } - } - }, - { - "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": 21679, - "end": 21684, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "center", - "start": 21685, - "end": 21691, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21692, - "end": 21693, - "loc": { - "start": { - "line": 572, - "column": 15 - }, - "end": { - "line": 572, - "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": 21694, - "end": 21698, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21698, - "end": 21699, - "loc": { - "start": { - "line": 572, - "column": 21 - }, - "end": { - "line": 572, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21699, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 22 - }, - "end": { - "line": 572, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21714, - "end": 21715, - "loc": { - "start": { - "line": 572, - "column": 37 - }, - "end": { - "line": 572, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21715, - "end": 21720, - "loc": { - "start": { - "line": 572, - "column": 38 - }, - "end": { - "line": 572, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21720, - "end": 21721, - "loc": { - "start": { - "line": 572, - "column": 43 - }, - "end": { - "line": 572, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21722, - "end": 21728, - "loc": { - "start": { - "line": 572, - "column": 45 - }, - "end": { - "line": 572, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21728, - "end": 21729, - "loc": { - "start": { - "line": 572, - "column": 51 - }, - "end": { - "line": 572, - "column": 52 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21730, - "end": 21731, - "loc": { - "start": { - "line": 572, - "column": 53 - }, - "end": { - "line": 572, - "column": 54 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21732, - "end": 21735, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 58 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21735, - "end": 21736, - "loc": { - "start": { - "line": 572, - "column": 58 - }, - "end": { - "line": 572, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21737, - "end": 21742, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 65 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21742, - "end": 21743, - "loc": { - "start": { - "line": 572, - "column": 65 - }, - "end": { - "line": 572, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21743, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 66 - }, - "end": { - "line": 572, - "column": 67 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21745, - "end": 21746, - "loc": { - "start": { - "line": 572, - "column": 68 - }, - "end": { - "line": 572, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21747, - "end": 21752, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21752, - "end": 21753, - "loc": { - "start": { - "line": 572, - "column": 75 - }, - "end": { - "line": 572, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 21753, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 76 - }, - "end": { - "line": 572, - "column": 81 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 21759, - "end": 21760, - "loc": { - "start": { - "line": 572, - "column": 82 - }, - "end": { - "line": 572, - "column": 83 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 21761, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 84 - }, - "end": { - "line": 572, - "column": 85 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21762, - "end": 21763, - "loc": { - "start": { - "line": 572, - "column": 85 - }, - "end": { - "line": 572, - "column": 86 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21764, - "end": 21767, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 90 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21767, - "end": 21768, - "loc": { - "start": { - "line": 572, - "column": 90 - }, - "end": { - "line": 572, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21769, - "end": 21774, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 97 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21774, - "end": 21775, - "loc": { - "start": { - "line": 572, - "column": 97 - }, - "end": { - "line": 572, - "column": 98 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21775, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 98 - }, - "end": { - "line": 572, - "column": 99 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21777, - "end": 21778, - "loc": { - "start": { - "line": 572, - "column": 100 - }, - "end": { - "line": 572, - "column": 101 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21779, - "end": 21784, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 107 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21784, - "end": 21785, - "loc": { - "start": { - "line": 572, - "column": 107 - }, - "end": { - "line": 572, - "column": 108 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 21785, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 108 - }, - "end": { - "line": 572, - "column": 114 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 21792, - "end": 21793, - "loc": { - "start": { - "line": 572, - "column": 115 - }, - "end": { - "line": 572, - "column": 116 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 21794, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 117 - }, - "end": { - "line": 572, - "column": 118 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21796, - "end": 21797, - "loc": { - "start": { - "line": 572, - "column": 119 - }, - "end": { - "line": 572, - "column": 120 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21797, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 120 - }, - "end": { - "line": 572, - "column": 121 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21798, - "end": 21799, - "loc": { - "start": { - "line": 572, - "column": 121 - }, - "end": { - "line": 572, - "column": 122 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 21803, - "end": 21809, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 573, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21810, - "end": 21811, - "loc": { - "start": { - "line": 573, - "column": 9 - }, - "end": { - "line": 573, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "tl", - "start": 21812, - "end": 21816, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21816, - "end": 21817, - "loc": { - "start": { - "line": 573, - "column": 15 - }, - "end": { - "line": 573, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tl", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 17 - }, - "end": { - "line": 573, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21820, - "end": 21821, - "loc": { - "start": { - "line": 573, - "column": 19 - }, - "end": { - "line": 573, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "tr", - "start": 21822, - "end": 21826, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 25 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21826, - "end": 21827, - "loc": { - "start": { - "line": 573, - "column": 25 - }, - "end": { - "line": 573, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tr", - "start": 21828, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 27 - }, - "end": { - "line": 573, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21830, - "end": 21831, - "loc": { - "start": { - "line": 573, - "column": 29 - }, - "end": { - "line": 573, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "bl", - "start": 21832, - "end": 21836, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 35 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21836, - "end": 21837, - "loc": { - "start": { - "line": 573, - "column": 35 - }, - "end": { - "line": 573, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bl", - "start": 21838, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 37 - }, - "end": { - "line": 573, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21840, - "end": 21841, - "loc": { - "start": { - "line": 573, - "column": 39 - }, - "end": { - "line": 573, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "br", - "start": 21842, - "end": 21846, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 45 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21846, - "end": 21847, - "loc": { - "start": { - "line": 573, - "column": 45 - }, - "end": { - "line": 573, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "br", - "start": 21848, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 47 - }, - "end": { - "line": 573, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21850, - "end": 21851, - "loc": { - "start": { - "line": 573, - "column": 49 - }, - "end": { - "line": 573, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "center", - "start": 21852, - "end": 21860, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 59 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21860, - "end": 21861, - "loc": { - "start": { - "line": 573, - "column": 59 - }, - "end": { - "line": 573, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "center", - "start": 21862, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 61 - }, - "end": { - "line": 573, - "column": 67 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21869, - "end": 21870, - "loc": { - "start": { - "line": 573, - "column": 68 - }, - "end": { - "line": 573, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21870, - "end": 21871, - "loc": { - "start": { - "line": 573, - "column": 69 - }, - "end": { - "line": 573, - "column": 70 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21874, - "end": 21875, - "loc": { - "start": { - "line": 574, - "column": 1 - }, - "end": { - "line": 574, - "column": 2 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21877, - "end": 21878, - "loc": { - "start": { - "line": 575, - "column": 0 - }, - "end": { - "line": 575, - "column": 1 - } - } - }, - { - "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": 21880, - "end": 21886, - "loc": { - "start": { - "line": 576, - "column": 0 - }, - "end": { - "line": 576, - "column": 6 - } - } - }, - { - "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": 21887, - "end": 21892, - "loc": { - "start": { - "line": 576, - "column": 7 - }, - "end": { - "line": 576, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "EUtils", - "start": 21893, - "end": 21899, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21900, - "end": 21901, - "loc": { - "start": { - "line": 576, - "column": 20 - }, - "end": { - "line": 576, - "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": 21902, - "end": 21905, - "loc": { - "start": { - "line": 576, - "column": 22 - }, - "end": { - "line": 576, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "EUtilsSingleton", - "start": 21906, - "end": 21921, - "loc": { - "start": { - "line": 576, - "column": 26 - }, - "end": { - "line": 576, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21921, - "end": 21922, - "loc": { - "start": { - "line": 576, - "column": 41 - }, - "end": { - "line": 576, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21922, - "end": 21923, - "loc": { - "start": { - "line": 576, - "column": 42 - }, - "end": { - "line": 576, - "column": 43 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21923, - "end": 21924, - "loc": { - "start": { - "line": 576, - "column": 43 - }, - "end": { - "line": 576, - "column": 44 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21926, - "end": 21926, - "loc": { - "start": { - "line": 577, - "column": 0 - }, - "end": { - "line": 577, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/eutils.mjs.json b/docs/ast/source/eutils.mjs.json deleted file mode 100644 index 17dea6b..0000000 --- a/docs/ast/source/eutils.mjs.json +++ /dev/null @@ -1,142641 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 21926, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 577, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 21926, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 577, - "column": 0 - } - }, - "sourceType": "module", - "body": [ - { - "type": "Identifier", - "start": 226, - "end": 21878, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 575, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 232, - "end": 247, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 21 - }, - "identifierName": "EUtilsSingleton" - }, - "name": "EUtilsSingleton", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 248, - "end": 21878, - "loc": { - "start": { - "line": 9, - "column": 22 - }, - "end": { - "line": 575, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 296, - "end": 321, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 26 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 303, - "end": 310, - "loc": { - "start": { - "line": 13, - "column": 8 - }, - "end": { - "line": 13, - "column": 15 - }, - "identifierName": "version" - }, - "name": "version" - }, - "value": { - "type": "StringLiteral", - "start": 313, - "end": 320, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 13, - "column": 25 - } - }, - "extra": { - "rawValue": "1.0.0", - "raw": "'1.0.0'" - }, - "value": "1.0.0" - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the library\r\n\t ", - "start": 252, - "end": 293, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 12, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 324, - "end": 599, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 27, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 324, - "end": 335, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 14, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 338, - "end": 599, - "loc": { - "start": { - "line": 14, - "column": 15 - }, - "end": { - "line": 27, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 457, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 24 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 457, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 457, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 457, - "end": 461, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 6 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 462, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 7 - }, - "end": { - "line": 20, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ObjectExpression", - "start": 476, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 21 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "properties": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * Object storing all color objects being transitioned at the moment\r\n\t\t * \r\n\t\t * @type {Object}\r\n\t\t ", - "start": 343, - "end": 453, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 575, - "end": 595, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 575, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 575, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 575, - "end": 579, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 6 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 580, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ArrayExpression", - "start": 592, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "elements": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1175, - "end": 1360, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 39, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1175, - "end": 1186, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 36, - "column": 12 - }, - "identifierName": "decimalRand" - }, - "name": "decimalRand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 36, - "column": 13 - }, - "end": { - "line": 36, - "column": 18 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1194, - "end": 1199, - "loc": { - "start": { - "line": 36, - "column": 20 - }, - "end": { - "line": 36, - "column": 25 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - { - "type": "AssignmentPattern", - "start": 1201, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 1201, - "end": 1208, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 34 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - }, - "right": { - "type": "NumericLiteral", - "start": 1211, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 37 - }, - "end": { - "line": 36, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1214, - "end": 1360, - "loc": { - "start": { - "line": 36, - "column": 40 - }, - "end": { - "line": 39, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1219, - "end": 1301, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 37, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1225, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 1225, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1234, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 1234, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1241, - "end": 1299, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1241, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 73 - } - }, - "object": { - "type": "BinaryExpression", - "start": 1242, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1242, - "end": 1273, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1242, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1242, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1242, - "end": 1246, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1247, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 30 - }, - "end": { - "line": 37, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1259, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1267, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1258 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1276, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 59 - }, - "end": { - "line": 37, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1241 - } - }, - "property": { - "type": "Identifier", - "start": 1283, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 66 - }, - "end": { - "line": 37, - "column": 73 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1291, - "end": 1298, - "loc": { - "start": { - "line": 37, - "column": 74 - }, - "end": { - "line": 37, - "column": 81 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1305, - "end": 1356, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 38, - "column": 53 - } - }, - "argument": { - "type": "ConditionalExpression", - "start": 1313, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 51 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1313, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 1313, - "end": 1319, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 16 - }, - "identifierName": "result" - }, - "name": "result" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 1323, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "CallExpression", - "start": 1327, - "end": 1345, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1327, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1327, - "end": 1331, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1332, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 29 - }, - "end": { - "line": 38, - "column": 34 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 41 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - }, - "alternate": { - "type": "Identifier", - "start": 1348, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 51 - }, - "identifierName": "result" - }, - "name": "result" - }, - "extra": { - "parenthesized": true, - "parenStart": 1312 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1790, - "end": 1913, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1790, - "end": 1794, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 47, - "column": 5 - }, - "identifierName": "rand" - }, - "name": "rand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1795, - "end": 1800, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 11 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1802, - "end": 1807, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 18 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - } - ], - "body": { - "type": "BlockStatement", - "start": 1809, - "end": 1913, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1814, - "end": 1879, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1820, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 1820, - "end": 1826, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1829, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 1829, - "end": 1835, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1837, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1837, - "end": 1868, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1837, - "end": 1850, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1837, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1837, - "end": 1841, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1842, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 30 - }, - "end": { - "line": 48, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1854, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1854, - "end": 1859, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 50 - }, - "end": { - "line": 48, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1853 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1871, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 59 - }, - "end": { - "line": 48, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1836 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1883, - "end": 1909, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 1890, - "end": 1908, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1890, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 1890, - "end": 1894, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1895, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1901, - "end": 1907, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 26 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2247, - "end": 2327, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2247, - "end": 2260, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 58, - "column": 14 - }, - "identifierName": "getPercentage" - }, - "name": "getPercentage", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2261, - "end": 2267, - "loc": { - "start": { - "line": 58, - "column": 15 - }, - "end": { - "line": 58, - "column": 21 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - { - "type": "Identifier", - "start": 2269, - "end": 2280, - "loc": { - "start": { - "line": 58, - "column": 23 - }, - "end": { - "line": 58, - "column": 34 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - ], - "body": { - "type": "BlockStatement", - "start": 2282, - "end": 2327, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2287, - "end": 2323, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 38 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 2294, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 9 - }, - "end": { - "line": 59, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2295, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 22 - } - }, - "left": { - "type": "NumericLiteral", - "start": 2295, - "end": 2298, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 13 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 2301, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 16 - }, - "end": { - "line": 59, - "column": 22 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - "extra": { - "parenthesized": true, - "parenStart": 2294 - } - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 2311, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 26 - }, - "end": { - "line": 59, - "column": 37 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2750, - "end": 2841, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2750, - "end": 2755, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 69, - "column": 6 - }, - "identifierName": "clamp" - }, - "name": "clamp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2756, - "end": 2763, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 2765, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 2765, - "end": 2769, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 20 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "right": { - "type": "NumericLiteral", - "start": 2772, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "AssignmentPattern", - "start": 2775, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 2775, - "end": 2779, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "right": { - "type": "NumericLiteral", - "start": 2782, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 33 - }, - "end": { - "line": 69, - "column": 34 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 2785, - "end": 2841, - "loc": { - "start": { - "line": 69, - "column": 36 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2790, - "end": 2837, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 49 - } - }, - "argument": { - "type": "CallExpression", - "start": 2797, - "end": 2836, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2797, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 2797, - "end": 2801, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2802, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 14 - }, - "end": { - "line": 70, - "column": 17 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2806, - "end": 2810, - "loc": { - "start": { - "line": 70, - "column": 18 - }, - "end": { - "line": 70, - "column": 22 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "CallExpression", - "start": 2812, - "end": 2835, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2812, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 2812, - "end": 2816, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2817, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 29 - }, - "end": { - "line": 70, - "column": 32 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2821, - "end": 2828, - "loc": { - "start": { - "line": 70, - "column": 33 - }, - "end": { - "line": 70, - "column": 40 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "Identifier", - "start": 2830, - "end": 2834, - "loc": { - "start": { - "line": 70, - "column": 42 - }, - "end": { - "line": 70, - "column": 46 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3260, - "end": 3336, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 82, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3260, - "end": 3264, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 80, - "column": 5 - }, - "identifierName": "lerp" - }, - "name": "lerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3265, - "end": 3271, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 12 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3273, - "end": 3277, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 18 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3279, - "end": 3286, - "loc": { - "start": { - "line": 80, - "column": 20 - }, - "end": { - "line": 80, - "column": 27 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3288, - "end": 3336, - "loc": { - "start": { - "line": 80, - "column": 29 - }, - "end": { - "line": 82, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3293, - "end": 3332, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 41 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 3300, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 40 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3300, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3301, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 19 - } - }, - "left": { - "type": "NumericLiteral", - "start": 3301, - "end": 3302, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 11 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 3303, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 12 - }, - "end": { - "line": 81, - "column": 19 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "extra": { - "parenthesized": true, - "parenStart": 3300 - } - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3312, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 27 - }, - "identifierName": "pStart" - }, - "name": "pStart" - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 3319, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 3319, - "end": 3326, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 35 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3327, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 36 - }, - "end": { - "line": 81, - "column": 40 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3836, - "end": 3932, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 93, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3836, - "end": 3847, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 91, - "column": 12 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3848, - "end": 3854, - "loc": { - "start": { - "line": 91, - "column": 13 - }, - "end": { - "line": 91, - "column": 19 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3856, - "end": 3860, - "loc": { - "start": { - "line": 91, - "column": 21 - }, - "end": { - "line": 91, - "column": 25 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3862, - "end": 3869, - "loc": { - "start": { - "line": 91, - "column": 27 - }, - "end": { - "line": 91, - "column": 34 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3871, - "end": 3932, - "loc": { - "start": { - "line": 91, - "column": 36 - }, - "end": { - "line": 93, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3876, - "end": 3928, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 54 - } - }, - "argument": { - "type": "CallExpression", - "start": 3883, - "end": 3927, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3883, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 3883, - "end": 3887, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 3888, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 14 - }, - "end": { - "line": 92, - "column": 19 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3894, - "end": 3926, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 52 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3894, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 3894, - "end": 3898, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 3899, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 29 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3904, - "end": 3910, - "loc": { - "start": { - "line": 92, - "column": 30 - }, - "end": { - "line": 92, - "column": 36 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3912, - "end": 3916, - "loc": { - "start": { - "line": 92, - "column": 38 - }, - "end": { - "line": 92, - "column": 42 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3918, - "end": 3925, - "loc": { - "start": { - "line": 92, - "column": 44 - }, - "end": { - "line": 92, - "column": 51 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4259, - "end": 4338, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 103, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4259, - "end": 4264, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 101, - "column": 6 - }, - "identifierName": "round" - }, - "name": "round", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4265, - "end": 4272, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 4274, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 4274, - "end": 4280, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 22 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "right": { - "type": "NumericLiteral", - "start": 4281, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 23 - }, - "end": { - "line": 101, - "column": 24 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 4284, - "end": 4338, - "loc": { - "start": { - "line": 101, - "column": 26 - }, - "end": { - "line": 103, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 4289, - "end": 4334, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 102, - "column": 47 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4296, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 46 - } - }, - "left": { - "type": "CallExpression", - "start": 4296, - "end": 4324, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4296, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4296, - "end": 4300, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 4301, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 4307, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 4307, - "end": 4313, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 26 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 4316, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 102, - "column": 36 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - } - } - ] - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 4327, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 40 - }, - "end": { - "line": 102, - "column": 46 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4826, - "end": 4936, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 116, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4826, - "end": 4835, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 113, - "column": 10 - }, - "identifierName": "normalize" - }, - "name": "normalize", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4836, - "end": 4840, - "loc": { - "start": { - "line": 113, - "column": 11 - }, - "end": { - "line": 113, - "column": 15 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 4842, - "end": 4846, - "loc": { - "start": { - "line": 113, - "column": 17 - }, - "end": { - "line": 113, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 4848, - "end": 4852, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 4854, - "end": 4936, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 116, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 4859, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 2 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "test": { - "type": "BinaryExpression", - "start": 4863, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 23 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4863, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 10 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4870, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 13 - }, - "end": { - "line": 114, - "column": 17 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 4879, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 22 - }, - "end": { - "line": 114, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 4882, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 25 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 4889, - "end": 4890, - "loc": { - "start": { - "line": 114, - "column": 32 - }, - "end": { - "line": 114, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 4895, - "end": 4932, - "loc": { - "start": { - "line": 115, - "column": 2 - }, - "end": { - "line": 115, - "column": 39 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4902, - "end": 4931, - "loc": { - "start": { - "line": 115, - "column": 9 - }, - "end": { - "line": 115, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4903, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 4903, - "end": 4907, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4910, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 17 - }, - "end": { - "line": 115, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 4902 - } - }, - "operator": "/", - "right": { - "type": "BinaryExpression", - "start": 4919, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 4919, - "end": 4923, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4926, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 33 - }, - "end": { - "line": 115, - "column": 37 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 4918 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5335, - "end": 5405, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 127, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5335, - "end": 5341, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 125, - "column": 7 - }, - "identifierName": "within" - }, - "name": "within", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5342, - "end": 5346, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 12 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5348, - "end": 5352, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5354, - "end": 5358, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 24 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 5360, - "end": 5405, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 127, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5365, - "end": 5401, - "loc": { - "start": { - "line": 126, - "column": 2 - }, - "end": { - "line": 126, - "column": 38 - } - }, - "argument": { - "type": "LogicalExpression", - "start": 5372, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5372, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 5372, - "end": 5376, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 13 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 5380, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 17 - }, - "end": { - "line": 126, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 5388, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 29 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 5396, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 33 - }, - "end": { - "line": 126, - "column": 37 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5656, - "end": 5770, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 136, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5656, - "end": 5679, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 24 - }, - "identifierName": "formatIntegerWithCommas" - }, - "name": "formatIntegerWithCommas", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 134, - "column": 25 - }, - "end": { - "line": 134, - "column": 29 - }, - "identifierName": "pNum" - }, - "name": "pNum" - } - ], - "body": { - "type": "BlockStatement", - "start": 5686, - "end": 5770, - "loc": { - "start": { - "line": 134, - "column": 31 - }, - "end": { - "line": 136, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5691, - "end": 5766, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 77 - } - }, - "argument": { - "type": "CallExpression", - "start": 5698, - "end": 5765, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 42 - } - }, - "object": { - "type": "CallExpression", - "start": 5698, - "end": 5723, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 32 - } - }, - "object": { - "type": "CallExpression", - "start": 5698, - "end": 5712, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 5698, - "end": 5702, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 13 - }, - "identifierName": "pNum" - }, - "name": "pNum" - }, - "property": { - "type": "Identifier", - "start": 5703, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 21 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5713, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 24 - }, - "end": { - "line": 135, - "column": 32 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5724, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 35 - }, - "end": { - "line": 135, - "column": 42 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "RegExpLiteral", - "start": 5732, - "end": 5757, - "loc": { - "start": { - "line": 135, - "column": 43 - }, - "end": { - "line": 135, - "column": 68 - } - }, - "extra": { - "raw": "/(\\d)(?=(\\d{3})+(?!\\d))/g" - }, - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - { - "type": "StringLiteral", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 135, - "column": 70 - }, - "end": { - "line": 135, - "column": 75 - } - }, - "extra": { - "rawValue": "$1,", - "raw": "'$1,'" - }, - "value": "$1," - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5924, - "end": 5994, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 145, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5924, - "end": 5940, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 143, - "column": 17 - }, - "identifierName": "degreesToRadians" - }, - "name": "degreesToRadians", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5941, - "end": 5949, - "loc": { - "start": { - "line": 143, - "column": 18 - }, - "end": { - "line": 143, - "column": 26 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - } - ], - "body": { - "type": "BlockStatement", - "start": 5951, - "end": 5994, - "loc": { - "start": { - "line": 143, - "column": 28 - }, - "end": { - "line": 145, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5956, - "end": 5990, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 144, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 5963, - "end": 5989, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 5963, - "end": 5971, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 17 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 5975, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 34 - } - }, - "left": { - "type": "MemberExpression", - "start": 5975, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 5975, - "end": 5979, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 25 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 5980, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 28 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 5985, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 31 - }, - "end": { - "line": 144, - "column": 34 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "extra": { - "parenthesized": true, - "parenStart": 5974 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6148, - "end": 6218, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 154, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6148, - "end": 6164, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 152, - "column": 17 - }, - "identifierName": "radiansToDegrees" - }, - "name": "radiansToDegrees", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6165, - "end": 6173, - "loc": { - "start": { - "line": 152, - "column": 18 - }, - "end": { - "line": 152, - "column": 26 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - } - ], - "body": { - "type": "BlockStatement", - "start": 6175, - "end": 6218, - "loc": { - "start": { - "line": 152, - "column": 28 - }, - "end": { - "line": 154, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 6180, - "end": 6214, - "loc": { - "start": { - "line": 153, - "column": 2 - }, - "end": { - "line": 153, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 6187, - "end": 6213, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 6187, - "end": 6195, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 17 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 6199, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 34 - } - }, - "left": { - "type": "NumericLiteral", - "start": 6199, - "end": 6202, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 24 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 6205, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 6205, - "end": 6209, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6210, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 34 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 6198 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6388, - "end": 6503, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 164, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6388, - "end": 6392, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 161, - "column": 5 - }, - "identifierName": "pick" - }, - "name": "pick", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6393, - "end": 6399, - "loc": { - "start": { - "line": 161, - "column": 6 - }, - "end": { - "line": 161, - "column": 12 - }, - "identifierName": "pArray" - }, - "name": "pArray" - } - ], - "body": { - "type": "BlockStatement", - "start": 6401, - "end": 6503, - "loc": { - "start": { - "line": 161, - "column": 14 - }, - "end": { - "line": 164, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6406, - "end": 6468, - "loc": { - "start": { - "line": 162, - "column": 2 - }, - "end": { - "line": 162, - "column": 64 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6412, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 6412, - "end": 6423, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 19 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "init": { - "type": "CallExpression", - "start": 6426, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6426, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 6426, - "end": 6430, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 26 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6431, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 32 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 6437, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 6437, - "end": 6450, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6437, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 37 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6442, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 38 - }, - "end": { - "line": 162, - "column": 44 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 6453, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 6453, - "end": 6459, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 55 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 6460, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 56 - }, - "end": { - "line": 162, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 6472, - "end": 6499, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 163, - "column": 29 - } - }, - "argument": { - "type": "MemberExpression", - "start": 6479, - "end": 6498, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 6479, - "end": 6485, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 15 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 6486, - "end": 6497, - "loc": { - "start": { - "line": 163, - "column": 16 - }, - "end": { - "line": 163, - "column": 27 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "computed": true - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6757, - "end": 7069, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 181, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6757, - "end": 6773, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 171, - "column": 17 - }, - "identifierName": "removeProperties" - }, - "name": "removeProperties", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6774, - "end": 6781, - "loc": { - "start": { - "line": 171, - "column": 18 - }, - "end": { - "line": 171, - "column": 25 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - { - "type": "Identifier", - "start": 6783, - "end": 6791, - "loc": { - "start": { - "line": 171, - "column": 27 - }, - "end": { - "line": 171, - "column": 35 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "body": { - "type": "BlockStatement", - "start": 6793, - "end": 7069, - "loc": { - "start": { - "line": 171, - "column": 37 - }, - "end": { - "line": 181, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6798, - "end": 7064, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 6802, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 6802, - "end": 6817, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 6809, - "end": 6816, - "loc": { - "start": { - "line": 172, - "column": 13 - }, - "end": { - "line": 172, - "column": 20 - }, - "identifierName": "pObject" - }, - "name": "pObject", - "extra": { - "parenthesized": true, - "parenStart": 6808 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 6822, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 26 - }, - "end": { - "line": 172, - "column": 34 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 6832, - "end": 7064, - "loc": { - "start": { - "line": 172, - "column": 36 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "body": [ - { - "type": "ForInStatement", - "start": 6838, - "end": 7059, - "loc": { - "start": { - "line": 173, - "column": 3 - }, - "end": { - "line": 179, - "column": 4 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 6843, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "Identifier", - "start": 6857, - "end": 6864, - "loc": { - "start": { - "line": 173, - "column": 22 - }, - "end": { - "line": 173, - "column": 29 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "body": { - "type": "BlockStatement", - "start": 6866, - "end": 7059, - "loc": { - "start": { - "line": 173, - "column": 31 - }, - "end": { - "line": 179, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6912, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 69 - } - }, - "test": { - "type": "LogicalExpression", - "start": 6916, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 6916, - "end": 6939, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6916, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 6916, - "end": 6921, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 13 - }, - "identifierName": "Array" - }, - "name": "Array", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 6922, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 21 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 6930, - "end": 6938, - "loc": { - "start": { - "line": 175, - "column": 22 - }, - "end": { - "line": 175, - "column": 30 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 6943, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6943, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 6943, - "end": 6951, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 43 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - }, - "property": { - "type": "Identifier", - "start": 6952, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 44 - }, - "end": { - "line": 175, - "column": 52 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6961, - "end": 6965, - "loc": { - "start": { - "line": 175, - "column": 53 - }, - "end": { - "line": 175, - "column": 57 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "leadingComments": null - }, - "consequent": { - "type": "ContinueStatement", - "start": 6968, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 60 - }, - "end": { - "line": 175, - "column": 69 - } - }, - "label": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 6873, - "end": 6906, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 37 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 6983, - "end": 7053, - "loc": { - "start": { - "line": 176, - "column": 4 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "test": { - "type": "CallExpression", - "start": 6987, - "end": 7015, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6987, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 6987, - "end": 6994, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 15 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 6995, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 16 - }, - "end": { - "line": 176, - "column": 30 - }, - "identifierName": "hasOwnProperty" - }, - "name": "hasOwnProperty" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 7010, - "end": 7014, - "loc": { - "start": { - "line": 176, - "column": 31 - }, - "end": { - "line": 176, - "column": 35 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 7017, - "end": 7053, - "loc": { - "start": { - "line": 176, - "column": 38 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7025, - "end": 7046, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 26 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 7025, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 25 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 7032, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 7032, - "end": 7039, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 19 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 7040, - "end": 7044, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 24 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7394, - "end": 7602, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 198, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7394, - "end": 7398, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 189, - "column": 5 - }, - "identifierName": "prob" - }, - "name": "prob", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7399, - "end": 7406, - "loc": { - "start": { - "line": 189, - "column": 6 - }, - "end": { - "line": 189, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - ], - "body": { - "type": "BlockStatement", - "start": 7408, - "end": 7602, - "loc": { - "start": { - "line": 189, - "column": 15 - }, - "end": { - "line": 198, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7413, - "end": 7455, - "loc": { - "start": { - "line": 190, - "column": 2 - }, - "end": { - "line": 192, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7417, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 7417, - "end": 7424, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 7428, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 17 - }, - "end": { - "line": 190, - "column": 18 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7431, - "end": 7455, - "loc": { - "start": { - "line": 190, - "column": 20 - }, - "end": { - "line": 192, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7437, - "end": 7450, - "loc": { - "start": { - "line": 191, - "column": 3 - }, - "end": { - "line": 191, - "column": 16 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 7444, - "end": 7449, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 15 - } - }, - "value": false - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 7459, - "end": 7502, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 195, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7463, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 20 - } - }, - "left": { - "type": "Identifier", - "start": 7463, - "end": 7470, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 7474, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 17 - }, - "end": { - "line": 193, - "column": 20 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7479, - "end": 7502, - "loc": { - "start": { - "line": 193, - "column": 22 - }, - "end": { - "line": 195, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7485, - "end": 7497, - "loc": { - "start": { - "line": 194, - "column": 3 - }, - "end": { - "line": 194, - "column": 15 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 7492, - "end": 7496, - "loc": { - "start": { - "line": 194, - "column": 10 - }, - "end": { - "line": 194, - "column": 14 - } - }, - "value": true - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 7506, - "end": 7563, - "loc": { - "start": { - "line": 196, - "column": 2 - }, - "end": { - "line": 196, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7512, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 7512, - "end": 7524, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 20 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "init": { - "type": "BinaryExpression", - "start": 7527, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 7527, - "end": 7558, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7527, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 7527, - "end": 7531, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7532, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 28 - }, - "end": { - "line": 196, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7538, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 53 - } - }, - "left": { - "type": "CallExpression", - "start": 7538, - "end": 7551, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7538, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 7538, - "end": 7542, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7543, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 39 - }, - "end": { - "line": 196, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 7554, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 50 - }, - "end": { - "line": 196, - "column": 53 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 7561, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 57 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 7567, - "end": 7598, - "loc": { - "start": { - "line": 197, - "column": 2 - }, - "end": { - "line": 197, - "column": 33 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 7574, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 7574, - "end": 7586, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 21 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 7590, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 25 - }, - "end": { - "line": 197, - "column": 32 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7789, - "end": 8254, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 226, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7789, - "end": 7802, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 205, - "column": 14 - }, - "identifierName": "getInverseDir" - }, - "name": "getInverseDir", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7803, - "end": 7807, - "loc": { - "start": { - "line": 205, - "column": 15 - }, - "end": { - "line": 205, - "column": 19 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "body": { - "type": "BlockStatement", - "start": 7809, - "end": 8254, - "loc": { - "start": { - "line": 205, - "column": 21 - }, - "end": { - "line": 226, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 7814, - "end": 8250, - "loc": { - "start": { - "line": 206, - "column": 2 - }, - "end": { - "line": 225, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 7822, - "end": 7826, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 14 - }, - "identifierName": "pDir" - }, - "name": "pDir" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 7834, - "end": 7868, - "loc": { - "start": { - "line": 207, - "column": 3 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7853, - "end": 7868, - "loc": { - "start": { - "line": 208, - "column": 4 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7860, - "end": 7867, - "loc": { - "start": { - "line": 208, - "column": 11 - }, - "end": { - "line": 208, - "column": 18 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7839, - "end": 7846, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 7873, - "end": 7907, - "loc": { - "start": { - "line": 209, - "column": 3 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7892, - "end": 7907, - "loc": { - "start": { - "line": 210, - "column": 4 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7899, - "end": 7906, - "loc": { - "start": { - "line": 210, - "column": 11 - }, - "end": { - "line": 210, - "column": 18 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7878, - "end": 7885, - "loc": { - "start": { - "line": 209, - "column": 8 - }, - "end": { - "line": 209, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 7912, - "end": 7944, - "loc": { - "start": { - "line": 211, - "column": 3 - }, - "end": { - "line": 212, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7930, - "end": 7944, - "loc": { - "start": { - "line": 212, - "column": 4 - }, - "end": { - "line": 212, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7937, - "end": 7943, - "loc": { - "start": { - "line": 212, - "column": 11 - }, - "end": { - "line": 212, - "column": 17 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7917, - "end": 7923, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 7949, - "end": 7981, - "loc": { - "start": { - "line": 213, - "column": 3 - }, - "end": { - "line": 214, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7967, - "end": 7981, - "loc": { - "start": { - "line": 214, - "column": 4 - }, - "end": { - "line": 214, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7974, - "end": 7980, - "loc": { - "start": { - "line": 214, - "column": 11 - }, - "end": { - "line": 214, - "column": 17 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7954, - "end": 7960, - "loc": { - "start": { - "line": 213, - "column": 8 - }, - "end": { - "line": 213, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 7986, - "end": 8028, - "loc": { - "start": { - "line": 215, - "column": 3 - }, - "end": { - "line": 216, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8009, - "end": 8028, - "loc": { - "start": { - "line": 216, - "column": 4 - }, - "end": { - "line": 216, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8016, - "end": 8027, - "loc": { - "start": { - "line": 216, - "column": 11 - }, - "end": { - "line": 216, - "column": 22 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7991, - "end": 8002, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 8033, - "end": 8075, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8056, - "end": 8075, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8063, - "end": 8074, - "loc": { - "start": { - "line": 218, - "column": 11 - }, - "end": { - "line": 218, - "column": 22 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8038, - "end": 8049, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 8080, - "end": 8122, - "loc": { - "start": { - "line": 219, - "column": 3 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8103, - "end": 8122, - "loc": { - "start": { - "line": 220, - "column": 4 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8110, - "end": 8121, - "loc": { - "start": { - "line": 220, - "column": 11 - }, - "end": { - "line": 220, - "column": 22 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8085, - "end": 8096, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 8127, - "end": 8169, - "loc": { - "start": { - "line": 221, - "column": 3 - }, - "end": { - "line": 222, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8150, - "end": 8169, - "loc": { - "start": { - "line": 222, - "column": 4 - }, - "end": { - "line": 222, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8157, - "end": 8168, - "loc": { - "start": { - "line": 222, - "column": 11 - }, - "end": { - "line": 222, - "column": 22 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8132, - "end": 8143, - "loc": { - "start": { - "line": 221, - "column": 8 - }, - "end": { - "line": 221, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 8174, - "end": 8245, - "loc": { - "start": { - "line": 223, - "column": 3 - }, - "end": { - "line": 224, - "column": 61 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 8188, - "end": 8245, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 61 - } - }, - "expression": { - "type": "CallExpression", - "start": 8188, - "end": 8244, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 60 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8188, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 8188, - "end": 8195, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 8196, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 12 - }, - "end": { - "line": 224, - "column": 17 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 8202, - "end": 8243, - "loc": { - "start": { - "line": 224, - "column": 18 - }, - "end": { - "line": 224, - "column": 59 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 8219, - "end": 8223, - "loc": { - "start": { - "line": 224, - "column": 35 - }, - "end": { - "line": 224, - "column": 39 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 8203, - "end": 8217, - "loc": { - "start": { - "line": 224, - "column": 19 - }, - "end": { - "line": 224, - "column": 33 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 8224, - "end": 8242, - "loc": { - "start": { - "line": 224, - "column": 40 - }, - "end": { - "line": 224, - "column": 58 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8565, - "end": 9074, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 255, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8565, - "end": 8580, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 234, - "column": 16 - }, - "identifierName": "getAngleFromDir" - }, - "name": "getAngleFromDir", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 234, - "column": 17 - }, - "end": { - "line": 234, - "column": 21 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "body": { - "type": "BlockStatement", - "start": 8587, - "end": 9074, - "loc": { - "start": { - "line": 234, - "column": 23 - }, - "end": { - "line": 255, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 8592, - "end": 9070, - "loc": { - "start": { - "line": 235, - "column": 2 - }, - "end": { - "line": 254, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 8600, - "end": 8604, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 14 - }, - "identifierName": "pDir" - }, - "name": "pDir" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 8612, - "end": 8652, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 237, - "column": 25 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8631, - "end": 8652, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 25 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8639, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8639, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8639, - "end": 8643, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8644, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 17 - }, - "end": { - "line": 237, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8649, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 22 - }, - "end": { - "line": 237, - "column": 23 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 8638 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8617, - "end": 8624, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 8657, - "end": 8701, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 239, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8676, - "end": 8701, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8683, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8684, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8684, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8684, - "end": 8688, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8689, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 239, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8694, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 22 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 8683 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8699, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 27 - }, - "end": { - "line": 239, - "column": 28 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8662, - "end": 8669, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 8706, - "end": 8745, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 241, - "column": 25 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8724, - "end": 8745, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 25 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8732, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8732, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8732, - "end": 8736, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8737, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 17 - }, - "end": { - "line": 241, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8742, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 22 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 8731 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8711, - "end": 8717, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 8750, - "end": 8783, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 243, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8768, - "end": 8783, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 19 - } - }, - "argument": { - "type": "MemberExpression", - "start": 8775, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 8775, - "end": 8779, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8780, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 16 - }, - "end": { - "line": 243, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8755, - "end": 8761, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 8788, - "end": 8836, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8811, - "end": 8836, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8818, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8819, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8819, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8819, - "end": 8823, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8824, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 17 - }, - "end": { - "line": 245, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8829, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 8818 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8834, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 27 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8793, - "end": 8804, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 8841, - "end": 8883, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 247, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8864, - "end": 8883, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 23 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8871, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "left": { - "type": "MemberExpression", - "start": 8871, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 8871, - "end": 8875, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8876, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8881, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 21 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8846, - "end": 8857, - "loc": { - "start": { - "line": 246, - "column": 8 - }, - "end": { - "line": 246, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 8888, - "end": 8936, - "loc": { - "start": { - "line": 248, - "column": 3 - }, - "end": { - "line": 249, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8911, - "end": 8936, - "loc": { - "start": { - "line": 249, - "column": 4 - }, - "end": { - "line": 249, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8918, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 11 - }, - "end": { - "line": 249, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8919, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8919, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8919, - "end": 8923, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8924, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8929, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 22 - }, - "end": { - "line": 249, - "column": 23 - } - }, - "extra": { - "rawValue": 5, - "raw": "5" - }, - "value": 5 - }, - "extra": { - "parenthesized": true, - "parenStart": 8918 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8934, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 27 - }, - "end": { - "line": 249, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8893, - "end": 8904, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 8941, - "end": 8989, - "loc": { - "start": { - "line": 250, - "column": 3 - }, - "end": { - "line": 251, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8964, - "end": 8989, - "loc": { - "start": { - "line": 251, - "column": 4 - }, - "end": { - "line": 251, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8971, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 11 - }, - "end": { - "line": 251, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8972, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8972, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8972, - "end": 8976, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8977, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 17 - }, - "end": { - "line": 251, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8982, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 22 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - }, - "extra": { - "parenthesized": true, - "parenStart": 8971 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8987, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 27 - }, - "end": { - "line": 251, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8946, - "end": 8957, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 8994, - "end": 9065, - "loc": { - "start": { - "line": 252, - "column": 3 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 9008, - "end": 9065, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "expression": { - "type": "CallExpression", - "start": 9008, - "end": 9064, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 60 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9008, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 9008, - "end": 9015, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 9016, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 17 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 9022, - "end": 9063, - "loc": { - "start": { - "line": 253, - "column": 18 - }, - "end": { - "line": 253, - "column": 59 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 9039, - "end": 9043, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 39 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 9023, - "end": 9037, - "loc": { - "start": { - "line": 253, - "column": 19 - }, - "end": { - "line": 253, - "column": 33 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 9044, - "end": 9062, - "loc": { - "start": { - "line": 253, - "column": 40 - }, - "end": { - "line": 253, - "column": 58 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9213, - "end": 9638, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 277, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9213, - "end": 9223, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 262, - "column": 11 - }, - "identifierName": "generateID" - }, - "name": "generateID", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 9224, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 9224, - "end": 9233, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 21 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - }, - "right": { - "type": "NumericLiteral", - "start": 9236, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 24 - }, - "end": { - "line": 262, - "column": 25 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 9239, - "end": 9638, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 277, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9244, - "end": 9323, - "loc": { - "start": { - "line": 263, - "column": 2 - }, - "end": { - "line": 263, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9250, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 9250, - "end": 9255, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 9258, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 16 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "extra": { - "rawValue": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "raw": "'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'" - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9327, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 2 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9333, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 9333, - "end": 9339, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "init": { - "type": "FunctionExpression", - "start": 9342, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 17 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 9353, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 28 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9359, - "end": 9371, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 265, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9363, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 9363, - "end": 9365, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 9 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "StringLiteral", - "start": 9368, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 12 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 9376, - "end": 9486, - "loc": { - "start": { - "line": 266, - "column": 3 - }, - "end": { - "line": 268, - "column": 4 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 9381, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 8 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9385, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 9385, - "end": 9386, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 13 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 9389, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 9392, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 9392, - "end": 9393, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 20 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 9396, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 32 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - } - }, - "update": { - "type": "UpdateExpression", - "start": 9407, - "end": 9410, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 37 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 9407, - "end": 9408, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 35 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 9412, - "end": 9486, - "loc": { - "start": { - "line": 266, - "column": 39 - }, - "end": { - "line": 268, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9419, - "end": 9480, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 65 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9419, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 64 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 9419, - "end": 9421, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 6 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 9425, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 64 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9425, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 9425, - "end": 9430, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 15 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 9431, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 16 - }, - "end": { - "line": 267, - "column": 22 - }, - "identifierName": "charAt" - }, - "name": "charAt" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 9438, - "end": 9478, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9438, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 9438, - "end": 9442, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9443, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 28 - }, - "end": { - "line": 267, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 9449, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 9449, - "end": 9462, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9449, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 9449, - "end": 9453, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9454, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 39 - }, - "end": { - "line": 267, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 9465, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 9465, - "end": 9470, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 55 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 9471, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 56 - }, - "end": { - "line": 267, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - ] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 9491, - "end": 9501, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 269, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 9498, - "end": 9500, - "loc": { - "start": { - "line": 269, - "column": 10 - }, - "end": { - "line": 269, - "column": 12 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9510, - "end": 9528, - "loc": { - "start": { - "line": 271, - "column": 2 - }, - "end": { - "line": 271, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9514, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 9514, - "end": 9516, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 8 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "CallExpression", - "start": 9519, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 9519, - "end": 9525, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 17 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "WhileStatement", - "start": 9532, - "end": 9592, - "loc": { - "start": { - "line": 272, - "column": 2 - }, - "end": { - "line": 274, - "column": 3 - } - }, - "test": { - "type": "CallExpression", - "start": 9538, - "end": 9565, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 35 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9538, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 9538, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 9538, - "end": 9542, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 9543, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 13 - }, - "end": { - "line": 272, - "column": 22 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9553, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 23 - }, - "end": { - "line": 272, - "column": 31 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9562, - "end": 9564, - "loc": { - "start": { - "line": 272, - "column": 32 - }, - "end": { - "line": 272, - "column": 34 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - }, - "body": { - "type": "BlockStatement", - "start": 9567, - "end": 9592, - "loc": { - "start": { - "line": 272, - "column": 37 - }, - "end": { - "line": 274, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9573, - "end": 9587, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9573, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 9573, - "end": 9575, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 5 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 9578, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 9578, - "end": 9584, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 9596, - "end": 9620, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 9596, - "end": 9619, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9596, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 21 - } - }, - "object": { - "type": "MemberExpression", - "start": 9596, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 9596, - "end": 9600, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 9601, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 7 - }, - "end": { - "line": 275, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9611, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 17 - }, - "end": { - "line": 275, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9616, - "end": 9618, - "loc": { - "start": { - "line": 275, - "column": 22 - }, - "end": { - "line": 275, - "column": 24 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 9624, - "end": 9634, - "loc": { - "start": { - "line": 276, - "column": 2 - }, - "end": { - "line": 276, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 9631, - "end": 9633, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 11 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9897, - "end": 10030, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 287, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9897, - "end": 9909, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 285, - "column": 13 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 9910, - "end": 9918, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 22 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - { - "type": "AssignmentPattern", - "start": 9920, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 9920, - "end": 9926, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 30 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "right": { - "type": "NumericLiteral", - "start": 9929, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 285, - "column": 34 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 9932, - "end": 10030, - "loc": { - "start": { - "line": 285, - "column": 36 - }, - "end": { - "line": 287, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 9937, - "end": 10026, - "loc": { - "start": { - "line": 286, - "column": 2 - }, - "end": { - "line": 286, - "column": 91 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9944, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 90 - } - }, - "left": { - "type": "StringLiteral", - "start": 9944, - "end": 9947, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 12 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 9950, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 9950, - "end": 10011, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 9950, - "end": 9996, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 57 - } - }, - "object": { - "type": "BinaryExpression", - "start": 9951, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 47 - } - }, - "left": { - "type": "Identifier", - "start": 9951, - "end": 9959, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 24 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 9962, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9962, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 9962, - "end": 9966, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9967, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 32 - }, - "end": { - "line": 286, - "column": 35 - }, - "identifierName": "pow" - }, - "name": "pow" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9971, - "end": 9973, - "loc": { - "start": { - "line": 286, - "column": 36 - }, - "end": { - "line": 286, - "column": 38 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - }, - { - "type": "Identifier", - "start": 9975, - "end": 9981, - "loc": { - "start": { - "line": 286, - "column": 40 - }, - "end": { - "line": 286, - "column": 46 - }, - "identifierName": "pChars" - }, - "name": "pChars" - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 9950 - } - }, - "property": { - "type": "Identifier", - "start": 9984, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 49 - }, - "end": { - "line": 286, - "column": 57 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9993, - "end": 9995, - "loc": { - "start": { - "line": 286, - "column": 58 - }, - "end": { - "line": 286, - "column": 60 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 9997, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 62 - }, - "end": { - "line": 286, - "column": 67 - }, - "identifierName": "slice" - }, - "name": "slice" - }, - "computed": false - }, - "arguments": [ - { - "type": "UnaryExpression", - "start": 10003, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 68 - }, - "end": { - "line": 286, - "column": 75 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 10004, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 69 - }, - "end": { - "line": 286, - "column": 75 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "extra": { - "parenthesizedArgument": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 10012, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 77 - }, - "end": { - "line": 286, - "column": 88 - }, - "identifierName": "toUpperCase" - }, - "name": "toUpperCase" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 10288, - "end": 10838, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 308, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10288, - "end": 10300, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 295, - "column": 13 - }, - "identifierName": "addIntensity" - }, - "name": "addIntensity", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10301, - "end": 10307, - "loc": { - "start": { - "line": 295, - "column": 14 - }, - "end": { - "line": 295, - "column": 20 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - { - "type": "Identifier", - "start": 10309, - "end": 10317, - "loc": { - "start": { - "line": 295, - "column": 22 - }, - "end": { - "line": 295, - "column": 30 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - } - ], - "body": { - "type": "BlockStatement", - "start": 10319, - "end": 10838, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 308, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 10324, - "end": 10368, - "loc": { - "start": { - "line": 296, - "column": 2 - }, - "end": { - "line": 296, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10330, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 10330, - "end": 10333, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 11 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": { - "type": "MemberExpression", - "start": 10336, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 45 - } - }, - "object": { - "type": "CallExpression", - "start": 10336, - "end": 10358, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10336, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 28 - } - }, - "object": { - "type": "ThisExpression", - "start": 10336, - "end": 10340, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 10341, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 19 - }, - "end": { - "line": 296, - "column": 28 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10351, - "end": 10357, - "loc": { - "start": { - "line": 296, - "column": 29 - }, - "end": { - "line": 296, - "column": 35 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 10359, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 37 - }, - "end": { - "line": 296, - "column": 45 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10372, - "end": 10389, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 297, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10378, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10378, - "end": 10379, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "MemberExpression", - "start": 10382, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10382, - "end": 10385, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10386, - "end": 10387, - "loc": { - "start": { - "line": 297, - "column": 16 - }, - "end": { - "line": 297, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10393, - "end": 10410, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 298, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10399, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10399, - "end": 10400, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "MemberExpression", - "start": 10403, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10403, - "end": 10406, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10407, - "end": 10408, - "loc": { - "start": { - "line": 298, - "column": 16 - }, - "end": { - "line": 298, - "column": 17 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10414, - "end": 10431, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 299, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10420, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10420, - "end": 10421, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "MemberExpression", - "start": 10424, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10424, - "end": 10427, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10428, - "end": 10429, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 17 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10435, - "end": 10446, - "loc": { - "start": { - "line": 300, - "column": 2 - }, - "end": { - "line": 300, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10439, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10439, - "end": 10441, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 8 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "init": { - "type": "NumericLiteral", - "start": 10444, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 11 - }, - "end": { - "line": 300, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10450, - "end": 10461, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10454, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10454, - "end": 10456, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 8 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "init": { - "type": "NumericLiteral", - "start": 10459, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 11 - }, - "end": { - "line": 301, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10465, - "end": 10476, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10469, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10469, - "end": 10471, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 8 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "init": { - "type": "NumericLiteral", - "start": 10474, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 11 - }, - "end": { - "line": 302, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10480, - "end": 10541, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 63 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10486, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "id": { - "type": "Identifier", - "start": 10486, - "end": 10491, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 13 - }, - "identifierName": "black" - }, - "name": "black" - }, - "init": { - "type": "ConditionalExpression", - "start": 10494, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 16 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10495, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "left": { - "type": "LogicalExpression", - "start": 10495, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10495, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 10495, - "end": 10496, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 18 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10501, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10506, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 10506, - "end": 10507, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 29 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10512, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 34 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10517, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 10517, - "end": 10518, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10523, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 45 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 10494 - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 10528, - "end": 10532, - "loc": { - "start": { - "line": 303, - "column": 50 - }, - "end": { - "line": 303, - "column": 54 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 10535, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 57 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "value": false - } - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 10545, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 2 - }, - "end": { - "line": 304, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10549, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10549, - "end": 10550, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 7 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10554, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 11 - }, - "end": { - "line": 304, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10561, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10561, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10561, - "end": 10563, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 20 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "right": { - "type": "BinaryExpression", - "start": 10566, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10566, - "end": 10567, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 24 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10570, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10570, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10570, - "end": 10574, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10575, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 32 - }, - "end": { - "line": 304, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10581, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 38 - }, - "end": { - "line": 304, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10582, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10582, - "end": 10585, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10588, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 45 - }, - "end": { - "line": 304, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10581 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10600, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 57 - }, - "end": { - "line": 304, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 10609, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 2 - }, - "end": { - "line": 305, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10613, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10613, - "end": 10614, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 7 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10618, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 11 - }, - "end": { - "line": 305, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10625, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10625, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10625, - "end": 10627, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 20 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "right": { - "type": "BinaryExpression", - "start": 10630, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10630, - "end": 10631, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 24 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10634, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10634, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10634, - "end": 10638, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10639, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 32 - }, - "end": { - "line": 305, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10645, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 38 - }, - "end": { - "line": 305, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10646, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10646, - "end": 10649, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10652, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 45 - }, - "end": { - "line": 305, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10645 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10664, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 57 - }, - "end": { - "line": 305, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 10673, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 2 - }, - "end": { - "line": 306, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10677, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10677, - "end": 10678, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 7 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10682, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 11 - }, - "end": { - "line": 306, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10689, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10689, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10689, - "end": 10691, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 20 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "right": { - "type": "BinaryExpression", - "start": 10694, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10694, - "end": 10695, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 24 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10698, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10698, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10698, - "end": 10702, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10703, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 32 - }, - "end": { - "line": 306, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10709, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 38 - }, - "end": { - "line": 306, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10710, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10710, - "end": 10713, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10716, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 45 - }, - "end": { - "line": 306, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10709 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10728, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 57 - }, - "end": { - "line": 306, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 10737, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 307, - "column": 99 - } - }, - "argument": { - "type": "MemberExpression", - "start": 10744, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 99 - } - }, - "object": { - "type": "CallExpression", - "start": 10744, - "end": 10830, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10744, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 10744, - "end": 10748, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 10749, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 23 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 10759, - "end": 10781, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10759, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 10759, - "end": 10763, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 10764, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 29 - }, - "end": { - "line": 307, - "column": 34 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10770, - "end": 10772, - "loc": { - "start": { - "line": 307, - "column": 35 - }, - "end": { - "line": 307, - "column": 37 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - { - "type": "NumericLiteral", - "start": 10774, - "end": 10775, - "loc": { - "start": { - "line": 307, - "column": 39 - }, - "end": { - "line": 307, - "column": 40 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10777, - "end": 10780, - "loc": { - "start": { - "line": 307, - "column": 42 - }, - "end": { - "line": 307, - "column": 45 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 10783, - "end": 10805, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 70 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10783, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 10783, - "end": 10787, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 52 - } - } - }, - "property": { - "type": "Identifier", - "start": 10788, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 53 - }, - "end": { - "line": 307, - "column": 58 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10794, - "end": 10796, - "loc": { - "start": { - "line": 307, - "column": 59 - }, - "end": { - "line": 307, - "column": 61 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - { - "type": "NumericLiteral", - "start": 10798, - "end": 10799, - "loc": { - "start": { - "line": 307, - "column": 63 - }, - "end": { - "line": 307, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10801, - "end": 10804, - "loc": { - "start": { - "line": 307, - "column": 66 - }, - "end": { - "line": 307, - "column": 69 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 10807, - "end": 10829, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10807, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 82 - } - }, - "object": { - "type": "ThisExpression", - "start": 10807, - "end": 10811, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 76 - } - } - }, - "property": { - "type": "Identifier", - "start": 10812, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 77 - }, - "end": { - "line": 307, - "column": 82 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10818, - "end": 10820, - "loc": { - "start": { - "line": 307, - "column": 83 - }, - "end": { - "line": 307, - "column": 85 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - { - "type": "NumericLiteral", - "start": 10822, - "end": 10823, - "loc": { - "start": { - "line": 307, - "column": 87 - }, - "end": { - "line": 307, - "column": 88 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10825, - "end": 10828, - "loc": { - "start": { - "line": 307, - "column": 90 - }, - "end": { - "line": 307, - "column": 93 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10831, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 96 - }, - "end": { - "line": 307, - "column": 99 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11152, - "end": 11460, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 325, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11152, - "end": 11160, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 316, - "column": 9 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11161, - "end": 11163, - "loc": { - "start": { - "line": 316, - "column": 10 - }, - "end": { - "line": 316, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 11165, - "end": 11167, - "loc": { - "start": { - "line": 316, - "column": 14 - }, - "end": { - "line": 316, - "column": 16 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 11169, - "end": 11171, - "loc": { - "start": { - "line": 316, - "column": 18 - }, - "end": { - "line": 316, - "column": 20 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 11173, - "end": 11460, - "loc": { - "start": { - "line": 316, - "column": 22 - }, - "end": { - "line": 325, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 11178, - "end": 11211, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 317, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11184, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11184, - "end": 11185, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 11188, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11188, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11188, - "end": 11192, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11193, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 17 - }, - "end": { - "line": 317, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11199, - "end": 11201, - "loc": { - "start": { - "line": 317, - "column": 23 - }, - "end": { - "line": 317, - "column": 25 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "NumericLiteral", - "start": 11203, - "end": 11204, - "loc": { - "start": { - "line": 317, - "column": 27 - }, - "end": { - "line": 317, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11206, - "end": 11209, - "loc": { - "start": { - "line": 317, - "column": 30 - }, - "end": { - "line": 317, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11215, - "end": 11248, - "loc": { - "start": { - "line": 318, - "column": 2 - }, - "end": { - "line": 318, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11221, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11221, - "end": 11222, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 11225, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11225, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11225, - "end": 11229, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11230, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 17 - }, - "end": { - "line": 318, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11236, - "end": 11238, - "loc": { - "start": { - "line": 318, - "column": 23 - }, - "end": { - "line": 318, - "column": 25 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "NumericLiteral", - "start": 11240, - "end": 11241, - "loc": { - "start": { - "line": 318, - "column": 27 - }, - "end": { - "line": 318, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11243, - "end": 11246, - "loc": { - "start": { - "line": 318, - "column": 30 - }, - "end": { - "line": 318, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11252, - "end": 11285, - "loc": { - "start": { - "line": 319, - "column": 2 - }, - "end": { - "line": 319, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11258, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11258, - "end": 11259, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 11262, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11262, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11262, - "end": 11266, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11267, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 17 - }, - "end": { - "line": 319, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11273, - "end": 11275, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 25 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - { - "type": "NumericLiteral", - "start": 11277, - "end": 11278, - "loc": { - "start": { - "line": 319, - "column": 27 - }, - "end": { - "line": 319, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11280, - "end": 11283, - "loc": { - "start": { - "line": 319, - "column": 30 - }, - "end": { - "line": 319, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11289, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11295, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 11295, - "end": 11306, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 19 - }, - "identifierName": "craftString" - }, - "name": "craftString" - }, - "init": { - "type": "FunctionExpression", - "start": 11309, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 22 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11318, - "end": 11324, - "loc": { - "start": { - "line": 320, - "column": 31 - }, - "end": { - "line": 320, - "column": 37 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ], - "body": { - "type": "BlockStatement", - "start": 11326, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 39 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 11332, - "end": 11376, - "loc": { - "start": { - "line": 321, - "column": 3 - }, - "end": { - "line": 321, - "column": 47 - } - }, - "argument": { - "type": "CallExpression", - "start": 11339, - "end": 11375, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11339, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 38 - } - }, - "object": { - "type": "CallExpression", - "start": 11339, - "end": 11358, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11339, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 11339, - "end": 11345, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 16 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - "property": { - "type": "Identifier", - "start": 11346, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 17 - }, - "end": { - "line": 321, - "column": 25 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 11355, - "end": 11357, - "loc": { - "start": { - "line": 321, - "column": 26 - }, - "end": { - "line": 321, - "column": 28 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 11359, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 30 - }, - "end": { - "line": 321, - "column": 38 - }, - "identifierName": "padStart" - }, - "name": "padStart" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 11368, - "end": 11369, - "loc": { - "start": { - "line": 321, - "column": 39 - }, - "end": { - "line": 321, - "column": 40 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - { - "type": "StringLiteral", - "start": 11371, - "end": 11374, - "loc": { - "start": { - "line": 321, - "column": 42 - }, - "end": { - "line": 321, - "column": 45 - } - }, - "extra": { - "rawValue": "0", - "raw": "'0'" - }, - "value": "0" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11385, - "end": 11439, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 323, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11391, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 11391, - "end": 11394, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 11 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": { - "type": "BinaryExpression", - "start": 11397, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "left": { - "type": "StringLiteral", - "start": 11397, - "end": 11400, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 11403, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11403, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 51 - } - }, - "object": { - "type": "CallExpression", - "start": 11403, - "end": 11429, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11403, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 33 - } - }, - "object": { - "type": "ArrayExpression", - "start": 11403, - "end": 11412, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 29 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 11404, - "end": 11405, - "loc": { - "start": { - "line": 323, - "column": 21 - }, - "end": { - "line": 323, - "column": 22 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 11407, - "end": 11408, - "loc": { - "start": { - "line": 323, - "column": 24 - }, - "end": { - "line": 323, - "column": 25 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 11410, - "end": 11411, - "loc": { - "start": { - "line": 323, - "column": 27 - }, - "end": { - "line": 323, - "column": 28 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - }, - "property": { - "type": "Identifier", - "start": 11413, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 30 - }, - "end": { - "line": 323, - "column": 33 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11417, - "end": 11428, - "loc": { - "start": { - "line": 323, - "column": 34 - }, - "end": { - "line": 323, - "column": 45 - }, - "identifierName": "craftString" - }, - "name": "craftString" - } - ] - }, - "property": { - "type": "Identifier", - "start": 11430, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 47 - }, - "end": { - "line": 323, - "column": 51 - }, - "identifierName": "join" - }, - "name": "join" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11435, - "end": 11437, - "loc": { - "start": { - "line": 323, - "column": 52 - }, - "end": { - "line": 323, - "column": 54 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 11443, - "end": 11454, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 324, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 11450, - "end": 11453, - "loc": { - "start": { - "line": 324, - "column": 9 - }, - "end": { - "line": 324, - "column": 12 - }, - "identifierName": "hex" - }, - "name": "hex" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11740, - "end": 12117, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 342, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11740, - "end": 11748, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 332, - "column": 9 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11749, - "end": 11753, - "loc": { - "start": { - "line": 332, - "column": 10 - }, - "end": { - "line": 332, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 11755, - "end": 12117, - "loc": { - "start": { - "line": 332, - "column": 16 - }, - "end": { - "line": 342, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11760, - "end": 11789, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11760, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11760, - "end": 11764, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11767, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11767, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 11767, - "end": 11771, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11772, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 14 - }, - "end": { - "line": 333, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11780, - "end": 11783, - "loc": { - "start": { - "line": 333, - "column": 22 - }, - "end": { - "line": 333, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 11785, - "end": 11787, - "loc": { - "start": { - "line": 333, - "column": 27 - }, - "end": { - "line": 333, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "IfStatement", - "start": 11793, - "end": 11879, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 336, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 11797, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 11797, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 11797, - "end": 11801, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 10 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11802, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 11 - }, - "end": { - "line": 334, - "column": 17 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 11813, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 22 - }, - "end": { - "line": 334, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 11816, - "end": 11879, - "loc": { - "start": { - "line": 334, - "column": 25 - }, - "end": { - "line": 336, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11822, - "end": 11874, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 55 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11822, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11822, - "end": 11826, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 7 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11829, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11829, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 11829, - "end": 11833, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11834, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 15 - }, - "end": { - "line": 335, - "column": 22 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 11842, - "end": 11864, - "loc": { - "start": { - "line": 335, - "column": 23 - }, - "end": { - "line": 335, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 11846, - "end": 11852, - "loc": { - "start": { - "line": 335, - "column": 27 - }, - "end": { - "line": 335, - "column": 33 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11853, - "end": 11858, - "loc": { - "start": { - "line": 335, - "column": 34 - }, - "end": { - "line": 335, - "column": 39 - } - }, - "extra": { - "rawValue": "(.)", - "raw": "'(.)'" - }, - "value": "(.)" - }, - { - "type": "StringLiteral", - "start": 11860, - "end": 11863, - "loc": { - "start": { - "line": 335, - "column": 41 - }, - "end": { - "line": 335, - "column": 44 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - }, - { - "type": "StringLiteral", - "start": 11866, - "end": 11872, - "loc": { - "start": { - "line": 335, - "column": 47 - }, - "end": { - "line": 335, - "column": 53 - } - }, - "extra": { - "rawValue": "$1$1", - "raw": "'$1$1'" - }, - "value": "$1$1" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 11883, - "end": 11924, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11883, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11883, - "end": 11887, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11890, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11890, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 11890, - "end": 11894, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11895, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 14 - }, - "end": { - "line": 337, - "column": 19 - }, - "identifierName": "match" - }, - "name": "match" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 11901, - "end": 11922, - "loc": { - "start": { - "line": 337, - "column": 20 - }, - "end": { - "line": 337, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 11905, - "end": 11911, - "loc": { - "start": { - "line": 337, - "column": 24 - }, - "end": { - "line": 337, - "column": 30 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11912, - "end": 11916, - "loc": { - "start": { - "line": 337, - "column": 31 - }, - "end": { - "line": 337, - "column": 35 - } - }, - "extra": { - "rawValue": "..", - "raw": "'..'" - }, - "value": ".." - }, - { - "type": "StringLiteral", - "start": 11918, - "end": 11921, - "loc": { - "start": { - "line": 337, - "column": 37 - }, - "end": { - "line": 337, - "column": 40 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 11928, - "end": 11980, - "loc": { - "start": { - "line": 338, - "column": 2 - }, - "end": { - "line": 338, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11934, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 11934, - "end": 11935, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 11938, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11938, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11938, - "end": 11942, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11943, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 17 - }, - "end": { - "line": 338, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11949, - "end": 11970, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 11958, - "end": 11965, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 11958, - "end": 11962, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 11963, - "end": 11964, - "loc": { - "start": { - "line": 338, - "column": 37 - }, - "end": { - "line": 338, - "column": 38 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 11967, - "end": 11969, - "loc": { - "start": { - "line": 338, - "column": 41 - }, - "end": { - "line": 338, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 11972, - "end": 11973, - "loc": { - "start": { - "line": 338, - "column": 46 - }, - "end": { - "line": 338, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11975, - "end": 11978, - "loc": { - "start": { - "line": 338, - "column": 49 - }, - "end": { - "line": 338, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11984, - "end": 12036, - "loc": { - "start": { - "line": 339, - "column": 2 - }, - "end": { - "line": 339, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11990, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 11990, - "end": 11991, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 11994, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11994, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11994, - "end": 11998, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11999, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 17 - }, - "end": { - "line": 339, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12005, - "end": 12026, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 12005, - "end": 12013, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 12014, - "end": 12021, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12014, - "end": 12018, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 12019, - "end": 12020, - "loc": { - "start": { - "line": 339, - "column": 37 - }, - "end": { - "line": 339, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 12023, - "end": 12025, - "loc": { - "start": { - "line": 339, - "column": 41 - }, - "end": { - "line": 339, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 12028, - "end": 12029, - "loc": { - "start": { - "line": 339, - "column": 46 - }, - "end": { - "line": 339, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 12031, - "end": 12034, - "loc": { - "start": { - "line": 339, - "column": 49 - }, - "end": { - "line": 339, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 12040, - "end": 12092, - "loc": { - "start": { - "line": 340, - "column": 2 - }, - "end": { - "line": 340, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12046, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 12046, - "end": 12047, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 12050, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12050, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 12050, - "end": 12054, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 12055, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 17 - }, - "end": { - "line": 340, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12061, - "end": 12082, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 12061, - "end": 12069, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 12070, - "end": 12077, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12070, - "end": 12074, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 12075, - "end": 12076, - "loc": { - "start": { - "line": 340, - "column": 37 - }, - "end": { - "line": 340, - "column": 38 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 12079, - "end": 12081, - "loc": { - "start": { - "line": 340, - "column": 41 - }, - "end": { - "line": 340, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 12084, - "end": 12085, - "loc": { - "start": { - "line": 340, - "column": 46 - }, - "end": { - "line": 340, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 12087, - "end": 12090, - "loc": { - "start": { - "line": 340, - "column": 49 - }, - "end": { - "line": 340, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 12096, - "end": 12113, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 341, - "column": 19 - } - }, - "argument": { - "type": "ArrayExpression", - "start": 12103, - "end": 12112, - "loc": { - "start": { - "line": 341, - "column": 9 - }, - "end": { - "line": 341, - "column": 18 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 12104, - "end": 12105, - "loc": { - "start": { - "line": 341, - "column": 10 - }, - "end": { - "line": 341, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 12107, - "end": 12108, - "loc": { - "start": { - "line": 341, - "column": 13 - }, - "end": { - "line": 341, - "column": 14 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 12110, - "end": 12111, - "loc": { - "start": { - "line": 341, - "column": 16 - }, - "end": { - "line": 341, - "column": 17 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12419, - "end": 12486, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 352, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12419, - "end": 12431, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 350, - "column": 13 - }, - "identifierName": "rgbToDecimal" - }, - "name": "rgbToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12432, - "end": 12434, - "loc": { - "start": { - "line": 350, - "column": 14 - }, - "end": { - "line": 350, - "column": 16 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 12436, - "end": 12438, - "loc": { - "start": { - "line": 350, - "column": 18 - }, - "end": { - "line": 350, - "column": 20 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 12440, - "end": 12442, - "loc": { - "start": { - "line": 350, - "column": 22 - }, - "end": { - "line": 350, - "column": 24 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 12444, - "end": 12486, - "loc": { - "start": { - "line": 350, - "column": 26 - }, - "end": { - "line": 352, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 12449, - "end": 12482, - "loc": { - "start": { - "line": 351, - "column": 2 - }, - "end": { - "line": 351, - "column": 35 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 12457, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 33 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12457, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12457, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 12457, - "end": 12459, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 12463, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 18 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - }, - "operator": "|", - "right": { - "type": "BinaryExpression", - "start": 12468, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "left": { - "type": "Identifier", - "start": 12468, - "end": 12470, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 23 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 12474, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 27 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "extra": { - "rawValue": 8, - "raw": "8" - }, - "value": 8 - } - } - }, - "operator": "|", - "right": { - "type": "Identifier", - "start": 12478, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 31 - }, - "end": { - "line": 351, - "column": 33 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - "extra": { - "parenthesized": true, - "parenStart": 12456 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12743, - "end": 12830, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 362, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12743, - "end": 12755, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 359, - "column": 13 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12756, - "end": 12760, - "loc": { - "start": { - "line": 359, - "column": 14 - }, - "end": { - "line": 359, - "column": 18 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 12762, - "end": 12830, - "loc": { - "start": { - "line": 359, - "column": 20 - }, - "end": { - "line": 362, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 12767, - "end": 12796, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 12767, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 12767, - "end": 12771, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 12774, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12774, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 12774, - "end": 12778, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 12779, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 14 - }, - "end": { - "line": 360, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 12787, - "end": 12790, - "loc": { - "start": { - "line": 360, - "column": 22 - }, - "end": { - "line": 360, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 12792, - "end": 12794, - "loc": { - "start": { - "line": 360, - "column": 27 - }, - "end": { - "line": 360, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 12800, - "end": 12826, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 361, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 12807, - "end": 12825, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 12807, - "end": 12815, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 17 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12816, - "end": 12820, - "loc": { - "start": { - "line": 361, - "column": 18 - }, - "end": { - "line": 361, - "column": 22 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - { - "type": "NumericLiteral", - "start": 12822, - "end": 12824, - "loc": { - "start": { - "line": 361, - "column": 24 - }, - "end": { - "line": 361, - "column": 26 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 13344, - "end": 14196, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 396, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13344, - "end": 13353, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 373, - "column": 10 - }, - "identifierName": "grabColor" - }, - "name": "grabColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 13354, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 42 - } - }, - "left": { - "type": "Identifier", - "start": 13354, - "end": 13361, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 18 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 13364, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13364, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 13364, - "end": 13368, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "start": 13369, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 26 - }, - "end": { - "line": 373, - "column": 40 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "Identifier", - "start": 13387, - "end": 13389, - "loc": { - "start": { - "line": 373, - "column": 44 - }, - "end": { - "line": 373, - "column": 46 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 13391, - "end": 13393, - "loc": { - "start": { - "line": 373, - "column": 48 - }, - "end": { - "line": 373, - "column": 50 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 13395, - "end": 14196, - "loc": { - "start": { - "line": 373, - "column": 52 - }, - "end": { - "line": 396, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13400, - "end": 13413, - "loc": { - "start": { - "line": 374, - "column": 2 - }, - "end": { - "line": 374, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - } - }, - "id": { - "type": "Identifier", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": null - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 13442, - "end": 13784, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 386, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 13446, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "left": { - "type": "LogicalExpression", - "start": 13446, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13446, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13446, - "end": 13461, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13453, - "end": 13460, - "loc": { - "start": { - "line": 376, - "column": 13 - }, - "end": { - "line": 376, - "column": 20 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 13452 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13466, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 26 - }, - "end": { - "line": 376, - "column": 34 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 13478, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13478, - "end": 13488, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 48 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13485, - "end": 13487, - "loc": { - "start": { - "line": 376, - "column": 45 - }, - "end": { - "line": 376, - "column": 47 - }, - "identifierName": "pG" - }, - "name": "pG", - "extra": { - "parenthesized": true, - "parenStart": 13484 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13493, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 53 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 13505, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13505, - "end": 13515, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 75 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13512, - "end": 13514, - "loc": { - "start": { - "line": 376, - "column": 72 - }, - "end": { - "line": 376, - "column": 74 - }, - "identifierName": "pB" - }, - "name": "pB", - "extra": { - "parenthesized": true, - "parenStart": 13511 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13520, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 80 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 13530, - "end": 13578, - "loc": { - "start": { - "line": 376, - "column": 90 - }, - "end": { - "line": 378, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13536, - "end": 13573, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13536, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13536, - "end": 13539, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "CallExpression", - "start": 13542, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 13542, - "end": 13546, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 13547, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 14 - }, - "end": { - "line": 377, - "column": 22 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13556, - "end": 13563, - "loc": { - "start": { - "line": 377, - "column": 23 - }, - "end": { - "line": 377, - "column": 30 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - { - "type": "Identifier", - "start": 13565, - "end": 13567, - "loc": { - "start": { - "line": 377, - "column": 32 - }, - "end": { - "line": 377, - "column": 34 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 13569, - "end": 13571, - "loc": { - "start": { - "line": 377, - "column": 36 - }, - "end": { - "line": 377, - "column": 38 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 13584, - "end": 13784, - "loc": { - "start": { - "line": 378, - "column": 9 - }, - "end": { - "line": 386, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 13620, - "end": 13704, - "loc": { - "start": { - "line": 380, - "column": 3 - }, - "end": { - "line": 382, - "column": 4 - } - }, - "test": { - "type": "BinaryExpression", - "start": 13624, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 35 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13624, - "end": 13639, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 22 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13631, - "end": 13638, - "loc": { - "start": { - "line": 380, - "column": 14 - }, - "end": { - "line": 380, - "column": 21 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 13630 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13644, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 27 - }, - "end": { - "line": 380, - "column": 35 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 13654, - "end": 13704, - "loc": { - "start": { - "line": 380, - "column": 37 - }, - "end": { - "line": 382, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13661, - "end": 13698, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13661, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13661, - "end": 13668, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 11 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 13671, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13671, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 13671, - "end": 13675, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 13676, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 19 - }, - "end": { - "line": 381, - "column": 31 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13689, - "end": 13696, - "loc": { - "start": { - "line": 381, - "column": 32 - }, - "end": { - "line": 381, - "column": 39 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 13590, - "end": 13615, - "loc": { - "start": { - "line": 379, - "column": 3 - }, - "end": { - "line": 379, - "column": 28 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 13709, - "end": 13723, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13709, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13709, - "end": 13712, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "Identifier", - "start": 13715, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 9 - }, - "end": { - "line": 383, - "column": 16 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 13754, - "end": 13779, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13754, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13754, - "end": 13757, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 6 - }, - "identifierName": "rgb" - }, - "name": "rgb", - "leadingComments": null - }, - "right": { - "type": "CallExpression", - "start": 13760, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13760, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 13760, - "end": 13764, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 13765, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 22 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13774, - "end": 13777, - "loc": { - "start": { - "line": 385, - "column": 23 - }, - "end": { - "line": 385, - "column": 26 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - } - ] - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 13788, - "end": 14192, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 395, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 13795, - "end": 14191, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 395, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13802, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13802, - "end": 13807, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 8 - } - }, - "extra": { - "rawValue": "hex", - "raw": "'hex'" - }, - "value": "hex" - }, - "value": { - "type": "CallExpression", - "start": 13809, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13809, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 13809, - "end": 13812, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 13 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 13813, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 14 - }, - "end": { - "line": 388, - "column": 25 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 13833, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13833, - "end": 13845, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 15 - } - }, - "extra": { - "rawValue": "hexTagless", - "raw": "'hexTagless'" - }, - "value": "hexTagless" - }, - "value": { - "type": "CallExpression", - "start": 13847, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13847, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 49 - } - }, - "object": { - "type": "CallExpression", - "start": 13847, - "end": 13867, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13847, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 13847, - "end": 13850, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 20 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 13851, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 21 - }, - "end": { - "line": 389, - "column": 28 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 13859, - "end": 13862, - "loc": { - "start": { - "line": 389, - "column": 29 - }, - "end": { - "line": 389, - "column": 32 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 13864, - "end": 13866, - "loc": { - "start": { - "line": 389, - "column": 34 - }, - "end": { - "line": 389, - "column": 36 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - }, - "property": { - "type": "Identifier", - "start": 13868, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 38 - }, - "end": { - "line": 389, - "column": 49 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 13888, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13888, - "end": 13893, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 8 - } - }, - "extra": { - "rawValue": "rgb", - "raw": "'rgb'" - }, - "value": "rgb" - }, - "value": { - "type": "BinaryExpression", - "start": 13895, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 45 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 34 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 23 - } - }, - "left": { - "type": "StringLiteral", - "start": 13895, - "end": 13901, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 16 - } - }, - "extra": { - "rawValue": "rgb(", - "raw": "'rgb('" - }, - "value": "rgb(" - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13902, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 13902, - "end": 13905, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 20 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13906, - "end": 13907, - "loc": { - "start": { - "line": 390, - "column": 21 - }, - "end": { - "line": 390, - "column": 22 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13909, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 24 - }, - "end": { - "line": 390, - "column": 27 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13913, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 13913, - "end": 13916, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13917, - "end": 13918, - "loc": { - "start": { - "line": 390, - "column": 32 - }, - "end": { - "line": 390, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13920, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 35 - }, - "end": { - "line": 390, - "column": 38 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13924, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 13924, - "end": 13927, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 42 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13928, - "end": 13929, - "loc": { - "start": { - "line": 390, - "column": 43 - }, - "end": { - "line": 390, - "column": 44 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13931, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 46 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "extra": { - "rawValue": ")", - "raw": "')'" - }, - "value": ")" - } - } - }, - { - "type": "ObjectProperty", - "start": 13941, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13941, - "end": 13951, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 13 - } - }, - "extra": { - "rawValue": "rgbArray", - "raw": "'rgbArray'" - }, - "value": "rgbArray" - }, - "value": { - "type": "Identifier", - "start": 13953, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 391, - "column": 18 - }, - "identifierName": "rgb" - }, - "name": "rgb" - } - }, - { - "type": "ObjectProperty", - "start": 13963, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13963, - "end": 13974, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbObject", - "raw": "'rgbObject'" - }, - "value": "rgbObject" - }, - "value": { - "type": "ObjectExpression", - "start": 13976, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 16 - }, - "end": { - "line": 392, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13978, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13978, - "end": 13981, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 21 - } - }, - "extra": { - "rawValue": "r", - "raw": "'r'" - }, - "value": "r" - }, - "value": { - "type": "MemberExpression", - "start": 13983, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 13983, - "end": 13986, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 26 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13987, - "end": 13988, - "loc": { - "start": { - "line": 392, - "column": 27 - }, - "end": { - "line": 392, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 13991, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13991, - "end": 13994, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 34 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - }, - "value": { - "type": "MemberExpression", - "start": 13996, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 13996, - "end": 13999, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 39 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14000, - "end": 14001, - "loc": { - "start": { - "line": 392, - "column": 40 - }, - "end": { - "line": 392, - "column": 41 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 14004, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14004, - "end": 14007, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 47 - } - }, - "extra": { - "rawValue": "b", - "raw": "'b'" - }, - "value": "b" - }, - "value": { - "type": "MemberExpression", - "start": 14009, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 14009, - "end": 14012, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 52 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14013, - "end": 14014, - "loc": { - "start": { - "line": 392, - "column": 53 - }, - "end": { - "line": 392, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14024, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 124 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14024, - "end": 14035, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbNormal", - "raw": "'rgbNormal'" - }, - "value": "rgbNormal" - }, - "value": { - "type": "ArrayExpression", - "start": 14037, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 16 - }, - "end": { - "line": 393, - "column": 124 - } - }, - "elements": [ - { - "type": "BinaryExpression", - "start": 14038, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 51 - } - }, - "left": { - "type": "CallExpression", - "start": 14038, - "end": 14066, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14038, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 14038, - "end": 14042, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 21 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14043, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 22 - }, - "end": { - "line": 393, - "column": 27 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14049, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 44 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14049, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 14049, - "end": 14055, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 14049, - "end": 14052, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14053, - "end": 14054, - "loc": { - "start": { - "line": 393, - "column": 32 - }, - "end": { - "line": 393, - "column": 33 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14056, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 35 - }, - "end": { - "line": 393, - "column": 38 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14062, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 41 - }, - "end": { - "line": 393, - "column": 44 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14069, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 48 - }, - "end": { - "line": 393, - "column": 51 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 14074, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 87 - } - }, - "left": { - "type": "CallExpression", - "start": 14074, - "end": 14102, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 81 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14074, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 14074, - "end": 14078, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14079, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 58 - }, - "end": { - "line": 393, - "column": 63 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14085, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 80 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14085, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 74 - } - }, - "left": { - "type": "MemberExpression", - "start": 14085, - "end": 14091, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 14085, - "end": 14088, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 67 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14089, - "end": 14090, - "loc": { - "start": { - "line": 393, - "column": 68 - }, - "end": { - "line": 393, - "column": 69 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14092, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 71 - }, - "end": { - "line": 393, - "column": 74 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14098, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 77 - }, - "end": { - "line": 393, - "column": 80 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14105, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 84 - }, - "end": { - "line": 393, - "column": 87 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 14110, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 123 - } - }, - "left": { - "type": "CallExpression", - "start": 14110, - "end": 14138, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 117 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14110, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 14110, - "end": 14114, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 93 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14115, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 94 - }, - "end": { - "line": 393, - "column": 99 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14121, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 116 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14121, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 110 - } - }, - "left": { - "type": "MemberExpression", - "start": 14121, - "end": 14127, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 14121, - "end": 14124, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 103 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14125, - "end": 14126, - "loc": { - "start": { - "line": 393, - "column": 104 - }, - "end": { - "line": 393, - "column": 105 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14128, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 107 - }, - "end": { - "line": 393, - "column": 110 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14134, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 113 - }, - "end": { - "line": 393, - "column": 116 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14141, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 120 - }, - "end": { - "line": 393, - "column": 123 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14152, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14152, - "end": 14161, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 12 - } - }, - "extra": { - "rawValue": "decimal", - "raw": "'decimal'" - }, - "value": "decimal" - }, - "value": { - "type": "CallExpression", - "start": 14163, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14163, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 14163, - "end": 14167, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 14168, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 19 - }, - "end": { - "line": 394, - "column": 31 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 14181, - "end": 14184, - "loc": { - "start": { - "line": 394, - "column": 32 - }, - "end": { - "line": 394, - "column": 35 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14298, - "end": 14484, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 409, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14298, - "end": 14312, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 402, - "column": 15 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 14315, - "end": 14484, - "loc": { - "start": { - "line": 402, - "column": 18 - }, - "end": { - "line": 409, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 14320, - "end": 14353, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 403, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14326, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 14326, - "end": 14331, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 14334, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 16 - }, - "end": { - "line": 403, - "column": 34 - } - }, - "extra": { - "rawValue": "0123456789ABCDEF", - "raw": "'0123456789ABCDEF'" - }, - "value": "0123456789ABCDEF" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 14357, - "end": 14373, - "loc": { - "start": { - "line": 404, - "column": 2 - }, - "end": { - "line": 404, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14361, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 14361, - "end": 14366, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 11 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "StringLiteral", - "start": 14369, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 14 - }, - "end": { - "line": 404, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 14377, - "end": 14463, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 407, - "column": 3 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 14382, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 7 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14386, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 14386, - "end": 14387, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 12 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 14390, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 15 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 14393, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 14393, - "end": 14394, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 19 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "NumericLiteral", - "start": 14397, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 22 - }, - "end": { - "line": 405, - "column": 23 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - }, - "update": { - "type": "UpdateExpression", - "start": 14400, - "end": 14403, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 28 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 14400, - "end": 14401, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 26 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 14405, - "end": 14463, - "loc": { - "start": { - "line": 405, - "column": 30 - }, - "end": { - "line": 407, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 14411, - "end": 14458, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 50 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 14411, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 49 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 14411, - "end": 14416, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 8 - }, - "identifierName": "color" - }, - "name": "color" - }, - "right": { - "type": "MemberExpression", - "start": 14420, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 14420, - "end": 14425, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 17 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "CallExpression", - "start": 14426, - "end": 14456, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14426, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 14426, - "end": 14430, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 22 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14431, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 23 - }, - "end": { - "line": 406, - "column": 28 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14437, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 47 - } - }, - "left": { - "type": "CallExpression", - "start": 14437, - "end": 14450, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14437, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 14437, - "end": 14441, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 33 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14442, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 34 - }, - "end": { - "line": 406, - "column": 40 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14453, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 45 - }, - "end": { - "line": 406, - "column": 47 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - } - ] - }, - "computed": true - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 14467, - "end": 14480, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 408, - "column": 15 - } - }, - "argument": { - "type": "Identifier", - "start": 14474, - "end": 14479, - "loc": { - "start": { - "line": 408, - "column": 9 - }, - "end": { - "line": 408, - "column": 14 - }, - "identifierName": "color" - }, - "name": "color" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14946, - "end": 15147, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 423, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14946, - "end": 14967, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 420, - "column": 22 - }, - "identifierName": "getRandomColorBetween" - }, - "name": "getRandomColorBetween", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 14968, - "end": 14975, - "loc": { - "start": { - "line": 420, - "column": 23 - }, - "end": { - "line": 420, - "column": 30 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - }, - { - "type": "Identifier", - "start": 14977, - "end": 14984, - "loc": { - "start": { - "line": 420, - "column": 32 - }, - "end": { - "line": 420, - "column": 39 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - }, - { - "type": "AssignmentPattern", - "start": 14986, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 14986, - "end": 14993, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 48 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "right": { - "type": "NumericLiteral", - "start": 14996, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 51 - }, - "end": { - "line": 420, - "column": 54 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 15001, - "end": 15147, - "loc": { - "start": { - "line": 420, - "column": 56 - }, - "end": { - "line": 423, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 15044, - "end": 15143, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 101 - } - }, - "argument": { - "type": "CallExpression", - "start": 15051, - "end": 15142, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15051, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 25 - } - }, - "object": { - "type": "ThisExpression", - "start": 15051, - "end": 15055, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 13 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 15056, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 14 - }, - "end": { - "line": 422, - "column": 25 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 15068, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 57 - } - }, - "object": { - "type": "CallExpression", - "start": 15068, - "end": 15091, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15068, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 15068, - "end": 15072, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 30 - } - } - }, - "property": { - "type": "Identifier", - "start": 15073, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 31 - }, - "end": { - "line": 422, - "column": 40 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15083, - "end": 15090, - "loc": { - "start": { - "line": 422, - "column": 41 - }, - "end": { - "line": 422, - "column": 48 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - } - ] - }, - "property": { - "type": "Identifier", - "start": 15092, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 50 - }, - "end": { - "line": 422, - "column": 57 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "MemberExpression", - "start": 15101, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 90 - } - }, - "object": { - "type": "CallExpression", - "start": 15101, - "end": 15124, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15101, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 73 - } - }, - "object": { - "type": "ThisExpression", - "start": 15101, - "end": 15105, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 63 - } - } - }, - "property": { - "type": "Identifier", - "start": 15106, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 64 - }, - "end": { - "line": 422, - "column": 73 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15116, - "end": 15123, - "loc": { - "start": { - "line": 422, - "column": 74 - }, - "end": { - "line": 422, - "column": 81 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - } - ] - }, - "property": { - "type": "Identifier", - "start": 15125, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 83 - }, - "end": { - "line": 422, - "column": 90 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "Identifier", - "start": 15134, - "end": 15141, - "loc": { - "start": { - "line": 422, - "column": 92 - }, - "end": { - "line": 422, - "column": 99 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 15006, - "end": 15040, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 36 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 15941, - "end": 18972, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 516, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 15941, - "end": 15956, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 438, - "column": 16 - }, - "identifierName": "transitionColor" - }, - "name": "transitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 15957, - "end": 15966, - "loc": { - "start": { - "line": 438, - "column": 17 - }, - "end": { - "line": 438, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "AssignmentPattern", - "start": 15968, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 15968, - "end": 15979, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 39 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - }, - "right": { - "type": "StringLiteral", - "start": 15980, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 40 - }, - "end": { - "line": 438, - "column": 46 - } - }, - "extra": { - "rawValue": "#000", - "raw": "'#000'" - }, - "value": "#000" - } - }, - { - "type": "AssignmentPattern", - "start": 15988, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 64 - } - }, - "left": { - "type": "Identifier", - "start": 15988, - "end": 15997, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 57 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - }, - "right": { - "type": "StringLiteral", - "start": 15998, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 58 - }, - "end": { - "line": 438, - "column": 64 - } - }, - "extra": { - "rawValue": "#fff", - "raw": "'#fff'" - }, - "value": "#fff" - } - }, - { - "type": "AssignmentPattern", - "start": 16006, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 80 - } - }, - "left": { - "type": "Identifier", - "start": 16006, - "end": 16015, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 75 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - }, - "right": { - "type": "NumericLiteral", - "start": 16016, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 76 - }, - "end": { - "line": 438, - "column": 80 - } - }, - "extra": { - "rawValue": 1000, - "raw": "1000" - }, - "value": 1000 - } - }, - { - "type": "Identifier", - "start": 16022, - "end": 16040, - "loc": { - "start": { - "line": 438, - "column": 82 - }, - "end": { - "line": 438, - "column": 100 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - { - "type": "Identifier", - "start": 16042, - "end": 16054, - "loc": { - "start": { - "line": 438, - "column": 102 - }, - "end": { - "line": 438, - "column": 114 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 16056, - "end": 18972, - "loc": { - "start": { - "line": 438, - "column": 116 - }, - "end": { - "line": 516, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 16101, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 2 - }, - "end": { - "line": 440, - "column": 33 - } - }, - "test": { - "type": "UnaryExpression", - "start": 16105, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 6 - }, - "end": { - "line": 440, - "column": 24 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 16106, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 16106, - "end": 16116, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 17 - }, - "identifierName": "globalThis" - }, - "name": "globalThis", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 16117, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 18 - }, - "end": { - "line": 440, - "column": 24 - }, - "identifierName": "window" - }, - "name": "window" - }, - "computed": false, - "leadingComments": null - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "consequent": { - "type": "ReturnStatement", - "start": 16125, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 26 - }, - "end": { - "line": 440, - "column": 33 - } - }, - "argument": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 16061, - "end": 16097, - "loc": { - "start": { - "line": 439, - "column": 2 - }, - "end": { - "line": 439, - "column": 38 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 16136, - "end": 16232, - "loc": { - "start": { - "line": 441, - "column": 2 - }, - "end": { - "line": 441, - "column": 98 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16142, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 97 - } - }, - "id": { - "type": "Identifier", - "start": 16142, - "end": 16159, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 16162, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 97 - } - }, - "test": { - "type": "BinaryExpression", - "start": 16162, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 69 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16162, - "end": 16188, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 54 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 16169, - "end": 16187, - "loc": { - "start": { - "line": 441, - "column": 35 - }, - "end": { - "line": 441, - "column": 53 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback", - "extra": { - "parenthesized": true, - "parenStart": 16168 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16193, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 59 - }, - "end": { - "line": 441, - "column": 69 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 16206, - "end": 16224, - "loc": { - "start": { - "line": 441, - "column": 72 - }, - "end": { - "line": 441, - "column": 90 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 16227, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 93 - }, - "end": { - "line": 441, - "column": 97 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16236, - "end": 16314, - "loc": { - "start": { - "line": 442, - "column": 2 - }, - "end": { - "line": 442, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16242, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 16242, - "end": 16253, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 19 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 16256, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 79 - } - }, - "test": { - "type": "BinaryExpression", - "start": 16256, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16256, - "end": 16276, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 16263, - "end": 16275, - "loc": { - "start": { - "line": 442, - "column": 29 - }, - "end": { - "line": 442, - "column": 41 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback", - "extra": { - "parenthesized": true, - "parenStart": 16262 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16281, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 47 - }, - "end": { - "line": 442, - "column": 57 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 16294, - "end": 16306, - "loc": { - "start": { - "line": 442, - "column": 60 - }, - "end": { - "line": 442, - "column": 72 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 16309, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 75 - }, - "end": { - "line": 442, - "column": 79 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16318, - "end": 16325, - "loc": { - "start": { - "line": 443, - "column": 2 - }, - "end": { - "line": 443, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 16329, - "end": 16344, - "loc": { - "start": { - "line": 444, - "column": 2 - }, - "end": { - "line": 444, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 16348, - "end": 16365, - "loc": { - "start": { - "line": 445, - "column": 2 - }, - "end": { - "line": 445, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 16371, - "end": 16727, - "loc": { - "start": { - "line": 447, - "column": 2 - }, - "end": { - "line": 454, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 16375, - "end": 16384, - "loc": { - "start": { - "line": 447, - "column": 6 - }, - "end": { - "line": 447, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 16386, - "end": 16687, - "loc": { - "start": { - "line": 447, - "column": 17 - }, - "end": { - "line": 452, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16392, - "end": 16445, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16392, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16392, - "end": 16394, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "ConditionalExpression", - "start": 16397, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "test": { - "type": "MemberExpression", - "start": 16397, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 16397, - "end": 16406, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16407, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 18 - }, - "end": { - "line": 448, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "consequent": { - "type": "MemberExpression", - "start": 16412, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 16412, - "end": 16421, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 32 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16422, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 33 - }, - "end": { - "line": 448, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "alternate": { - "type": "CallExpression", - "start": 16427, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16427, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 16427, - "end": 16431, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 16432, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 43 - }, - "end": { - "line": 448, - "column": 53 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 16450, - "end": 16504, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16450, - "end": 16503, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16450, - "end": 16460, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 13 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "right": { - "type": "BinaryExpression", - "start": 16464, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 16464, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 16464, - "end": 16473, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16474, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 27 - }, - "end": { - "line": 449, - "column": 31 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16483, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 36 - }, - "end": { - "line": 449, - "column": 55 - } - }, - "extra": { - "rawValue": "GeneratedParticle", - "raw": "'GeneratedParticle'" - }, - "value": "GeneratedParticle" - }, - "extra": { - "parenthesized": true, - "parenStart": 16463 - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 16509, - "end": 16620, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 114 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16509, - "end": 16619, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 113 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16509, - "end": 16521, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 15 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "right": { - "type": "ConditionalExpression", - "start": 16525, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 16525, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "left": { - "type": "BinaryExpression", - "start": 16525, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 55 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16525, - "end": 16548, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 16532, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 16532, - "end": 16541, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 35 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16542, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 36 - }, - "end": { - "line": 450, - "column": 41 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 16531 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16553, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 55 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 16565, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "left": { - "type": "MemberExpression", - "start": 16565, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 86 - } - }, - "object": { - "type": "MemberExpression", - "start": 16565, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 16565, - "end": 16574, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 68 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16575, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 69 - }, - "end": { - "line": 450, - "column": 74 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16581, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 75 - }, - "end": { - "line": 450, - "column": 86 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 16597, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 91 - }, - "end": { - "line": 450, - "column": 97 - }, - "identifierName": "Object" - }, - "name": "Object" - } - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 16606, - "end": 16610, - "loc": { - "start": { - "line": 450, - "column": 100 - }, - "end": { - "line": 450, - "column": 104 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 16613, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 107 - }, - "end": { - "line": 450, - "column": 112 - } - }, - "value": false - }, - "extra": { - "parenthesized": true, - "parenStart": 16524 - } - } - } - }, - { - "type": "IfStatement", - "start": 16625, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 3 - }, - "end": { - "line": 451, - "column": 60 - } - }, - "test": { - "type": "MemberExpression", - "start": 16629, - "end": 16649, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 16629, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 16629, - "end": 16633, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 11 - } - } - }, - "property": { - "type": "Identifier", - "start": 16634, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 451, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16646, - "end": 16648, - "loc": { - "start": { - "line": 451, - "column": 24 - }, - "end": { - "line": 451, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 16651, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 16651, - "end": 16681, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16651, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 55 - } - }, - "object": { - "type": "ThisExpression", - "start": 16651, - "end": 16655, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 33 - } - } - }, - "property": { - "type": "Identifier", - "start": 16656, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 34 - }, - "end": { - "line": 451, - "column": 55 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16678, - "end": 16680, - "loc": { - "start": { - "line": 451, - "column": 56 - }, - "end": { - "line": 451, - "column": 58 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 16693, - "end": 16727, - "loc": { - "start": { - "line": 452, - "column": 9 - }, - "end": { - "line": 454, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16699, - "end": 16722, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 26 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16699, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 25 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16699, - "end": 16701, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "CallExpression", - "start": 16704, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16704, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 16704, - "end": 16708, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 16709, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 13 - }, - "end": { - "line": 453, - "column": 23 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 16736, - "end": 16853, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 459, - "column": 4 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16736, - "end": 16852, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 459, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 16736, - "end": 16756, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 16736, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 16736, - "end": 16740, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 16741, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 7 - }, - "end": { - "line": 456, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16753, - "end": 16755, - "loc": { - "start": { - "line": 456, - "column": 19 - }, - "end": { - "line": 456, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "right": { - "type": "ObjectExpression", - "start": 16759, - "end": 16852, - "loc": { - "start": { - "line": 456, - "column": 25 - }, - "end": { - "line": 459, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16765, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 16765, - "end": 16775, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 13 - } - }, - "extra": { - "rawValue": "duration", - "raw": "'duration'" - }, - "value": "duration" - }, - "value": { - "type": "Identifier", - "start": 16777, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 15 - }, - "end": { - "line": 457, - "column": 24 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - }, - { - "type": "ObjectProperty", - "start": 16792, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 16792, - "end": 16805, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 16 - } - }, - "extra": { - "rawValue": "timeTracker", - "raw": "'timeTracker'" - }, - "value": "timeTracker" - }, - "value": { - "type": "ConditionalExpression", - "start": 16807, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "test": { - "type": "Identifier", - "start": 16807, - "end": 16817, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 28 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "MemberExpression", - "start": 16820, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 54 - } - }, - "object": { - "type": "MemberExpression", - "start": 16820, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 16820, - "end": 16829, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 40 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16830, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 41 - }, - "end": { - "line": 458, - "column": 45 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16835, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 46 - }, - "end": { - "line": 458, - "column": 54 - }, - "identifierName": "lifetime" - }, - "name": "lifetime" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 16846, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 57 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 16859, - "end": 16918, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 461, - "column": 61 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16865, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 60 - } - }, - "id": { - "type": "Identifier", - "start": 16865, - "end": 16878, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 21 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "init": { - "type": "MemberExpression", - "start": 16881, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 60 - } - }, - "object": { - "type": "CallExpression", - "start": 16881, - "end": 16908, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16881, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 38 - } - }, - "object": { - "type": "ThisExpression", - "start": 16881, - "end": 16885, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 16886, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 29 - }, - "end": { - "line": 461, - "column": 38 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16896, - "end": 16907, - "loc": { - "start": { - "line": 461, - "column": 39 - }, - "end": { - "line": 461, - "column": 50 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16909, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 52 - }, - "end": { - "line": 461, - "column": 60 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16922, - "end": 16977, - "loc": { - "start": { - "line": 462, - "column": 2 - }, - "end": { - "line": 462, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16928, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 16928, - "end": 16939, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 19 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "init": { - "type": "MemberExpression", - "start": 16942, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 56 - } - }, - "object": { - "type": "CallExpression", - "start": 16942, - "end": 16967, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16942, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 36 - } - }, - "object": { - "type": "ThisExpression", - "start": 16942, - "end": 16946, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "start": 16947, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 27 - }, - "end": { - "line": 462, - "column": 36 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16957, - "end": 16966, - "loc": { - "start": { - "line": 462, - "column": 37 - }, - "end": { - "line": 462, - "column": 46 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16968, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 48 - }, - "end": { - "line": 462, - "column": 56 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16983, - "end": 17001, - "loc": { - "start": { - "line": 464, - "column": 2 - }, - "end": { - "line": 464, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16989, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 16989, - "end": 16993, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 12 - }, - "identifierName": "self" - }, - "name": "self" - }, - "init": { - "type": "ThisExpression", - "start": 16996, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 15 - }, - "end": { - "line": 464, - "column": 19 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 17005, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17005, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 17005, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 17005, - "end": 17025, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 17005, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 17005, - "end": 17009, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 17010, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 7 - }, - "end": { - "line": 465, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17022, - "end": 17024, - "loc": { - "start": { - "line": 465, - "column": 19 - }, - "end": { - "line": 465, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17026, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 23 - }, - "end": { - "line": 465, - "column": 27 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - }, - "right": { - "type": "ArrowFunctionExpression", - "start": 17033, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 30 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 17034, - "end": 17044, - "loc": { - "start": { - "line": 465, - "column": 31 - }, - "end": { - "line": 465, - "column": 41 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - ], - "body": { - "type": "BlockStatement", - "start": 17049, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 46 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17055, - "end": 18856, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 511, - "column": 4 - } - }, - "test": { - "type": "MemberExpression", - "start": 17059, - "end": 17079, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 17059, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 17059, - "end": 17063, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 11 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17064, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 12 - }, - "end": { - "line": 466, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17076, - "end": 17078, - "loc": { - "start": { - "line": 466, - "column": 24 - }, - "end": { - "line": 466, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 17081, - "end": 18856, - "loc": { - "start": { - "line": 466, - "column": 29 - }, - "end": { - "line": 511, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17088, - "end": 17370, - "loc": { - "start": { - "line": 467, - "column": 4 - }, - "end": { - "line": 478, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 17092, - "end": 17102, - "loc": { - "start": { - "line": 467, - "column": 8 - }, - "end": { - "line": 467, - "column": 18 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "BlockStatement", - "start": 17104, - "end": 17370, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 478, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17112, - "end": 17363, - "loc": { - "start": { - "line": 468, - "column": 5 - }, - "end": { - "line": 477, - "column": 6 - } - }, - "test": { - "type": "MemberExpression", - "start": 17116, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 17116, - "end": 17125, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17126, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 19 - }, - "end": { - "line": 468, - "column": 23 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17132, - "end": 17264, - "loc": { - "start": { - "line": 468, - "column": 25 - }, - "end": { - "line": 474, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17141, - "end": 17256, - "loc": { - "start": { - "line": 469, - "column": 6 - }, - "end": { - "line": 473, - "column": 7 - } - }, - "test": { - "type": "MemberExpression", - "start": 17145, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 17145, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 17145, - "end": 17154, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 19 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17155, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 20 - }, - "end": { - "line": 469, - "column": 24 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17160, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 25 - }, - "end": { - "line": 469, - "column": 30 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17167, - "end": 17256, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 473, - "column": 7 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17177, - "end": 17247, - "loc": { - "start": { - "line": 470, - "column": 7 - }, - "end": { - "line": 472, - "column": 8 - } - }, - "test": { - "type": "MemberExpression", - "start": 17181, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 40 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 17181, - "end": 17190, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 20 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17191, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 21 - }, - "end": { - "line": 470, - "column": 25 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17196, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 26 - }, - "end": { - "line": 470, - "column": 31 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17202, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 32 - }, - "end": { - "line": 470, - "column": 40 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17211, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 41 - }, - "end": { - "line": 470, - "column": 47 - }, - "identifierName": "paused" - }, - "name": "paused" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17219, - "end": 17247, - "loc": { - "start": { - "line": 470, - "column": 49 - }, - "end": { - "line": 472, - "column": 8 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 17230, - "end": 17237, - "loc": { - "start": { - "line": 471, - "column": 8 - }, - "end": { - "line": 471, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 17270, - "end": 17363, - "loc": { - "start": { - "line": 474, - "column": 12 - }, - "end": { - "line": 477, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17279, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 6 - }, - "end": { - "line": 475, - "column": 63 - } - }, - "test": { - "type": "MemberExpression", - "start": 17283, - "end": 17303, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 17283, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 17283, - "end": 17287, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 14 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17288, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 15 - }, - "end": { - "line": 475, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17300, - "end": 17302, - "loc": { - "start": { - "line": 475, - "column": 27 - }, - "end": { - "line": 475, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 17305, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 17305, - "end": 17335, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17305, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 17305, - "end": 17309, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 36 - } - } - }, - "property": { - "type": "Identifier", - "start": 17310, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 37 - }, - "end": { - "line": 475, - "column": 58 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17332, - "end": 17334, - "loc": { - "start": { - "line": 475, - "column": 59 - }, - "end": { - "line": 475, - "column": 61 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 17344, - "end": 17351, - "loc": { - "start": { - "line": 476, - "column": 6 - }, - "end": { - "line": 476, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 17378, - "end": 17401, - "loc": { - "start": { - "line": 480, - "column": 4 - }, - "end": { - "line": 480, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17384, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 17384, - "end": 17387, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 13 - }, - "identifierName": "now" - }, - "name": "now" - }, - "init": { - "type": "Identifier", - "start": 17390, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 16 - }, - "end": { - "line": 480, - "column": 26 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 17407, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 4 - }, - "end": { - "line": 481, - "column": 76 - } - }, - "test": { - "type": "UnaryExpression", - "start": 17411, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 38 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 17412, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 38 - } - }, - "object": { - "type": "MemberExpression", - "start": 17412, - "end": 17432, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 17412, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 17412, - "end": 17416, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17417, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 14 - }, - "end": { - "line": 481, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17429, - "end": 17431, - "loc": { - "start": { - "line": 481, - "column": 26 - }, - "end": { - "line": 481, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17433, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 30 - }, - "end": { - "line": 481, - "column": 38 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 17443, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 76 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17443, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 75 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 17443, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 69 - } - }, - "object": { - "type": "MemberExpression", - "start": 17443, - "end": 17463, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 17443, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 17443, - "end": 17447, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 44 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17448, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 45 - }, - "end": { - "line": 481, - "column": 56 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17460, - "end": 17462, - "loc": { - "start": { - "line": 481, - "column": 57 - }, - "end": { - "line": 481, - "column": 59 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17464, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 61 - }, - "end": { - "line": 481, - "column": 69 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 17475, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 72 - }, - "end": { - "line": 481, - "column": 75 - }, - "identifierName": "now" - }, - "name": "now" - } - } - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 17485, - "end": 17537, - "loc": { - "start": { - "line": 482, - "column": 4 - }, - "end": { - "line": 482, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17491, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 17491, - "end": 17498, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 17 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "init": { - "type": "BinaryExpression", - "start": 17501, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 17501, - "end": 17504, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 23 - }, - "identifierName": "now" - }, - "name": "now" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 17507, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "object": { - "type": "MemberExpression", - "start": 17507, - "end": 17527, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 17507, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 17507, - "end": 17511, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 30 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17512, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 31 - }, - "end": { - "line": 482, - "column": 42 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17524, - "end": 17526, - "loc": { - "start": { - "line": 482, - "column": 43 - }, - "end": { - "line": 482, - "column": 45 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17528, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 47 - }, - "end": { - "line": 482, - "column": 55 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 17732, - "end": 17776, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 48 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17732, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 47 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 17732, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 17732, - "end": 17752, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 17732, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 17732, - "end": 17736, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17737, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 9 - }, - "end": { - "line": 484, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17749, - "end": 17751, - "loc": { - "start": { - "line": 484, - "column": 21 - }, - "end": { - "line": 484, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17753, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 25 - }, - "end": { - "line": 484, - "column": 36 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 17768, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 40 - }, - "end": { - "line": 484, - "column": 47 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17844, - "end": 17941, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 101 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17850, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 100 - } - }, - "id": { - "type": "Identifier", - "start": 17850, - "end": 17860, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 20 - }, - "identifierName": "percentage" - }, - "name": "percentage", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 17863, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17863, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 17863, - "end": 17867, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 17868, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 28 - }, - "end": { - "line": 486, - "column": 31 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 17872, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 96 - } - }, - "left": { - "type": "MemberExpression", - "start": 17872, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 64 - } - }, - "object": { - "type": "MemberExpression", - "start": 17872, - "end": 17892, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 17872, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 17872, - "end": 17876, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 36 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17877, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 37 - }, - "end": { - "line": 486, - "column": 48 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17889, - "end": 17891, - "loc": { - "start": { - "line": 486, - "column": 49 - }, - "end": { - "line": 486, - "column": 51 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17893, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 53 - }, - "end": { - "line": 486, - "column": 64 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 17907, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 96 - } - }, - "object": { - "type": "MemberExpression", - "start": 17907, - "end": 17927, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 17907, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 17907, - "end": 17911, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 71 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17912, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 72 - }, - "end": { - "line": 486, - "column": 83 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17924, - "end": 17926, - "loc": { - "start": { - "line": 486, - "column": 84 - }, - "end": { - "line": 486, - "column": 86 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17928, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 88 - }, - "end": { - "line": 486, - "column": 96 - }, - "identifierName": "duration" - }, - "name": "duration" - }, - "computed": false - } - }, - { - "type": "NumericLiteral", - "start": 17938, - "end": 17939, - "loc": { - "start": { - "line": 486, - "column": 98 - }, - "end": { - "line": 486, - "column": 99 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17953, - "end": 18033, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17959, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 17959, - "end": 17960, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 17963, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 17963, - "end": 17971, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 17972, - "end": 18027, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17972, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 17972, - "end": 17976, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17977, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 28 - }, - "end": { - "line": 488, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 17982, - "end": 17998, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 17982, - "end": 17995, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 17996, - "end": 17997, - "loc": { - "start": { - "line": 488, - "column": 47 - }, - "end": { - "line": 488, - "column": 48 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18000, - "end": 18014, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18000, - "end": 18011, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18012, - "end": 18013, - "loc": { - "start": { - "line": 488, - "column": 63 - }, - "end": { - "line": 488, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18016, - "end": 18026, - "loc": { - "start": { - "line": 488, - "column": 67 - }, - "end": { - "line": 488, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18029, - "end": 18031, - "loc": { - "start": { - "line": 488, - "column": 80 - }, - "end": { - "line": 488, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18039, - "end": 18119, - "loc": { - "start": { - "line": 489, - "column": 4 - }, - "end": { - "line": 489, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18045, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 18045, - "end": 18046, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 11 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 18049, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 18049, - "end": 18057, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18058, - "end": 18113, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18058, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18058, - "end": 18062, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18063, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 28 - }, - "end": { - "line": 489, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18068, - "end": 18084, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 18068, - "end": 18081, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18082, - "end": 18083, - "loc": { - "start": { - "line": 489, - "column": 47 - }, - "end": { - "line": 489, - "column": 48 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18086, - "end": 18100, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18086, - "end": 18097, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18098, - "end": 18099, - "loc": { - "start": { - "line": 489, - "column": 63 - }, - "end": { - "line": 489, - "column": 64 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18102, - "end": 18112, - "loc": { - "start": { - "line": 489, - "column": 67 - }, - "end": { - "line": 489, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18115, - "end": 18117, - "loc": { - "start": { - "line": 489, - "column": 80 - }, - "end": { - "line": 489, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18125, - "end": 18205, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18131, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 18131, - "end": 18132, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 11 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 18135, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 18135, - "end": 18143, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18144, - "end": 18199, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18144, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18144, - "end": 18148, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18149, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 28 - }, - "end": { - "line": 490, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18154, - "end": 18170, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 18154, - "end": 18167, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18168, - "end": 18169, - "loc": { - "start": { - "line": 490, - "column": 47 - }, - "end": { - "line": 490, - "column": 48 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18172, - "end": 18186, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18172, - "end": 18183, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18184, - "end": 18185, - "loc": { - "start": { - "line": 490, - "column": 63 - }, - "end": { - "line": 490, - "column": 64 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18188, - "end": 18198, - "loc": { - "start": { - "line": 490, - "column": 67 - }, - "end": { - "line": 490, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18201, - "end": 18203, - "loc": { - "start": { - "line": 490, - "column": 80 - }, - "end": { - "line": 490, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18211, - "end": 18249, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 491, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18217, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 18217, - "end": 18222, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 15 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "CallExpression", - "start": 18225, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18225, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18225, - "end": 18229, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 22 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18230, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 23 - }, - "end": { - "line": 491, - "column": 32 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18240, - "end": 18241, - "loc": { - "start": { - "line": 491, - "column": 33 - }, - "end": { - "line": 491, - "column": 34 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 18243, - "end": 18244, - "loc": { - "start": { - "line": 491, - "column": 36 - }, - "end": { - "line": 491, - "column": 37 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 18246, - "end": 18247, - "loc": { - "start": { - "line": 491, - "column": 39 - }, - "end": { - "line": 491, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 18257, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 52 - } - }, - "test": { - "type": "Identifier", - "start": 18261, - "end": 18278, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18280, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 52 - } - }, - "expression": { - "type": "CallExpression", - "start": 18280, - "end": 18304, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 51 - } - }, - "callee": { - "type": "Identifier", - "start": 18280, - "end": 18297, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 44 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 18298, - "end": 18303, - "loc": { - "start": { - "line": 493, - "column": 45 - }, - "end": { - "line": 493, - "column": 50 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18313, - "end": 18508, - "loc": { - "start": { - "line": 495, - "column": 4 - }, - "end": { - "line": 502, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 18317, - "end": 18326, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 18328, - "end": 18508, - "loc": { - "start": { - "line": 495, - "column": 19 - }, - "end": { - "line": 502, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 18336, - "end": 18501, - "loc": { - "start": { - "line": 496, - "column": 5 - }, - "end": { - "line": 501, - "column": 6 - } - }, - "test": { - "type": "Identifier", - "start": 18340, - "end": 18352, - "loc": { - "start": { - "line": 496, - "column": 9 - }, - "end": { - "line": 496, - "column": 21 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "consequent": { - "type": "BlockStatement", - "start": 18354, - "end": 18450, - "loc": { - "start": { - "line": 496, - "column": 23 - }, - "end": { - "line": 499, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18363, - "end": 18400, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18363, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18363, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 18363, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18363, - "end": 18372, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18373, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 16 - }, - "end": { - "line": 497, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18379, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 22 - }, - "end": { - "line": 497, - "column": 26 - }, - "identifierName": "tint" - }, - "name": "tint" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18386, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 18386, - "end": 18391, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 34 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 18392, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 35 - }, - "end": { - "line": 497, - "column": 42 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - } - } - }, - { - "type": "ExpressionStatement", - "start": 18408, - "end": 18442, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18408, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18408, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18408, - "end": 18417, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18418, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 16 - }, - "end": { - "line": 498, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18426, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 18426, - "end": 18435, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 33 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18436, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 34 - }, - "end": { - "line": 498, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 18456, - "end": 18501, - "loc": { - "start": { - "line": 499, - "column": 12 - }, - "end": { - "line": 501, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18465, - "end": 18493, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 34 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18465, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 33 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18465, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18465, - "end": 18474, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18475, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18483, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 18483, - "end": 18488, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 29 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 18489, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 30 - }, - "end": { - "line": 500, - "column": 33 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18516, - "end": 18715, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 508, - "column": 5 - } - }, - "test": { - "type": "LogicalExpression", - "start": 18520, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 72 - } - }, - "left": { - "type": "BinaryExpression", - "start": 18520, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 18520, - "end": 18530, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 18 - }, - "identifierName": "percentage" - }, - "name": "percentage" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 18534, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 22 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "operator": "||", - "right": { - "type": "BinaryExpression", - "start": 18539, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 72 - } - }, - "left": { - "type": "MemberExpression", - "start": 18539, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 59 - } - }, - "object": { - "type": "MemberExpression", - "start": 18539, - "end": 18559, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 18539, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 18539, - "end": 18543, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 31 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18544, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 43 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18556, - "end": 18558, - "loc": { - "start": { - "line": 504, - "column": 44 - }, - "end": { - "line": 504, - "column": 46 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18560, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 59 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 18575, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 72 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 18586, - "end": 18715, - "loc": { - "start": { - "line": 504, - "column": 74 - }, - "end": { - "line": 508, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 18594, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 5 - }, - "end": { - "line": 505, - "column": 62 - } - }, - "test": { - "type": "MemberExpression", - "start": 18598, - "end": 18618, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 18598, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 18598, - "end": 18602, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18603, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 14 - }, - "end": { - "line": 505, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18615, - "end": 18617, - "loc": { - "start": { - "line": 505, - "column": 26 - }, - "end": { - "line": 505, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18620, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 18620, - "end": 18650, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18620, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 57 - } - }, - "object": { - "type": "ThisExpression", - "start": 18620, - "end": 18624, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 18625, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 36 - }, - "end": { - "line": 505, - "column": 57 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18647, - "end": 18649, - "loc": { - "start": { - "line": 505, - "column": 58 - }, - "end": { - "line": 505, - "column": 60 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18658, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 5 - }, - "end": { - "line": 506, - "column": 41 - } - }, - "test": { - "type": "Identifier", - "start": 18662, - "end": 18673, - "loc": { - "start": { - "line": 506, - "column": 9 - }, - "end": { - "line": 506, - "column": 20 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18675, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 18675, - "end": 18693, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 18675, - "end": 18686, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 33 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 18687, - "end": 18692, - "loc": { - "start": { - "line": 506, - "column": 34 - }, - "end": { - "line": 506, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 18701, - "end": 18708, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 12 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 18721, - "end": 18808, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 91 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18721, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 90 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18721, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 28 - } - }, - "object": { - "type": "MemberExpression", - "start": 18721, - "end": 18741, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 18721, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 18721, - "end": 18725, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18726, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 9 - }, - "end": { - "line": 509, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18738, - "end": 18740, - "loc": { - "start": { - "line": 509, - "column": 21 - }, - "end": { - "line": 509, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18742, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 25 - }, - "end": { - "line": 509, - "column": 28 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 18748, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18748, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 18748, - "end": 18758, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 41 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 18759, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 42 - }, - "end": { - "line": 509, - "column": 63 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18781, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 18781, - "end": 18801, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 84 - } - }, - "object": { - "type": "MemberExpression", - "start": 18781, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 80 - } - }, - "object": { - "type": "Identifier", - "start": 18781, - "end": 18785, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 68 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18786, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 69 - }, - "end": { - "line": 509, - "column": 80 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18798, - "end": 18800, - "loc": { - "start": { - "line": 509, - "column": 81 - }, - "end": { - "line": 509, - "column": 83 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18802, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 85 - }, - "end": { - "line": 509, - "column": 89 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 18814, - "end": 18850, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18814, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18814, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 33 - } - }, - "object": { - "type": "MemberExpression", - "start": 18814, - "end": 18834, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 18814, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 18814, - "end": 18818, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18819, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 9 - }, - "end": { - "line": 510, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18831, - "end": 18833, - "loc": { - "start": { - "line": 510, - "column": 21 - }, - "end": { - "line": 510, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18835, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 25 - }, - "end": { - "line": 510, - "column": 33 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 18846, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 36 - }, - "end": { - "line": 510, - "column": 39 - }, - "identifierName": "now" - }, - "name": "now" - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 18867, - "end": 18954, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18867, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18867, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 18867, - "end": 18887, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 18867, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 18867, - "end": 18871, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 18872, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 7 - }, - "end": { - "line": 514, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18884, - "end": 18886, - "loc": { - "start": { - "line": 514, - "column": 19 - }, - "end": { - "line": 514, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18888, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 26 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 18894, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 88 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18894, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 18894, - "end": 18904, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 39 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 18905, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 40 - }, - "end": { - "line": 514, - "column": 61 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18927, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 18927, - "end": 18947, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 82 - } - }, - "object": { - "type": "MemberExpression", - "start": 18927, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 78 - } - }, - "object": { - "type": "ThisExpression", - "start": 18927, - "end": 18931, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 66 - } - } - }, - "property": { - "type": "Identifier", - "start": 18932, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 67 - }, - "end": { - "line": 514, - "column": 78 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18944, - "end": 18946, - "loc": { - "start": { - "line": 514, - "column": 79 - }, - "end": { - "line": 514, - "column": 81 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18948, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 83 - }, - "end": { - "line": 514, - "column": 87 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 18958, - "end": 18968, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 18965, - "end": 18967, - "loc": { - "start": { - "line": 515, - "column": 9 - }, - "end": { - "line": 515, - "column": 11 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19098, - "end": 19265, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 527, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19098, - "end": 19119, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 522, - "column": 22 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19120, - "end": 19123, - "loc": { - "start": { - "line": 522, - "column": 23 - }, - "end": { - "line": 522, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - } - ], - "body": { - "type": "BlockStatement", - "start": 19125, - "end": 19265, - "loc": { - "start": { - "line": 522, - "column": 28 - }, - "end": { - "line": 527, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 19130, - "end": 19261, - "loc": { - "start": { - "line": 523, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "test": { - "type": "MemberExpression", - "start": 19134, - "end": 19155, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 19134, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 19134, - "end": 19138, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "start": 19139, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 11 - }, - "end": { - "line": 523, - "column": 22 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19151, - "end": 19154, - "loc": { - "start": { - "line": 523, - "column": 23 - }, - "end": { - "line": 523, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 19157, - "end": 19261, - "loc": { - "start": { - "line": 523, - "column": 29 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19163, - "end": 19222, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 19163, - "end": 19221, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19163, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 19163, - "end": 19173, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 13 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 19174, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 34 - }, - "identifierName": "cancelAnimationFrame" - }, - "name": "cancelAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 19195, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 19195, - "end": 19216, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 56 - } - }, - "object": { - "type": "MemberExpression", - "start": 19195, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 51 - } - }, - "object": { - "type": "ThisExpression", - "start": 19195, - "end": 19199, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 19200, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 40 - }, - "end": { - "line": 524, - "column": 51 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19212, - "end": 19215, - "loc": { - "start": { - "line": 524, - "column": 52 - }, - "end": { - "line": 524, - "column": 55 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 19217, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 57 - }, - "end": { - "line": 524, - "column": 60 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 19227, - "end": 19256, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 32 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 19227, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 31 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 19234, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 19234, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 26 - } - }, - "object": { - "type": "ThisExpression", - "start": 19234, - "end": 19238, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 14 - } - } - }, - "property": { - "type": "Identifier", - "start": 19239, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 15 - }, - "end": { - "line": 525, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19251, - "end": 19254, - "loc": { - "start": { - "line": 525, - "column": 27 - }, - "end": { - "line": 525, - "column": 30 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19952, - "end": 20745, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 558, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19952, - "end": 19967, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 539, - "column": 16 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19968, - "end": 19973, - "loc": { - "start": { - "line": 539, - "column": 17 - }, - "end": { - "line": 539, - "column": 22 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 19975, - "end": 19981, - "loc": { - "start": { - "line": 539, - "column": 24 - }, - "end": { - "line": 539, - "column": 30 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "Identifier", - "start": 19983, - "end": 19989, - "loc": { - "start": { - "line": 539, - "column": 32 - }, - "end": { - "line": 539, - "column": 38 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 19991, - "end": 20745, - "loc": { - "start": { - "line": 539, - "column": 40 - }, - "end": { - "line": 558, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 20134, - "end": 20246, - "loc": { - "start": { - "line": 543, - "column": 2 - }, - "end": { - "line": 543, - "column": 114 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20140, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "id": { - "type": "Identifier", - "start": 20140, - "end": 20142, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 10 - }, - "identifierName": "cx" - }, - "name": "cx", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20145, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 20145, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 20145, - "end": 20150, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20151, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 19 - }, - "end": { - "line": 543, - "column": 20 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20155, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 20155, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 20155, - "end": 20160, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20161, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 29 - }, - "end": { - "line": 543, - "column": 34 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 20170, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 20170, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 89 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20170, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 71 - } - }, - "left": { - "type": "UnaryExpression", - "start": 20170, - "end": 20190, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 58 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 20177, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 20177, - "end": 20182, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 50 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20183, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 51 - }, - "end": { - "line": 543, - "column": 57 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 20176 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 20195, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 63 - }, - "end": { - "line": 543, - "column": 71 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 20207, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 20207, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 20207, - "end": 20212, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 80 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20213, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 81 - }, - "end": { - "line": 543, - "column": 87 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20220, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 88 - }, - "end": { - "line": 543, - "column": 89 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 20224, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 106 - } - }, - "object": { - "type": "MemberExpression", - "start": 20224, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 104 - } - }, - "object": { - "type": "Identifier", - "start": 20224, - "end": 20229, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20230, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 98 - }, - "end": { - "line": 543, - "column": 104 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20237, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 105 - }, - "end": { - "line": 543, - "column": 106 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 20241, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 109 - }, - "end": { - "line": 543, - "column": 112 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 20169 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 19996, - "end": 20036, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 540, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 20040, - "end": 20093, - "loc": { - "start": { - "line": 541, - "column": 2 - }, - "end": { - "line": 541, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 20097, - "end": 20130, - "loc": { - "start": { - "line": 542, - "column": 2 - }, - "end": { - "line": 542, - "column": 35 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20250, - "end": 20363, - "loc": { - "start": { - "line": 544, - "column": 2 - }, - "end": { - "line": 544, - "column": 115 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20256, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "id": { - "type": "Identifier", - "start": 20256, - "end": 20258, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 10 - }, - "identifierName": "cy" - }, - "name": "cy" - }, - "init": { - "type": "BinaryExpression", - "start": 20261, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 20261, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 20261, - "end": 20266, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20267, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 19 - }, - "end": { - "line": 544, - "column": 20 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20271, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 20271, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20271, - "end": 20276, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20277, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 29 - }, - "end": { - "line": 544, - "column": 35 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 20287, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 113 - } - }, - "test": { - "type": "LogicalExpression", - "start": 20287, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 90 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20287, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 72 - } - }, - "left": { - "type": "UnaryExpression", - "start": 20287, - "end": 20307, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 59 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 20294, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 20294, - "end": 20299, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 51 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20300, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 52 - }, - "end": { - "line": 544, - "column": 58 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 20293 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 20312, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 64 - }, - "end": { - "line": 544, - "column": 72 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 20324, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 90 - } - }, - "object": { - "type": "MemberExpression", - "start": 20324, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 88 - } - }, - "object": { - "type": "Identifier", - "start": 20324, - "end": 20329, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 81 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20330, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 82 - }, - "end": { - "line": 544, - "column": 88 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20337, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 89 - }, - "end": { - "line": 544, - "column": 90 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 20341, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 107 - } - }, - "object": { - "type": "MemberExpression", - "start": 20341, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 105 - } - }, - "object": { - "type": "Identifier", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 98 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20347, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 99 - }, - "end": { - "line": 544, - "column": 105 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20354, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 106 - }, - "end": { - "line": 544, - "column": 107 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 20358, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 110 - }, - "end": { - "line": 544, - "column": 113 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 20286 - } - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20401, - "end": 20429, - "loc": { - "start": { - "line": 547, - "column": 2 - }, - "end": { - "line": 547, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20407, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 20407, - "end": 20412, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 13 - }, - "identifierName": "tempX" - }, - "name": "tempX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20415, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 20415, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 20415, - "end": 20421, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 20422, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 20426, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 27 - }, - "end": { - "line": 547, - "column": 29 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20433, - "end": 20461, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20439, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 20439, - "end": 20444, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 13 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "init": { - "type": "BinaryExpression", - "start": 20447, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 20447, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 20447, - "end": 20453, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 20454, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 23 - }, - "end": { - "line": 548, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 20458, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 29 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20492, - "end": 20560, - "loc": { - "start": { - "line": 551, - "column": 2 - }, - "end": { - "line": 551, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20498, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 20498, - "end": 20506, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 16 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20509, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20509, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 41 - } - }, - "left": { - "type": "Identifier", - "start": 20509, - "end": 20514, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 20515, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20515, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 20515, - "end": 20519, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20520, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 30 - }, - "end": { - "line": 551, - "column": 33 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20524, - "end": 20530, - "loc": { - "start": { - "line": 551, - "column": 34 - }, - "end": { - "line": 551, - "column": 40 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 20534, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 20534, - "end": 20539, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 49 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 20541, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 51 - }, - "end": { - "line": 551, - "column": 68 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 20542, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 68 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20542, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 20542, - "end": 20546, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 56 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20547, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 57 - }, - "end": { - "line": 551, - "column": 60 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20551, - "end": 20557, - "loc": { - "start": { - "line": 551, - "column": 61 - }, - "end": { - "line": 551, - "column": 67 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 20540 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20564, - "end": 20632, - "loc": { - "start": { - "line": 552, - "column": 2 - }, - "end": { - "line": 552, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20570, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 20570, - "end": 20578, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 16 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "init": { - "type": "BinaryExpression", - "start": 20581, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20581, - "end": 20606, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 44 - } - }, - "left": { - "type": "Identifier", - "start": 20581, - "end": 20586, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 20588, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 26 - }, - "end": { - "line": 552, - "column": 43 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 20589, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20589, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20589, - "end": 20593, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20594, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 32 - }, - "end": { - "line": 552, - "column": 35 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 552, - "column": 36 - }, - "end": { - "line": 552, - "column": 42 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 20587 - } - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20609, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 20609, - "end": 20614, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 52 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 20615, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20615, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 20615, - "end": 20619, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20620, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 58 - }, - "end": { - "line": 552, - "column": 61 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20624, - "end": 20630, - "loc": { - "start": { - "line": 552, - "column": 62 - }, - "end": { - "line": 552, - "column": 68 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20659, - "end": 20683, - "loc": { - "start": { - "line": 555, - "column": 2 - }, - "end": { - "line": 555, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20665, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20665, - "end": 20666, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20669, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 20669, - "end": 20677, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 20 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 20680, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 23 - }, - "end": { - "line": 555, - "column": 25 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20687, - "end": 20711, - "loc": { - "start": { - "line": 556, - "column": 2 - }, - "end": { - "line": 556, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20693, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20693, - "end": 20694, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 20697, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 20697, - "end": 20705, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 20 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 20708, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 23 - }, - "end": { - "line": 556, - "column": 25 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 20715, - "end": 20741, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 28 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 20722, - "end": 20740, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20724, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20724, - "end": 20727, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 14 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "Identifier", - "start": 20729, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 16 - }, - "end": { - "line": 557, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - } - }, - { - "type": "ObjectProperty", - "start": 20732, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20732, - "end": 20735, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 22 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "Identifier", - "start": 20737, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 24 - }, - "end": { - "line": 557, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21246, - "end": 21875, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 574, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21246, - "end": 21268, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 567, - "column": 23 - }, - "identifierName": "getPointsOfRotatedRect" - }, - "name": "getPointsOfRotatedRect", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 21269, - "end": 21274, - "loc": { - "start": { - "line": 567, - "column": 24 - }, - "end": { - "line": 567, - "column": 29 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21276, - "end": 21282, - "loc": { - "start": { - "line": 567, - "column": 31 - }, - "end": { - "line": 567, - "column": 37 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ], - "body": { - "type": "BlockStatement", - "start": 21284, - "end": 21875, - "loc": { - "start": { - "line": 567, - "column": 39 - }, - "end": { - "line": 574, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 21289, - "end": 21368, - "loc": { - "start": { - "line": 568, - "column": 2 - }, - "end": { - "line": 568, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21295, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 21295, - "end": 21297, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 10 - }, - "identifierName": "tl" - }, - "name": "tl" - }, - "init": { - "type": "CallExpression", - "start": 21300, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 80 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21300, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21300, - "end": 21304, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21305, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 18 - }, - "end": { - "line": 568, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21321, - "end": 21326, - "loc": { - "start": { - "line": 568, - "column": 34 - }, - "end": { - "line": 568, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21328, - "end": 21334, - "loc": { - "start": { - "line": 568, - "column": 41 - }, - "end": { - "line": 568, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21336, - "end": 21366, - "loc": { - "start": { - "line": 568, - "column": 49 - }, - "end": { - "line": 568, - "column": 79 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21338, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21338, - "end": 21341, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 21343, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21343, - "end": 21348, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21349, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 62 - }, - "end": { - "line": 568, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 21352, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21352, - "end": 21355, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 21357, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21357, - "end": 21362, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21363, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 76 - }, - "end": { - "line": 568, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21372, - "end": 21465, - "loc": { - "start": { - "line": 569, - "column": 2 - }, - "end": { - "line": 569, - "column": 95 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21378, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 94 - } - }, - "id": { - "type": "Identifier", - "start": 21378, - "end": 21380, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 10 - }, - "identifierName": "tr" - }, - "name": "tr" - }, - "init": { - "type": "CallExpression", - "start": 21383, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21383, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21383, - "end": 21387, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21388, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 569, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21404, - "end": 21409, - "loc": { - "start": { - "line": 569, - "column": 34 - }, - "end": { - "line": 569, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21411, - "end": 21417, - "loc": { - "start": { - "line": 569, - "column": 41 - }, - "end": { - "line": 569, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21419, - "end": 21463, - "loc": { - "start": { - "line": 569, - "column": 49 - }, - "end": { - "line": 569, - "column": 93 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21421, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21421, - "end": 21424, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21426, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 21426, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21426, - "end": 21431, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21432, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 62 - }, - "end": { - "line": 569, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21436, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21436, - "end": 21441, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21442, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 72 - }, - "end": { - "line": 569, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 21449, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 91 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21449, - "end": 21452, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 21454, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 21454, - "end": 21459, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21460, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 90 - }, - "end": { - "line": 569, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21469, - "end": 21563, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 570, - "column": 96 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21475, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 95 - } - }, - "id": { - "type": "Identifier", - "start": 21475, - "end": 21477, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 10 - }, - "identifierName": "bl" - }, - "name": "bl" - }, - "init": { - "type": "CallExpression", - "start": 21480, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21480, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21480, - "end": 21484, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21485, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 18 - }, - "end": { - "line": 570, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21501, - "end": 21506, - "loc": { - "start": { - "line": 570, - "column": 34 - }, - "end": { - "line": 570, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21508, - "end": 21514, - "loc": { - "start": { - "line": 570, - "column": 41 - }, - "end": { - "line": 570, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21516, - "end": 21561, - "loc": { - "start": { - "line": 570, - "column": 49 - }, - "end": { - "line": 570, - "column": 94 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21518, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21518, - "end": 21521, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 21523, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21523, - "end": 21528, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21529, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 62 - }, - "end": { - "line": 570, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 21532, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21532, - "end": 21535, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21537, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "left": { - "type": "MemberExpression", - "start": 21537, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21537, - "end": 21542, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21543, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 76 - }, - "end": { - "line": 570, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21547, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "object": { - "type": "Identifier", - "start": 21547, - "end": 21552, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 85 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21553, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 86 - }, - "end": { - "line": 570, - "column": 92 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21567, - "end": 21675, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 110 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21573, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 109 - } - }, - "id": { - "type": "Identifier", - "start": 21573, - "end": 21575, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 10 - }, - "identifierName": "br" - }, - "name": "br" - }, - "init": { - "type": "CallExpression", - "start": 21578, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 109 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21578, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21578, - "end": 21582, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21583, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 18 - }, - "end": { - "line": 571, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21599, - "end": 21604, - "loc": { - "start": { - "line": 571, - "column": 34 - }, - "end": { - "line": 571, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21606, - "end": 21612, - "loc": { - "start": { - "line": 571, - "column": 41 - }, - "end": { - "line": 571, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21614, - "end": 21673, - "loc": { - "start": { - "line": 571, - "column": 49 - }, - "end": { - "line": 571, - "column": 108 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21616, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21616, - "end": 21619, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21621, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 21621, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21621, - "end": 21626, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21627, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 62 - }, - "end": { - "line": 571, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21631, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21631, - "end": 21636, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21637, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 72 - }, - "end": { - "line": 571, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 21644, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21644, - "end": 21647, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21649, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "left": { - "type": "MemberExpression", - "start": 21649, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 21649, - "end": 21654, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 90 - }, - "end": { - "line": 571, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21659, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 21659, - "end": 21664, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 99 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21665, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 100 - }, - "end": { - "line": 571, - "column": 106 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21679, - "end": 21799, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 122 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21685, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 121 - } - }, - "id": { - "type": "Identifier", - "start": 21685, - "end": 21691, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 14 - }, - "identifierName": "center" - }, - "name": "center" - }, - "init": { - "type": "CallExpression", - "start": 21694, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 121 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21694, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 37 - } - }, - "object": { - "type": "ThisExpression", - "start": 21694, - "end": 21698, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "start": 21699, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 22 - }, - "end": { - "line": 572, - "column": 37 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21715, - "end": 21720, - "loc": { - "start": { - "line": 572, - "column": 38 - }, - "end": { - "line": 572, - "column": 43 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21722, - "end": 21728, - "loc": { - "start": { - "line": 572, - "column": 45 - }, - "end": { - "line": 572, - "column": 51 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21730, - "end": 21797, - "loc": { - "start": { - "line": 572, - "column": 53 - }, - "end": { - "line": 572, - "column": 120 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21732, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21732, - "end": 21735, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 58 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21737, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 21737, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 21737, - "end": 21742, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 65 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21743, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 66 - }, - "end": { - "line": 572, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 21747, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 21747, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 81 - } - }, - "object": { - "type": "Identifier", - "start": 21747, - "end": 21752, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21753, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 76 - }, - "end": { - "line": 572, - "column": 81 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21761, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 84 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 21764, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21764, - "end": 21767, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 90 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21769, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 21769, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 21769, - "end": 21774, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21775, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 98 - }, - "end": { - "line": 572, - "column": 99 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 21779, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 21779, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 114 - } - }, - "object": { - "type": "Identifier", - "start": 21779, - "end": 21784, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 107 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21785, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 108 - }, - "end": { - "line": 572, - "column": 114 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21794, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 117 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 21803, - "end": 21871, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 573, - "column": 70 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 21810, - "end": 21870, - "loc": { - "start": { - "line": 573, - "column": 9 - }, - "end": { - "line": 573, - "column": 69 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21812, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21812, - "end": 21816, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 15 - } - }, - "extra": { - "rawValue": "tl", - "raw": "'tl'" - }, - "value": "tl" - }, - "value": { - "type": "Identifier", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 17 - }, - "end": { - "line": 573, - "column": 19 - }, - "identifierName": "tl" - }, - "name": "tl" - } - }, - { - "type": "ObjectProperty", - "start": 21822, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21822, - "end": 21826, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 25 - } - }, - "extra": { - "rawValue": "tr", - "raw": "'tr'" - }, - "value": "tr" - }, - "value": { - "type": "Identifier", - "start": 21828, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 27 - }, - "end": { - "line": 573, - "column": 29 - }, - "identifierName": "tr" - }, - "name": "tr" - } - }, - { - "type": "ObjectProperty", - "start": 21832, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21832, - "end": 21836, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 35 - } - }, - "extra": { - "rawValue": "bl", - "raw": "'bl'" - }, - "value": "bl" - }, - "value": { - "type": "Identifier", - "start": 21838, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 37 - }, - "end": { - "line": 573, - "column": 39 - }, - "identifierName": "bl" - }, - "name": "bl" - } - }, - { - "type": "ObjectProperty", - "start": 21842, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21842, - "end": 21846, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 45 - } - }, - "extra": { - "rawValue": "br", - "raw": "'br'" - }, - "value": "br" - }, - "value": { - "type": "Identifier", - "start": 21848, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 47 - }, - "end": { - "line": 573, - "column": 49 - }, - "identifierName": "br" - }, - "name": "br" - } - }, - { - "type": "ObjectProperty", - "start": 21852, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 67 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21852, - "end": 21860, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 59 - } - }, - "extra": { - "rawValue": "center", - "raw": "'center'" - }, - "value": "center" - }, - "value": { - "type": "Identifier", - "start": 21862, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 61 - }, - "end": { - "line": 573, - "column": 67 - }, - "identifierName": "center" - }, - "name": "center" - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "ExportNamedDeclaration", - "start": 21880, - "end": 21924, - "loc": { - "start": { - "line": 576, - "column": 0 - }, - "end": { - "line": 576, - "column": 44 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 21887, - "end": 21924, - "loc": { - "start": { - "line": 576, - "column": 7 - }, - "end": { - "line": 576, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21893, - "end": 21923, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 21893, - "end": 21899, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 19 - }, - "identifierName": "EUtils" - }, - "name": "EUtils" - }, - "init": { - "type": "NewExpression", - "start": 21902, - "end": 21923, - "loc": { - "start": { - "line": 576, - "column": 22 - }, - "end": { - "line": 576, - "column": 43 - } - }, - "callee": { - "type": "Identifier", - "start": 21906, - "end": 21921, - "loc": { - "start": { - "line": 576, - "column": 26 - }, - "end": { - "line": 576, - "column": 41 - }, - "identifierName": "EUtilsSingleton" - }, - "name": "EUtilsSingleton" - }, - "arguments": [] - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - } - }, - { - "type": "ExportNamedDeclaration", - "start": 21880, - "end": 21924, - "loc": { - "start": { - "line": 576, - "column": 0 - }, - "end": { - "line": 576, - "column": 44 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "ClassDeclaration", - "start": 226, - "end": 21878, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 575, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 232, - "end": 247, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 21 - }, - "identifierName": "EUtilsSingleton" - }, - "name": "EUtilsSingleton", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 248, - "end": 21878, - "loc": { - "start": { - "line": 9, - "column": 22 - }, - "end": { - "line": 575, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 296, - "end": 321, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 26 - } - }, - "static": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 303, - "end": 310, - "loc": { - "start": { - "line": 13, - "column": 8 - }, - "end": { - "line": 13, - "column": 15 - }, - "identifierName": "version" - }, - "name": "version" - }, - "value": { - "type": "StringLiteral", - "start": 313, - "end": 320, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 13, - "column": 25 - } - }, - "extra": { - "rawValue": "1.0.0", - "raw": "'1.0.0'" - }, - "value": "1.0.0" - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the library\r\n\t ", - "start": 252, - "end": 293, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 12, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 324, - "end": 599, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 27, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 324, - "end": 335, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 14, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 338, - "end": 599, - "loc": { - "start": { - "line": 14, - "column": 15 - }, - "end": { - "line": 27, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 457, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 24 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 457, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 457, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 457, - "end": 461, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 6 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 462, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 7 - }, - "end": { - "line": 20, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ObjectExpression", - "start": 476, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 21 - }, - "end": { - "line": 20, - "column": 23 - } - }, - "properties": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * Object storing all color objects being transitioned at the moment\r\n\t\t * \r\n\t\t * @type {Object}\r\n\t\t ", - "start": 343, - "end": 453, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 575, - "end": 595, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 22 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 575, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 575, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 575, - "end": 579, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 6 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 580, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "ArrayExpression", - "start": 592, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 21 - } - }, - "elements": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1175, - "end": 1360, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 39, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1175, - "end": 1186, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 36, - "column": 12 - }, - "identifierName": "decimalRand" - }, - "name": "decimalRand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 36, - "column": 13 - }, - "end": { - "line": 36, - "column": 18 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1194, - "end": 1199, - "loc": { - "start": { - "line": 36, - "column": 20 - }, - "end": { - "line": 36, - "column": 25 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - { - "type": "AssignmentPattern", - "start": 1201, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 1201, - "end": 1208, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 34 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - }, - "right": { - "type": "NumericLiteral", - "start": 1211, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 37 - }, - "end": { - "line": 36, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1214, - "end": 1360, - "loc": { - "start": { - "line": 36, - "column": 40 - }, - "end": { - "line": 39, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1219, - "end": 1301, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "end": { - "line": 37, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1225, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 1225, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1234, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 1234, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1241, - "end": 1299, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1241, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 73 - } - }, - "object": { - "type": "BinaryExpression", - "start": 1242, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1242, - "end": 1273, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1242, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1242, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1242, - "end": 1246, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1247, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 30 - }, - "end": { - "line": 37, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1259, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1267, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1258 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1276, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 59 - }, - "end": { - "line": 37, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1241 - } - }, - "property": { - "type": "Identifier", - "start": 1283, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 66 - }, - "end": { - "line": 37, - "column": 73 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1291, - "end": 1298, - "loc": { - "start": { - "line": 37, - "column": 74 - }, - "end": { - "line": 37, - "column": 81 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1305, - "end": 1356, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 38, - "column": 53 - } - }, - "argument": { - "type": "ConditionalExpression", - "start": 1313, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 51 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1313, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 1313, - "end": 1319, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 16 - }, - "identifierName": "result" - }, - "name": "result" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 1323, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "CallExpression", - "start": 1327, - "end": 1345, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1327, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1327, - "end": 1331, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1332, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 29 - }, - "end": { - "line": 38, - "column": 34 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 41 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - }, - "alternate": { - "type": "Identifier", - "start": 1348, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 51 - }, - "identifierName": "result" - }, - "name": "result" - }, - "extra": { - "parenthesized": true, - "parenStart": 1312 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1790, - "end": 1913, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1790, - "end": 1794, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 47, - "column": 5 - }, - "identifierName": "rand" - }, - "name": "rand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1795, - "end": 1800, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 11 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1802, - "end": 1807, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 18 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - } - ], - "body": { - "type": "BlockStatement", - "start": 1809, - "end": 1913, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 50, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1814, - "end": 1879, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1820, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 1820, - "end": 1826, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1829, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 1829, - "end": 1835, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1837, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1837, - "end": 1868, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1837, - "end": 1850, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1837, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1837, - "end": 1841, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1842, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 30 - }, - "end": { - "line": 48, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1854, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1854, - "end": 1859, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 50 - }, - "end": { - "line": 48, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1853 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1871, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 59 - }, - "end": { - "line": 48, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1836 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1883, - "end": 1909, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 1890, - "end": 1908, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1890, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 1890, - "end": 1894, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1895, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1901, - "end": 1907, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 26 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2247, - "end": 2327, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2247, - "end": 2260, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 58, - "column": 14 - }, - "identifierName": "getPercentage" - }, - "name": "getPercentage", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2261, - "end": 2267, - "loc": { - "start": { - "line": 58, - "column": 15 - }, - "end": { - "line": 58, - "column": 21 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - { - "type": "Identifier", - "start": 2269, - "end": 2280, - "loc": { - "start": { - "line": 58, - "column": 23 - }, - "end": { - "line": 58, - "column": 34 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - ], - "body": { - "type": "BlockStatement", - "start": 2282, - "end": 2327, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 60, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2287, - "end": 2323, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 38 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 2294, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 9 - }, - "end": { - "line": 59, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2295, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 22 - } - }, - "left": { - "type": "NumericLiteral", - "start": 2295, - "end": 2298, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 13 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 2301, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 16 - }, - "end": { - "line": 59, - "column": 22 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - "extra": { - "parenthesized": true, - "parenStart": 2294 - } - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 2311, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 26 - }, - "end": { - "line": 59, - "column": 37 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2750, - "end": 2841, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2750, - "end": 2755, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 69, - "column": 6 - }, - "identifierName": "clamp" - }, - "name": "clamp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2756, - "end": 2763, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 2765, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 2765, - "end": 2769, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 20 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "right": { - "type": "NumericLiteral", - "start": 2772, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "AssignmentPattern", - "start": 2775, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 2775, - "end": 2779, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "right": { - "type": "NumericLiteral", - "start": 2782, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 33 - }, - "end": { - "line": 69, - "column": 34 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 2785, - "end": 2841, - "loc": { - "start": { - "line": 69, - "column": 36 - }, - "end": { - "line": 71, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2790, - "end": 2837, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 49 - } - }, - "argument": { - "type": "CallExpression", - "start": 2797, - "end": 2836, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2797, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 2797, - "end": 2801, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2802, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 14 - }, - "end": { - "line": 70, - "column": 17 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2806, - "end": 2810, - "loc": { - "start": { - "line": 70, - "column": 18 - }, - "end": { - "line": 70, - "column": 22 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "CallExpression", - "start": 2812, - "end": 2835, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2812, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 2812, - "end": 2816, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2817, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 29 - }, - "end": { - "line": 70, - "column": 32 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2821, - "end": 2828, - "loc": { - "start": { - "line": 70, - "column": 33 - }, - "end": { - "line": 70, - "column": 40 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "Identifier", - "start": 2830, - "end": 2834, - "loc": { - "start": { - "line": 70, - "column": 42 - }, - "end": { - "line": 70, - "column": 46 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3260, - "end": 3336, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 82, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3260, - "end": 3264, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 80, - "column": 5 - }, - "identifierName": "lerp" - }, - "name": "lerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3265, - "end": 3271, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 12 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3273, - "end": 3277, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 18 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3279, - "end": 3286, - "loc": { - "start": { - "line": 80, - "column": 20 - }, - "end": { - "line": 80, - "column": 27 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3288, - "end": 3336, - "loc": { - "start": { - "line": 80, - "column": 29 - }, - "end": { - "line": 82, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3293, - "end": 3332, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 41 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 3300, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 40 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3300, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3301, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 19 - } - }, - "left": { - "type": "NumericLiteral", - "start": 3301, - "end": 3302, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 11 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 3303, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 12 - }, - "end": { - "line": 81, - "column": 19 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "extra": { - "parenthesized": true, - "parenStart": 3300 - } - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3312, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 27 - }, - "identifierName": "pStart" - }, - "name": "pStart" - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 3319, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 3319, - "end": 3326, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 35 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3327, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 36 - }, - "end": { - "line": 81, - "column": 40 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3836, - "end": 3932, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 93, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3836, - "end": 3847, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 91, - "column": 12 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3848, - "end": 3854, - "loc": { - "start": { - "line": 91, - "column": 13 - }, - "end": { - "line": 91, - "column": 19 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3856, - "end": 3860, - "loc": { - "start": { - "line": 91, - "column": 21 - }, - "end": { - "line": 91, - "column": 25 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3862, - "end": 3869, - "loc": { - "start": { - "line": 91, - "column": 27 - }, - "end": { - "line": 91, - "column": 34 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3871, - "end": 3932, - "loc": { - "start": { - "line": 91, - "column": 36 - }, - "end": { - "line": 93, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3876, - "end": 3928, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 54 - } - }, - "argument": { - "type": "CallExpression", - "start": 3883, - "end": 3927, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3883, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 3883, - "end": 3887, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 3888, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 14 - }, - "end": { - "line": 92, - "column": 19 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 3894, - "end": 3926, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 52 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3894, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 3894, - "end": 3898, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "end": { - "line": 92, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 3899, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 29 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3904, - "end": 3910, - "loc": { - "start": { - "line": 92, - "column": 30 - }, - "end": { - "line": 92, - "column": 36 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3912, - "end": 3916, - "loc": { - "start": { - "line": 92, - "column": 38 - }, - "end": { - "line": 92, - "column": 42 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3918, - "end": 3925, - "loc": { - "start": { - "line": 92, - "column": 44 - }, - "end": { - "line": 92, - "column": 51 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4259, - "end": 4338, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 103, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4259, - "end": 4264, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 101, - "column": 6 - }, - "identifierName": "round" - }, - "name": "round", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4265, - "end": 4272, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 4274, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 4274, - "end": 4280, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 22 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "right": { - "type": "NumericLiteral", - "start": 4281, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 23 - }, - "end": { - "line": 101, - "column": 24 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 4284, - "end": 4338, - "loc": { - "start": { - "line": 101, - "column": 26 - }, - "end": { - "line": 103, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 4289, - "end": 4334, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 102, - "column": 47 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4296, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 46 - } - }, - "left": { - "type": "CallExpression", - "start": 4296, - "end": 4324, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4296, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4296, - "end": 4300, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 4301, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 4307, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 4307, - "end": 4313, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 26 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 4316, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 102, - "column": 36 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - } - } - ] - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 4327, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 40 - }, - "end": { - "line": 102, - "column": 46 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4826, - "end": 4936, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 116, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4826, - "end": 4835, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 113, - "column": 10 - }, - "identifierName": "normalize" - }, - "name": "normalize", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4836, - "end": 4840, - "loc": { - "start": { - "line": 113, - "column": 11 - }, - "end": { - "line": 113, - "column": 15 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 4842, - "end": 4846, - "loc": { - "start": { - "line": 113, - "column": 17 - }, - "end": { - "line": 113, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 4848, - "end": 4852, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 4854, - "end": 4936, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 116, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 4859, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 2 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "test": { - "type": "BinaryExpression", - "start": 4863, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 23 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4863, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 10 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4870, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 13 - }, - "end": { - "line": 114, - "column": 17 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 4879, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 22 - }, - "end": { - "line": 114, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 4882, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 25 - }, - "end": { - "line": 114, - "column": 34 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 4889, - "end": 4890, - "loc": { - "start": { - "line": 114, - "column": 32 - }, - "end": { - "line": 114, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 4895, - "end": 4932, - "loc": { - "start": { - "line": 115, - "column": 2 - }, - "end": { - "line": 115, - "column": 39 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4902, - "end": 4931, - "loc": { - "start": { - "line": 115, - "column": 9 - }, - "end": { - "line": 115, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 4903, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 4903, - "end": 4907, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 14 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4910, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 17 - }, - "end": { - "line": 115, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 4902 - } - }, - "operator": "/", - "right": { - "type": "BinaryExpression", - "start": 4919, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 4919, - "end": 4923, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 4926, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 33 - }, - "end": { - "line": 115, - "column": 37 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 4918 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5335, - "end": 5405, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 127, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5335, - "end": 5341, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 125, - "column": 7 - }, - "identifierName": "within" - }, - "name": "within", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5342, - "end": 5346, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 12 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5348, - "end": 5352, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5354, - "end": 5358, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 24 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 5360, - "end": 5405, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 127, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5365, - "end": 5401, - "loc": { - "start": { - "line": 126, - "column": 2 - }, - "end": { - "line": 126, - "column": 38 - } - }, - "argument": { - "type": "LogicalExpression", - "start": 5372, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5372, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 5372, - "end": 5376, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 13 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 5380, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 17 - }, - "end": { - "line": 126, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 5388, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 29 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 5396, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 33 - }, - "end": { - "line": 126, - "column": 37 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5656, - "end": 5770, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 136, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5656, - "end": 5679, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 24 - }, - "identifierName": "formatIntegerWithCommas" - }, - "name": "formatIntegerWithCommas", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 134, - "column": 25 - }, - "end": { - "line": 134, - "column": 29 - }, - "identifierName": "pNum" - }, - "name": "pNum" - } - ], - "body": { - "type": "BlockStatement", - "start": 5686, - "end": 5770, - "loc": { - "start": { - "line": 134, - "column": 31 - }, - "end": { - "line": 136, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5691, - "end": 5766, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 77 - } - }, - "argument": { - "type": "CallExpression", - "start": 5698, - "end": 5765, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 42 - } - }, - "object": { - "type": "CallExpression", - "start": 5698, - "end": 5723, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 32 - } - }, - "object": { - "type": "CallExpression", - "start": 5698, - "end": 5712, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5698, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 5698, - "end": 5702, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 13 - }, - "identifierName": "pNum" - }, - "name": "pNum" - }, - "property": { - "type": "Identifier", - "start": 5703, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 21 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5713, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 24 - }, - "end": { - "line": 135, - "column": 32 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 5724, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 35 - }, - "end": { - "line": 135, - "column": 42 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "RegExpLiteral", - "start": 5732, - "end": 5757, - "loc": { - "start": { - "line": 135, - "column": 43 - }, - "end": { - "line": 135, - "column": 68 - } - }, - "extra": { - "raw": "/(\\d)(?=(\\d{3})+(?!\\d))/g" - }, - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - { - "type": "StringLiteral", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 135, - "column": 70 - }, - "end": { - "line": 135, - "column": 75 - } - }, - "extra": { - "rawValue": "$1,", - "raw": "'$1,'" - }, - "value": "$1," - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5924, - "end": 5994, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 145, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5924, - "end": 5940, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 143, - "column": 17 - }, - "identifierName": "degreesToRadians" - }, - "name": "degreesToRadians", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5941, - "end": 5949, - "loc": { - "start": { - "line": 143, - "column": 18 - }, - "end": { - "line": 143, - "column": 26 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - } - ], - "body": { - "type": "BlockStatement", - "start": 5951, - "end": 5994, - "loc": { - "start": { - "line": 143, - "column": 28 - }, - "end": { - "line": 145, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 5956, - "end": 5990, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 144, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 5963, - "end": 5989, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 5963, - "end": 5971, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 17 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 5975, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 34 - } - }, - "left": { - "type": "MemberExpression", - "start": 5975, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 5975, - "end": 5979, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 25 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 5980, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 28 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 5985, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 31 - }, - "end": { - "line": 144, - "column": 34 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "extra": { - "parenthesized": true, - "parenStart": 5974 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6148, - "end": 6218, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 154, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6148, - "end": 6164, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 152, - "column": 17 - }, - "identifierName": "radiansToDegrees" - }, - "name": "radiansToDegrees", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6165, - "end": 6173, - "loc": { - "start": { - "line": 152, - "column": 18 - }, - "end": { - "line": 152, - "column": 26 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - } - ], - "body": { - "type": "BlockStatement", - "start": 6175, - "end": 6218, - "loc": { - "start": { - "line": 152, - "column": 28 - }, - "end": { - "line": 154, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 6180, - "end": 6214, - "loc": { - "start": { - "line": 153, - "column": 2 - }, - "end": { - "line": 153, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 6187, - "end": 6213, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 6187, - "end": 6195, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 17 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 6199, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 34 - } - }, - "left": { - "type": "NumericLiteral", - "start": 6199, - "end": 6202, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 24 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 6205, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 6205, - "end": 6209, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6210, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 34 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 6198 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6388, - "end": 6503, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 164, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6388, - "end": 6392, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 161, - "column": 5 - }, - "identifierName": "pick" - }, - "name": "pick", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6393, - "end": 6399, - "loc": { - "start": { - "line": 161, - "column": 6 - }, - "end": { - "line": 161, - "column": 12 - }, - "identifierName": "pArray" - }, - "name": "pArray" - } - ], - "body": { - "type": "BlockStatement", - "start": 6401, - "end": 6503, - "loc": { - "start": { - "line": 161, - "column": 14 - }, - "end": { - "line": 164, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 6406, - "end": 6468, - "loc": { - "start": { - "line": 162, - "column": 2 - }, - "end": { - "line": 162, - "column": 64 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6412, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 6412, - "end": 6423, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 19 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "init": { - "type": "CallExpression", - "start": 6426, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6426, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 6426, - "end": 6430, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 26 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6431, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 32 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 6437, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 6437, - "end": 6450, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6437, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 37 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 6442, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 38 - }, - "end": { - "line": 162, - "column": 44 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 6453, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 6453, - "end": 6459, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 55 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 6460, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 56 - }, - "end": { - "line": 162, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 6472, - "end": 6499, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 163, - "column": 29 - } - }, - "argument": { - "type": "MemberExpression", - "start": 6479, - "end": 6498, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 6479, - "end": 6485, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 15 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 6486, - "end": 6497, - "loc": { - "start": { - "line": 163, - "column": 16 - }, - "end": { - "line": 163, - "column": 27 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "computed": true - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6757, - "end": 7069, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 181, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6757, - "end": 6773, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 171, - "column": 17 - }, - "identifierName": "removeProperties" - }, - "name": "removeProperties", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6774, - "end": 6781, - "loc": { - "start": { - "line": 171, - "column": 18 - }, - "end": { - "line": 171, - "column": 25 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - { - "type": "Identifier", - "start": 6783, - "end": 6791, - "loc": { - "start": { - "line": 171, - "column": 27 - }, - "end": { - "line": 171, - "column": 35 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "body": { - "type": "BlockStatement", - "start": 6793, - "end": 7069, - "loc": { - "start": { - "line": 171, - "column": 37 - }, - "end": { - "line": 181, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6798, - "end": 7064, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 6802, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 6802, - "end": 6817, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 6809, - "end": 6816, - "loc": { - "start": { - "line": 172, - "column": 13 - }, - "end": { - "line": 172, - "column": 20 - }, - "identifierName": "pObject" - }, - "name": "pObject", - "extra": { - "parenthesized": true, - "parenStart": 6808 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 6822, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 26 - }, - "end": { - "line": 172, - "column": 34 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 6832, - "end": 7064, - "loc": { - "start": { - "line": 172, - "column": 36 - }, - "end": { - "line": 180, - "column": 3 - } - }, - "body": [ - { - "type": "ForInStatement", - "start": 6838, - "end": 7059, - "loc": { - "start": { - "line": 173, - "column": 3 - }, - "end": { - "line": 179, - "column": 4 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 6843, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "Identifier", - "start": 6857, - "end": 6864, - "loc": { - "start": { - "line": 173, - "column": 22 - }, - "end": { - "line": 173, - "column": 29 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "body": { - "type": "BlockStatement", - "start": 6866, - "end": 7059, - "loc": { - "start": { - "line": 173, - "column": 31 - }, - "end": { - "line": 179, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 6912, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 69 - } - }, - "test": { - "type": "LogicalExpression", - "start": 6916, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 6916, - "end": 6939, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6916, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 6916, - "end": 6921, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 13 - }, - "identifierName": "Array" - }, - "name": "Array", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 6922, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 21 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 6930, - "end": 6938, - "loc": { - "start": { - "line": 175, - "column": 22 - }, - "end": { - "line": 175, - "column": 30 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 6943, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6943, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 6943, - "end": 6951, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 43 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - }, - "property": { - "type": "Identifier", - "start": 6952, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 44 - }, - "end": { - "line": 175, - "column": 52 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 6961, - "end": 6965, - "loc": { - "start": { - "line": 175, - "column": 53 - }, - "end": { - "line": 175, - "column": 57 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "leadingComments": null - }, - "consequent": { - "type": "ContinueStatement", - "start": 6968, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 60 - }, - "end": { - "line": 175, - "column": 69 - } - }, - "label": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 6873, - "end": 6906, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 37 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 6983, - "end": 7053, - "loc": { - "start": { - "line": 176, - "column": 4 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "test": { - "type": "CallExpression", - "start": 6987, - "end": 7015, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6987, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 6987, - "end": 6994, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 15 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 6995, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 16 - }, - "end": { - "line": 176, - "column": 30 - }, - "identifierName": "hasOwnProperty" - }, - "name": "hasOwnProperty" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 7010, - "end": 7014, - "loc": { - "start": { - "line": 176, - "column": 31 - }, - "end": { - "line": 176, - "column": 35 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 7017, - "end": 7053, - "loc": { - "start": { - "line": 176, - "column": 38 - }, - "end": { - "line": 178, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7025, - "end": 7046, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 26 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 7025, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 25 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 7032, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 7032, - "end": 7039, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 19 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 7040, - "end": 7044, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 24 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7394, - "end": 7602, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 198, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7394, - "end": 7398, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 189, - "column": 5 - }, - "identifierName": "prob" - }, - "name": "prob", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7399, - "end": 7406, - "loc": { - "start": { - "line": 189, - "column": 6 - }, - "end": { - "line": 189, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - ], - "body": { - "type": "BlockStatement", - "start": 7408, - "end": 7602, - "loc": { - "start": { - "line": 189, - "column": 15 - }, - "end": { - "line": 198, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7413, - "end": 7455, - "loc": { - "start": { - "line": 190, - "column": 2 - }, - "end": { - "line": 192, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7417, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 7417, - "end": 7424, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 7428, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 17 - }, - "end": { - "line": 190, - "column": 18 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7431, - "end": 7455, - "loc": { - "start": { - "line": 190, - "column": 20 - }, - "end": { - "line": 192, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7437, - "end": 7450, - "loc": { - "start": { - "line": 191, - "column": 3 - }, - "end": { - "line": 191, - "column": 16 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 7444, - "end": 7449, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 15 - } - }, - "value": false - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 7459, - "end": 7502, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 195, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7463, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 20 - } - }, - "left": { - "type": "Identifier", - "start": 7463, - "end": 7470, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 7474, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 17 - }, - "end": { - "line": 193, - "column": 20 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7479, - "end": 7502, - "loc": { - "start": { - "line": 193, - "column": 22 - }, - "end": { - "line": 195, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7485, - "end": 7497, - "loc": { - "start": { - "line": 194, - "column": 3 - }, - "end": { - "line": 194, - "column": 15 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 7492, - "end": 7496, - "loc": { - "start": { - "line": 194, - "column": 10 - }, - "end": { - "line": 194, - "column": 14 - } - }, - "value": true - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 7506, - "end": 7563, - "loc": { - "start": { - "line": 196, - "column": 2 - }, - "end": { - "line": 196, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7512, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 7512, - "end": 7524, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 20 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "init": { - "type": "BinaryExpression", - "start": 7527, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 7527, - "end": 7558, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7527, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 7527, - "end": 7531, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7532, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 28 - }, - "end": { - "line": 196, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7538, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 53 - } - }, - "left": { - "type": "CallExpression", - "start": 7538, - "end": 7551, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7538, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 7538, - "end": 7542, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7543, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 39 - }, - "end": { - "line": 196, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 7554, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 50 - }, - "end": { - "line": 196, - "column": 53 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 7561, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 57 - }, - "end": { - "line": 196, - "column": 58 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 7567, - "end": 7598, - "loc": { - "start": { - "line": 197, - "column": 2 - }, - "end": { - "line": 197, - "column": 33 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 7574, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 7574, - "end": 7586, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 21 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 7590, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 25 - }, - "end": { - "line": 197, - "column": 32 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7789, - "end": 8254, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 226, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7789, - "end": 7802, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 205, - "column": 14 - }, - "identifierName": "getInverseDir" - }, - "name": "getInverseDir", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7803, - "end": 7807, - "loc": { - "start": { - "line": 205, - "column": 15 - }, - "end": { - "line": 205, - "column": 19 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "body": { - "type": "BlockStatement", - "start": 7809, - "end": 8254, - "loc": { - "start": { - "line": 205, - "column": 21 - }, - "end": { - "line": 226, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 7814, - "end": 8250, - "loc": { - "start": { - "line": 206, - "column": 2 - }, - "end": { - "line": 225, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 7822, - "end": 7826, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 14 - }, - "identifierName": "pDir" - }, - "name": "pDir" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 7834, - "end": 7868, - "loc": { - "start": { - "line": 207, - "column": 3 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7853, - "end": 7868, - "loc": { - "start": { - "line": 208, - "column": 4 - }, - "end": { - "line": 208, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7860, - "end": 7867, - "loc": { - "start": { - "line": 208, - "column": 11 - }, - "end": { - "line": 208, - "column": 18 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7839, - "end": 7846, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 7873, - "end": 7907, - "loc": { - "start": { - "line": 209, - "column": 3 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7892, - "end": 7907, - "loc": { - "start": { - "line": 210, - "column": 4 - }, - "end": { - "line": 210, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7899, - "end": 7906, - "loc": { - "start": { - "line": 210, - "column": 11 - }, - "end": { - "line": 210, - "column": 18 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7878, - "end": 7885, - "loc": { - "start": { - "line": 209, - "column": 8 - }, - "end": { - "line": 209, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 7912, - "end": 7944, - "loc": { - "start": { - "line": 211, - "column": 3 - }, - "end": { - "line": 212, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7930, - "end": 7944, - "loc": { - "start": { - "line": 212, - "column": 4 - }, - "end": { - "line": 212, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7937, - "end": 7943, - "loc": { - "start": { - "line": 212, - "column": 11 - }, - "end": { - "line": 212, - "column": 17 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7917, - "end": 7923, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 7949, - "end": 7981, - "loc": { - "start": { - "line": 213, - "column": 3 - }, - "end": { - "line": 214, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 7967, - "end": 7981, - "loc": { - "start": { - "line": 214, - "column": 4 - }, - "end": { - "line": 214, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 7974, - "end": 7980, - "loc": { - "start": { - "line": 214, - "column": 11 - }, - "end": { - "line": 214, - "column": 17 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7954, - "end": 7960, - "loc": { - "start": { - "line": 213, - "column": 8 - }, - "end": { - "line": 213, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 7986, - "end": 8028, - "loc": { - "start": { - "line": 215, - "column": 3 - }, - "end": { - "line": 216, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8009, - "end": 8028, - "loc": { - "start": { - "line": 216, - "column": 4 - }, - "end": { - "line": 216, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8016, - "end": 8027, - "loc": { - "start": { - "line": 216, - "column": 11 - }, - "end": { - "line": 216, - "column": 22 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 7991, - "end": 8002, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 8033, - "end": 8075, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8056, - "end": 8075, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8063, - "end": 8074, - "loc": { - "start": { - "line": 218, - "column": 11 - }, - "end": { - "line": 218, - "column": 22 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8038, - "end": 8049, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 8080, - "end": 8122, - "loc": { - "start": { - "line": 219, - "column": 3 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8103, - "end": 8122, - "loc": { - "start": { - "line": 220, - "column": 4 - }, - "end": { - "line": 220, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8110, - "end": 8121, - "loc": { - "start": { - "line": 220, - "column": 11 - }, - "end": { - "line": 220, - "column": 22 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8085, - "end": 8096, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 8127, - "end": 8169, - "loc": { - "start": { - "line": 221, - "column": 3 - }, - "end": { - "line": 222, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8150, - "end": 8169, - "loc": { - "start": { - "line": 222, - "column": 4 - }, - "end": { - "line": 222, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8157, - "end": 8168, - "loc": { - "start": { - "line": 222, - "column": 11 - }, - "end": { - "line": 222, - "column": 22 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8132, - "end": 8143, - "loc": { - "start": { - "line": 221, - "column": 8 - }, - "end": { - "line": 221, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 8174, - "end": 8245, - "loc": { - "start": { - "line": 223, - "column": 3 - }, - "end": { - "line": 224, - "column": 61 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 8188, - "end": 8245, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 61 - } - }, - "expression": { - "type": "CallExpression", - "start": 8188, - "end": 8244, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 60 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8188, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 8188, - "end": 8195, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 8196, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 12 - }, - "end": { - "line": 224, - "column": 17 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 8202, - "end": 8243, - "loc": { - "start": { - "line": 224, - "column": 18 - }, - "end": { - "line": 224, - "column": 59 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 8219, - "end": 8223, - "loc": { - "start": { - "line": 224, - "column": 35 - }, - "end": { - "line": 224, - "column": 39 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 8203, - "end": 8217, - "loc": { - "start": { - "line": 224, - "column": 19 - }, - "end": { - "line": 224, - "column": 33 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 8224, - "end": 8242, - "loc": { - "start": { - "line": 224, - "column": 40 - }, - "end": { - "line": 224, - "column": 58 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8565, - "end": 9074, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 255, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8565, - "end": 8580, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 234, - "column": 16 - }, - "identifierName": "getAngleFromDir" - }, - "name": "getAngleFromDir", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 234, - "column": 17 - }, - "end": { - "line": 234, - "column": 21 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "body": { - "type": "BlockStatement", - "start": 8587, - "end": 9074, - "loc": { - "start": { - "line": 234, - "column": 23 - }, - "end": { - "line": 255, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 8592, - "end": 9070, - "loc": { - "start": { - "line": 235, - "column": 2 - }, - "end": { - "line": 254, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 8600, - "end": 8604, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 14 - }, - "identifierName": "pDir" - }, - "name": "pDir" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 8612, - "end": 8652, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 237, - "column": 25 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8631, - "end": 8652, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 25 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8639, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8639, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8639, - "end": 8643, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8644, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 17 - }, - "end": { - "line": 237, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8649, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 22 - }, - "end": { - "line": 237, - "column": 23 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 8638 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8617, - "end": 8624, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 8657, - "end": 8701, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 239, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8676, - "end": 8701, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8683, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8684, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8684, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8684, - "end": 8688, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8689, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 239, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8694, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 22 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 8683 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8699, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 27 - }, - "end": { - "line": 239, - "column": 28 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8662, - "end": 8669, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 8706, - "end": 8745, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 241, - "column": 25 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8724, - "end": 8745, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 25 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8732, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8732, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8732, - "end": 8736, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8737, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 17 - }, - "end": { - "line": 241, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8742, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 22 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 8731 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8711, - "end": 8717, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 8750, - "end": 8783, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 243, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8768, - "end": 8783, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 19 - } - }, - "argument": { - "type": "MemberExpression", - "start": 8775, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 8775, - "end": 8779, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8780, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 16 - }, - "end": { - "line": 243, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8755, - "end": 8761, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 8788, - "end": 8836, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8811, - "end": 8836, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8818, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8819, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8819, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8819, - "end": 8823, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8824, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 17 - }, - "end": { - "line": 245, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8829, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 8818 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8834, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 27 - }, - "end": { - "line": 245, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8793, - "end": 8804, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 8841, - "end": 8883, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 247, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8864, - "end": 8883, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 23 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8871, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "left": { - "type": "MemberExpression", - "start": 8871, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 8871, - "end": 8875, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8876, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8881, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 21 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8846, - "end": 8857, - "loc": { - "start": { - "line": 246, - "column": 8 - }, - "end": { - "line": 246, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 8888, - "end": 8936, - "loc": { - "start": { - "line": 248, - "column": 3 - }, - "end": { - "line": 249, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8911, - "end": 8936, - "loc": { - "start": { - "line": 249, - "column": 4 - }, - "end": { - "line": 249, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8918, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 11 - }, - "end": { - "line": 249, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8919, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8919, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8919, - "end": 8923, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8924, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8929, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 22 - }, - "end": { - "line": 249, - "column": 23 - } - }, - "extra": { - "rawValue": 5, - "raw": "5" - }, - "value": 5 - }, - "extra": { - "parenthesized": true, - "parenStart": 8918 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8934, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 27 - }, - "end": { - "line": 249, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8893, - "end": 8904, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 8941, - "end": 8989, - "loc": { - "start": { - "line": 250, - "column": 3 - }, - "end": { - "line": 251, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8964, - "end": 8989, - "loc": { - "start": { - "line": 251, - "column": 4 - }, - "end": { - "line": 251, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8971, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 11 - }, - "end": { - "line": 251, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 8972, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 8972, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 8972, - "end": 8976, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8977, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 17 - }, - "end": { - "line": 251, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8982, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 22 - }, - "end": { - "line": 251, - "column": 23 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - }, - "extra": { - "parenthesized": true, - "parenStart": 8971 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 8987, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 27 - }, - "end": { - "line": 251, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8946, - "end": 8957, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 8994, - "end": 9065, - "loc": { - "start": { - "line": 252, - "column": 3 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 9008, - "end": 9065, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 61 - } - }, - "expression": { - "type": "CallExpression", - "start": 9008, - "end": 9064, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 60 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9008, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 9008, - "end": 9015, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 11 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 9016, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 17 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 9022, - "end": 9063, - "loc": { - "start": { - "line": 253, - "column": 18 - }, - "end": { - "line": 253, - "column": 59 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 9039, - "end": 9043, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 39 - }, - "identifierName": "pDir" - }, - "name": "pDir" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 9023, - "end": 9037, - "loc": { - "start": { - "line": 253, - "column": 19 - }, - "end": { - "line": 253, - "column": 33 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 9044, - "end": 9062, - "loc": { - "start": { - "line": 253, - "column": 40 - }, - "end": { - "line": 253, - "column": 58 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9213, - "end": 9638, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 277, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9213, - "end": 9223, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 262, - "column": 11 - }, - "identifierName": "generateID" - }, - "name": "generateID", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 9224, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 9224, - "end": 9233, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 21 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - }, - "right": { - "type": "NumericLiteral", - "start": 9236, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 24 - }, - "end": { - "line": 262, - "column": 25 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 9239, - "end": 9638, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 277, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9244, - "end": 9323, - "loc": { - "start": { - "line": 263, - "column": 2 - }, - "end": { - "line": 263, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9250, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 9250, - "end": 9255, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 9258, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 16 - }, - "end": { - "line": 263, - "column": 80 - } - }, - "extra": { - "rawValue": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "raw": "'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'" - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9327, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 2 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9333, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 9333, - "end": 9339, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "init": { - "type": "FunctionExpression", - "start": 9342, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 17 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 9353, - "end": 9506, - "loc": { - "start": { - "line": 264, - "column": 28 - }, - "end": { - "line": 270, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 9359, - "end": 9371, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 265, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9363, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 9363, - "end": 9365, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 9 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "StringLiteral", - "start": 9368, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 12 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 9376, - "end": 9486, - "loc": { - "start": { - "line": 266, - "column": 3 - }, - "end": { - "line": 268, - "column": 4 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 9381, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 8 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9385, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 9385, - "end": 9386, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 13 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 9389, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 9392, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 9392, - "end": 9393, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 20 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 9396, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 32 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - } - }, - "update": { - "type": "UpdateExpression", - "start": 9407, - "end": 9410, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 37 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 9407, - "end": 9408, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 35 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 9412, - "end": 9486, - "loc": { - "start": { - "line": 266, - "column": 39 - }, - "end": { - "line": 268, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9419, - "end": 9480, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 65 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9419, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 64 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 9419, - "end": 9421, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 6 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 9425, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 64 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9425, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 9425, - "end": 9430, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 15 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 9431, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 16 - }, - "end": { - "line": 267, - "column": 22 - }, - "identifierName": "charAt" - }, - "name": "charAt" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 9438, - "end": 9478, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9438, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 9438, - "end": 9442, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9443, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 28 - }, - "end": { - "line": 267, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 9449, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 9449, - "end": 9462, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9449, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 9449, - "end": 9453, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9454, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 39 - }, - "end": { - "line": 267, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 9465, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 9465, - "end": 9470, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 55 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 9471, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 56 - }, - "end": { - "line": 267, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - ] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 9491, - "end": 9501, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 269, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 9498, - "end": 9500, - "loc": { - "start": { - "line": 269, - "column": 10 - }, - "end": { - "line": 269, - "column": 12 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 9510, - "end": 9528, - "loc": { - "start": { - "line": 271, - "column": 2 - }, - "end": { - "line": 271, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 9514, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 9514, - "end": 9516, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 8 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "CallExpression", - "start": 9519, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 9519, - "end": 9525, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 17 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "WhileStatement", - "start": 9532, - "end": 9592, - "loc": { - "start": { - "line": 272, - "column": 2 - }, - "end": { - "line": 274, - "column": 3 - } - }, - "test": { - "type": "CallExpression", - "start": 9538, - "end": 9565, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 35 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9538, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 9538, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 9538, - "end": 9542, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 9543, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 13 - }, - "end": { - "line": 272, - "column": 22 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9553, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 23 - }, - "end": { - "line": 272, - "column": 31 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9562, - "end": 9564, - "loc": { - "start": { - "line": 272, - "column": 32 - }, - "end": { - "line": 272, - "column": 34 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - }, - "body": { - "type": "BlockStatement", - "start": 9567, - "end": 9592, - "loc": { - "start": { - "line": 272, - "column": 37 - }, - "end": { - "line": 274, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9573, - "end": 9587, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 9573, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 9573, - "end": 9575, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 5 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 9578, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 9578, - "end": 9584, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 9596, - "end": 9620, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 9596, - "end": 9619, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9596, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 21 - } - }, - "object": { - "type": "MemberExpression", - "start": 9596, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 9596, - "end": 9600, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 9601, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 7 - }, - "end": { - "line": 275, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9611, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 17 - }, - "end": { - "line": 275, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 9616, - "end": 9618, - "loc": { - "start": { - "line": 275, - "column": 22 - }, - "end": { - "line": 275, - "column": 24 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 9624, - "end": 9634, - "loc": { - "start": { - "line": 276, - "column": 2 - }, - "end": { - "line": 276, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 9631, - "end": 9633, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 11 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9897, - "end": 10030, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 287, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9897, - "end": 9909, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 285, - "column": 13 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 9910, - "end": 9918, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 22 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - { - "type": "AssignmentPattern", - "start": 9920, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 9920, - "end": 9926, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 30 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "right": { - "type": "NumericLiteral", - "start": 9929, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 285, - "column": 34 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 9932, - "end": 10030, - "loc": { - "start": { - "line": 285, - "column": 36 - }, - "end": { - "line": 287, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 9937, - "end": 10026, - "loc": { - "start": { - "line": 286, - "column": 2 - }, - "end": { - "line": 286, - "column": 91 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9944, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 90 - } - }, - "left": { - "type": "StringLiteral", - "start": 9944, - "end": 9947, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 12 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 9950, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 9950, - "end": 10011, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 9950, - "end": 9996, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9950, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 57 - } - }, - "object": { - "type": "BinaryExpression", - "start": 9951, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 47 - } - }, - "left": { - "type": "Identifier", - "start": 9951, - "end": 9959, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 24 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 9962, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9962, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 9962, - "end": 9966, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9967, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 32 - }, - "end": { - "line": 286, - "column": 35 - }, - "identifierName": "pow" - }, - "name": "pow" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9971, - "end": 9973, - "loc": { - "start": { - "line": 286, - "column": 36 - }, - "end": { - "line": 286, - "column": 38 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - }, - { - "type": "Identifier", - "start": 9975, - "end": 9981, - "loc": { - "start": { - "line": 286, - "column": 40 - }, - "end": { - "line": 286, - "column": 46 - }, - "identifierName": "pChars" - }, - "name": "pChars" - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 9950 - } - }, - "property": { - "type": "Identifier", - "start": 9984, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 49 - }, - "end": { - "line": 286, - "column": 57 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 9993, - "end": 9995, - "loc": { - "start": { - "line": 286, - "column": 58 - }, - "end": { - "line": 286, - "column": 60 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 9997, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 62 - }, - "end": { - "line": 286, - "column": 67 - }, - "identifierName": "slice" - }, - "name": "slice" - }, - "computed": false - }, - "arguments": [ - { - "type": "UnaryExpression", - "start": 10003, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 68 - }, - "end": { - "line": 286, - "column": 75 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 10004, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 69 - }, - "end": { - "line": 286, - "column": 75 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "extra": { - "parenthesizedArgument": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 10012, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 77 - }, - "end": { - "line": 286, - "column": 88 - }, - "identifierName": "toUpperCase" - }, - "name": "toUpperCase" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 10288, - "end": 10838, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 308, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 10288, - "end": 10300, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 295, - "column": 13 - }, - "identifierName": "addIntensity" - }, - "name": "addIntensity", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 10301, - "end": 10307, - "loc": { - "start": { - "line": 295, - "column": 14 - }, - "end": { - "line": 295, - "column": 20 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - { - "type": "Identifier", - "start": 10309, - "end": 10317, - "loc": { - "start": { - "line": 295, - "column": 22 - }, - "end": { - "line": 295, - "column": 30 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - } - ], - "body": { - "type": "BlockStatement", - "start": 10319, - "end": 10838, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 308, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 10324, - "end": 10368, - "loc": { - "start": { - "line": 296, - "column": 2 - }, - "end": { - "line": 296, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10330, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 10330, - "end": 10333, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 11 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": { - "type": "MemberExpression", - "start": 10336, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 45 - } - }, - "object": { - "type": "CallExpression", - "start": 10336, - "end": 10358, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10336, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 28 - } - }, - "object": { - "type": "ThisExpression", - "start": 10336, - "end": 10340, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 10341, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 19 - }, - "end": { - "line": 296, - "column": 28 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10351, - "end": 10357, - "loc": { - "start": { - "line": 296, - "column": 29 - }, - "end": { - "line": 296, - "column": 35 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 10359, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 37 - }, - "end": { - "line": 296, - "column": 45 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10372, - "end": 10389, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 297, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10378, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10378, - "end": 10379, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "MemberExpression", - "start": 10382, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10382, - "end": 10385, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10386, - "end": 10387, - "loc": { - "start": { - "line": 297, - "column": 16 - }, - "end": { - "line": 297, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10393, - "end": 10410, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 298, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10399, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10399, - "end": 10400, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "MemberExpression", - "start": 10403, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10403, - "end": 10406, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10407, - "end": 10408, - "loc": { - "start": { - "line": 298, - "column": 16 - }, - "end": { - "line": 298, - "column": 17 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10414, - "end": 10431, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 299, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10420, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 10420, - "end": 10421, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "MemberExpression", - "start": 10424, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10424, - "end": 10427, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 10428, - "end": 10429, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 17 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 10435, - "end": 10446, - "loc": { - "start": { - "line": 300, - "column": 2 - }, - "end": { - "line": 300, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10439, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10439, - "end": 10441, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 8 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "init": { - "type": "NumericLiteral", - "start": 10444, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 11 - }, - "end": { - "line": 300, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10450, - "end": 10461, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10454, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10454, - "end": 10456, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 8 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "init": { - "type": "NumericLiteral", - "start": 10459, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 11 - }, - "end": { - "line": 301, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10465, - "end": 10476, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10469, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 10469, - "end": 10471, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 8 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "init": { - "type": "NumericLiteral", - "start": 10474, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 11 - }, - "end": { - "line": 302, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 10480, - "end": 10541, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 63 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 10486, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "id": { - "type": "Identifier", - "start": 10486, - "end": 10491, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 13 - }, - "identifierName": "black" - }, - "name": "black" - }, - "init": { - "type": "ConditionalExpression", - "start": 10494, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 16 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10495, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "left": { - "type": "LogicalExpression", - "start": 10495, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10495, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 10495, - "end": 10496, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 18 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10501, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10506, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 10506, - "end": 10507, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 29 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10512, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 34 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 10517, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 10517, - "end": 10518, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 10523, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 45 - }, - "end": { - "line": 303, - "column": 46 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 10494 - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 10528, - "end": 10532, - "loc": { - "start": { - "line": 303, - "column": 50 - }, - "end": { - "line": 303, - "column": 54 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 10535, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 57 - }, - "end": { - "line": 303, - "column": 62 - } - }, - "value": false - } - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 10545, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 2 - }, - "end": { - "line": 304, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10549, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10549, - "end": 10550, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 7 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10554, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 11 - }, - "end": { - "line": 304, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10561, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10561, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10561, - "end": 10563, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 20 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "right": { - "type": "BinaryExpression", - "start": 10566, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10566, - "end": 10567, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 24 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10570, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10570, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10570, - "end": 10574, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10575, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 32 - }, - "end": { - "line": 304, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10581, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 38 - }, - "end": { - "line": 304, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10582, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10582, - "end": 10585, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10588, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 45 - }, - "end": { - "line": 304, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10581 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10600, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 57 - }, - "end": { - "line": 304, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 10609, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 2 - }, - "end": { - "line": 305, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10613, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10613, - "end": 10614, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 7 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10618, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 11 - }, - "end": { - "line": 305, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10625, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10625, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10625, - "end": 10627, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 20 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "right": { - "type": "BinaryExpression", - "start": 10630, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10630, - "end": 10631, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 24 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10634, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10634, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10634, - "end": 10638, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10639, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 32 - }, - "end": { - "line": 305, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10645, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 38 - }, - "end": { - "line": 305, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10646, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10646, - "end": 10649, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10652, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 45 - }, - "end": { - "line": 305, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10645 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10664, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 57 - }, - "end": { - "line": 305, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 10673, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 2 - }, - "end": { - "line": 306, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 10677, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 10677, - "end": 10678, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 7 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 10682, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 11 - }, - "end": { - "line": 306, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 10689, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 10689, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 10689, - "end": 10691, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 20 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "right": { - "type": "BinaryExpression", - "start": 10694, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 10694, - "end": 10695, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 24 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 10698, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10698, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 10698, - "end": 10702, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10703, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 32 - }, - "end": { - "line": 306, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 10709, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 38 - }, - "end": { - "line": 306, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10710, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 10710, - "end": 10713, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 10716, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 45 - }, - "end": { - "line": 306, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 10709 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10728, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 57 - }, - "end": { - "line": 306, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 10737, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 307, - "column": 99 - } - }, - "argument": { - "type": "MemberExpression", - "start": 10744, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 99 - } - }, - "object": { - "type": "CallExpression", - "start": 10744, - "end": 10830, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10744, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 10744, - "end": 10748, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 10749, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 23 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 10759, - "end": 10781, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10759, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 10759, - "end": 10763, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 10764, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 29 - }, - "end": { - "line": 307, - "column": 34 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10770, - "end": 10772, - "loc": { - "start": { - "line": 307, - "column": 35 - }, - "end": { - "line": 307, - "column": 37 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - { - "type": "NumericLiteral", - "start": 10774, - "end": 10775, - "loc": { - "start": { - "line": 307, - "column": 39 - }, - "end": { - "line": 307, - "column": 40 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10777, - "end": 10780, - "loc": { - "start": { - "line": 307, - "column": 42 - }, - "end": { - "line": 307, - "column": 45 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 10783, - "end": 10805, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 70 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10783, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 10783, - "end": 10787, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 52 - } - } - }, - "property": { - "type": "Identifier", - "start": 10788, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 53 - }, - "end": { - "line": 307, - "column": 58 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10794, - "end": 10796, - "loc": { - "start": { - "line": 307, - "column": 59 - }, - "end": { - "line": 307, - "column": 61 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - { - "type": "NumericLiteral", - "start": 10798, - "end": 10799, - "loc": { - "start": { - "line": 307, - "column": 63 - }, - "end": { - "line": 307, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10801, - "end": 10804, - "loc": { - "start": { - "line": 307, - "column": 66 - }, - "end": { - "line": 307, - "column": 69 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 10807, - "end": 10829, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10807, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 82 - } - }, - "object": { - "type": "ThisExpression", - "start": 10807, - "end": 10811, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 76 - } - } - }, - "property": { - "type": "Identifier", - "start": 10812, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 77 - }, - "end": { - "line": 307, - "column": 82 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 10818, - "end": 10820, - "loc": { - "start": { - "line": 307, - "column": 83 - }, - "end": { - "line": 307, - "column": 85 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - { - "type": "NumericLiteral", - "start": 10822, - "end": 10823, - "loc": { - "start": { - "line": 307, - "column": 87 - }, - "end": { - "line": 307, - "column": 88 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 10825, - "end": 10828, - "loc": { - "start": { - "line": 307, - "column": 90 - }, - "end": { - "line": 307, - "column": 93 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 10831, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 96 - }, - "end": { - "line": 307, - "column": 99 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11152, - "end": 11460, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 325, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11152, - "end": 11160, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 316, - "column": 9 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11161, - "end": 11163, - "loc": { - "start": { - "line": 316, - "column": 10 - }, - "end": { - "line": 316, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 11165, - "end": 11167, - "loc": { - "start": { - "line": 316, - "column": 14 - }, - "end": { - "line": 316, - "column": 16 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 11169, - "end": 11171, - "loc": { - "start": { - "line": 316, - "column": 18 - }, - "end": { - "line": 316, - "column": 20 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 11173, - "end": 11460, - "loc": { - "start": { - "line": 316, - "column": 22 - }, - "end": { - "line": 325, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 11178, - "end": 11211, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 317, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11184, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11184, - "end": 11185, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 11188, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11188, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11188, - "end": 11192, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11193, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 17 - }, - "end": { - "line": 317, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11199, - "end": 11201, - "loc": { - "start": { - "line": 317, - "column": 23 - }, - "end": { - "line": 317, - "column": 25 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "NumericLiteral", - "start": 11203, - "end": 11204, - "loc": { - "start": { - "line": 317, - "column": 27 - }, - "end": { - "line": 317, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11206, - "end": 11209, - "loc": { - "start": { - "line": 317, - "column": 30 - }, - "end": { - "line": 317, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11215, - "end": 11248, - "loc": { - "start": { - "line": 318, - "column": 2 - }, - "end": { - "line": 318, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11221, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11221, - "end": 11222, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 11225, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11225, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11225, - "end": 11229, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11230, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 17 - }, - "end": { - "line": 318, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11236, - "end": 11238, - "loc": { - "start": { - "line": 318, - "column": 23 - }, - "end": { - "line": 318, - "column": 25 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "NumericLiteral", - "start": 11240, - "end": 11241, - "loc": { - "start": { - "line": 318, - "column": 27 - }, - "end": { - "line": 318, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11243, - "end": 11246, - "loc": { - "start": { - "line": 318, - "column": 30 - }, - "end": { - "line": 318, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11252, - "end": 11285, - "loc": { - "start": { - "line": 319, - "column": 2 - }, - "end": { - "line": 319, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11258, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 11258, - "end": 11259, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 11262, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11262, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11262, - "end": 11266, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11267, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 17 - }, - "end": { - "line": 319, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11273, - "end": 11275, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 25 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - { - "type": "NumericLiteral", - "start": 11277, - "end": 11278, - "loc": { - "start": { - "line": 319, - "column": 27 - }, - "end": { - "line": 319, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11280, - "end": 11283, - "loc": { - "start": { - "line": 319, - "column": 30 - }, - "end": { - "line": 319, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11289, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11295, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 11295, - "end": 11306, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 19 - }, - "identifierName": "craftString" - }, - "name": "craftString" - }, - "init": { - "type": "FunctionExpression", - "start": 11309, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 22 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11318, - "end": 11324, - "loc": { - "start": { - "line": 320, - "column": 31 - }, - "end": { - "line": 320, - "column": 37 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ], - "body": { - "type": "BlockStatement", - "start": 11326, - "end": 11381, - "loc": { - "start": { - "line": 320, - "column": 39 - }, - "end": { - "line": 322, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 11332, - "end": 11376, - "loc": { - "start": { - "line": 321, - "column": 3 - }, - "end": { - "line": 321, - "column": 47 - } - }, - "argument": { - "type": "CallExpression", - "start": 11339, - "end": 11375, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11339, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 38 - } - }, - "object": { - "type": "CallExpression", - "start": 11339, - "end": 11358, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11339, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 11339, - "end": 11345, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 16 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - "property": { - "type": "Identifier", - "start": 11346, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 17 - }, - "end": { - "line": 321, - "column": 25 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 11355, - "end": 11357, - "loc": { - "start": { - "line": 321, - "column": 26 - }, - "end": { - "line": 321, - "column": 28 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 11359, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 30 - }, - "end": { - "line": 321, - "column": 38 - }, - "identifierName": "padStart" - }, - "name": "padStart" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 11368, - "end": 11369, - "loc": { - "start": { - "line": 321, - "column": 39 - }, - "end": { - "line": 321, - "column": 40 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - { - "type": "StringLiteral", - "start": 11371, - "end": 11374, - "loc": { - "start": { - "line": 321, - "column": 42 - }, - "end": { - "line": 321, - "column": 45 - } - }, - "extra": { - "rawValue": "0", - "raw": "'0'" - }, - "value": "0" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11385, - "end": 11439, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 323, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11391, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 11391, - "end": 11394, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 11 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": { - "type": "BinaryExpression", - "start": 11397, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "left": { - "type": "StringLiteral", - "start": 11397, - "end": 11400, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 11403, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11403, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 51 - } - }, - "object": { - "type": "CallExpression", - "start": 11403, - "end": 11429, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11403, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 33 - } - }, - "object": { - "type": "ArrayExpression", - "start": 11403, - "end": 11412, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 29 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 11404, - "end": 11405, - "loc": { - "start": { - "line": 323, - "column": 21 - }, - "end": { - "line": 323, - "column": 22 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 11407, - "end": 11408, - "loc": { - "start": { - "line": 323, - "column": 24 - }, - "end": { - "line": 323, - "column": 25 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 11410, - "end": 11411, - "loc": { - "start": { - "line": 323, - "column": 27 - }, - "end": { - "line": 323, - "column": 28 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - }, - "property": { - "type": "Identifier", - "start": 11413, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 30 - }, - "end": { - "line": 323, - "column": 33 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 11417, - "end": 11428, - "loc": { - "start": { - "line": 323, - "column": 34 - }, - "end": { - "line": 323, - "column": 45 - }, - "identifierName": "craftString" - }, - "name": "craftString" - } - ] - }, - "property": { - "type": "Identifier", - "start": 11430, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 47 - }, - "end": { - "line": 323, - "column": 51 - }, - "identifierName": "join" - }, - "name": "join" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11435, - "end": 11437, - "loc": { - "start": { - "line": 323, - "column": 52 - }, - "end": { - "line": 323, - "column": 54 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 11443, - "end": 11454, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 324, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 11450, - "end": 11453, - "loc": { - "start": { - "line": 324, - "column": 9 - }, - "end": { - "line": 324, - "column": 12 - }, - "identifierName": "hex" - }, - "name": "hex" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11740, - "end": 12117, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 342, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11740, - "end": 11748, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 332, - "column": 9 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11749, - "end": 11753, - "loc": { - "start": { - "line": 332, - "column": 10 - }, - "end": { - "line": 332, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 11755, - "end": 12117, - "loc": { - "start": { - "line": 332, - "column": 16 - }, - "end": { - "line": 342, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11760, - "end": 11789, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11760, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11760, - "end": 11764, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11767, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11767, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 11767, - "end": 11771, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11772, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 14 - }, - "end": { - "line": 333, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11780, - "end": 11783, - "loc": { - "start": { - "line": 333, - "column": 22 - }, - "end": { - "line": 333, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 11785, - "end": 11787, - "loc": { - "start": { - "line": 333, - "column": 27 - }, - "end": { - "line": 333, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "IfStatement", - "start": 11793, - "end": 11879, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 336, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 11797, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 11797, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 11797, - "end": 11801, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 10 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11802, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 11 - }, - "end": { - "line": 334, - "column": 17 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 11813, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 22 - }, - "end": { - "line": 334, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 11816, - "end": 11879, - "loc": { - "start": { - "line": 334, - "column": 25 - }, - "end": { - "line": 336, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 11822, - "end": 11874, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 55 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11822, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11822, - "end": 11826, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 7 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11829, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11829, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 11829, - "end": 11833, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11834, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 15 - }, - "end": { - "line": 335, - "column": 22 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 11842, - "end": 11864, - "loc": { - "start": { - "line": 335, - "column": 23 - }, - "end": { - "line": 335, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 11846, - "end": 11852, - "loc": { - "start": { - "line": 335, - "column": 27 - }, - "end": { - "line": 335, - "column": 33 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11853, - "end": 11858, - "loc": { - "start": { - "line": 335, - "column": 34 - }, - "end": { - "line": 335, - "column": 39 - } - }, - "extra": { - "rawValue": "(.)", - "raw": "'(.)'" - }, - "value": "(.)" - }, - { - "type": "StringLiteral", - "start": 11860, - "end": 11863, - "loc": { - "start": { - "line": 335, - "column": 41 - }, - "end": { - "line": 335, - "column": 44 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - }, - { - "type": "StringLiteral", - "start": 11866, - "end": 11872, - "loc": { - "start": { - "line": 335, - "column": 47 - }, - "end": { - "line": 335, - "column": 53 - } - }, - "extra": { - "rawValue": "$1$1", - "raw": "'$1$1'" - }, - "value": "$1$1" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 11883, - "end": 11924, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 11883, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 11883, - "end": 11887, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 11890, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11890, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 11890, - "end": 11894, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 11895, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 14 - }, - "end": { - "line": 337, - "column": 19 - }, - "identifierName": "match" - }, - "name": "match" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 11901, - "end": 11922, - "loc": { - "start": { - "line": 337, - "column": 20 - }, - "end": { - "line": 337, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 11905, - "end": 11911, - "loc": { - "start": { - "line": 337, - "column": 24 - }, - "end": { - "line": 337, - "column": 30 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 11912, - "end": 11916, - "loc": { - "start": { - "line": 337, - "column": 31 - }, - "end": { - "line": 337, - "column": 35 - } - }, - "extra": { - "rawValue": "..", - "raw": "'..'" - }, - "value": ".." - }, - { - "type": "StringLiteral", - "start": 11918, - "end": 11921, - "loc": { - "start": { - "line": 337, - "column": 37 - }, - "end": { - "line": 337, - "column": 40 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 11928, - "end": 11980, - "loc": { - "start": { - "line": 338, - "column": 2 - }, - "end": { - "line": 338, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11934, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 11934, - "end": 11935, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 11938, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11938, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11938, - "end": 11942, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11943, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 17 - }, - "end": { - "line": 338, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 11949, - "end": 11970, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 11958, - "end": 11965, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 11958, - "end": 11962, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 11963, - "end": 11964, - "loc": { - "start": { - "line": 338, - "column": 37 - }, - "end": { - "line": 338, - "column": 38 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 11967, - "end": 11969, - "loc": { - "start": { - "line": 338, - "column": 41 - }, - "end": { - "line": 338, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 11972, - "end": 11973, - "loc": { - "start": { - "line": 338, - "column": 46 - }, - "end": { - "line": 338, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 11975, - "end": 11978, - "loc": { - "start": { - "line": 338, - "column": 49 - }, - "end": { - "line": 338, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11984, - "end": 12036, - "loc": { - "start": { - "line": 339, - "column": 2 - }, - "end": { - "line": 339, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11990, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 11990, - "end": 11991, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 11994, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11994, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 11994, - "end": 11998, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 11999, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 17 - }, - "end": { - "line": 339, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12005, - "end": 12026, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 12005, - "end": 12013, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 12014, - "end": 12021, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12014, - "end": 12018, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 12019, - "end": 12020, - "loc": { - "start": { - "line": 339, - "column": 37 - }, - "end": { - "line": 339, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 12023, - "end": 12025, - "loc": { - "start": { - "line": 339, - "column": 41 - }, - "end": { - "line": 339, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 12028, - "end": 12029, - "loc": { - "start": { - "line": 339, - "column": 46 - }, - "end": { - "line": 339, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 12031, - "end": 12034, - "loc": { - "start": { - "line": 339, - "column": 49 - }, - "end": { - "line": 339, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 12040, - "end": 12092, - "loc": { - "start": { - "line": 340, - "column": 2 - }, - "end": { - "line": 340, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12046, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 12046, - "end": 12047, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 12050, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12050, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 12050, - "end": 12054, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 12055, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 17 - }, - "end": { - "line": 340, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 12061, - "end": 12082, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 12061, - "end": 12069, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 12070, - "end": 12077, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12070, - "end": 12074, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 12075, - "end": 12076, - "loc": { - "start": { - "line": 340, - "column": 37 - }, - "end": { - "line": 340, - "column": 38 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 12079, - "end": 12081, - "loc": { - "start": { - "line": 340, - "column": 41 - }, - "end": { - "line": 340, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 12084, - "end": 12085, - "loc": { - "start": { - "line": 340, - "column": 46 - }, - "end": { - "line": 340, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 12087, - "end": 12090, - "loc": { - "start": { - "line": 340, - "column": 49 - }, - "end": { - "line": 340, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 12096, - "end": 12113, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 341, - "column": 19 - } - }, - "argument": { - "type": "ArrayExpression", - "start": 12103, - "end": 12112, - "loc": { - "start": { - "line": 341, - "column": 9 - }, - "end": { - "line": 341, - "column": 18 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 12104, - "end": 12105, - "loc": { - "start": { - "line": 341, - "column": 10 - }, - "end": { - "line": 341, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 12107, - "end": 12108, - "loc": { - "start": { - "line": 341, - "column": 13 - }, - "end": { - "line": 341, - "column": 14 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 12110, - "end": 12111, - "loc": { - "start": { - "line": 341, - "column": 16 - }, - "end": { - "line": 341, - "column": 17 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12419, - "end": 12486, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 352, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12419, - "end": 12431, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 350, - "column": 13 - }, - "identifierName": "rgbToDecimal" - }, - "name": "rgbToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12432, - "end": 12434, - "loc": { - "start": { - "line": 350, - "column": 14 - }, - "end": { - "line": 350, - "column": 16 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 12436, - "end": 12438, - "loc": { - "start": { - "line": 350, - "column": 18 - }, - "end": { - "line": 350, - "column": 20 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 12440, - "end": 12442, - "loc": { - "start": { - "line": 350, - "column": 22 - }, - "end": { - "line": 350, - "column": 24 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 12444, - "end": 12486, - "loc": { - "start": { - "line": 350, - "column": 26 - }, - "end": { - "line": 352, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 12449, - "end": 12482, - "loc": { - "start": { - "line": 351, - "column": 2 - }, - "end": { - "line": 351, - "column": 35 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 12457, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 33 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12457, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12457, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 12457, - "end": 12459, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 12463, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 18 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - }, - "operator": "|", - "right": { - "type": "BinaryExpression", - "start": 12468, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "left": { - "type": "Identifier", - "start": 12468, - "end": 12470, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 23 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 12474, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 27 - }, - "end": { - "line": 351, - "column": 28 - } - }, - "extra": { - "rawValue": 8, - "raw": "8" - }, - "value": 8 - } - } - }, - "operator": "|", - "right": { - "type": "Identifier", - "start": 12478, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 31 - }, - "end": { - "line": 351, - "column": 33 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - "extra": { - "parenthesized": true, - "parenStart": 12456 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12743, - "end": 12830, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 362, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12743, - "end": 12755, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 359, - "column": 13 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12756, - "end": 12760, - "loc": { - "start": { - "line": 359, - "column": 14 - }, - "end": { - "line": 359, - "column": 18 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 12762, - "end": 12830, - "loc": { - "start": { - "line": 359, - "column": 20 - }, - "end": { - "line": 362, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 12767, - "end": 12796, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 12767, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 12767, - "end": 12771, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 12774, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12774, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 12774, - "end": 12778, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 12779, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 14 - }, - "end": { - "line": 360, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 12787, - "end": 12790, - "loc": { - "start": { - "line": 360, - "column": 22 - }, - "end": { - "line": 360, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 12792, - "end": 12794, - "loc": { - "start": { - "line": 360, - "column": 27 - }, - "end": { - "line": 360, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 12800, - "end": 12826, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 361, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 12807, - "end": 12825, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 12807, - "end": 12815, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 17 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "Identifier", - "start": 12816, - "end": 12820, - "loc": { - "start": { - "line": 361, - "column": 18 - }, - "end": { - "line": 361, - "column": 22 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - { - "type": "NumericLiteral", - "start": 12822, - "end": 12824, - "loc": { - "start": { - "line": 361, - "column": 24 - }, - "end": { - "line": 361, - "column": 26 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 13344, - "end": 14196, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 396, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13344, - "end": 13353, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 373, - "column": 10 - }, - "identifierName": "grabColor" - }, - "name": "grabColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 13354, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 42 - } - }, - "left": { - "type": "Identifier", - "start": 13354, - "end": 13361, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 18 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 13364, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13364, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 13364, - "end": 13368, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "start": 13369, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 26 - }, - "end": { - "line": 373, - "column": 40 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "Identifier", - "start": 13387, - "end": 13389, - "loc": { - "start": { - "line": 373, - "column": 44 - }, - "end": { - "line": 373, - "column": 46 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 13391, - "end": 13393, - "loc": { - "start": { - "line": 373, - "column": 48 - }, - "end": { - "line": 373, - "column": 50 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 13395, - "end": 14196, - "loc": { - "start": { - "line": 373, - "column": 52 - }, - "end": { - "line": 396, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13400, - "end": 13413, - "loc": { - "start": { - "line": 374, - "column": 2 - }, - "end": { - "line": 374, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - } - }, - "id": { - "type": "Identifier", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": null - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 13442, - "end": 13784, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 386, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 13446, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "left": { - "type": "LogicalExpression", - "start": 13446, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13446, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13446, - "end": 13461, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13453, - "end": 13460, - "loc": { - "start": { - "line": 376, - "column": 13 - }, - "end": { - "line": 376, - "column": 20 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 13452 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13466, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 26 - }, - "end": { - "line": 376, - "column": 34 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 13478, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13478, - "end": 13488, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 48 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13485, - "end": 13487, - "loc": { - "start": { - "line": 376, - "column": 45 - }, - "end": { - "line": 376, - "column": 47 - }, - "identifierName": "pG" - }, - "name": "pG", - "extra": { - "parenthesized": true, - "parenStart": 13484 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13493, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 53 - }, - "end": { - "line": 376, - "column": 61 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 13505, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13505, - "end": 13515, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 75 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13512, - "end": 13514, - "loc": { - "start": { - "line": 376, - "column": 72 - }, - "end": { - "line": 376, - "column": 74 - }, - "identifierName": "pB" - }, - "name": "pB", - "extra": { - "parenthesized": true, - "parenStart": 13511 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13520, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 80 - }, - "end": { - "line": 376, - "column": 88 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 13530, - "end": 13578, - "loc": { - "start": { - "line": 376, - "column": 90 - }, - "end": { - "line": 378, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13536, - "end": 13573, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13536, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13536, - "end": 13539, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "CallExpression", - "start": 13542, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13542, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 13542, - "end": 13546, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 13547, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 14 - }, - "end": { - "line": 377, - "column": 22 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13556, - "end": 13563, - "loc": { - "start": { - "line": 377, - "column": 23 - }, - "end": { - "line": 377, - "column": 30 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - { - "type": "Identifier", - "start": 13565, - "end": 13567, - "loc": { - "start": { - "line": 377, - "column": 32 - }, - "end": { - "line": 377, - "column": 34 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 13569, - "end": 13571, - "loc": { - "start": { - "line": 377, - "column": 36 - }, - "end": { - "line": 377, - "column": 38 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 13584, - "end": 13784, - "loc": { - "start": { - "line": 378, - "column": 9 - }, - "end": { - "line": 386, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 13620, - "end": 13704, - "loc": { - "start": { - "line": 380, - "column": 3 - }, - "end": { - "line": 382, - "column": 4 - } - }, - "test": { - "type": "BinaryExpression", - "start": 13624, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 35 - } - }, - "left": { - "type": "UnaryExpression", - "start": 13624, - "end": 13639, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 22 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 13631, - "end": 13638, - "loc": { - "start": { - "line": 380, - "column": 14 - }, - "end": { - "line": 380, - "column": 21 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 13630 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 13644, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 27 - }, - "end": { - "line": 380, - "column": 35 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 13654, - "end": 13704, - "loc": { - "start": { - "line": 380, - "column": 37 - }, - "end": { - "line": 382, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13661, - "end": 13698, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13661, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13661, - "end": 13668, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 11 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 13671, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13671, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 13671, - "end": 13675, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 13676, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 19 - }, - "end": { - "line": 381, - "column": 31 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13689, - "end": 13696, - "loc": { - "start": { - "line": 381, - "column": 32 - }, - "end": { - "line": 381, - "column": 39 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 13590, - "end": 13615, - "loc": { - "start": { - "line": 379, - "column": 3 - }, - "end": { - "line": 379, - "column": 28 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 13709, - "end": 13723, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13709, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13709, - "end": 13712, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "Identifier", - "start": 13715, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 9 - }, - "end": { - "line": 383, - "column": 16 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 13754, - "end": 13779, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 13754, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 13754, - "end": 13757, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 6 - }, - "identifierName": "rgb" - }, - "name": "rgb", - "leadingComments": null - }, - "right": { - "type": "CallExpression", - "start": 13760, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13760, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 13760, - "end": 13764, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 13765, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 22 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 13774, - "end": 13777, - "loc": { - "start": { - "line": 385, - "column": 23 - }, - "end": { - "line": 385, - "column": 26 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - } - ] - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 13788, - "end": 14192, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 395, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 13795, - "end": 14191, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 395, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13802, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13802, - "end": 13807, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 8 - } - }, - "extra": { - "rawValue": "hex", - "raw": "'hex'" - }, - "value": "hex" - }, - "value": { - "type": "CallExpression", - "start": 13809, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13809, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 13809, - "end": 13812, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 13 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 13813, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 14 - }, - "end": { - "line": 388, - "column": 25 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 13833, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13833, - "end": 13845, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 15 - } - }, - "extra": { - "rawValue": "hexTagless", - "raw": "'hexTagless'" - }, - "value": "hexTagless" - }, - "value": { - "type": "CallExpression", - "start": 13847, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13847, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 49 - } - }, - "object": { - "type": "CallExpression", - "start": 13847, - "end": 13867, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13847, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 13847, - "end": 13850, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 20 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 13851, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 21 - }, - "end": { - "line": 389, - "column": 28 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 13859, - "end": 13862, - "loc": { - "start": { - "line": 389, - "column": 29 - }, - "end": { - "line": 389, - "column": 32 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 13864, - "end": 13866, - "loc": { - "start": { - "line": 389, - "column": 34 - }, - "end": { - "line": 389, - "column": 36 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - }, - "property": { - "type": "Identifier", - "start": 13868, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 38 - }, - "end": { - "line": 389, - "column": 49 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 13888, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13888, - "end": 13893, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 8 - } - }, - "extra": { - "rawValue": "rgb", - "raw": "'rgb'" - }, - "value": "rgb" - }, - "value": { - "type": "BinaryExpression", - "start": 13895, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 45 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 34 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13895, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 23 - } - }, - "left": { - "type": "StringLiteral", - "start": 13895, - "end": 13901, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 16 - } - }, - "extra": { - "rawValue": "rgb(", - "raw": "'rgb('" - }, - "value": "rgb(" - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13902, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 13902, - "end": 13905, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 20 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13906, - "end": 13907, - "loc": { - "start": { - "line": 390, - "column": 21 - }, - "end": { - "line": 390, - "column": 22 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13909, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 24 - }, - "end": { - "line": 390, - "column": 27 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13913, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 13913, - "end": 13916, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13917, - "end": 13918, - "loc": { - "start": { - "line": 390, - "column": 32 - }, - "end": { - "line": 390, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13920, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 35 - }, - "end": { - "line": 390, - "column": 38 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 13924, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 13924, - "end": 13927, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 42 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13928, - "end": 13929, - "loc": { - "start": { - "line": 390, - "column": 43 - }, - "end": { - "line": 390, - "column": 44 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 13931, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 46 - }, - "end": { - "line": 390, - "column": 49 - } - }, - "extra": { - "rawValue": ")", - "raw": "')'" - }, - "value": ")" - } - } - }, - { - "type": "ObjectProperty", - "start": 13941, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13941, - "end": 13951, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 13 - } - }, - "extra": { - "rawValue": "rgbArray", - "raw": "'rgbArray'" - }, - "value": "rgbArray" - }, - "value": { - "type": "Identifier", - "start": 13953, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 391, - "column": 18 - }, - "identifierName": "rgb" - }, - "name": "rgb" - } - }, - { - "type": "ObjectProperty", - "start": 13963, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13963, - "end": 13974, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbObject", - "raw": "'rgbObject'" - }, - "value": "rgbObject" - }, - "value": { - "type": "ObjectExpression", - "start": 13976, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 16 - }, - "end": { - "line": 392, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 13978, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13978, - "end": 13981, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 21 - } - }, - "extra": { - "rawValue": "r", - "raw": "'r'" - }, - "value": "r" - }, - "value": { - "type": "MemberExpression", - "start": 13983, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 13983, - "end": 13986, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 26 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 13987, - "end": 13988, - "loc": { - "start": { - "line": 392, - "column": 27 - }, - "end": { - "line": 392, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 13991, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 13991, - "end": 13994, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 34 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - }, - "value": { - "type": "MemberExpression", - "start": 13996, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 13996, - "end": 13999, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 39 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14000, - "end": 14001, - "loc": { - "start": { - "line": 392, - "column": 40 - }, - "end": { - "line": 392, - "column": 41 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 14004, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14004, - "end": 14007, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 47 - } - }, - "extra": { - "rawValue": "b", - "raw": "'b'" - }, - "value": "b" - }, - "value": { - "type": "MemberExpression", - "start": 14009, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 14009, - "end": 14012, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 52 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14013, - "end": 14014, - "loc": { - "start": { - "line": 392, - "column": 53 - }, - "end": { - "line": 392, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14024, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 124 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14024, - "end": 14035, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbNormal", - "raw": "'rgbNormal'" - }, - "value": "rgbNormal" - }, - "value": { - "type": "ArrayExpression", - "start": 14037, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 16 - }, - "end": { - "line": 393, - "column": 124 - } - }, - "elements": [ - { - "type": "BinaryExpression", - "start": 14038, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 51 - } - }, - "left": { - "type": "CallExpression", - "start": 14038, - "end": 14066, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14038, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 14038, - "end": 14042, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 21 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14043, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 22 - }, - "end": { - "line": 393, - "column": 27 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14049, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 44 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14049, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 14049, - "end": 14055, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 14049, - "end": 14052, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14053, - "end": 14054, - "loc": { - "start": { - "line": 393, - "column": 32 - }, - "end": { - "line": 393, - "column": 33 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14056, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 35 - }, - "end": { - "line": 393, - "column": 38 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14062, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 41 - }, - "end": { - "line": 393, - "column": 44 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14069, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 48 - }, - "end": { - "line": 393, - "column": 51 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 14074, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 87 - } - }, - "left": { - "type": "CallExpression", - "start": 14074, - "end": 14102, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 81 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14074, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 14074, - "end": 14078, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14079, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 58 - }, - "end": { - "line": 393, - "column": 63 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14085, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 80 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14085, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 74 - } - }, - "left": { - "type": "MemberExpression", - "start": 14085, - "end": 14091, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 14085, - "end": 14088, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 67 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14089, - "end": 14090, - "loc": { - "start": { - "line": 393, - "column": 68 - }, - "end": { - "line": 393, - "column": 69 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14092, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 71 - }, - "end": { - "line": 393, - "column": 74 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14098, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 77 - }, - "end": { - "line": 393, - "column": 80 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14105, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 84 - }, - "end": { - "line": 393, - "column": 87 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 14110, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 123 - } - }, - "left": { - "type": "CallExpression", - "start": 14110, - "end": 14138, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 117 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14110, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 14110, - "end": 14114, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 93 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14115, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 94 - }, - "end": { - "line": 393, - "column": 99 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14121, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 116 - } - }, - "left": { - "type": "BinaryExpression", - "start": 14121, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 110 - } - }, - "left": { - "type": "MemberExpression", - "start": 14121, - "end": 14127, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 14121, - "end": 14124, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 103 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 14125, - "end": 14126, - "loc": { - "start": { - "line": 393, - "column": 104 - }, - "end": { - "line": 393, - "column": 105 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14128, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 107 - }, - "end": { - "line": 393, - "column": 110 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14134, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 113 - }, - "end": { - "line": 393, - "column": 116 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 14141, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 120 - }, - "end": { - "line": 393, - "column": 123 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 14152, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 14152, - "end": 14161, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 12 - } - }, - "extra": { - "rawValue": "decimal", - "raw": "'decimal'" - }, - "value": "decimal" - }, - "value": { - "type": "CallExpression", - "start": 14163, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14163, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 14163, - "end": 14167, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 14168, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 19 - }, - "end": { - "line": 394, - "column": 31 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 14181, - "end": 14184, - "loc": { - "start": { - "line": 394, - "column": 32 - }, - "end": { - "line": 394, - "column": 35 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14298, - "end": 14484, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 409, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14298, - "end": 14312, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 402, - "column": 15 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 14315, - "end": 14484, - "loc": { - "start": { - "line": 402, - "column": 18 - }, - "end": { - "line": 409, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 14320, - "end": 14353, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 403, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14326, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 14326, - "end": 14331, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 14334, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 16 - }, - "end": { - "line": 403, - "column": 34 - } - }, - "extra": { - "rawValue": "0123456789ABCDEF", - "raw": "'0123456789ABCDEF'" - }, - "value": "0123456789ABCDEF" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 14357, - "end": 14373, - "loc": { - "start": { - "line": 404, - "column": 2 - }, - "end": { - "line": 404, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14361, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 14361, - "end": 14366, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 11 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "StringLiteral", - "start": 14369, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 14 - }, - "end": { - "line": 404, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 14377, - "end": 14463, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 407, - "column": 3 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 14382, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 7 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14386, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 14386, - "end": 14387, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 12 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 14390, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 15 - }, - "end": { - "line": 405, - "column": 16 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 14393, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 14393, - "end": 14394, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 19 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "NumericLiteral", - "start": 14397, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 22 - }, - "end": { - "line": 405, - "column": 23 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - }, - "update": { - "type": "UpdateExpression", - "start": 14400, - "end": 14403, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 28 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 14400, - "end": 14401, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 26 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 14405, - "end": 14463, - "loc": { - "start": { - "line": 405, - "column": 30 - }, - "end": { - "line": 407, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 14411, - "end": 14458, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 50 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 14411, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 49 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 14411, - "end": 14416, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 8 - }, - "identifierName": "color" - }, - "name": "color" - }, - "right": { - "type": "MemberExpression", - "start": 14420, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 14420, - "end": 14425, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 17 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "CallExpression", - "start": 14426, - "end": 14456, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14426, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 14426, - "end": 14430, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 22 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14431, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 23 - }, - "end": { - "line": 406, - "column": 28 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 14437, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 47 - } - }, - "left": { - "type": "CallExpression", - "start": 14437, - "end": 14450, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 14437, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 14437, - "end": 14441, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 33 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 14442, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 34 - }, - "end": { - "line": 406, - "column": 40 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 14453, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 45 - }, - "end": { - "line": 406, - "column": 47 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - } - ] - }, - "computed": true - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 14467, - "end": 14480, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 408, - "column": 15 - } - }, - "argument": { - "type": "Identifier", - "start": 14474, - "end": 14479, - "loc": { - "start": { - "line": 408, - "column": 9 - }, - "end": { - "line": 408, - "column": 14 - }, - "identifierName": "color" - }, - "name": "color" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14946, - "end": 15147, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 423, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14946, - "end": 14967, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 420, - "column": 22 - }, - "identifierName": "getRandomColorBetween" - }, - "name": "getRandomColorBetween", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 14968, - "end": 14975, - "loc": { - "start": { - "line": 420, - "column": 23 - }, - "end": { - "line": 420, - "column": 30 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - }, - { - "type": "Identifier", - "start": 14977, - "end": 14984, - "loc": { - "start": { - "line": 420, - "column": 32 - }, - "end": { - "line": 420, - "column": 39 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - }, - { - "type": "AssignmentPattern", - "start": 14986, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 14986, - "end": 14993, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 48 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "right": { - "type": "NumericLiteral", - "start": 14996, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 51 - }, - "end": { - "line": 420, - "column": 54 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 15001, - "end": 15147, - "loc": { - "start": { - "line": 420, - "column": 56 - }, - "end": { - "line": 423, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 15044, - "end": 15143, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 101 - } - }, - "argument": { - "type": "CallExpression", - "start": 15051, - "end": 15142, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15051, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 25 - } - }, - "object": { - "type": "ThisExpression", - "start": 15051, - "end": 15055, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 13 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 15056, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 14 - }, - "end": { - "line": 422, - "column": 25 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 15068, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 57 - } - }, - "object": { - "type": "CallExpression", - "start": 15068, - "end": 15091, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15068, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 15068, - "end": 15072, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 30 - } - } - }, - "property": { - "type": "Identifier", - "start": 15073, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 31 - }, - "end": { - "line": 422, - "column": 40 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15083, - "end": 15090, - "loc": { - "start": { - "line": 422, - "column": 41 - }, - "end": { - "line": 422, - "column": 48 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - } - ] - }, - "property": { - "type": "Identifier", - "start": 15092, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 50 - }, - "end": { - "line": 422, - "column": 57 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "MemberExpression", - "start": 15101, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 90 - } - }, - "object": { - "type": "CallExpression", - "start": 15101, - "end": 15124, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15101, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 73 - } - }, - "object": { - "type": "ThisExpression", - "start": 15101, - "end": 15105, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 63 - } - } - }, - "property": { - "type": "Identifier", - "start": 15106, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 64 - }, - "end": { - "line": 422, - "column": 73 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15116, - "end": 15123, - "loc": { - "start": { - "line": 422, - "column": 74 - }, - "end": { - "line": 422, - "column": 81 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - } - ] - }, - "property": { - "type": "Identifier", - "start": 15125, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 83 - }, - "end": { - "line": 422, - "column": 90 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "Identifier", - "start": 15134, - "end": 15141, - "loc": { - "start": { - "line": 422, - "column": 92 - }, - "end": { - "line": 422, - "column": 99 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 15006, - "end": 15040, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 36 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 15941, - "end": 18972, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 516, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 15941, - "end": 15956, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 438, - "column": 16 - }, - "identifierName": "transitionColor" - }, - "name": "transitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 15957, - "end": 15966, - "loc": { - "start": { - "line": 438, - "column": 17 - }, - "end": { - "line": 438, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "AssignmentPattern", - "start": 15968, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 15968, - "end": 15979, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 39 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - }, - "right": { - "type": "StringLiteral", - "start": 15980, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 40 - }, - "end": { - "line": 438, - "column": 46 - } - }, - "extra": { - "rawValue": "#000", - "raw": "'#000'" - }, - "value": "#000" - } - }, - { - "type": "AssignmentPattern", - "start": 15988, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 64 - } - }, - "left": { - "type": "Identifier", - "start": 15988, - "end": 15997, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 57 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - }, - "right": { - "type": "StringLiteral", - "start": 15998, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 58 - }, - "end": { - "line": 438, - "column": 64 - } - }, - "extra": { - "rawValue": "#fff", - "raw": "'#fff'" - }, - "value": "#fff" - } - }, - { - "type": "AssignmentPattern", - "start": 16006, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 80 - } - }, - "left": { - "type": "Identifier", - "start": 16006, - "end": 16015, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 75 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - }, - "right": { - "type": "NumericLiteral", - "start": 16016, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 76 - }, - "end": { - "line": 438, - "column": 80 - } - }, - "extra": { - "rawValue": 1000, - "raw": "1000" - }, - "value": 1000 - } - }, - { - "type": "Identifier", - "start": 16022, - "end": 16040, - "loc": { - "start": { - "line": 438, - "column": 82 - }, - "end": { - "line": 438, - "column": 100 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - { - "type": "Identifier", - "start": 16042, - "end": 16054, - "loc": { - "start": { - "line": 438, - "column": 102 - }, - "end": { - "line": 438, - "column": 114 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 16056, - "end": 18972, - "loc": { - "start": { - "line": 438, - "column": 116 - }, - "end": { - "line": 516, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 16101, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 2 - }, - "end": { - "line": 440, - "column": 33 - } - }, - "test": { - "type": "UnaryExpression", - "start": 16105, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 6 - }, - "end": { - "line": 440, - "column": 24 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 16106, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 16106, - "end": 16116, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 17 - }, - "identifierName": "globalThis" - }, - "name": "globalThis", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 16117, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 18 - }, - "end": { - "line": 440, - "column": 24 - }, - "identifierName": "window" - }, - "name": "window" - }, - "computed": false, - "leadingComments": null - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "consequent": { - "type": "ReturnStatement", - "start": 16125, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 26 - }, - "end": { - "line": 440, - "column": 33 - } - }, - "argument": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 16061, - "end": 16097, - "loc": { - "start": { - "line": 439, - "column": 2 - }, - "end": { - "line": 439, - "column": 38 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 16136, - "end": 16232, - "loc": { - "start": { - "line": 441, - "column": 2 - }, - "end": { - "line": 441, - "column": 98 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16142, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 97 - } - }, - "id": { - "type": "Identifier", - "start": 16142, - "end": 16159, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 16162, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 97 - } - }, - "test": { - "type": "BinaryExpression", - "start": 16162, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 69 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16162, - "end": 16188, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 54 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 16169, - "end": 16187, - "loc": { - "start": { - "line": 441, - "column": 35 - }, - "end": { - "line": 441, - "column": 53 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback", - "extra": { - "parenthesized": true, - "parenStart": 16168 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16193, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 59 - }, - "end": { - "line": 441, - "column": 69 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 16206, - "end": 16224, - "loc": { - "start": { - "line": 441, - "column": 72 - }, - "end": { - "line": 441, - "column": 90 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 16227, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 93 - }, - "end": { - "line": 441, - "column": 97 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16236, - "end": 16314, - "loc": { - "start": { - "line": 442, - "column": 2 - }, - "end": { - "line": 442, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16242, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 16242, - "end": 16253, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 19 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 16256, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 79 - } - }, - "test": { - "type": "BinaryExpression", - "start": 16256, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16256, - "end": 16276, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 16263, - "end": 16275, - "loc": { - "start": { - "line": 442, - "column": 29 - }, - "end": { - "line": 442, - "column": 41 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback", - "extra": { - "parenthesized": true, - "parenStart": 16262 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16281, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 47 - }, - "end": { - "line": 442, - "column": 57 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 16294, - "end": 16306, - "loc": { - "start": { - "line": 442, - "column": 60 - }, - "end": { - "line": 442, - "column": 72 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 16309, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 75 - }, - "end": { - "line": 442, - "column": 79 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16318, - "end": 16325, - "loc": { - "start": { - "line": 443, - "column": 2 - }, - "end": { - "line": 443, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 16329, - "end": 16344, - "loc": { - "start": { - "line": 444, - "column": 2 - }, - "end": { - "line": 444, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 16348, - "end": 16365, - "loc": { - "start": { - "line": 445, - "column": 2 - }, - "end": { - "line": 445, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 16371, - "end": 16727, - "loc": { - "start": { - "line": 447, - "column": 2 - }, - "end": { - "line": 454, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 16375, - "end": 16384, - "loc": { - "start": { - "line": 447, - "column": 6 - }, - "end": { - "line": 447, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 16386, - "end": 16687, - "loc": { - "start": { - "line": 447, - "column": 17 - }, - "end": { - "line": 452, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16392, - "end": 16445, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16392, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16392, - "end": 16394, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "ConditionalExpression", - "start": 16397, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "test": { - "type": "MemberExpression", - "start": 16397, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 16397, - "end": 16406, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16407, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 18 - }, - "end": { - "line": 448, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "consequent": { - "type": "MemberExpression", - "start": 16412, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 16412, - "end": 16421, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 32 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16422, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 33 - }, - "end": { - "line": 448, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "alternate": { - "type": "CallExpression", - "start": 16427, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16427, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 16427, - "end": 16431, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 16432, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 43 - }, - "end": { - "line": 448, - "column": 53 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 16450, - "end": 16504, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16450, - "end": 16503, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16450, - "end": 16460, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 13 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "right": { - "type": "BinaryExpression", - "start": 16464, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 16464, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 16464, - "end": 16473, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16474, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 27 - }, - "end": { - "line": 449, - "column": 31 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16483, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 36 - }, - "end": { - "line": 449, - "column": 55 - } - }, - "extra": { - "rawValue": "GeneratedParticle", - "raw": "'GeneratedParticle'" - }, - "value": "GeneratedParticle" - }, - "extra": { - "parenthesized": true, - "parenStart": 16463 - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 16509, - "end": 16620, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 114 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16509, - "end": 16619, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 113 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16509, - "end": 16521, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 15 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "right": { - "type": "ConditionalExpression", - "start": 16525, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 16525, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "left": { - "type": "BinaryExpression", - "start": 16525, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 55 - } - }, - "left": { - "type": "UnaryExpression", - "start": 16525, - "end": 16548, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 16532, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 16532, - "end": 16541, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 35 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16542, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 36 - }, - "end": { - "line": 450, - "column": 41 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 16531 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 16553, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 55 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 16565, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "left": { - "type": "MemberExpression", - "start": 16565, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 86 - } - }, - "object": { - "type": "MemberExpression", - "start": 16565, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 16565, - "end": 16574, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 68 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16575, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 69 - }, - "end": { - "line": 450, - "column": 74 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16581, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 75 - }, - "end": { - "line": 450, - "column": 86 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 16597, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 91 - }, - "end": { - "line": 450, - "column": 97 - }, - "identifierName": "Object" - }, - "name": "Object" - } - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 16606, - "end": 16610, - "loc": { - "start": { - "line": 450, - "column": 100 - }, - "end": { - "line": 450, - "column": 104 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 16613, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 107 - }, - "end": { - "line": 450, - "column": 112 - } - }, - "value": false - }, - "extra": { - "parenthesized": true, - "parenStart": 16524 - } - } - } - }, - { - "type": "IfStatement", - "start": 16625, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 3 - }, - "end": { - "line": 451, - "column": 60 - } - }, - "test": { - "type": "MemberExpression", - "start": 16629, - "end": 16649, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 16629, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 16629, - "end": 16633, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 11 - } - } - }, - "property": { - "type": "Identifier", - "start": 16634, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 451, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16646, - "end": 16648, - "loc": { - "start": { - "line": 451, - "column": 24 - }, - "end": { - "line": 451, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 16651, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 16651, - "end": 16681, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16651, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 55 - } - }, - "object": { - "type": "ThisExpression", - "start": 16651, - "end": 16655, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 33 - } - } - }, - "property": { - "type": "Identifier", - "start": 16656, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 34 - }, - "end": { - "line": 451, - "column": 55 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16678, - "end": 16680, - "loc": { - "start": { - "line": 451, - "column": 56 - }, - "end": { - "line": 451, - "column": 58 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 16693, - "end": 16727, - "loc": { - "start": { - "line": 452, - "column": 9 - }, - "end": { - "line": 454, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 16699, - "end": 16722, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 26 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16699, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 25 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 16699, - "end": 16701, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "CallExpression", - "start": 16704, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16704, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 16704, - "end": 16708, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 16709, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 13 - }, - "end": { - "line": 453, - "column": 23 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 16736, - "end": 16853, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 459, - "column": 4 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 16736, - "end": 16852, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 459, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 16736, - "end": 16756, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 16736, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 16736, - "end": 16740, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 16741, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 7 - }, - "end": { - "line": 456, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16753, - "end": 16755, - "loc": { - "start": { - "line": 456, - "column": 19 - }, - "end": { - "line": 456, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "right": { - "type": "ObjectExpression", - "start": 16759, - "end": 16852, - "loc": { - "start": { - "line": 456, - "column": 25 - }, - "end": { - "line": 459, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 16765, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 16765, - "end": 16775, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 13 - } - }, - "extra": { - "rawValue": "duration", - "raw": "'duration'" - }, - "value": "duration" - }, - "value": { - "type": "Identifier", - "start": 16777, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 15 - }, - "end": { - "line": 457, - "column": 24 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - }, - { - "type": "ObjectProperty", - "start": 16792, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 16792, - "end": 16805, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 16 - } - }, - "extra": { - "rawValue": "timeTracker", - "raw": "'timeTracker'" - }, - "value": "timeTracker" - }, - "value": { - "type": "ConditionalExpression", - "start": 16807, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "test": { - "type": "Identifier", - "start": 16807, - "end": 16817, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 28 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "MemberExpression", - "start": 16820, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 54 - } - }, - "object": { - "type": "MemberExpression", - "start": 16820, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 16820, - "end": 16829, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 40 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 16830, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 41 - }, - "end": { - "line": 458, - "column": 45 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 16835, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 46 - }, - "end": { - "line": 458, - "column": 54 - }, - "identifierName": "lifetime" - }, - "name": "lifetime" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 16846, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 57 - }, - "end": { - "line": 458, - "column": 58 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 16859, - "end": 16918, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 461, - "column": 61 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16865, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 60 - } - }, - "id": { - "type": "Identifier", - "start": 16865, - "end": 16878, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 21 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "init": { - "type": "MemberExpression", - "start": 16881, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 60 - } - }, - "object": { - "type": "CallExpression", - "start": 16881, - "end": 16908, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16881, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 38 - } - }, - "object": { - "type": "ThisExpression", - "start": 16881, - "end": 16885, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 16886, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 29 - }, - "end": { - "line": 461, - "column": 38 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16896, - "end": 16907, - "loc": { - "start": { - "line": 461, - "column": 39 - }, - "end": { - "line": 461, - "column": 50 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16909, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 52 - }, - "end": { - "line": 461, - "column": 60 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16922, - "end": 16977, - "loc": { - "start": { - "line": 462, - "column": 2 - }, - "end": { - "line": 462, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16928, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 16928, - "end": 16939, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 19 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "init": { - "type": "MemberExpression", - "start": 16942, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 56 - } - }, - "object": { - "type": "CallExpression", - "start": 16942, - "end": 16967, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16942, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 36 - } - }, - "object": { - "type": "ThisExpression", - "start": 16942, - "end": 16946, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "start": 16947, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 27 - }, - "end": { - "line": 462, - "column": 36 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 16957, - "end": 16966, - "loc": { - "start": { - "line": 462, - "column": 37 - }, - "end": { - "line": 462, - "column": 46 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 16968, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 48 - }, - "end": { - "line": 462, - "column": 56 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 16983, - "end": 17001, - "loc": { - "start": { - "line": 464, - "column": 2 - }, - "end": { - "line": 464, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16989, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 16989, - "end": 16993, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 12 - }, - "identifierName": "self" - }, - "name": "self" - }, - "init": { - "type": "ThisExpression", - "start": 16996, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 15 - }, - "end": { - "line": 464, - "column": 19 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 17005, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17005, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 17005, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 17005, - "end": 17025, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 17005, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 17005, - "end": 17009, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 17010, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 7 - }, - "end": { - "line": 465, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17022, - "end": 17024, - "loc": { - "start": { - "line": 465, - "column": 19 - }, - "end": { - "line": 465, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17026, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 23 - }, - "end": { - "line": 465, - "column": 27 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - }, - "right": { - "type": "ArrowFunctionExpression", - "start": 17033, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 30 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 17034, - "end": 17044, - "loc": { - "start": { - "line": 465, - "column": 31 - }, - "end": { - "line": 465, - "column": 41 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - ], - "body": { - "type": "BlockStatement", - "start": 17049, - "end": 18861, - "loc": { - "start": { - "line": 465, - "column": 46 - }, - "end": { - "line": 512, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17055, - "end": 18856, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 511, - "column": 4 - } - }, - "test": { - "type": "MemberExpression", - "start": 17059, - "end": 17079, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 17059, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 17059, - "end": 17063, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 11 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17064, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 12 - }, - "end": { - "line": 466, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17076, - "end": 17078, - "loc": { - "start": { - "line": 466, - "column": 24 - }, - "end": { - "line": 466, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 17081, - "end": 18856, - "loc": { - "start": { - "line": 466, - "column": 29 - }, - "end": { - "line": 511, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17088, - "end": 17370, - "loc": { - "start": { - "line": 467, - "column": 4 - }, - "end": { - "line": 478, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 17092, - "end": 17102, - "loc": { - "start": { - "line": 467, - "column": 8 - }, - "end": { - "line": 467, - "column": 18 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "BlockStatement", - "start": 17104, - "end": 17370, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 478, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17112, - "end": 17363, - "loc": { - "start": { - "line": 468, - "column": 5 - }, - "end": { - "line": 477, - "column": 6 - } - }, - "test": { - "type": "MemberExpression", - "start": 17116, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 17116, - "end": 17125, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17126, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 19 - }, - "end": { - "line": 468, - "column": 23 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17132, - "end": 17264, - "loc": { - "start": { - "line": 468, - "column": 25 - }, - "end": { - "line": 474, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17141, - "end": 17256, - "loc": { - "start": { - "line": 469, - "column": 6 - }, - "end": { - "line": 473, - "column": 7 - } - }, - "test": { - "type": "MemberExpression", - "start": 17145, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 17145, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 17145, - "end": 17154, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 19 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17155, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 20 - }, - "end": { - "line": 469, - "column": 24 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17160, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 25 - }, - "end": { - "line": 469, - "column": 30 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17167, - "end": 17256, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 473, - "column": 7 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17177, - "end": 17247, - "loc": { - "start": { - "line": 470, - "column": 7 - }, - "end": { - "line": 472, - "column": 8 - } - }, - "test": { - "type": "MemberExpression", - "start": 17181, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 40 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 17181, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 17181, - "end": 17190, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 20 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 17191, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 21 - }, - "end": { - "line": 470, - "column": 25 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17196, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 26 - }, - "end": { - "line": 470, - "column": 31 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17202, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 32 - }, - "end": { - "line": 470, - "column": 40 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17211, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 41 - }, - "end": { - "line": 470, - "column": 47 - }, - "identifierName": "paused" - }, - "name": "paused" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 17219, - "end": 17247, - "loc": { - "start": { - "line": 470, - "column": 49 - }, - "end": { - "line": 472, - "column": 8 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 17230, - "end": 17237, - "loc": { - "start": { - "line": 471, - "column": 8 - }, - "end": { - "line": 471, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 17270, - "end": 17363, - "loc": { - "start": { - "line": 474, - "column": 12 - }, - "end": { - "line": 477, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 17279, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 6 - }, - "end": { - "line": 475, - "column": 63 - } - }, - "test": { - "type": "MemberExpression", - "start": 17283, - "end": 17303, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 17283, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 17283, - "end": 17287, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 14 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17288, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 15 - }, - "end": { - "line": 475, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17300, - "end": 17302, - "loc": { - "start": { - "line": 475, - "column": 27 - }, - "end": { - "line": 475, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 17305, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 17305, - "end": 17335, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17305, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 17305, - "end": 17309, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 36 - } - } - }, - "property": { - "type": "Identifier", - "start": 17310, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 37 - }, - "end": { - "line": 475, - "column": 58 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 17332, - "end": 17334, - "loc": { - "start": { - "line": 475, - "column": 59 - }, - "end": { - "line": 475, - "column": 61 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 17344, - "end": 17351, - "loc": { - "start": { - "line": 476, - "column": 6 - }, - "end": { - "line": 476, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 17378, - "end": 17401, - "loc": { - "start": { - "line": 480, - "column": 4 - }, - "end": { - "line": 480, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17384, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 17384, - "end": 17387, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 13 - }, - "identifierName": "now" - }, - "name": "now" - }, - "init": { - "type": "Identifier", - "start": 17390, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 16 - }, - "end": { - "line": 480, - "column": 26 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 17407, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 4 - }, - "end": { - "line": 481, - "column": 76 - } - }, - "test": { - "type": "UnaryExpression", - "start": 17411, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 38 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 17412, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 38 - } - }, - "object": { - "type": "MemberExpression", - "start": 17412, - "end": 17432, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 17412, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 17412, - "end": 17416, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17417, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 14 - }, - "end": { - "line": 481, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17429, - "end": 17431, - "loc": { - "start": { - "line": 481, - "column": 26 - }, - "end": { - "line": 481, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17433, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 30 - }, - "end": { - "line": 481, - "column": 38 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 17443, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 76 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17443, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 75 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 17443, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 69 - } - }, - "object": { - "type": "MemberExpression", - "start": 17443, - "end": 17463, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 17443, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 17443, - "end": 17447, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 44 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17448, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 45 - }, - "end": { - "line": 481, - "column": 56 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17460, - "end": 17462, - "loc": { - "start": { - "line": 481, - "column": 57 - }, - "end": { - "line": 481, - "column": 59 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17464, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 61 - }, - "end": { - "line": 481, - "column": 69 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 17475, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 72 - }, - "end": { - "line": 481, - "column": 75 - }, - "identifierName": "now" - }, - "name": "now" - } - } - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 17485, - "end": 17537, - "loc": { - "start": { - "line": 482, - "column": 4 - }, - "end": { - "line": 482, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17491, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 17491, - "end": 17498, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 17 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "init": { - "type": "BinaryExpression", - "start": 17501, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 17501, - "end": 17504, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 23 - }, - "identifierName": "now" - }, - "name": "now" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 17507, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 55 - } - }, - "object": { - "type": "MemberExpression", - "start": 17507, - "end": 17527, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 17507, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 17507, - "end": 17511, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 30 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17512, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 31 - }, - "end": { - "line": 482, - "column": 42 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17524, - "end": 17526, - "loc": { - "start": { - "line": 482, - "column": 43 - }, - "end": { - "line": 482, - "column": 45 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17528, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 47 - }, - "end": { - "line": 482, - "column": 55 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 17732, - "end": 17776, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 48 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 17732, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 47 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 17732, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 17732, - "end": 17752, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 17732, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 17732, - "end": 17736, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17737, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 9 - }, - "end": { - "line": 484, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17749, - "end": 17751, - "loc": { - "start": { - "line": 484, - "column": 21 - }, - "end": { - "line": 484, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 17753, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 25 - }, - "end": { - "line": 484, - "column": 36 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 17768, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 40 - }, - "end": { - "line": 484, - "column": 47 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17844, - "end": 17941, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 101 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17850, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 100 - } - }, - "id": { - "type": "Identifier", - "start": 17850, - "end": 17860, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 20 - }, - "identifierName": "percentage" - }, - "name": "percentage", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 17863, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17863, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 17863, - "end": 17867, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 17868, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 28 - }, - "end": { - "line": 486, - "column": 31 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 17872, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 96 - } - }, - "left": { - "type": "MemberExpression", - "start": 17872, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 64 - } - }, - "object": { - "type": "MemberExpression", - "start": 17872, - "end": 17892, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 17872, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 17872, - "end": 17876, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 36 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17877, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 37 - }, - "end": { - "line": 486, - "column": 48 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17889, - "end": 17891, - "loc": { - "start": { - "line": 486, - "column": 49 - }, - "end": { - "line": 486, - "column": 51 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17893, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 53 - }, - "end": { - "line": 486, - "column": 64 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 17907, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 96 - } - }, - "object": { - "type": "MemberExpression", - "start": 17907, - "end": 17927, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 17907, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 17907, - "end": 17911, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 71 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17912, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 72 - }, - "end": { - "line": 486, - "column": 83 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 17924, - "end": 17926, - "loc": { - "start": { - "line": 486, - "column": 84 - }, - "end": { - "line": 486, - "column": 86 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 17928, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 88 - }, - "end": { - "line": 486, - "column": 96 - }, - "identifierName": "duration" - }, - "name": "duration" - }, - "computed": false - } - }, - { - "type": "NumericLiteral", - "start": 17938, - "end": 17939, - "loc": { - "start": { - "line": 486, - "column": 98 - }, - "end": { - "line": 486, - "column": 99 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17953, - "end": 18033, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17959, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 17959, - "end": 17960, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 17963, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 17963, - "end": 17971, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 17972, - "end": 18027, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17972, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 17972, - "end": 17976, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 17977, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 28 - }, - "end": { - "line": 488, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 17982, - "end": 17998, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 17982, - "end": 17995, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 17996, - "end": 17997, - "loc": { - "start": { - "line": 488, - "column": 47 - }, - "end": { - "line": 488, - "column": 48 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18000, - "end": 18014, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18000, - "end": 18011, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18012, - "end": 18013, - "loc": { - "start": { - "line": 488, - "column": 63 - }, - "end": { - "line": 488, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18016, - "end": 18026, - "loc": { - "start": { - "line": 488, - "column": 67 - }, - "end": { - "line": 488, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18029, - "end": 18031, - "loc": { - "start": { - "line": 488, - "column": 80 - }, - "end": { - "line": 488, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18039, - "end": 18119, - "loc": { - "start": { - "line": 489, - "column": 4 - }, - "end": { - "line": 489, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18045, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 18045, - "end": 18046, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 11 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 18049, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 18049, - "end": 18057, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18058, - "end": 18113, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18058, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18058, - "end": 18062, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18063, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 28 - }, - "end": { - "line": 489, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18068, - "end": 18084, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 18068, - "end": 18081, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18082, - "end": 18083, - "loc": { - "start": { - "line": 489, - "column": 47 - }, - "end": { - "line": 489, - "column": 48 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18086, - "end": 18100, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18086, - "end": 18097, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18098, - "end": 18099, - "loc": { - "start": { - "line": 489, - "column": 63 - }, - "end": { - "line": 489, - "column": 64 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18102, - "end": 18112, - "loc": { - "start": { - "line": 489, - "column": 67 - }, - "end": { - "line": 489, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18115, - "end": 18117, - "loc": { - "start": { - "line": 489, - "column": 80 - }, - "end": { - "line": 489, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18125, - "end": 18205, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18131, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 18131, - "end": 18132, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 11 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 18135, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 18135, - "end": 18143, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18144, - "end": 18199, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18144, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18144, - "end": 18148, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18149, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 28 - }, - "end": { - "line": 490, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18154, - "end": 18170, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 18154, - "end": 18167, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18168, - "end": 18169, - "loc": { - "start": { - "line": 490, - "column": 47 - }, - "end": { - "line": 490, - "column": 48 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 18172, - "end": 18186, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 18172, - "end": 18183, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 18184, - "end": 18185, - "loc": { - "start": { - "line": 490, - "column": 63 - }, - "end": { - "line": 490, - "column": 64 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 18188, - "end": 18198, - "loc": { - "start": { - "line": 490, - "column": 67 - }, - "end": { - "line": 490, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 18201, - "end": 18203, - "loc": { - "start": { - "line": 490, - "column": 80 - }, - "end": { - "line": 490, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18211, - "end": 18249, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 491, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18217, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 18217, - "end": 18222, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 15 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "CallExpression", - "start": 18225, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18225, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 18225, - "end": 18229, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 22 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18230, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 23 - }, - "end": { - "line": 491, - "column": 32 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18240, - "end": 18241, - "loc": { - "start": { - "line": 491, - "column": 33 - }, - "end": { - "line": 491, - "column": 34 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 18243, - "end": 18244, - "loc": { - "start": { - "line": 491, - "column": 36 - }, - "end": { - "line": 491, - "column": 37 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 18246, - "end": 18247, - "loc": { - "start": { - "line": 491, - "column": 39 - }, - "end": { - "line": 491, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 18257, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 52 - } - }, - "test": { - "type": "Identifier", - "start": 18261, - "end": 18278, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18280, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 52 - } - }, - "expression": { - "type": "CallExpression", - "start": 18280, - "end": 18304, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 51 - } - }, - "callee": { - "type": "Identifier", - "start": 18280, - "end": 18297, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 44 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 18298, - "end": 18303, - "loc": { - "start": { - "line": 493, - "column": 45 - }, - "end": { - "line": 493, - "column": 50 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18313, - "end": 18508, - "loc": { - "start": { - "line": 495, - "column": 4 - }, - "end": { - "line": 502, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 18317, - "end": 18326, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 18328, - "end": 18508, - "loc": { - "start": { - "line": 495, - "column": 19 - }, - "end": { - "line": 502, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 18336, - "end": 18501, - "loc": { - "start": { - "line": 496, - "column": 5 - }, - "end": { - "line": 501, - "column": 6 - } - }, - "test": { - "type": "Identifier", - "start": 18340, - "end": 18352, - "loc": { - "start": { - "line": 496, - "column": 9 - }, - "end": { - "line": 496, - "column": 21 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "consequent": { - "type": "BlockStatement", - "start": 18354, - "end": 18450, - "loc": { - "start": { - "line": 496, - "column": 23 - }, - "end": { - "line": 499, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18363, - "end": 18400, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18363, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18363, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 18363, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18363, - "end": 18372, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18373, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 16 - }, - "end": { - "line": 497, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18379, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 22 - }, - "end": { - "line": 497, - "column": 26 - }, - "identifierName": "tint" - }, - "name": "tint" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18386, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 18386, - "end": 18391, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 34 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 18392, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 35 - }, - "end": { - "line": 497, - "column": 42 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - } - } - }, - { - "type": "ExpressionStatement", - "start": 18408, - "end": 18442, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18408, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18408, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18408, - "end": 18417, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18418, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 16 - }, - "end": { - "line": 498, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18426, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 18426, - "end": 18435, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 33 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18436, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 34 - }, - "end": { - "line": 498, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 18456, - "end": 18501, - "loc": { - "start": { - "line": 499, - "column": 12 - }, - "end": { - "line": 501, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18465, - "end": 18493, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 34 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18465, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 33 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18465, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 18465, - "end": 18474, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 18475, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 18483, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 18483, - "end": 18488, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 29 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 18489, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 30 - }, - "end": { - "line": 500, - "column": 33 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18516, - "end": 18715, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 508, - "column": 5 - } - }, - "test": { - "type": "LogicalExpression", - "start": 18520, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 72 - } - }, - "left": { - "type": "BinaryExpression", - "start": 18520, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 18520, - "end": 18530, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 18 - }, - "identifierName": "percentage" - }, - "name": "percentage" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 18534, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 22 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "operator": "||", - "right": { - "type": "BinaryExpression", - "start": 18539, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 72 - } - }, - "left": { - "type": "MemberExpression", - "start": 18539, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 59 - } - }, - "object": { - "type": "MemberExpression", - "start": 18539, - "end": 18559, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 18539, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 18539, - "end": 18543, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 31 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18544, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 43 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18556, - "end": 18558, - "loc": { - "start": { - "line": 504, - "column": 44 - }, - "end": { - "line": 504, - "column": 46 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18560, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 59 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 18575, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 72 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 18586, - "end": 18715, - "loc": { - "start": { - "line": 504, - "column": 74 - }, - "end": { - "line": 508, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 18594, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 5 - }, - "end": { - "line": 505, - "column": 62 - } - }, - "test": { - "type": "MemberExpression", - "start": 18598, - "end": 18618, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 18598, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 18598, - "end": 18602, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18603, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 14 - }, - "end": { - "line": 505, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18615, - "end": 18617, - "loc": { - "start": { - "line": 505, - "column": 26 - }, - "end": { - "line": 505, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18620, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 18620, - "end": 18650, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18620, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 57 - } - }, - "object": { - "type": "ThisExpression", - "start": 18620, - "end": 18624, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 18625, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 36 - }, - "end": { - "line": 505, - "column": 57 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18647, - "end": 18649, - "loc": { - "start": { - "line": 505, - "column": 58 - }, - "end": { - "line": 505, - "column": 60 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 18658, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 5 - }, - "end": { - "line": 506, - "column": 41 - } - }, - "test": { - "type": "Identifier", - "start": 18662, - "end": 18673, - "loc": { - "start": { - "line": 506, - "column": 9 - }, - "end": { - "line": 506, - "column": 20 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 18675, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 18675, - "end": 18693, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 18675, - "end": 18686, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 33 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 18687, - "end": 18692, - "loc": { - "start": { - "line": 506, - "column": 34 - }, - "end": { - "line": 506, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 18701, - "end": 18708, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 12 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 18721, - "end": 18808, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 91 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18721, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 90 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18721, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 28 - } - }, - "object": { - "type": "MemberExpression", - "start": 18721, - "end": 18741, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 18721, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 18721, - "end": 18725, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18726, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 9 - }, - "end": { - "line": 509, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18738, - "end": 18740, - "loc": { - "start": { - "line": 509, - "column": 21 - }, - "end": { - "line": 509, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18742, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 25 - }, - "end": { - "line": 509, - "column": 28 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 18748, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18748, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 18748, - "end": 18758, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 41 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 18759, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 42 - }, - "end": { - "line": 509, - "column": 63 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18781, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 18781, - "end": 18801, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 84 - } - }, - "object": { - "type": "MemberExpression", - "start": 18781, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 80 - } - }, - "object": { - "type": "Identifier", - "start": 18781, - "end": 18785, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 68 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18786, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 69 - }, - "end": { - "line": 509, - "column": 80 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18798, - "end": 18800, - "loc": { - "start": { - "line": 509, - "column": 81 - }, - "end": { - "line": 509, - "column": 83 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18802, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 85 - }, - "end": { - "line": 509, - "column": 89 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 18814, - "end": 18850, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18814, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18814, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 33 - } - }, - "object": { - "type": "MemberExpression", - "start": 18814, - "end": 18834, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 18814, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 18814, - "end": 18818, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 18819, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 9 - }, - "end": { - "line": 510, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18831, - "end": 18833, - "loc": { - "start": { - "line": 510, - "column": 21 - }, - "end": { - "line": 510, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18835, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 25 - }, - "end": { - "line": 510, - "column": 33 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 18846, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 36 - }, - "end": { - "line": 510, - "column": 39 - }, - "identifierName": "now" - }, - "name": "now" - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 18867, - "end": 18954, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18867, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 18867, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 18867, - "end": 18887, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 18867, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 18867, - "end": 18871, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 18872, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 7 - }, - "end": { - "line": 514, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18884, - "end": 18886, - "loc": { - "start": { - "line": 514, - "column": 19 - }, - "end": { - "line": 514, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18888, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 26 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 18894, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 88 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18894, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 18894, - "end": 18904, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 39 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 18905, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 40 - }, - "end": { - "line": 514, - "column": 61 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 18927, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 18927, - "end": 18947, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 82 - } - }, - "object": { - "type": "MemberExpression", - "start": 18927, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 78 - } - }, - "object": { - "type": "ThisExpression", - "start": 18927, - "end": 18931, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 66 - } - } - }, - "property": { - "type": "Identifier", - "start": 18932, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 67 - }, - "end": { - "line": 514, - "column": 78 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18944, - "end": 18946, - "loc": { - "start": { - "line": 514, - "column": 79 - }, - "end": { - "line": 514, - "column": 81 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 18948, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 83 - }, - "end": { - "line": 514, - "column": 87 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 18958, - "end": 18968, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 18965, - "end": 18967, - "loc": { - "start": { - "line": 515, - "column": 9 - }, - "end": { - "line": 515, - "column": 11 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19098, - "end": 19265, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 527, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19098, - "end": 19119, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 522, - "column": 22 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19120, - "end": 19123, - "loc": { - "start": { - "line": 522, - "column": 23 - }, - "end": { - "line": 522, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - } - ], - "body": { - "type": "BlockStatement", - "start": 19125, - "end": 19265, - "loc": { - "start": { - "line": 522, - "column": 28 - }, - "end": { - "line": 527, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 19130, - "end": 19261, - "loc": { - "start": { - "line": 523, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "test": { - "type": "MemberExpression", - "start": 19134, - "end": 19155, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 19134, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 19134, - "end": 19138, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "start": 19139, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 11 - }, - "end": { - "line": 523, - "column": 22 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19151, - "end": 19154, - "loc": { - "start": { - "line": 523, - "column": 23 - }, - "end": { - "line": 523, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 19157, - "end": 19261, - "loc": { - "start": { - "line": 523, - "column": 29 - }, - "end": { - "line": 526, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19163, - "end": 19222, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 19163, - "end": 19221, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19163, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 19163, - "end": 19173, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 13 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 19174, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 34 - }, - "identifierName": "cancelAnimationFrame" - }, - "name": "cancelAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 19195, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 19195, - "end": 19216, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 56 - } - }, - "object": { - "type": "MemberExpression", - "start": 19195, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 51 - } - }, - "object": { - "type": "ThisExpression", - "start": 19195, - "end": 19199, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 19200, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 40 - }, - "end": { - "line": 524, - "column": 51 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19212, - "end": 19215, - "loc": { - "start": { - "line": 524, - "column": 52 - }, - "end": { - "line": 524, - "column": 55 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 19217, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 57 - }, - "end": { - "line": 524, - "column": 60 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 19227, - "end": 19256, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 32 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 19227, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 31 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 19234, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 19234, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 26 - } - }, - "object": { - "type": "ThisExpression", - "start": 19234, - "end": 19238, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 14 - } - } - }, - "property": { - "type": "Identifier", - "start": 19239, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 15 - }, - "end": { - "line": 525, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 19251, - "end": 19254, - "loc": { - "start": { - "line": 525, - "column": 27 - }, - "end": { - "line": 525, - "column": 30 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19952, - "end": 20745, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 558, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19952, - "end": 19967, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 539, - "column": 16 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19968, - "end": 19973, - "loc": { - "start": { - "line": 539, - "column": 17 - }, - "end": { - "line": 539, - "column": 22 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 19975, - "end": 19981, - "loc": { - "start": { - "line": 539, - "column": 24 - }, - "end": { - "line": 539, - "column": 30 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "Identifier", - "start": 19983, - "end": 19989, - "loc": { - "start": { - "line": 539, - "column": 32 - }, - "end": { - "line": 539, - "column": 38 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 19991, - "end": 20745, - "loc": { - "start": { - "line": 539, - "column": 40 - }, - "end": { - "line": 558, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 20134, - "end": 20246, - "loc": { - "start": { - "line": 543, - "column": 2 - }, - "end": { - "line": 543, - "column": 114 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20140, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "id": { - "type": "Identifier", - "start": 20140, - "end": 20142, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 10 - }, - "identifierName": "cx" - }, - "name": "cx", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20145, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 20145, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 20145, - "end": 20150, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20151, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 19 - }, - "end": { - "line": 543, - "column": 20 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20155, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 20155, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 20155, - "end": 20160, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20161, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 29 - }, - "end": { - "line": 543, - "column": 34 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 20170, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 20170, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 89 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20170, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 71 - } - }, - "left": { - "type": "UnaryExpression", - "start": 20170, - "end": 20190, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 58 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 20177, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 20177, - "end": 20182, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 50 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20183, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 51 - }, - "end": { - "line": 543, - "column": 57 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 20176 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 20195, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 63 - }, - "end": { - "line": 543, - "column": 71 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 20207, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 20207, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 20207, - "end": 20212, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 80 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20213, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 81 - }, - "end": { - "line": 543, - "column": 87 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20220, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 88 - }, - "end": { - "line": 543, - "column": 89 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 20224, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 106 - } - }, - "object": { - "type": "MemberExpression", - "start": 20224, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 104 - } - }, - "object": { - "type": "Identifier", - "start": 20224, - "end": 20229, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20230, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 98 - }, - "end": { - "line": 543, - "column": 104 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20237, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 105 - }, - "end": { - "line": 543, - "column": 106 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 20241, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 109 - }, - "end": { - "line": 543, - "column": 112 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 20169 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 19996, - "end": 20036, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 540, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 20040, - "end": 20093, - "loc": { - "start": { - "line": 541, - "column": 2 - }, - "end": { - "line": 541, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 20097, - "end": 20130, - "loc": { - "start": { - "line": 542, - "column": 2 - }, - "end": { - "line": 542, - "column": 35 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20250, - "end": 20363, - "loc": { - "start": { - "line": 544, - "column": 2 - }, - "end": { - "line": 544, - "column": 115 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20256, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "id": { - "type": "Identifier", - "start": 20256, - "end": 20258, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 10 - }, - "identifierName": "cy" - }, - "name": "cy" - }, - "init": { - "type": "BinaryExpression", - "start": 20261, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 20261, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 20261, - "end": 20266, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20267, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 19 - }, - "end": { - "line": 544, - "column": 20 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20271, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 20271, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20271, - "end": 20276, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20277, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 29 - }, - "end": { - "line": 544, - "column": 35 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 20287, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 113 - } - }, - "test": { - "type": "LogicalExpression", - "start": 20287, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 90 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20287, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 72 - } - }, - "left": { - "type": "UnaryExpression", - "start": 20287, - "end": 20307, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 59 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 20294, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 20294, - "end": 20299, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 51 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20300, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 52 - }, - "end": { - "line": 544, - "column": 58 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 20293 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 20312, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 64 - }, - "end": { - "line": 544, - "column": 72 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 20324, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 90 - } - }, - "object": { - "type": "MemberExpression", - "start": 20324, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 88 - } - }, - "object": { - "type": "Identifier", - "start": 20324, - "end": 20329, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 81 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20330, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 82 - }, - "end": { - "line": 544, - "column": 88 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20337, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 89 - }, - "end": { - "line": 544, - "column": 90 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 20341, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 107 - } - }, - "object": { - "type": "MemberExpression", - "start": 20341, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 105 - } - }, - "object": { - "type": "Identifier", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 98 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 20347, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 99 - }, - "end": { - "line": 544, - "column": 105 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 20354, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 106 - }, - "end": { - "line": 544, - "column": 107 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 20358, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 110 - }, - "end": { - "line": 544, - "column": 113 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 20286 - } - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20401, - "end": 20429, - "loc": { - "start": { - "line": 547, - "column": 2 - }, - "end": { - "line": 547, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20407, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 20407, - "end": 20412, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 13 - }, - "identifierName": "tempX" - }, - "name": "tempX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20415, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 20415, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 20415, - "end": 20421, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 20422, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 20426, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 27 - }, - "end": { - "line": 547, - "column": 29 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20433, - "end": 20461, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20439, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 20439, - "end": 20444, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 13 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "init": { - "type": "BinaryExpression", - "start": 20447, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 20447, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 20447, - "end": 20453, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 20454, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 23 - }, - "end": { - "line": 548, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 20458, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 29 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20492, - "end": 20560, - "loc": { - "start": { - "line": 551, - "column": 2 - }, - "end": { - "line": 551, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20498, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 20498, - "end": 20506, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 16 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20509, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20509, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 41 - } - }, - "left": { - "type": "Identifier", - "start": 20509, - "end": 20514, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 20515, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20515, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 20515, - "end": 20519, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20520, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 30 - }, - "end": { - "line": 551, - "column": 33 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20524, - "end": 20530, - "loc": { - "start": { - "line": 551, - "column": 34 - }, - "end": { - "line": 551, - "column": 40 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 20534, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 20534, - "end": 20539, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 49 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 20541, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 51 - }, - "end": { - "line": 551, - "column": 68 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 20542, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 68 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20542, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 20542, - "end": 20546, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 56 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20547, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 57 - }, - "end": { - "line": 551, - "column": 60 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20551, - "end": 20557, - "loc": { - "start": { - "line": 551, - "column": 61 - }, - "end": { - "line": 551, - "column": 67 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 20540 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20564, - "end": 20632, - "loc": { - "start": { - "line": 552, - "column": 2 - }, - "end": { - "line": 552, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20570, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 20570, - "end": 20578, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 16 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "init": { - "type": "BinaryExpression", - "start": 20581, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 20581, - "end": 20606, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 44 - } - }, - "left": { - "type": "Identifier", - "start": 20581, - "end": 20586, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 20588, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 26 - }, - "end": { - "line": 552, - "column": 43 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 20589, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20589, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 20589, - "end": 20593, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20594, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 32 - }, - "end": { - "line": 552, - "column": 35 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 552, - "column": 36 - }, - "end": { - "line": 552, - "column": 42 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 20587 - } - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 20609, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 20609, - "end": 20614, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 52 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 20615, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20615, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 20615, - "end": 20619, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 20620, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 58 - }, - "end": { - "line": 552, - "column": 61 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20624, - "end": 20630, - "loc": { - "start": { - "line": 552, - "column": 62 - }, - "end": { - "line": 552, - "column": 68 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20659, - "end": 20683, - "loc": { - "start": { - "line": 555, - "column": 2 - }, - "end": { - "line": 555, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20665, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20665, - "end": 20666, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 20669, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 20669, - "end": 20677, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 20 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 20680, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 23 - }, - "end": { - "line": 555, - "column": 25 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 20687, - "end": 20711, - "loc": { - "start": { - "line": 556, - "column": 2 - }, - "end": { - "line": 556, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20693, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20693, - "end": 20694, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 20697, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 20697, - "end": 20705, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 20 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 20708, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 23 - }, - "end": { - "line": 556, - "column": 25 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 20715, - "end": 20741, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 28 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 20722, - "end": 20740, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 20724, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20724, - "end": 20727, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 14 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "Identifier", - "start": 20729, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 16 - }, - "end": { - "line": 557, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - } - }, - { - "type": "ObjectProperty", - "start": 20732, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20732, - "end": 20735, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 22 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "Identifier", - "start": 20737, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 24 - }, - "end": { - "line": 557, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21246, - "end": 21875, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 574, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21246, - "end": 21268, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 567, - "column": 23 - }, - "identifierName": "getPointsOfRotatedRect" - }, - "name": "getPointsOfRotatedRect", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 21269, - "end": 21274, - "loc": { - "start": { - "line": 567, - "column": 24 - }, - "end": { - "line": 567, - "column": 29 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21276, - "end": 21282, - "loc": { - "start": { - "line": 567, - "column": 31 - }, - "end": { - "line": 567, - "column": 37 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ], - "body": { - "type": "BlockStatement", - "start": 21284, - "end": 21875, - "loc": { - "start": { - "line": 567, - "column": 39 - }, - "end": { - "line": 574, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 21289, - "end": 21368, - "loc": { - "start": { - "line": 568, - "column": 2 - }, - "end": { - "line": 568, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21295, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 21295, - "end": 21297, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 10 - }, - "identifierName": "tl" - }, - "name": "tl" - }, - "init": { - "type": "CallExpression", - "start": 21300, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 80 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21300, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21300, - "end": 21304, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21305, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 18 - }, - "end": { - "line": 568, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21321, - "end": 21326, - "loc": { - "start": { - "line": 568, - "column": 34 - }, - "end": { - "line": 568, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21328, - "end": 21334, - "loc": { - "start": { - "line": 568, - "column": 41 - }, - "end": { - "line": 568, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21336, - "end": 21366, - "loc": { - "start": { - "line": 568, - "column": 49 - }, - "end": { - "line": 568, - "column": 79 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21338, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21338, - "end": 21341, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 21343, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21343, - "end": 21348, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21349, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 62 - }, - "end": { - "line": 568, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 21352, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21352, - "end": 21355, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 21357, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21357, - "end": 21362, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21363, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 76 - }, - "end": { - "line": 568, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21372, - "end": 21465, - "loc": { - "start": { - "line": 569, - "column": 2 - }, - "end": { - "line": 569, - "column": 95 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21378, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 94 - } - }, - "id": { - "type": "Identifier", - "start": 21378, - "end": 21380, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 10 - }, - "identifierName": "tr" - }, - "name": "tr" - }, - "init": { - "type": "CallExpression", - "start": 21383, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21383, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21383, - "end": 21387, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21388, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 569, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21404, - "end": 21409, - "loc": { - "start": { - "line": 569, - "column": 34 - }, - "end": { - "line": 569, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21411, - "end": 21417, - "loc": { - "start": { - "line": 569, - "column": 41 - }, - "end": { - "line": 569, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21419, - "end": 21463, - "loc": { - "start": { - "line": 569, - "column": 49 - }, - "end": { - "line": 569, - "column": 93 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21421, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21421, - "end": 21424, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21426, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 21426, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21426, - "end": 21431, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21432, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 62 - }, - "end": { - "line": 569, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21436, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21436, - "end": 21441, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21442, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 72 - }, - "end": { - "line": 569, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 21449, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 91 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21449, - "end": 21452, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 21454, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 21454, - "end": 21459, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21460, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 90 - }, - "end": { - "line": 569, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21469, - "end": 21563, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 570, - "column": 96 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21475, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 95 - } - }, - "id": { - "type": "Identifier", - "start": 21475, - "end": 21477, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 10 - }, - "identifierName": "bl" - }, - "name": "bl" - }, - "init": { - "type": "CallExpression", - "start": 21480, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21480, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21480, - "end": 21484, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21485, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 18 - }, - "end": { - "line": 570, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21501, - "end": 21506, - "loc": { - "start": { - "line": 570, - "column": 34 - }, - "end": { - "line": 570, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21508, - "end": 21514, - "loc": { - "start": { - "line": 570, - "column": 41 - }, - "end": { - "line": 570, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21516, - "end": 21561, - "loc": { - "start": { - "line": 570, - "column": 49 - }, - "end": { - "line": 570, - "column": 94 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21518, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21518, - "end": 21521, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 21523, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21523, - "end": 21528, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21529, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 62 - }, - "end": { - "line": 570, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 21532, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21532, - "end": 21535, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21537, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "left": { - "type": "MemberExpression", - "start": 21537, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21537, - "end": 21542, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21543, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 76 - }, - "end": { - "line": 570, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21547, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 92 - } - }, - "object": { - "type": "Identifier", - "start": 21547, - "end": 21552, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 85 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21553, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 86 - }, - "end": { - "line": 570, - "column": 92 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21567, - "end": 21675, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 110 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21573, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 109 - } - }, - "id": { - "type": "Identifier", - "start": 21573, - "end": 21575, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 10 - }, - "identifierName": "br" - }, - "name": "br" - }, - "init": { - "type": "CallExpression", - "start": 21578, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 109 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21578, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 21578, - "end": 21582, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 21583, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 18 - }, - "end": { - "line": 571, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21599, - "end": 21604, - "loc": { - "start": { - "line": 571, - "column": 34 - }, - "end": { - "line": 571, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21606, - "end": 21612, - "loc": { - "start": { - "line": 571, - "column": 41 - }, - "end": { - "line": 571, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21614, - "end": 21673, - "loc": { - "start": { - "line": 571, - "column": 49 - }, - "end": { - "line": 571, - "column": 108 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21616, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21616, - "end": 21619, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21621, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 21621, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 21621, - "end": 21626, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21627, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 62 - }, - "end": { - "line": 571, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21631, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 21631, - "end": 21636, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21637, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 72 - }, - "end": { - "line": 571, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 21644, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21644, - "end": 21647, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21649, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "left": { - "type": "MemberExpression", - "start": 21649, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 21649, - "end": 21654, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 90 - }, - "end": { - "line": 571, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 21659, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 21659, - "end": 21664, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 99 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21665, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 100 - }, - "end": { - "line": 571, - "column": 106 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 21679, - "end": 21799, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 122 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 21685, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 121 - } - }, - "id": { - "type": "Identifier", - "start": 21685, - "end": 21691, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 14 - }, - "identifierName": "center" - }, - "name": "center" - }, - "init": { - "type": "CallExpression", - "start": 21694, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 121 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21694, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 37 - } - }, - "object": { - "type": "ThisExpression", - "start": 21694, - "end": 21698, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "start": 21699, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 22 - }, - "end": { - "line": 572, - "column": 37 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 21715, - "end": 21720, - "loc": { - "start": { - "line": 572, - "column": 38 - }, - "end": { - "line": 572, - "column": 43 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 21722, - "end": 21728, - "loc": { - "start": { - "line": 572, - "column": 45 - }, - "end": { - "line": 572, - "column": 51 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 21730, - "end": 21797, - "loc": { - "start": { - "line": 572, - "column": 53 - }, - "end": { - "line": 572, - "column": 120 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21732, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21732, - "end": 21735, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 58 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 21737, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 21737, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 21737, - "end": 21742, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 65 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21743, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 66 - }, - "end": { - "line": 572, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 21747, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 21747, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 81 - } - }, - "object": { - "type": "Identifier", - "start": 21747, - "end": 21752, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21753, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 76 - }, - "end": { - "line": 572, - "column": 81 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21761, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 84 - }, - "end": { - "line": 572, - "column": 85 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 21764, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21764, - "end": 21767, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 90 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 21769, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 21769, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 21769, - "end": 21774, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21775, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 98 - }, - "end": { - "line": 572, - "column": 99 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 21779, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 21779, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 114 - } - }, - "object": { - "type": "Identifier", - "start": 21779, - "end": 21784, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 107 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 21785, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 108 - }, - "end": { - "line": 572, - "column": 114 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 21794, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 117 - }, - "end": { - "line": 572, - "column": 118 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 21803, - "end": 21871, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 573, - "column": 70 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 21810, - "end": 21870, - "loc": { - "start": { - "line": 573, - "column": 9 - }, - "end": { - "line": 573, - "column": 69 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 21812, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21812, - "end": 21816, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 15 - } - }, - "extra": { - "rawValue": "tl", - "raw": "'tl'" - }, - "value": "tl" - }, - "value": { - "type": "Identifier", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 17 - }, - "end": { - "line": 573, - "column": 19 - }, - "identifierName": "tl" - }, - "name": "tl" - } - }, - { - "type": "ObjectProperty", - "start": 21822, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21822, - "end": 21826, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 25 - } - }, - "extra": { - "rawValue": "tr", - "raw": "'tr'" - }, - "value": "tr" - }, - "value": { - "type": "Identifier", - "start": 21828, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 27 - }, - "end": { - "line": 573, - "column": 29 - }, - "identifierName": "tr" - }, - "name": "tr" - } - }, - { - "type": "ObjectProperty", - "start": 21832, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21832, - "end": 21836, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 35 - } - }, - "extra": { - "rawValue": "bl", - "raw": "'bl'" - }, - "value": "bl" - }, - "value": { - "type": "Identifier", - "start": 21838, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 37 - }, - "end": { - "line": 573, - "column": 39 - }, - "identifierName": "bl" - }, - "name": "bl" - } - }, - { - "type": "ObjectProperty", - "start": 21842, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21842, - "end": 21846, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 45 - } - }, - "extra": { - "rawValue": "br", - "raw": "'br'" - }, - "value": "br" - }, - "value": { - "type": "Identifier", - "start": 21848, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 47 - }, - "end": { - "line": 573, - "column": 49 - }, - "identifierName": "br" - }, - "name": "br" - } - }, - { - "type": "ObjectProperty", - "start": 21852, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 67 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 21852, - "end": 21860, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 59 - } - }, - "extra": { - "rawValue": "center", - "raw": "'center'" - }, - "value": "center" - }, - "value": { - "type": "Identifier", - "start": 21862, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 61 - }, - "end": { - "line": 573, - "column": 67 - }, - "identifierName": "center" - }, - "name": "center" - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class EUtilsSingleton\r\n* @license EUtils does not have a license at this time. For licensing contact the author\r\n* @author https://github.com/doubleactii\r\n* Copyright (c) 2023 Evitca Studio\r\n", - "start": 2, - "end": 224, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - } - ], - "__PseudoExport__": true, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class EUtilsSingleton\r\n* @license EUtils does not have a license at this time. For licensing contact the author\r\n* @author https://github.com/doubleactii\r\n* Copyright (c) 2023 Evitca Studio\r\n", - "start": 2, - "end": 224, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the library\r\n\t ", - "start": 252, - "end": 293, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 12, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t\t * Object storing all color objects being transitioned at the moment\r\n\t\t * \r\n\t\t * @type {Object}\r\n\t\t ", - "start": 343, - "end": 453, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 6873, - "end": 6906, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 37 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 13590, - "end": 13615, - "loc": { - "start": { - "line": 379, - "column": 3 - }, - "end": { - "line": 379, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 15006, - "end": 15040, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 36 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 16061, - "end": 16097, - "loc": { - "start": { - "line": 439, - "column": 2 - }, - "end": { - "line": 439, - "column": 38 - } - } - }, - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - }, - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 19996, - "end": 20036, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 540, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 20040, - "end": 20093, - "loc": { - "start": { - "line": 541, - "column": 2 - }, - "end": { - "line": 541, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 20097, - "end": 20130, - "loc": { - "start": { - "line": 542, - "column": 2 - }, - "end": { - "line": 542, - "column": 35 - } - } - }, - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - }, - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - } - ], - "tokens": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class EUtilsSingleton\r\n* @license EUtils does not have a license at this time. For licensing contact the author\r\n* @author https://github.com/doubleactii\r\n* Copyright (c) 2023 Evitca Studio\r\n", - "start": 2, - "end": 224, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - }, - { - "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": 226, - "end": 231, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "EUtilsSingleton", - "start": 232, - "end": 247, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 248, - "end": 249, - "loc": { - "start": { - "line": 9, - "column": 22 - }, - "end": { - "line": 9, - "column": 23 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the library\r\n\t ", - "start": 252, - "end": 293, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 12, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "static", - "start": 296, - "end": 302, - "loc": { - "start": { - "line": 13, - "column": 1 - }, - "end": { - "line": 13, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "version", - "start": 303, - "end": 310, - "loc": { - "start": { - "line": 13, - "column": 8 - }, - "end": { - "line": 13, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 311, - "end": 312, - "loc": { - "start": { - "line": 13, - "column": 16 - }, - "end": { - "line": 13, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "1.0.0", - "start": 313, - "end": 320, - "loc": { - "start": { - "line": 13, - "column": 18 - }, - "end": { - "line": 13, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 320, - "end": 321, - "loc": { - "start": { - "line": 13, - "column": 25 - }, - "end": { - "line": 13, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "constructor", - "start": 324, - "end": 335, - "loc": { - "start": { - "line": 14, - "column": 1 - }, - "end": { - "line": 14, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 335, - "end": 336, - "loc": { - "start": { - "line": 14, - "column": 12 - }, - "end": { - "line": 14, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 336, - "end": 337, - "loc": { - "start": { - "line": 14, - "column": 13 - }, - "end": { - "line": 14, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 338, - "end": 339, - "loc": { - "start": { - "line": 14, - "column": 15 - }, - "end": { - "line": 14, - "column": 16 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t\t * Object storing all color objects being transitioned at the moment\r\n\t\t * \r\n\t\t * @type {Object}\r\n\t\t ", - "start": 343, - "end": 453, - "loc": { - "start": { - "line": 15, - "column": 2 - }, - "end": { - "line": 19, - "column": 5 - } - } - }, - { - "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": 457, - "end": 461, - "loc": { - "start": { - "line": 20, - "column": 2 - }, - "end": { - "line": 20, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 461, - "end": 462, - "loc": { - "start": { - "line": 20, - "column": 6 - }, - "end": { - "line": 20, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 462, - "end": 473, - "loc": { - "start": { - "line": 20, - "column": 7 - }, - "end": { - "line": 20, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 474, - "end": 475, - "loc": { - "start": { - "line": 20, - "column": 19 - }, - "end": { - "line": 20, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 476, - "end": 477, - "loc": { - "start": { - "line": 20, - "column": 21 - }, - "end": { - "line": 20, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 477, - "end": 478, - "loc": { - "start": { - "line": 20, - "column": 22 - }, - "end": { - "line": 20, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 478, - "end": 479, - "loc": { - "start": { - "line": 20, - "column": 23 - }, - "end": { - "line": 20, - "column": 24 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t\t * An array storing all the reserved unique IDS\r\n\t\t * \r\n\t\t * @type {Array}\r\n\t\t ", - "start": 483, - "end": 571, - "loc": { - "start": { - "line": 21, - "column": 2 - }, - "end": { - "line": 25, - "column": 5 - } - } - }, - { - "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": 575, - "end": 579, - "loc": { - "start": { - "line": 26, - "column": 2 - }, - "end": { - "line": 26, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 579, - "end": 580, - "loc": { - "start": { - "line": 26, - "column": 6 - }, - "end": { - "line": 26, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 580, - "end": 589, - "loc": { - "start": { - "line": 26, - "column": 7 - }, - "end": { - "line": 26, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 590, - "end": 591, - "loc": { - "start": { - "line": 26, - "column": 17 - }, - "end": { - "line": 26, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 592, - "end": 593, - "loc": { - "start": { - "line": 26, - "column": 19 - }, - "end": { - "line": 26, - "column": 20 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 593, - "end": 594, - "loc": { - "start": { - "line": 26, - "column": 20 - }, - "end": { - "line": 26, - "column": 21 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 594, - "end": 595, - "loc": { - "start": { - "line": 26, - "column": 21 - }, - "end": { - "line": 26, - "column": 22 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 598, - "end": 599, - "loc": { - "start": { - "line": 27, - "column": 1 - }, - "end": { - "line": 27, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 602, - "end": 1172, - "loc": { - "start": { - "line": 28, - "column": 1 - }, - "end": { - "line": 35, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalRand", - "start": 1175, - "end": 1186, - "loc": { - "start": { - "line": 36, - "column": 1 - }, - "end": { - "line": 36, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1186, - "end": 1187, - "loc": { - "start": { - "line": 36, - "column": 12 - }, - "end": { - "line": 36, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 36, - "column": 13 - }, - "end": { - "line": 36, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1192, - "end": 1193, - "loc": { - "start": { - "line": 36, - "column": 18 - }, - "end": { - "line": 36, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1194, - "end": 1199, - "loc": { - "start": { - "line": 36, - "column": 20 - }, - "end": { - "line": 36, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1199, - "end": 1200, - "loc": { - "start": { - "line": 36, - "column": 25 - }, - "end": { - "line": 36, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlaces", - "start": 1201, - "end": 1208, - "loc": { - "start": { - "line": 36, - "column": 27 - }, - "end": { - "line": 36, - "column": 34 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1209, - "end": 1210, - "loc": { - "start": { - "line": 36, - "column": 35 - }, - "end": { - "line": 36, - "column": 36 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1211, - "end": 1212, - "loc": { - "start": { - "line": 36, - "column": 37 - }, - "end": { - "line": 36, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1212, - "end": 1213, - "loc": { - "start": { - "line": 36, - "column": 38 - }, - "end": { - "line": 36, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1214, - "end": 1215, - "loc": { - "start": { - "line": 36, - "column": 40 - }, - "end": { - "line": 36, - "column": 41 - } - } - }, - { - "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": 1219, - "end": 1224, - "loc": { - "start": { - "line": 37, - "column": 2 - }, - "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": "result", - "start": 1225, - "end": 1231, - "loc": { - "start": { - "line": 37, - "column": 8 - }, - "end": { - "line": 37, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1232, - "end": 1233, - "loc": { - "start": { - "line": 37, - "column": 15 - }, - "end": { - "line": 37, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Number", - "start": 1234, - "end": 1240, - "loc": { - "start": { - "line": 37, - "column": 17 - }, - "end": { - "line": 37, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1240, - "end": 1241, - "loc": { - "start": { - "line": 37, - "column": 23 - }, - "end": { - "line": 37, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1241, - "end": 1242, - "loc": { - "start": { - "line": 37, - "column": 24 - }, - "end": { - "line": 37, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1242, - "end": 1246, - "loc": { - "start": { - "line": 37, - "column": 25 - }, - "end": { - "line": 37, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1246, - "end": 1247, - "loc": { - "start": { - "line": 37, - "column": 29 - }, - "end": { - "line": 37, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 1247, - "end": 1253, - "loc": { - "start": { - "line": 37, - "column": 30 - }, - "end": { - "line": 37, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1253, - "end": 1254, - "loc": { - "start": { - "line": 37, - "column": 36 - }, - "end": { - "line": 37, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1254, - "end": 1255, - "loc": { - "start": { - "line": 37, - "column": 37 - }, - "end": { - "line": 37, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 1256, - "end": 1257, - "loc": { - "start": { - "line": 37, - "column": 39 - }, - "end": { - "line": 37, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1258, - "end": 1259, - "loc": { - "start": { - "line": 37, - "column": 41 - }, - "end": { - "line": 37, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1259, - "end": 1264, - "loc": { - "start": { - "line": 37, - "column": 42 - }, - "end": { - "line": 37, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 1265, - "end": 1266, - "loc": { - "start": { - "line": 37, - "column": 48 - }, - "end": { - "line": 37, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1267, - "end": 1272, - "loc": { - "start": { - "line": 37, - "column": 50 - }, - "end": { - "line": 37, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1272, - "end": 1273, - "loc": { - "start": { - "line": 37, - "column": 55 - }, - "end": { - "line": 37, - "column": 56 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1274, - "end": 1275, - "loc": { - "start": { - "line": 37, - "column": 57 - }, - "end": { - "line": 37, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1276, - "end": 1281, - "loc": { - "start": { - "line": 37, - "column": 59 - }, - "end": { - "line": 37, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1281, - "end": 1282, - "loc": { - "start": { - "line": 37, - "column": 64 - }, - "end": { - "line": 37, - "column": 65 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1282, - "end": 1283, - "loc": { - "start": { - "line": 37, - "column": 65 - }, - "end": { - "line": 37, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toFixed", - "start": 1283, - "end": 1290, - "loc": { - "start": { - "line": 37, - "column": 66 - }, - "end": { - "line": 37, - "column": 73 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1290, - "end": 1291, - "loc": { - "start": { - "line": 37, - "column": 73 - }, - "end": { - "line": 37, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlaces", - "start": 1291, - "end": 1298, - "loc": { - "start": { - "line": 37, - "column": 74 - }, - "end": { - "line": 37, - "column": 81 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1298, - "end": 1299, - "loc": { - "start": { - "line": 37, - "column": 81 - }, - "end": { - "line": 37, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1299, - "end": 1300, - "loc": { - "start": { - "line": 37, - "column": 82 - }, - "end": { - "line": 37, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1300, - "end": 1301, - "loc": { - "start": { - "line": 37, - "column": 83 - }, - "end": { - "line": 37, - "column": 84 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1305, - "end": 1311, - "loc": { - "start": { - "line": 38, - "column": 2 - }, - "end": { - "line": 38, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1312, - "end": 1313, - "loc": { - "start": { - "line": 38, - "column": 9 - }, - "end": { - "line": 38, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1313, - "end": 1319, - "loc": { - "start": { - "line": 38, - "column": 10 - }, - "end": { - "line": 38, - "column": 16 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 1320, - "end": 1322, - "loc": { - "start": { - "line": 38, - "column": 17 - }, - "end": { - "line": 38, - "column": 19 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1323, - "end": 1324, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1325, - "end": 1326, - "loc": { - "start": { - "line": 38, - "column": 22 - }, - "end": { - "line": 38, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1327, - "end": 1331, - "loc": { - "start": { - "line": 38, - "column": 24 - }, - "end": { - "line": 38, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1331, - "end": 1332, - "loc": { - "start": { - "line": 38, - "column": 28 - }, - "end": { - "line": 38, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 1332, - "end": 1337, - "loc": { - "start": { - "line": 38, - "column": 29 - }, - "end": { - "line": 38, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1337, - "end": 1338, - "loc": { - "start": { - "line": 38, - "column": 34 - }, - "end": { - "line": 38, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1338, - "end": 1344, - "loc": { - "start": { - "line": 38, - "column": 35 - }, - "end": { - "line": 38, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1344, - "end": 1345, - "loc": { - "start": { - "line": 38, - "column": 41 - }, - "end": { - "line": 38, - "column": 42 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1346, - "end": 1347, - "loc": { - "start": { - "line": 38, - "column": 43 - }, - "end": { - "line": 38, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1348, - "end": 1354, - "loc": { - "start": { - "line": 38, - "column": 45 - }, - "end": { - "line": 38, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1354, - "end": 1355, - "loc": { - "start": { - "line": 38, - "column": 51 - }, - "end": { - "line": 38, - "column": 52 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1355, - "end": 1356, - "loc": { - "start": { - "line": 38, - "column": 52 - }, - "end": { - "line": 38, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1359, - "end": 1360, - "loc": { - "start": { - "line": 39, - "column": 1 - }, - "end": { - "line": 39, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1363, - "end": 1787, - "loc": { - "start": { - "line": 40, - "column": 1 - }, - "end": { - "line": 46, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rand", - "start": 1790, - "end": 1794, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 47, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1794, - "end": 1795, - "loc": { - "start": { - "line": 47, - "column": 5 - }, - "end": { - "line": 47, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1795, - "end": 1800, - "loc": { - "start": { - "line": 47, - "column": 6 - }, - "end": { - "line": 47, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1800, - "end": 1801, - "loc": { - "start": { - "line": 47, - "column": 11 - }, - "end": { - "line": 47, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1802, - "end": 1807, - "loc": { - "start": { - "line": 47, - "column": 13 - }, - "end": { - "line": 47, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1807, - "end": 1808, - "loc": { - "start": { - "line": 47, - "column": 18 - }, - "end": { - "line": 47, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1809, - "end": 1810, - "loc": { - "start": { - "line": 47, - "column": 20 - }, - "end": { - "line": 47, - "column": 21 - } - } - }, - { - "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": 1814, - "end": 1819, - "loc": { - "start": { - "line": 48, - "column": 2 - }, - "end": { - "line": 48, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1820, - "end": 1826, - "loc": { - "start": { - "line": 48, - "column": 8 - }, - "end": { - "line": 48, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1827, - "end": 1828, - "loc": { - "start": { - "line": 48, - "column": 15 - }, - "end": { - "line": 48, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Number", - "start": 1829, - "end": 1835, - "loc": { - "start": { - "line": 48, - "column": 17 - }, - "end": { - "line": 48, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1835, - "end": 1836, - "loc": { - "start": { - "line": 48, - "column": 23 - }, - "end": { - "line": 48, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1836, - "end": 1837, - "loc": { - "start": { - "line": 48, - "column": 24 - }, - "end": { - "line": 48, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1837, - "end": 1841, - "loc": { - "start": { - "line": 48, - "column": 25 - }, - "end": { - "line": 48, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1841, - "end": 1842, - "loc": { - "start": { - "line": 48, - "column": 29 - }, - "end": { - "line": 48, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 1842, - "end": 1848, - "loc": { - "start": { - "line": 48, - "column": 30 - }, - "end": { - "line": 48, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1848, - "end": 1849, - "loc": { - "start": { - "line": 48, - "column": 36 - }, - "end": { - "line": 48, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1849, - "end": 1850, - "loc": { - "start": { - "line": 48, - "column": 37 - }, - "end": { - "line": 48, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 1851, - "end": 1852, - "loc": { - "start": { - "line": 48, - "column": 39 - }, - "end": { - "line": 48, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1853, - "end": 1854, - "loc": { - "start": { - "line": 48, - "column": 41 - }, - "end": { - "line": 48, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1854, - "end": 1859, - "loc": { - "start": { - "line": 48, - "column": 42 - }, - "end": { - "line": 48, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 1860, - "end": 1861, - "loc": { - "start": { - "line": 48, - "column": 48 - }, - "end": { - "line": 48, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 48, - "column": 50 - }, - "end": { - "line": 48, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1867, - "end": 1868, - "loc": { - "start": { - "line": 48, - "column": 55 - }, - "end": { - "line": 48, - "column": 56 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1869, - "end": 1870, - "loc": { - "start": { - "line": 48, - "column": 57 - }, - "end": { - "line": 48, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1871, - "end": 1876, - "loc": { - "start": { - "line": 48, - "column": 59 - }, - "end": { - "line": 48, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1876, - "end": 1877, - "loc": { - "start": { - "line": 48, - "column": 64 - }, - "end": { - "line": 48, - "column": 65 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1877, - "end": 1878, - "loc": { - "start": { - "line": 48, - "column": 65 - }, - "end": { - "line": 48, - "column": 66 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1878, - "end": 1879, - "loc": { - "start": { - "line": 48, - "column": 66 - }, - "end": { - "line": 48, - "column": 67 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1883, - "end": 1889, - "loc": { - "start": { - "line": 49, - "column": 2 - }, - "end": { - "line": 49, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1890, - "end": 1894, - "loc": { - "start": { - "line": 49, - "column": 9 - }, - "end": { - "line": 49, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1894, - "end": 1895, - "loc": { - "start": { - "line": 49, - "column": 13 - }, - "end": { - "line": 49, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 1895, - "end": 1900, - "loc": { - "start": { - "line": 49, - "column": 14 - }, - "end": { - "line": 49, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1900, - "end": 1901, - "loc": { - "start": { - "line": 49, - "column": 19 - }, - "end": { - "line": 49, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1901, - "end": 1907, - "loc": { - "start": { - "line": 49, - "column": 20 - }, - "end": { - "line": 49, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1907, - "end": 1908, - "loc": { - "start": { - "line": 49, - "column": 26 - }, - "end": { - "line": 49, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1908, - "end": 1909, - "loc": { - "start": { - "line": 49, - "column": 27 - }, - "end": { - "line": 49, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1912, - "end": 1913, - "loc": { - "start": { - "line": 50, - "column": 1 - }, - "end": { - "line": 50, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 1916, - "end": 2244, - "loc": { - "start": { - "line": 51, - "column": 1 - }, - "end": { - "line": 57, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPercentage", - "start": 2247, - "end": 2260, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 58, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2260, - "end": 2261, - "loc": { - "start": { - "line": 58, - "column": 14 - }, - "end": { - "line": 58, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pValue", - "start": 2261, - "end": 2267, - "loc": { - "start": { - "line": 58, - "column": 15 - }, - "end": { - "line": 58, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2267, - "end": 2268, - "loc": { - "start": { - "line": 58, - "column": 21 - }, - "end": { - "line": 58, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTotalValue", - "start": 2269, - "end": 2280, - "loc": { - "start": { - "line": 58, - "column": 23 - }, - "end": { - "line": 58, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2280, - "end": 2281, - "loc": { - "start": { - "line": 58, - "column": 34 - }, - "end": { - "line": 58, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2282, - "end": 2283, - "loc": { - "start": { - "line": 58, - "column": 36 - }, - "end": { - "line": 58, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2287, - "end": 2293, - "loc": { - "start": { - "line": 59, - "column": 2 - }, - "end": { - "line": 59, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2294, - "end": 2295, - "loc": { - "start": { - "line": 59, - "column": 9 - }, - "end": { - "line": 59, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 2295, - "end": 2298, - "loc": { - "start": { - "line": 59, - "column": 10 - }, - "end": { - "line": 59, - "column": 13 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 2299, - "end": 2300, - "loc": { - "start": { - "line": 59, - "column": 14 - }, - "end": { - "line": 59, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pValue", - "start": 2301, - "end": 2307, - "loc": { - "start": { - "line": 59, - "column": 16 - }, - "end": { - "line": 59, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2307, - "end": 2308, - "loc": { - "start": { - "line": 59, - "column": 22 - }, - "end": { - "line": 59, - "column": 23 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 2309, - "end": 2310, - "loc": { - "start": { - "line": 59, - "column": 24 - }, - "end": { - "line": 59, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTotalValue", - "start": 2311, - "end": 2322, - "loc": { - "start": { - "line": 59, - "column": 26 - }, - "end": { - "line": 59, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2322, - "end": 2323, - "loc": { - "start": { - "line": 59, - "column": 37 - }, - "end": { - "line": 59, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2326, - "end": 2327, - "loc": { - "start": { - "line": 60, - "column": 1 - }, - "end": { - "line": 60, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2330, - "end": 2747, - "loc": { - "start": { - "line": 61, - "column": 1 - }, - "end": { - "line": 68, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 2750, - "end": 2755, - "loc": { - "start": { - "line": 69, - "column": 1 - }, - "end": { - "line": 69, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2755, - "end": 2756, - "loc": { - "start": { - "line": 69, - "column": 6 - }, - "end": { - "line": 69, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 2756, - "end": 2763, - "loc": { - "start": { - "line": 69, - "column": 7 - }, - "end": { - "line": 69, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2763, - "end": 2764, - "loc": { - "start": { - "line": 69, - "column": 14 - }, - "end": { - "line": 69, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 2765, - "end": 2769, - "loc": { - "start": { - "line": 69, - "column": 16 - }, - "end": { - "line": 69, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2770, - "end": 2771, - "loc": { - "start": { - "line": 69, - "column": 21 - }, - "end": { - "line": 69, - "column": 22 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 2772, - "end": 2773, - "loc": { - "start": { - "line": 69, - "column": 23 - }, - "end": { - "line": 69, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2773, - "end": 2774, - "loc": { - "start": { - "line": 69, - "column": 24 - }, - "end": { - "line": 69, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 2775, - "end": 2779, - "loc": { - "start": { - "line": 69, - "column": 26 - }, - "end": { - "line": 69, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2780, - "end": 2781, - "loc": { - "start": { - "line": 69, - "column": 31 - }, - "end": { - "line": 69, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 2782, - "end": 2783, - "loc": { - "start": { - "line": 69, - "column": 33 - }, - "end": { - "line": 69, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2783, - "end": 2784, - "loc": { - "start": { - "line": 69, - "column": 34 - }, - "end": { - "line": 69, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2785, - "end": 2786, - "loc": { - "start": { - "line": 69, - "column": 36 - }, - "end": { - "line": 69, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2790, - "end": 2796, - "loc": { - "start": { - "line": 70, - "column": 2 - }, - "end": { - "line": 70, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 2797, - "end": 2801, - "loc": { - "start": { - "line": 70, - "column": 9 - }, - "end": { - "line": 70, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2801, - "end": 2802, - "loc": { - "start": { - "line": 70, - "column": 13 - }, - "end": { - "line": 70, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "max", - "start": 2802, - "end": 2805, - "loc": { - "start": { - "line": 70, - "column": 14 - }, - "end": { - "line": 70, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2805, - "end": 2806, - "loc": { - "start": { - "line": 70, - "column": 17 - }, - "end": { - "line": 70, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 2806, - "end": 2810, - "loc": { - "start": { - "line": 70, - "column": 18 - }, - "end": { - "line": 70, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2810, - "end": 2811, - "loc": { - "start": { - "line": 70, - "column": 22 - }, - "end": { - "line": 70, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 2812, - "end": 2816, - "loc": { - "start": { - "line": 70, - "column": 24 - }, - "end": { - "line": 70, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2816, - "end": 2817, - "loc": { - "start": { - "line": 70, - "column": 28 - }, - "end": { - "line": 70, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "min", - "start": 2817, - "end": 2820, - "loc": { - "start": { - "line": 70, - "column": 29 - }, - "end": { - "line": 70, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2820, - "end": 2821, - "loc": { - "start": { - "line": 70, - "column": 32 - }, - "end": { - "line": 70, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 2821, - "end": 2828, - "loc": { - "start": { - "line": 70, - "column": 33 - }, - "end": { - "line": 70, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2828, - "end": 2829, - "loc": { - "start": { - "line": 70, - "column": 40 - }, - "end": { - "line": 70, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 2830, - "end": 2834, - "loc": { - "start": { - "line": 70, - "column": 42 - }, - "end": { - "line": 70, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2834, - "end": 2835, - "loc": { - "start": { - "line": 70, - "column": 46 - }, - "end": { - "line": 70, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2835, - "end": 2836, - "loc": { - "start": { - "line": 70, - "column": 47 - }, - "end": { - "line": 70, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2836, - "end": 2837, - "loc": { - "start": { - "line": 70, - "column": 48 - }, - "end": { - "line": 70, - "column": 49 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2840, - "end": 2841, - "loc": { - "start": { - "line": 71, - "column": 1 - }, - "end": { - "line": 71, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 2844, - "end": 3257, - "loc": { - "start": { - "line": 72, - "column": 1 - }, - "end": { - "line": 79, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 3260, - "end": 3264, - "loc": { - "start": { - "line": 80, - "column": 1 - }, - "end": { - "line": 80, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3264, - "end": 3265, - "loc": { - "start": { - "line": 80, - "column": 5 - }, - "end": { - "line": 80, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 3265, - "end": 3271, - "loc": { - "start": { - "line": 80, - "column": 6 - }, - "end": { - "line": 80, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3271, - "end": 3272, - "loc": { - "start": { - "line": 80, - "column": 12 - }, - "end": { - "line": 80, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3273, - "end": 3277, - "loc": { - "start": { - "line": 80, - "column": 14 - }, - "end": { - "line": 80, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3277, - "end": 3278, - "loc": { - "start": { - "line": 80, - "column": 18 - }, - "end": { - "line": 80, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3279, - "end": 3286, - "loc": { - "start": { - "line": 80, - "column": 20 - }, - "end": { - "line": 80, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3286, - "end": 3287, - "loc": { - "start": { - "line": 80, - "column": 27 - }, - "end": { - "line": 80, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3288, - "end": 3289, - "loc": { - "start": { - "line": 80, - "column": 29 - }, - "end": { - "line": 80, - "column": 30 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3293, - "end": 3299, - "loc": { - "start": { - "line": 81, - "column": 2 - }, - "end": { - "line": 81, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3300, - "end": 3301, - "loc": { - "start": { - "line": 81, - "column": 9 - }, - "end": { - "line": 81, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 3301, - "end": 3302, - "loc": { - "start": { - "line": 81, - "column": 10 - }, - "end": { - "line": 81, - "column": 11 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 3302, - "end": 3303, - "loc": { - "start": { - "line": 81, - "column": 11 - }, - "end": { - "line": 81, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3303, - "end": 3310, - "loc": { - "start": { - "line": 81, - "column": 12 - }, - "end": { - "line": 81, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3310, - "end": 3311, - "loc": { - "start": { - "line": 81, - "column": 19 - }, - "end": { - "line": 81, - "column": 20 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 3311, - "end": 3312, - "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": "pStart", - "start": 3312, - "end": 3318, - "loc": { - "start": { - "line": 81, - "column": 21 - }, - "end": { - "line": 81, - "column": 27 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 3318, - "end": 3319, - "loc": { - "start": { - "line": 81, - "column": 27 - }, - "end": { - "line": 81, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3319, - "end": 3326, - "loc": { - "start": { - "line": 81, - "column": 28 - }, - "end": { - "line": 81, - "column": 35 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 3326, - "end": 3327, - "loc": { - "start": { - "line": 81, - "column": 35 - }, - "end": { - "line": 81, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3327, - "end": 3331, - "loc": { - "start": { - "line": 81, - "column": 36 - }, - "end": { - "line": 81, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3331, - "end": 3332, - "loc": { - "start": { - "line": 81, - "column": 40 - }, - "end": { - "line": 81, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3335, - "end": 3336, - "loc": { - "start": { - "line": 82, - "column": 1 - }, - "end": { - "line": 82, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3339, - "end": 3833, - "loc": { - "start": { - "line": 83, - "column": 1 - }, - "end": { - "line": 90, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "flooredLerp", - "start": 3836, - "end": 3847, - "loc": { - "start": { - "line": 91, - "column": 1 - }, - "end": { - "line": 91, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3847, - "end": 3848, - "loc": { - "start": { - "line": 91, - "column": 12 - }, - "end": { - "line": 91, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 3848, - "end": 3854, - "loc": { - "start": { - "line": 91, - "column": 13 - }, - "end": { - "line": 91, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3854, - "end": 3855, - "loc": { - "start": { - "line": 91, - "column": 19 - }, - "end": { - "line": 91, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3856, - "end": 3860, - "loc": { - "start": { - "line": 91, - "column": 21 - }, - "end": { - "line": 91, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3860, - "end": 3861, - "loc": { - "start": { - "line": 91, - "column": 25 - }, - "end": { - "line": 91, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3862, - "end": 3869, - "loc": { - "start": { - "line": 91, - "column": 27 - }, - "end": { - "line": 91, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3869, - "end": 3870, - "loc": { - "start": { - "line": 91, - "column": 34 - }, - "end": { - "line": 91, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3871, - "end": 3872, - "loc": { - "start": { - "line": 91, - "column": 36 - }, - "end": { - "line": 91, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3876, - "end": 3882, - "loc": { - "start": { - "line": 92, - "column": 2 - }, - "end": { - "line": 92, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 3883, - "end": 3887, - "loc": { - "start": { - "line": 92, - "column": 9 - }, - "end": { - "line": 92, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3887, - "end": 3888, - "loc": { - "start": { - "line": 92, - "column": 13 - }, - "end": { - "line": 92, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 3888, - "end": 3893, - "loc": { - "start": { - "line": 92, - "column": 14 - }, - "end": { - "line": 92, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3893, - "end": 3894, - "loc": { - "start": { - "line": 92, - "column": 19 - }, - "end": { - "line": 92, - "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": 3894, - "end": 3898, - "loc": { - "start": { - "line": 92, - "column": 20 - }, - "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": 3898, - "end": 3899, - "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": "lerp", - "start": 3899, - "end": 3903, - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3903, - "end": 3904, - "loc": { - "start": { - "line": 92, - "column": 29 - }, - "end": { - "line": 92, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 3904, - "end": 3910, - "loc": { - "start": { - "line": 92, - "column": 30 - }, - "end": { - "line": 92, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3910, - "end": 3911, - "loc": { - "start": { - "line": 92, - "column": 36 - }, - "end": { - "line": 92, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3912, - "end": 3916, - "loc": { - "start": { - "line": 92, - "column": 38 - }, - "end": { - "line": 92, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3916, - "end": 3917, - "loc": { - "start": { - "line": 92, - "column": 42 - }, - "end": { - "line": 92, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3918, - "end": 3925, - "loc": { - "start": { - "line": 92, - "column": 44 - }, - "end": { - "line": 92, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3925, - "end": 3926, - "loc": { - "start": { - "line": 92, - "column": 51 - }, - "end": { - "line": 92, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3926, - "end": 3927, - "loc": { - "start": { - "line": 92, - "column": 52 - }, - "end": { - "line": 92, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3927, - "end": 3928, - "loc": { - "start": { - "line": 92, - "column": 53 - }, - "end": { - "line": 92, - "column": 54 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3931, - "end": 3932, - "loc": { - "start": { - "line": 93, - "column": 1 - }, - "end": { - "line": 93, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 3935, - "end": 4256, - "loc": { - "start": { - "line": 94, - "column": 1 - }, - "end": { - "line": 100, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 4259, - "end": 4264, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 101, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4264, - "end": 4265, - "loc": { - "start": { - "line": 101, - "column": 6 - }, - "end": { - "line": 101, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 4265, - "end": 4272, - "loc": { - "start": { - "line": 101, - "column": 7 - }, - "end": { - "line": 101, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4272, - "end": 4273, - "loc": { - "start": { - "line": 101, - "column": 14 - }, - "end": { - "line": 101, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4274, - "end": 4280, - "loc": { - "start": { - "line": 101, - "column": 16 - }, - "end": { - "line": 101, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4280, - "end": 4281, - "loc": { - "start": { - "line": 101, - "column": 22 - }, - "end": { - "line": 101, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 4281, - "end": 4282, - "loc": { - "start": { - "line": 101, - "column": 23 - }, - "end": { - "line": 101, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4282, - "end": 4283, - "loc": { - "start": { - "line": 101, - "column": 24 - }, - "end": { - "line": 101, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4284, - "end": 4285, - "loc": { - "start": { - "line": 101, - "column": 26 - }, - "end": { - "line": 101, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4289, - "end": 4295, - "loc": { - "start": { - "line": 102, - "column": 2 - }, - "end": { - "line": 102, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 4296, - "end": 4300, - "loc": { - "start": { - "line": 102, - "column": 9 - }, - "end": { - "line": 102, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4300, - "end": 4301, - "loc": { - "start": { - "line": 102, - "column": 13 - }, - "end": { - "line": 102, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 4301, - "end": 4306, - "loc": { - "start": { - "line": 102, - "column": 14 - }, - "end": { - "line": 102, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4306, - "end": 4307, - "loc": { - "start": { - "line": 102, - "column": 19 - }, - "end": { - "line": 102, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4307, - "end": 4313, - "loc": { - "start": { - "line": 102, - "column": 20 - }, - "end": { - "line": 102, - "column": 26 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 4314, - "end": 4315, - "loc": { - "start": { - "line": 102, - "column": 27 - }, - "end": { - "line": 102, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 4316, - "end": 4323, - "loc": { - "start": { - "line": 102, - "column": 29 - }, - "end": { - "line": 102, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4323, - "end": 4324, - "loc": { - "start": { - "line": 102, - "column": 36 - }, - "end": { - "line": 102, - "column": 37 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 4325, - "end": 4326, - "loc": { - "start": { - "line": 102, - "column": 38 - }, - "end": { - "line": 102, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4327, - "end": 4333, - "loc": { - "start": { - "line": 102, - "column": 40 - }, - "end": { - "line": 102, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4333, - "end": 4334, - "loc": { - "start": { - "line": 102, - "column": 46 - }, - "end": { - "line": 102, - "column": 47 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4337, - "end": 4338, - "loc": { - "start": { - "line": 103, - "column": 1 - }, - "end": { - "line": 103, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4341, - "end": 4823, - "loc": { - "start": { - "line": 104, - "column": 1 - }, - "end": { - "line": 112, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "normalize", - "start": 4826, - "end": 4835, - "loc": { - "start": { - "line": 113, - "column": 1 - }, - "end": { - "line": 113, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4835, - "end": 4836, - "loc": { - "start": { - "line": 113, - "column": 10 - }, - "end": { - "line": 113, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 4836, - "end": 4840, - "loc": { - "start": { - "line": 113, - "column": 11 - }, - "end": { - "line": 113, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4840, - "end": 4841, - "loc": { - "start": { - "line": 113, - "column": 15 - }, - "end": { - "line": 113, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 4842, - "end": 4846, - "loc": { - "start": { - "line": 113, - "column": 17 - }, - "end": { - "line": 113, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4846, - "end": 4847, - "loc": { - "start": { - "line": 113, - "column": 21 - }, - "end": { - "line": 113, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 4848, - "end": 4852, - "loc": { - "start": { - "line": 113, - "column": 23 - }, - "end": { - "line": 113, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4852, - "end": 4853, - "loc": { - "start": { - "line": 113, - "column": 27 - }, - "end": { - "line": 113, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4854, - "end": 4855, - "loc": { - "start": { - "line": 113, - "column": 29 - }, - "end": { - "line": 113, - "column": 30 - } - } - }, - { - "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": 4859, - "end": 4861, - "loc": { - "start": { - "line": 114, - "column": 2 - }, - "end": { - "line": 114, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4862, - "end": 4863, - "loc": { - "start": { - "line": 114, - "column": 5 - }, - "end": { - "line": 114, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 4863, - "end": 4867, - "loc": { - "start": { - "line": 114, - "column": 6 - }, - "end": { - "line": 114, - "column": 10 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 4868, - "end": 4869, - "loc": { - "start": { - "line": 114, - "column": 11 - }, - "end": { - "line": 114, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 4870, - "end": 4874, - "loc": { - "start": { - "line": 114, - "column": 13 - }, - "end": { - "line": 114, - "column": 17 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 4875, - "end": 4878, - "loc": { - "start": { - "line": 114, - "column": 18 - }, - "end": { - "line": 114, - "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": 4879, - "end": 4880, - "loc": { - "start": { - "line": 114, - "column": 22 - }, - "end": { - "line": 114, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4880, - "end": 4881, - "loc": { - "start": { - "line": 114, - "column": 23 - }, - "end": { - "line": 114, - "column": 24 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4882, - "end": 4888, - "loc": { - "start": { - "line": 114, - "column": 25 - }, - "end": { - "line": 114, - "column": 31 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 4889, - "end": 4890, - "loc": { - "start": { - "line": 114, - "column": 32 - }, - "end": { - "line": 114, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4890, - "end": 4891, - "loc": { - "start": { - "line": 114, - "column": 33 - }, - "end": { - "line": 114, - "column": 34 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4895, - "end": 4901, - "loc": { - "start": { - "line": 115, - "column": 2 - }, - "end": { - "line": 115, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4902, - "end": 4903, - "loc": { - "start": { - "line": 115, - "column": 9 - }, - "end": { - "line": 115, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 4903, - "end": 4907, - "loc": { - "start": { - "line": 115, - "column": 10 - }, - "end": { - "line": 115, - "column": 14 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 4908, - "end": 4909, - "loc": { - "start": { - "line": 115, - "column": 15 - }, - "end": { - "line": 115, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 4910, - "end": 4914, - "loc": { - "start": { - "line": 115, - "column": 17 - }, - "end": { - "line": 115, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4914, - "end": 4915, - "loc": { - "start": { - "line": 115, - "column": 21 - }, - "end": { - "line": 115, - "column": 22 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 4916, - "end": 4917, - "loc": { - "start": { - "line": 115, - "column": 23 - }, - "end": { - "line": 115, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4918, - "end": 4919, - "loc": { - "start": { - "line": 115, - "column": 25 - }, - "end": { - "line": 115, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 4919, - "end": 4923, - "loc": { - "start": { - "line": 115, - "column": 26 - }, - "end": { - "line": 115, - "column": 30 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 4924, - "end": 4925, - "loc": { - "start": { - "line": 115, - "column": 31 - }, - "end": { - "line": 115, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 4926, - "end": 4930, - "loc": { - "start": { - "line": 115, - "column": 33 - }, - "end": { - "line": 115, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4930, - "end": 4931, - "loc": { - "start": { - "line": 115, - "column": 37 - }, - "end": { - "line": 115, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4931, - "end": 4932, - "loc": { - "start": { - "line": 115, - "column": 38 - }, - "end": { - "line": 115, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4935, - "end": 4936, - "loc": { - "start": { - "line": 116, - "column": 1 - }, - "end": { - "line": 116, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 4939, - "end": 5332, - "loc": { - "start": { - "line": 117, - "column": 1 - }, - "end": { - "line": 124, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "within", - "start": 5335, - "end": 5341, - "loc": { - "start": { - "line": 125, - "column": 1 - }, - "end": { - "line": 125, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5341, - "end": 5342, - "loc": { - "start": { - "line": 125, - "column": 7 - }, - "end": { - "line": 125, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5342, - "end": 5346, - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5346, - "end": 5347, - "loc": { - "start": { - "line": 125, - "column": 12 - }, - "end": { - "line": 125, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5348, - "end": 5352, - "loc": { - "start": { - "line": 125, - "column": 14 - }, - "end": { - "line": 125, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5352, - "end": 5353, - "loc": { - "start": { - "line": 125, - "column": 18 - }, - "end": { - "line": 125, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5354, - "end": 5358, - "loc": { - "start": { - "line": 125, - "column": 20 - }, - "end": { - "line": 125, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5358, - "end": 5359, - "loc": { - "start": { - "line": 125, - "column": 24 - }, - "end": { - "line": 125, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5360, - "end": 5361, - "loc": { - "start": { - "line": 125, - "column": 26 - }, - "end": { - "line": 125, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5365, - "end": 5371, - "loc": { - "start": { - "line": 126, - "column": 2 - }, - "end": { - "line": 126, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5372, - "end": 5376, - "loc": { - "start": { - "line": 126, - "column": 9 - }, - "end": { - "line": 126, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 5377, - "end": 5379, - "loc": { - "start": { - "line": 126, - "column": 14 - }, - "end": { - "line": 126, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5380, - "end": 5384, - "loc": { - "start": { - "line": 126, - "column": 17 - }, - "end": { - "line": 126, - "column": 21 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 5385, - "end": 5387, - "loc": { - "start": { - "line": 126, - "column": 22 - }, - "end": { - "line": 126, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5388, - "end": 5392, - "loc": { - "start": { - "line": 126, - "column": 25 - }, - "end": { - "line": 126, - "column": 29 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 5393, - "end": 5395, - "loc": { - "start": { - "line": 126, - "column": 30 - }, - "end": { - "line": 126, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5396, - "end": 5400, - "loc": { - "start": { - "line": 126, - "column": 33 - }, - "end": { - "line": 126, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5400, - "end": 5401, - "loc": { - "start": { - "line": 126, - "column": 37 - }, - "end": { - "line": 126, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5404, - "end": 5405, - "loc": { - "start": { - "line": 127, - "column": 1 - }, - "end": { - "line": 127, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 5408, - "end": 5653, - "loc": { - "start": { - "line": 128, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formatIntegerWithCommas", - "start": 5656, - "end": 5679, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5679, - "end": 5680, - "loc": { - "start": { - "line": 134, - "column": 24 - }, - "end": { - "line": 134, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum", - "start": 5680, - "end": 5684, - "loc": { - "start": { - "line": 134, - "column": 25 - }, - "end": { - "line": 134, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5684, - "end": 5685, - "loc": { - "start": { - "line": 134, - "column": 29 - }, - "end": { - "line": 134, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5686, - "end": 5687, - "loc": { - "start": { - "line": 134, - "column": 31 - }, - "end": { - "line": 134, - "column": 32 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5691, - "end": 5697, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum", - "start": 5698, - "end": 5702, - "loc": { - "start": { - "line": 135, - "column": 9 - }, - "end": { - "line": 135, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5702, - "end": 5703, - "loc": { - "start": { - "line": 135, - "column": 13 - }, - "end": { - "line": 135, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toFixed", - "start": 5703, - "end": 5710, - "loc": { - "start": { - "line": 135, - "column": 14 - }, - "end": { - "line": 135, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5710, - "end": 5711, - "loc": { - "start": { - "line": 135, - "column": 21 - }, - "end": { - "line": 135, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5711, - "end": 5712, - "loc": { - "start": { - "line": 135, - "column": 22 - }, - "end": { - "line": 135, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5712, - "end": 5713, - "loc": { - "start": { - "line": 135, - "column": 23 - }, - "end": { - "line": 135, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 5713, - "end": 5721, - "loc": { - "start": { - "line": 135, - "column": 24 - }, - "end": { - "line": 135, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5721, - "end": 5722, - "loc": { - "start": { - "line": 135, - "column": 32 - }, - "end": { - "line": 135, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5722, - "end": 5723, - "loc": { - "start": { - "line": 135, - "column": 33 - }, - "end": { - "line": 135, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5723, - "end": 5724, - "loc": { - "start": { - "line": 135, - "column": 34 - }, - "end": { - "line": 135, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 5724, - "end": 5731, - "loc": { - "start": { - "line": 135, - "column": 35 - }, - "end": { - "line": 135, - "column": 42 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5731, - "end": 5732, - "loc": { - "start": { - "line": 135, - "column": 42 - }, - "end": { - "line": 135, - "column": 43 - } - } - }, - { - "type": { - "label": "regexp", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": { - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - "start": 5732, - "end": 5757, - "loc": { - "start": { - "line": 135, - "column": 43 - }, - "end": { - "line": 135, - "column": 68 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5757, - "end": 5758, - "loc": { - "start": { - "line": 135, - "column": 68 - }, - "end": { - "line": 135, - "column": 69 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "$1,", - "start": 5759, - "end": 5764, - "loc": { - "start": { - "line": 135, - "column": 70 - }, - "end": { - "line": 135, - "column": 75 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5764, - "end": 5765, - "loc": { - "start": { - "line": 135, - "column": 75 - }, - "end": { - "line": 135, - "column": 76 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5765, - "end": 5766, - "loc": { - "start": { - "line": 135, - "column": 76 - }, - "end": { - "line": 135, - "column": 77 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5769, - "end": 5770, - "loc": { - "start": { - "line": 136, - "column": 1 - }, - "end": { - "line": 136, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 5773, - "end": 5921, - "loc": { - "start": { - "line": 137, - "column": 1 - }, - "end": { - "line": 142, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "degreesToRadians", - "start": 5924, - "end": 5940, - "loc": { - "start": { - "line": 143, - "column": 1 - }, - "end": { - "line": 143, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5940, - "end": 5941, - "loc": { - "start": { - "line": 143, - "column": 17 - }, - "end": { - "line": 143, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDegrees", - "start": 5941, - "end": 5949, - "loc": { - "start": { - "line": 143, - "column": 18 - }, - "end": { - "line": 143, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5949, - "end": 5950, - "loc": { - "start": { - "line": 143, - "column": 26 - }, - "end": { - "line": 143, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5951, - "end": 5952, - "loc": { - "start": { - "line": 143, - "column": 28 - }, - "end": { - "line": 143, - "column": 29 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5956, - "end": 5962, - "loc": { - "start": { - "line": 144, - "column": 2 - }, - "end": { - "line": 144, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDegrees", - "start": 5963, - "end": 5971, - "loc": { - "start": { - "line": 144, - "column": 9 - }, - "end": { - "line": 144, - "column": 17 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 5972, - "end": 5973, - "loc": { - "start": { - "line": 144, - "column": 18 - }, - "end": { - "line": 144, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5974, - "end": 5975, - "loc": { - "start": { - "line": 144, - "column": 20 - }, - "end": { - "line": 144, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 5975, - "end": 5979, - "loc": { - "start": { - "line": 144, - "column": 21 - }, - "end": { - "line": 144, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5979, - "end": 5980, - "loc": { - "start": { - "line": 144, - "column": 25 - }, - "end": { - "line": 144, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 5980, - "end": 5982, - "loc": { - "start": { - "line": 144, - "column": 26 - }, - "end": { - "line": 144, - "column": 28 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 5983, - "end": 5984, - "loc": { - "start": { - "line": 144, - "column": 29 - }, - "end": { - "line": 144, - "column": 30 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 180, - "start": 5985, - "end": 5988, - "loc": { - "start": { - "line": 144, - "column": 31 - }, - "end": { - "line": 144, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5988, - "end": 5989, - "loc": { - "start": { - "line": 144, - "column": 34 - }, - "end": { - "line": 144, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5989, - "end": 5990, - "loc": { - "start": { - "line": 144, - "column": 35 - }, - "end": { - "line": 144, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5993, - "end": 5994, - "loc": { - "start": { - "line": 145, - "column": 1 - }, - "end": { - "line": 145, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 5997, - "end": 6145, - "loc": { - "start": { - "line": 146, - "column": 1 - }, - "end": { - "line": 151, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "radiansToDegrees", - "start": 6148, - "end": 6164, - "loc": { - "start": { - "line": 152, - "column": 1 - }, - "end": { - "line": 152, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6164, - "end": 6165, - "loc": { - "start": { - "line": 152, - "column": 17 - }, - "end": { - "line": 152, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRadians", - "start": 6165, - "end": 6173, - "loc": { - "start": { - "line": 152, - "column": 18 - }, - "end": { - "line": 152, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6173, - "end": 6174, - "loc": { - "start": { - "line": 152, - "column": 26 - }, - "end": { - "line": 152, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6175, - "end": 6176, - "loc": { - "start": { - "line": 152, - "column": 28 - }, - "end": { - "line": 152, - "column": 29 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 6180, - "end": 6186, - "loc": { - "start": { - "line": 153, - "column": 2 - }, - "end": { - "line": 153, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRadians", - "start": 6187, - "end": 6195, - "loc": { - "start": { - "line": 153, - "column": 9 - }, - "end": { - "line": 153, - "column": 17 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 6196, - "end": 6197, - "loc": { - "start": { - "line": 153, - "column": 18 - }, - "end": { - "line": 153, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6198, - "end": 6199, - "loc": { - "start": { - "line": 153, - "column": 20 - }, - "end": { - "line": 153, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 180, - "start": 6199, - "end": 6202, - "loc": { - "start": { - "line": 153, - "column": 21 - }, - "end": { - "line": 153, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 6203, - "end": 6204, - "loc": { - "start": { - "line": 153, - "column": 25 - }, - "end": { - "line": 153, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 6205, - "end": 6209, - "loc": { - "start": { - "line": 153, - "column": 27 - }, - "end": { - "line": 153, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6209, - "end": 6210, - "loc": { - "start": { - "line": 153, - "column": 31 - }, - "end": { - "line": 153, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 6210, - "end": 6212, - "loc": { - "start": { - "line": 153, - "column": 32 - }, - "end": { - "line": 153, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6212, - "end": 6213, - "loc": { - "start": { - "line": 153, - "column": 34 - }, - "end": { - "line": 153, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6213, - "end": 6214, - "loc": { - "start": { - "line": 153, - "column": 35 - }, - "end": { - "line": 153, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6217, - "end": 6218, - "loc": { - "start": { - "line": 154, - "column": 1 - }, - "end": { - "line": 154, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 6221, - "end": 6385, - "loc": { - "start": { - "line": 155, - "column": 1 - }, - "end": { - "line": 160, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pick", - "start": 6388, - "end": 6392, - "loc": { - "start": { - "line": 161, - "column": 1 - }, - "end": { - "line": 161, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6392, - "end": 6393, - "loc": { - "start": { - "line": 161, - "column": 5 - }, - "end": { - "line": 161, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 6393, - "end": 6399, - "loc": { - "start": { - "line": 161, - "column": 6 - }, - "end": { - "line": 161, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6399, - "end": 6400, - "loc": { - "start": { - "line": 161, - "column": 12 - }, - "end": { - "line": 161, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6401, - "end": 6402, - "loc": { - "start": { - "line": 161, - "column": 14 - }, - "end": { - "line": 161, - "column": 15 - } - } - }, - { - "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": 6406, - "end": 6411, - "loc": { - "start": { - "line": 162, - "column": 2 - }, - "end": { - "line": 162, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomIndex", - "start": 6412, - "end": 6423, - "loc": { - "start": { - "line": 162, - "column": 8 - }, - "end": { - "line": 162, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 6424, - "end": 6425, - "loc": { - "start": { - "line": 162, - "column": 20 - }, - "end": { - "line": 162, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 6426, - "end": 6430, - "loc": { - "start": { - "line": 162, - "column": 22 - }, - "end": { - "line": 162, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6430, - "end": 6431, - "loc": { - "start": { - "line": 162, - "column": 26 - }, - "end": { - "line": 162, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 6431, - "end": 6436, - "loc": { - "start": { - "line": 162, - "column": 27 - }, - "end": { - "line": 162, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6436, - "end": 6437, - "loc": { - "start": { - "line": 162, - "column": 32 - }, - "end": { - "line": 162, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 162, - "column": 33 - }, - "end": { - "line": 162, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6441, - "end": 6442, - "loc": { - "start": { - "line": 162, - "column": 37 - }, - "end": { - "line": 162, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 6442, - "end": 6448, - "loc": { - "start": { - "line": 162, - "column": 38 - }, - "end": { - "line": 162, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6448, - "end": 6449, - "loc": { - "start": { - "line": 162, - "column": 44 - }, - "end": { - "line": 162, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6449, - "end": 6450, - "loc": { - "start": { - "line": 162, - "column": 45 - }, - "end": { - "line": 162, - "column": 46 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 6451, - "end": 6452, - "loc": { - "start": { - "line": 162, - "column": 47 - }, - "end": { - "line": 162, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 6453, - "end": 6459, - "loc": { - "start": { - "line": 162, - "column": 49 - }, - "end": { - "line": 162, - "column": 55 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6459, - "end": 6460, - "loc": { - "start": { - "line": 162, - "column": 55 - }, - "end": { - "line": 162, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 6460, - "end": 6466, - "loc": { - "start": { - "line": 162, - "column": 56 - }, - "end": { - "line": 162, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6466, - "end": 6467, - "loc": { - "start": { - "line": 162, - "column": 62 - }, - "end": { - "line": 162, - "column": 63 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6467, - "end": 6468, - "loc": { - "start": { - "line": 162, - "column": 63 - }, - "end": { - "line": 162, - "column": 64 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 6472, - "end": 6478, - "loc": { - "start": { - "line": 163, - "column": 2 - }, - "end": { - "line": 163, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 6479, - "end": 6485, - "loc": { - "start": { - "line": 163, - "column": 9 - }, - "end": { - "line": 163, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6485, - "end": 6486, - "loc": { - "start": { - "line": 163, - "column": 15 - }, - "end": { - "line": 163, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomIndex", - "start": 6486, - "end": 6497, - "loc": { - "start": { - "line": 163, - "column": 16 - }, - "end": { - "line": 163, - "column": 27 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6497, - "end": 6498, - "loc": { - "start": { - "line": 163, - "column": 27 - }, - "end": { - "line": 163, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6498, - "end": 6499, - "loc": { - "start": { - "line": 163, - "column": 28 - }, - "end": { - "line": 163, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6502, - "end": 6503, - "loc": { - "start": { - "line": 164, - "column": 1 - }, - "end": { - "line": 164, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 6506, - "end": 6754, - "loc": { - "start": { - "line": 165, - "column": 1 - }, - "end": { - "line": 170, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeProperties", - "start": 6757, - "end": 6773, - "loc": { - "start": { - "line": 171, - "column": 1 - }, - "end": { - "line": 171, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6773, - "end": 6774, - "loc": { - "start": { - "line": 171, - "column": 17 - }, - "end": { - "line": 171, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 6774, - "end": 6781, - "loc": { - "start": { - "line": 171, - "column": 18 - }, - "end": { - "line": 171, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6781, - "end": 6782, - "loc": { - "start": { - "line": 171, - "column": 25 - }, - "end": { - "line": 171, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 6783, - "end": 6791, - "loc": { - "start": { - "line": 171, - "column": 27 - }, - "end": { - "line": 171, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6791, - "end": 6792, - "loc": { - "start": { - "line": 171, - "column": 35 - }, - "end": { - "line": 171, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6793, - "end": 6794, - "loc": { - "start": { - "line": 171, - "column": 37 - }, - "end": { - "line": 171, - "column": 38 - } - } - }, - { - "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": 6798, - "end": 6800, - "loc": { - "start": { - "line": 172, - "column": 2 - }, - "end": { - "line": 172, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6801, - "end": 6802, - "loc": { - "start": { - "line": 172, - "column": 5 - }, - "end": { - "line": 172, - "column": 6 - } - } - }, - { - "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": 6802, - "end": 6808, - "loc": { - "start": { - "line": 172, - "column": 6 - }, - "end": { - "line": 172, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6808, - "end": 6809, - "loc": { - "start": { - "line": 172, - "column": 12 - }, - "end": { - "line": 172, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 6809, - "end": 6816, - "loc": { - "start": { - "line": 172, - "column": 13 - }, - "end": { - "line": 172, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6816, - "end": 6817, - "loc": { - "start": { - "line": 172, - "column": 20 - }, - "end": { - "line": 172, - "column": 21 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 6818, - "end": 6821, - "loc": { - "start": { - "line": 172, - "column": 22 - }, - "end": { - "line": 172, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 6822, - "end": 6830, - "loc": { - "start": { - "line": 172, - "column": 26 - }, - "end": { - "line": 172, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6830, - "end": 6831, - "loc": { - "start": { - "line": 172, - "column": 34 - }, - "end": { - "line": 172, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6832, - "end": 6833, - "loc": { - "start": { - "line": 172, - "column": 36 - }, - "end": { - "line": 172, - "column": 37 - } - } - }, - { - "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": 6838, - "end": 6841, - "loc": { - "start": { - "line": 173, - "column": 3 - }, - "end": { - "line": 173, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6842, - "end": 6843, - "loc": { - "start": { - "line": 173, - "column": 7 - }, - "end": { - "line": 173, - "column": 8 - } - } - }, - { - "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": 6843, - "end": 6848, - "loc": { - "start": { - "line": 173, - "column": 8 - }, - "end": { - "line": 173, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 6849, - "end": 6853, - "loc": { - "start": { - "line": 173, - "column": 14 - }, - "end": { - "line": 173, - "column": 18 - } - } - }, - { - "type": { - "label": "in", - "keyword": "in", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "in", - "start": 6854, - "end": 6856, - "loc": { - "start": { - "line": 173, - "column": 19 - }, - "end": { - "line": 173, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 6857, - "end": 6864, - "loc": { - "start": { - "line": 173, - "column": 22 - }, - "end": { - "line": 173, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6864, - "end": 6865, - "loc": { - "start": { - "line": 173, - "column": 29 - }, - "end": { - "line": 173, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6866, - "end": 6867, - "loc": { - "start": { - "line": 173, - "column": 31 - }, - "end": { - "line": 173, - "column": 32 - } - } - }, - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 6873, - "end": 6906, - "loc": { - "start": { - "line": 174, - "column": 4 - }, - "end": { - "line": 174, - "column": 37 - } - } - }, - { - "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": 6912, - "end": 6914, - "loc": { - "start": { - "line": 175, - "column": 4 - }, - "end": { - "line": 175, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6915, - "end": 6916, - "loc": { - "start": { - "line": 175, - "column": 7 - }, - "end": { - "line": 175, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 6916, - "end": 6921, - "loc": { - "start": { - "line": 175, - "column": 8 - }, - "end": { - "line": 175, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6921, - "end": 6922, - "loc": { - "start": { - "line": 175, - "column": 13 - }, - "end": { - "line": 175, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 6922, - "end": 6929, - "loc": { - "start": { - "line": 175, - "column": 14 - }, - "end": { - "line": 175, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6929, - "end": 6930, - "loc": { - "start": { - "line": 175, - "column": 21 - }, - "end": { - "line": 175, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 6930, - "end": 6938, - "loc": { - "start": { - "line": 175, - "column": 22 - }, - "end": { - "line": 175, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6938, - "end": 6939, - "loc": { - "start": { - "line": 175, - "column": 30 - }, - "end": { - "line": 175, - "column": 31 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 6940, - "end": 6942, - "loc": { - "start": { - "line": 175, - "column": 32 - }, - "end": { - "line": 175, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 6943, - "end": 6951, - "loc": { - "start": { - "line": 175, - "column": 35 - }, - "end": { - "line": 175, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6951, - "end": 6952, - "loc": { - "start": { - "line": 175, - "column": 43 - }, - "end": { - "line": 175, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 6952, - "end": 6960, - "loc": { - "start": { - "line": 175, - "column": 44 - }, - "end": { - "line": 175, - "column": 52 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6960, - "end": 6961, - "loc": { - "start": { - "line": 175, - "column": 52 - }, - "end": { - "line": 175, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 6961, - "end": 6965, - "loc": { - "start": { - "line": 175, - "column": 53 - }, - "end": { - "line": 175, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6965, - "end": 6966, - "loc": { - "start": { - "line": 175, - "column": 57 - }, - "end": { - "line": 175, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6966, - "end": 6967, - "loc": { - "start": { - "line": 175, - "column": 58 - }, - "end": { - "line": 175, - "column": 59 - } - } - }, - { - "type": { - "label": "continue", - "keyword": "continue", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "continue", - "start": 6968, - "end": 6976, - "loc": { - "start": { - "line": 175, - "column": 60 - }, - "end": { - "line": 175, - "column": 68 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6976, - "end": 6977, - "loc": { - "start": { - "line": 175, - "column": 68 - }, - "end": { - "line": 175, - "column": 69 - } - } - }, - { - "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": 6983, - "end": 6985, - "loc": { - "start": { - "line": 176, - "column": 4 - }, - "end": { - "line": 176, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6986, - "end": 6987, - "loc": { - "start": { - "line": 176, - "column": 7 - }, - "end": { - "line": 176, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 6987, - "end": 6994, - "loc": { - "start": { - "line": 176, - "column": 8 - }, - "end": { - "line": 176, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6994, - "end": 6995, - "loc": { - "start": { - "line": 176, - "column": 15 - }, - "end": { - "line": 176, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasOwnProperty", - "start": 6995, - "end": 7009, - "loc": { - "start": { - "line": 176, - "column": 16 - }, - "end": { - "line": 176, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7009, - "end": 7010, - "loc": { - "start": { - "line": 176, - "column": 30 - }, - "end": { - "line": 176, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 7010, - "end": 7014, - "loc": { - "start": { - "line": 176, - "column": 31 - }, - "end": { - "line": 176, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7014, - "end": 7015, - "loc": { - "start": { - "line": 176, - "column": 35 - }, - "end": { - "line": 176, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7015, - "end": 7016, - "loc": { - "start": { - "line": 176, - "column": 36 - }, - "end": { - "line": 176, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7017, - "end": 7018, - "loc": { - "start": { - "line": 176, - "column": 38 - }, - "end": { - "line": 176, - "column": 39 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 7025, - "end": 7031, - "loc": { - "start": { - "line": 177, - "column": 5 - }, - "end": { - "line": 177, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 7032, - "end": 7039, - "loc": { - "start": { - "line": 177, - "column": 12 - }, - "end": { - "line": 177, - "column": 19 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7039, - "end": 7040, - "loc": { - "start": { - "line": 177, - "column": 19 - }, - "end": { - "line": 177, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 7040, - "end": 7044, - "loc": { - "start": { - "line": 177, - "column": 20 - }, - "end": { - "line": 177, - "column": 24 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7044, - "end": 7045, - "loc": { - "start": { - "line": 177, - "column": 24 - }, - "end": { - "line": 177, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7045, - "end": 7046, - "loc": { - "start": { - "line": 177, - "column": 25 - }, - "end": { - "line": 177, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7052, - "end": 7053, - "loc": { - "start": { - "line": 178, - "column": 4 - }, - "end": { - "line": 178, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7058, - "end": 7059, - "loc": { - "start": { - "line": 179, - "column": 3 - }, - "end": { - "line": 179, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7063, - "end": 7064, - "loc": { - "start": { - "line": 180, - "column": 2 - }, - "end": { - "line": 180, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7068, - "end": 7069, - "loc": { - "start": { - "line": 181, - "column": 1 - }, - "end": { - "line": 181, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 7072, - "end": 7391, - "loc": { - "start": { - "line": 182, - "column": 1 - }, - "end": { - "line": 188, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prob", - "start": 7394, - "end": 7398, - "loc": { - "start": { - "line": 189, - "column": 1 - }, - "end": { - "line": 189, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7398, - "end": 7399, - "loc": { - "start": { - "line": 189, - "column": 5 - }, - "end": { - "line": 189, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 7399, - "end": 7406, - "loc": { - "start": { - "line": 189, - "column": 6 - }, - "end": { - "line": 189, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7406, - "end": 7407, - "loc": { - "start": { - "line": 189, - "column": 13 - }, - "end": { - "line": 189, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7408, - "end": 7409, - "loc": { - "start": { - "line": 189, - "column": 15 - }, - "end": { - "line": 189, - "column": 16 - } - } - }, - { - "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": 7413, - "end": 7415, - "loc": { - "start": { - "line": 190, - "column": 2 - }, - "end": { - "line": 190, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7416, - "end": 7417, - "loc": { - "start": { - "line": 190, - "column": 5 - }, - "end": { - "line": 190, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 7417, - "end": 7424, - "loc": { - "start": { - "line": 190, - "column": 6 - }, - "end": { - "line": 190, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 7425, - "end": 7427, - "loc": { - "start": { - "line": 190, - "column": 14 - }, - "end": { - "line": 190, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 7428, - "end": 7429, - "loc": { - "start": { - "line": 190, - "column": 17 - }, - "end": { - "line": 190, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7429, - "end": 7430, - "loc": { - "start": { - "line": 190, - "column": 18 - }, - "end": { - "line": 190, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7431, - "end": 7432, - "loc": { - "start": { - "line": 190, - "column": 20 - }, - "end": { - "line": 190, - "column": 21 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7437, - "end": 7443, - "loc": { - "start": { - "line": 191, - "column": 3 - }, - "end": { - "line": 191, - "column": 9 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 7444, - "end": 7449, - "loc": { - "start": { - "line": 191, - "column": 10 - }, - "end": { - "line": 191, - "column": 15 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7449, - "end": 7450, - "loc": { - "start": { - "line": 191, - "column": 15 - }, - "end": { - "line": 191, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7454, - "end": 7455, - "loc": { - "start": { - "line": 192, - "column": 2 - }, - "end": { - "line": 192, - "column": 3 - } - } - }, - { - "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": 7459, - "end": 7461, - "loc": { - "start": { - "line": 193, - "column": 2 - }, - "end": { - "line": 193, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7462, - "end": 7463, - "loc": { - "start": { - "line": 193, - "column": 5 - }, - "end": { - "line": 193, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 7463, - "end": 7470, - "loc": { - "start": { - "line": 193, - "column": 6 - }, - "end": { - "line": 193, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 7471, - "end": 7473, - "loc": { - "start": { - "line": 193, - "column": 14 - }, - "end": { - "line": 193, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 7474, - "end": 7477, - "loc": { - "start": { - "line": 193, - "column": 17 - }, - "end": { - "line": 193, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7477, - "end": 7478, - "loc": { - "start": { - "line": 193, - "column": 20 - }, - "end": { - "line": 193, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7479, - "end": 7480, - "loc": { - "start": { - "line": 193, - "column": 22 - }, - "end": { - "line": 193, - "column": 23 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7485, - "end": 7491, - "loc": { - "start": { - "line": 194, - "column": 3 - }, - "end": { - "line": 194, - "column": 9 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 7492, - "end": 7496, - "loc": { - "start": { - "line": 194, - "column": 10 - }, - "end": { - "line": 194, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7496, - "end": 7497, - "loc": { - "start": { - "line": 194, - "column": 14 - }, - "end": { - "line": 194, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7501, - "end": 7502, - "loc": { - "start": { - "line": 195, - "column": 2 - }, - "end": { - "line": 195, - "column": 3 - } - } - }, - { - "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": 7506, - "end": 7511, - "loc": { - "start": { - "line": 196, - "column": 2 - }, - "end": { - "line": 196, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomNumber", - "start": 7512, - "end": 7524, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7525, - "end": 7526, - "loc": { - "start": { - "line": 196, - "column": 21 - }, - "end": { - "line": 196, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 7527, - "end": 7531, - "loc": { - "start": { - "line": 196, - "column": 23 - }, - "end": { - "line": 196, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7531, - "end": 7532, - "loc": { - "start": { - "line": 196, - "column": 27 - }, - "end": { - "line": 196, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 7532, - "end": 7537, - "loc": { - "start": { - "line": 196, - "column": 28 - }, - "end": { - "line": 196, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7537, - "end": 7538, - "loc": { - "start": { - "line": 196, - "column": 33 - }, - "end": { - "line": 196, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 7538, - "end": 7542, - "loc": { - "start": { - "line": 196, - "column": 34 - }, - "end": { - "line": 196, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7542, - "end": 7543, - "loc": { - "start": { - "line": 196, - "column": 38 - }, - "end": { - "line": 196, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 7543, - "end": 7549, - "loc": { - "start": { - "line": 196, - "column": 39 - }, - "end": { - "line": 196, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7549, - "end": 7550, - "loc": { - "start": { - "line": 196, - "column": 45 - }, - "end": { - "line": 196, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7550, - "end": 7551, - "loc": { - "start": { - "line": 196, - "column": 46 - }, - "end": { - "line": 196, - "column": 47 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 7552, - "end": 7553, - "loc": { - "start": { - "line": 196, - "column": 48 - }, - "end": { - "line": 196, - "column": 49 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 7554, - "end": 7557, - "loc": { - "start": { - "line": 196, - "column": 50 - }, - "end": { - "line": 196, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7557, - "end": 7558, - "loc": { - "start": { - "line": 196, - "column": 53 - }, - "end": { - "line": 196, - "column": 54 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 7559, - "end": 7560, - "loc": { - "start": { - "line": 196, - "column": 55 - }, - "end": { - "line": 196, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 7561, - "end": 7562, - "loc": { - "start": { - "line": 196, - "column": 57 - }, - "end": { - "line": 196, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7562, - "end": 7563, - "loc": { - "start": { - "line": 196, - "column": 58 - }, - "end": { - "line": 196, - "column": 59 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7567, - "end": 7573, - "loc": { - "start": { - "line": 197, - "column": 2 - }, - "end": { - "line": 197, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomNumber", - "start": 7574, - "end": 7586, - "loc": { - "start": { - "line": 197, - "column": 9 - }, - "end": { - "line": 197, - "column": 21 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 7587, - "end": 7589, - "loc": { - "start": { - "line": 197, - "column": 22 - }, - "end": { - "line": 197, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 7590, - "end": 7597, - "loc": { - "start": { - "line": 197, - "column": 25 - }, - "end": { - "line": 197, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7597, - "end": 7598, - "loc": { - "start": { - "line": 197, - "column": 32 - }, - "end": { - "line": 197, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7601, - "end": 7602, - "loc": { - "start": { - "line": 198, - "column": 1 - }, - "end": { - "line": 198, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDir - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 7605, - "end": 7786, - "loc": { - "start": { - "line": 199, - "column": 1 - }, - "end": { - "line": 204, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getInverseDir", - "start": 7789, - "end": 7802, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 205, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7802, - "end": 7803, - "loc": { - "start": { - "line": 205, - "column": 14 - }, - "end": { - "line": 205, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 7803, - "end": 7807, - "loc": { - "start": { - "line": 205, - "column": 15 - }, - "end": { - "line": 205, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7807, - "end": 7808, - "loc": { - "start": { - "line": 205, - "column": 19 - }, - "end": { - "line": 205, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7809, - "end": 7810, - "loc": { - "start": { - "line": 205, - "column": 21 - }, - "end": { - "line": 205, - "column": 22 - } - } - }, - { - "type": { - "label": "switch", - "keyword": "switch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "switch", - "start": 7814, - "end": 7820, - "loc": { - "start": { - "line": 206, - "column": 2 - }, - "end": { - "line": 206, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7821, - "end": 7822, - "loc": { - "start": { - "line": 206, - "column": 9 - }, - "end": { - "line": 206, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 7822, - "end": 7826, - "loc": { - "start": { - "line": 206, - "column": 10 - }, - "end": { - "line": 206, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7826, - "end": 7827, - "loc": { - "start": { - "line": 206, - "column": 14 - }, - "end": { - "line": 206, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7828, - "end": 7829, - "loc": { - "start": { - "line": 206, - "column": 16 - }, - "end": { - "line": 206, - "column": 17 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7834, - "end": 7838, - "loc": { - "start": { - "line": 207, - "column": 3 - }, - "end": { - "line": 207, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 7839, - "end": 7846, - "loc": { - "start": { - "line": 207, - "column": 8 - }, - "end": { - "line": 207, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7846, - "end": 7847, - "loc": { - "start": { - "line": 207, - "column": 15 - }, - "end": { - "line": 207, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7853, - "end": 7859, - "loc": { - "start": { - "line": 208, - "column": 4 - }, - "end": { - "line": 208, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 7860, - "end": 7867, - "loc": { - "start": { - "line": 208, - "column": 11 - }, - "end": { - "line": 208, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7867, - "end": 7868, - "loc": { - "start": { - "line": 208, - "column": 18 - }, - "end": { - "line": 208, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7873, - "end": 7877, - "loc": { - "start": { - "line": 209, - "column": 3 - }, - "end": { - "line": 209, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 7878, - "end": 7885, - "loc": { - "start": { - "line": 209, - "column": 8 - }, - "end": { - "line": 209, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7885, - "end": 7886, - "loc": { - "start": { - "line": 209, - "column": 15 - }, - "end": { - "line": 209, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7892, - "end": 7898, - "loc": { - "start": { - "line": 210, - "column": 4 - }, - "end": { - "line": 210, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 7899, - "end": 7906, - "loc": { - "start": { - "line": 210, - "column": 11 - }, - "end": { - "line": 210, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7906, - "end": 7907, - "loc": { - "start": { - "line": 210, - "column": 18 - }, - "end": { - "line": 210, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7912, - "end": 7916, - "loc": { - "start": { - "line": 211, - "column": 3 - }, - "end": { - "line": 211, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 7917, - "end": 7923, - "loc": { - "start": { - "line": 211, - "column": 8 - }, - "end": { - "line": 211, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7923, - "end": 7924, - "loc": { - "start": { - "line": 211, - "column": 14 - }, - "end": { - "line": 211, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7930, - "end": 7936, - "loc": { - "start": { - "line": 212, - "column": 4 - }, - "end": { - "line": 212, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 7937, - "end": 7943, - "loc": { - "start": { - "line": 212, - "column": 11 - }, - "end": { - "line": 212, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7943, - "end": 7944, - "loc": { - "start": { - "line": 212, - "column": 17 - }, - "end": { - "line": 212, - "column": 18 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7949, - "end": 7953, - "loc": { - "start": { - "line": 213, - "column": 3 - }, - "end": { - "line": 213, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 7954, - "end": 7960, - "loc": { - "start": { - "line": 213, - "column": 8 - }, - "end": { - "line": 213, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7960, - "end": 7961, - "loc": { - "start": { - "line": 213, - "column": 14 - }, - "end": { - "line": 213, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7967, - "end": 7973, - "loc": { - "start": { - "line": 214, - "column": 4 - }, - "end": { - "line": 214, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 7974, - "end": 7980, - "loc": { - "start": { - "line": 214, - "column": 11 - }, - "end": { - "line": 214, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7980, - "end": 7981, - "loc": { - "start": { - "line": 214, - "column": 17 - }, - "end": { - "line": 214, - "column": 18 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 7986, - "end": 7990, - "loc": { - "start": { - "line": 215, - "column": 3 - }, - "end": { - "line": 215, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 7991, - "end": 8002, - "loc": { - "start": { - "line": 215, - "column": 8 - }, - "end": { - "line": 215, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8002, - "end": 8003, - "loc": { - "start": { - "line": 215, - "column": 19 - }, - "end": { - "line": 215, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8009, - "end": 8015, - "loc": { - "start": { - "line": 216, - "column": 4 - }, - "end": { - "line": 216, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 8016, - "end": 8027, - "loc": { - "start": { - "line": 216, - "column": 11 - }, - "end": { - "line": 216, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8027, - "end": 8028, - "loc": { - "start": { - "line": 216, - "column": 22 - }, - "end": { - "line": 216, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8033, - "end": 8037, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 217, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 8038, - "end": 8049, - "loc": { - "start": { - "line": 217, - "column": 8 - }, - "end": { - "line": 217, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8049, - "end": 8050, - "loc": { - "start": { - "line": 217, - "column": 19 - }, - "end": { - "line": 217, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8056, - "end": 8062, - "loc": { - "start": { - "line": 218, - "column": 4 - }, - "end": { - "line": 218, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 8063, - "end": 8074, - "loc": { - "start": { - "line": 218, - "column": 11 - }, - "end": { - "line": 218, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8074, - "end": 8075, - "loc": { - "start": { - "line": 218, - "column": 22 - }, - "end": { - "line": 218, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8080, - "end": 8084, - "loc": { - "start": { - "line": 219, - "column": 3 - }, - "end": { - "line": 219, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 8085, - "end": 8096, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8096, - "end": 8097, - "loc": { - "start": { - "line": 219, - "column": 19 - }, - "end": { - "line": 219, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8103, - "end": 8109, - "loc": { - "start": { - "line": 220, - "column": 4 - }, - "end": { - "line": 220, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 8110, - "end": 8121, - "loc": { - "start": { - "line": 220, - "column": 11 - }, - "end": { - "line": 220, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8121, - "end": 8122, - "loc": { - "start": { - "line": 220, - "column": 22 - }, - "end": { - "line": 220, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8127, - "end": 8131, - "loc": { - "start": { - "line": 221, - "column": 3 - }, - "end": { - "line": 221, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 8132, - "end": 8143, - "loc": { - "start": { - "line": 221, - "column": 8 - }, - "end": { - "line": 221, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8143, - "end": 8144, - "loc": { - "start": { - "line": 221, - "column": 19 - }, - "end": { - "line": 221, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8150, - "end": 8156, - "loc": { - "start": { - "line": 222, - "column": 4 - }, - "end": { - "line": 222, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 8157, - "end": 8168, - "loc": { - "start": { - "line": 222, - "column": 11 - }, - "end": { - "line": 222, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8168, - "end": 8169, - "loc": { - "start": { - "line": 222, - "column": 22 - }, - "end": { - "line": 222, - "column": 23 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 8174, - "end": 8181, - "loc": { - "start": { - "line": 223, - "column": 3 - }, - "end": { - "line": 223, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8181, - "end": 8182, - "loc": { - "start": { - "line": 223, - "column": 10 - }, - "end": { - "line": 223, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 8188, - "end": 8195, - "loc": { - "start": { - "line": 224, - "column": 4 - }, - "end": { - "line": 224, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8195, - "end": 8196, - "loc": { - "start": { - "line": 224, - "column": 11 - }, - "end": { - "line": 224, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 8196, - "end": 8201, - "loc": { - "start": { - "line": 224, - "column": 12 - }, - "end": { - "line": 224, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8201, - "end": 8202, - "loc": { - "start": { - "line": 224, - "column": 17 - }, - "end": { - "line": 224, - "column": 18 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8202, - "end": 8203, - "loc": { - "start": { - "line": 224, - "column": 18 - }, - "end": { - "line": 224, - "column": 19 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "The direction ", - "start": 8203, - "end": 8217, - "loc": { - "start": { - "line": 224, - "column": 19 - }, - "end": { - "line": 224, - "column": 33 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8217, - "end": 8219, - "loc": { - "start": { - "line": 224, - "column": 33 - }, - "end": { - "line": 224, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 8219, - "end": 8223, - "loc": { - "start": { - "line": 224, - "column": 35 - }, - "end": { - "line": 224, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8223, - "end": 8224, - "loc": { - "start": { - "line": 224, - "column": 39 - }, - "end": { - "line": 224, - "column": 40 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " is not supported.", - "start": 8224, - "end": 8242, - "loc": { - "start": { - "line": 224, - "column": 40 - }, - "end": { - "line": 224, - "column": 58 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8242, - "end": 8243, - "loc": { - "start": { - "line": 224, - "column": 58 - }, - "end": { - "line": 224, - "column": 59 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8243, - "end": 8244, - "loc": { - "start": { - "line": 224, - "column": 59 - }, - "end": { - "line": 224, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8244, - "end": 8245, - "loc": { - "start": { - "line": 224, - "column": 60 - }, - "end": { - "line": 224, - "column": 61 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8249, - "end": 8250, - "loc": { - "start": { - "line": 225, - "column": 2 - }, - "end": { - "line": 225, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8253, - "end": 8254, - "loc": { - "start": { - "line": 226, - "column": 1 - }, - "end": { - "line": 226, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDir - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 8257, - "end": 8562, - "loc": { - "start": { - "line": 227, - "column": 1 - }, - "end": { - "line": 233, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getAngleFromDir", - "start": 8565, - "end": 8580, - "loc": { - "start": { - "line": 234, - "column": 1 - }, - "end": { - "line": 234, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8580, - "end": 8581, - "loc": { - "start": { - "line": 234, - "column": 16 - }, - "end": { - "line": 234, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 234, - "column": 17 - }, - "end": { - "line": 234, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8585, - "end": 8586, - "loc": { - "start": { - "line": 234, - "column": 21 - }, - "end": { - "line": 234, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8587, - "end": 8588, - "loc": { - "start": { - "line": 234, - "column": 23 - }, - "end": { - "line": 234, - "column": 24 - } - } - }, - { - "type": { - "label": "switch", - "keyword": "switch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "switch", - "start": 8592, - "end": 8598, - "loc": { - "start": { - "line": 235, - "column": 2 - }, - "end": { - "line": 235, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8599, - "end": 8600, - "loc": { - "start": { - "line": 235, - "column": 9 - }, - "end": { - "line": 235, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 8600, - "end": 8604, - "loc": { - "start": { - "line": 235, - "column": 10 - }, - "end": { - "line": 235, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8604, - "end": 8605, - "loc": { - "start": { - "line": 235, - "column": 14 - }, - "end": { - "line": 235, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8606, - "end": 8607, - "loc": { - "start": { - "line": 235, - "column": 16 - }, - "end": { - "line": 235, - "column": 17 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8612, - "end": 8616, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 236, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 8617, - "end": 8624, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8624, - "end": 8625, - "loc": { - "start": { - "line": 236, - "column": 15 - }, - "end": { - "line": 236, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8631, - "end": 8637, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8638, - "end": 8639, - "loc": { - "start": { - "line": 237, - "column": 11 - }, - "end": { - "line": 237, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8639, - "end": 8643, - "loc": { - "start": { - "line": 237, - "column": 12 - }, - "end": { - "line": 237, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8643, - "end": 8644, - "loc": { - "start": { - "line": 237, - "column": 16 - }, - "end": { - "line": 237, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8644, - "end": 8646, - "loc": { - "start": { - "line": 237, - "column": 17 - }, - "end": { - "line": 237, - "column": 19 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8647, - "end": 8648, - "loc": { - "start": { - "line": 237, - "column": 20 - }, - "end": { - "line": 237, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 8649, - "end": 8650, - "loc": { - "start": { - "line": 237, - "column": 22 - }, - "end": { - "line": 237, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8650, - "end": 8651, - "loc": { - "start": { - "line": 237, - "column": 23 - }, - "end": { - "line": 237, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8651, - "end": 8652, - "loc": { - "start": { - "line": 237, - "column": 24 - }, - "end": { - "line": 237, - "column": 25 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8657, - "end": 8661, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 238, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 8662, - "end": 8669, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8669, - "end": 8670, - "loc": { - "start": { - "line": 238, - "column": 15 - }, - "end": { - "line": 238, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8676, - "end": 8682, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8683, - "end": 8684, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8684, - "end": 8688, - "loc": { - "start": { - "line": 239, - "column": 12 - }, - "end": { - "line": 239, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8688, - "end": 8689, - "loc": { - "start": { - "line": 239, - "column": 16 - }, - "end": { - "line": 239, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8689, - "end": 8691, - "loc": { - "start": { - "line": 239, - "column": 17 - }, - "end": { - "line": 239, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8692, - "end": 8693, - "loc": { - "start": { - "line": 239, - "column": 20 - }, - "end": { - "line": 239, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 8694, - "end": 8695, - "loc": { - "start": { - "line": 239, - "column": 22 - }, - "end": { - "line": 239, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8695, - "end": 8696, - "loc": { - "start": { - "line": 239, - "column": 23 - }, - "end": { - "line": 239, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8697, - "end": 8698, - "loc": { - "start": { - "line": 239, - "column": 25 - }, - "end": { - "line": 239, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 8699, - "end": 8700, - "loc": { - "start": { - "line": 239, - "column": 27 - }, - "end": { - "line": 239, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8700, - "end": 8701, - "loc": { - "start": { - "line": 239, - "column": 28 - }, - "end": { - "line": 239, - "column": 29 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8706, - "end": 8710, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 240, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 8711, - "end": 8717, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8717, - "end": 8718, - "loc": { - "start": { - "line": 240, - "column": 14 - }, - "end": { - "line": 240, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8724, - "end": 8730, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8731, - "end": 8732, - "loc": { - "start": { - "line": 241, - "column": 11 - }, - "end": { - "line": 241, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8732, - "end": 8736, - "loc": { - "start": { - "line": 241, - "column": 12 - }, - "end": { - "line": 241, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8736, - "end": 8737, - "loc": { - "start": { - "line": 241, - "column": 16 - }, - "end": { - "line": 241, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8737, - "end": 8739, - "loc": { - "start": { - "line": 241, - "column": 17 - }, - "end": { - "line": 241, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8740, - "end": 8741, - "loc": { - "start": { - "line": 241, - "column": 20 - }, - "end": { - "line": 241, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 8742, - "end": 8743, - "loc": { - "start": { - "line": 241, - "column": 22 - }, - "end": { - "line": 241, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8743, - "end": 8744, - "loc": { - "start": { - "line": 241, - "column": 23 - }, - "end": { - "line": 241, - "column": 24 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8744, - "end": 8745, - "loc": { - "start": { - "line": 241, - "column": 24 - }, - "end": { - "line": 241, - "column": 25 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8750, - "end": 8754, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 242, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 8755, - "end": 8761, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8761, - "end": 8762, - "loc": { - "start": { - "line": 242, - "column": 14 - }, - "end": { - "line": 242, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8768, - "end": 8774, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8775, - "end": 8779, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8779, - "end": 8780, - "loc": { - "start": { - "line": 243, - "column": 15 - }, - "end": { - "line": 243, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8780, - "end": 8782, - "loc": { - "start": { - "line": 243, - "column": 16 - }, - "end": { - "line": 243, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8782, - "end": 8783, - "loc": { - "start": { - "line": 243, - "column": 18 - }, - "end": { - "line": 243, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8788, - "end": 8792, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 244, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 8793, - "end": 8804, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8804, - "end": 8805, - "loc": { - "start": { - "line": 244, - "column": 19 - }, - "end": { - "line": 244, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8811, - "end": 8817, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8818, - "end": 8819, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8819, - "end": 8823, - "loc": { - "start": { - "line": 245, - "column": 12 - }, - "end": { - "line": 245, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8823, - "end": 8824, - "loc": { - "start": { - "line": 245, - "column": 16 - }, - "end": { - "line": 245, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8824, - "end": 8826, - "loc": { - "start": { - "line": 245, - "column": 17 - }, - "end": { - "line": 245, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8827, - "end": 8828, - "loc": { - "start": { - "line": 245, - "column": 20 - }, - "end": { - "line": 245, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 8829, - "end": 8830, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8830, - "end": 8831, - "loc": { - "start": { - "line": 245, - "column": 23 - }, - "end": { - "line": 245, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8832, - "end": 8833, - "loc": { - "start": { - "line": 245, - "column": 25 - }, - "end": { - "line": 245, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 8834, - "end": 8835, - "loc": { - "start": { - "line": 245, - "column": 27 - }, - "end": { - "line": 245, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8835, - "end": 8836, - "loc": { - "start": { - "line": 245, - "column": 28 - }, - "end": { - "line": 245, - "column": 29 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8841, - "end": 8845, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 246, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 8846, - "end": 8857, - "loc": { - "start": { - "line": 246, - "column": 8 - }, - "end": { - "line": 246, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8857, - "end": 8858, - "loc": { - "start": { - "line": 246, - "column": 19 - }, - "end": { - "line": 246, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8864, - "end": 8870, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8871, - "end": 8875, - "loc": { - "start": { - "line": 247, - "column": 11 - }, - "end": { - "line": 247, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8875, - "end": 8876, - "loc": { - "start": { - "line": 247, - "column": 15 - }, - "end": { - "line": 247, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8876, - "end": 8878, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 18 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8879, - "end": 8880, - "loc": { - "start": { - "line": 247, - "column": 19 - }, - "end": { - "line": 247, - "column": 20 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 8881, - "end": 8882, - "loc": { - "start": { - "line": 247, - "column": 21 - }, - "end": { - "line": 247, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8882, - "end": 8883, - "loc": { - "start": { - "line": 247, - "column": 22 - }, - "end": { - "line": 247, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8888, - "end": 8892, - "loc": { - "start": { - "line": 248, - "column": 3 - }, - "end": { - "line": 248, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 8893, - "end": 8904, - "loc": { - "start": { - "line": 248, - "column": 8 - }, - "end": { - "line": 248, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8904, - "end": 8905, - "loc": { - "start": { - "line": 248, - "column": 19 - }, - "end": { - "line": 248, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8911, - "end": 8917, - "loc": { - "start": { - "line": 249, - "column": 4 - }, - "end": { - "line": 249, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8918, - "end": 8919, - "loc": { - "start": { - "line": 249, - "column": 11 - }, - "end": { - "line": 249, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8919, - "end": 8923, - "loc": { - "start": { - "line": 249, - "column": 12 - }, - "end": { - "line": 249, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8923, - "end": 8924, - "loc": { - "start": { - "line": 249, - "column": 16 - }, - "end": { - "line": 249, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8924, - "end": 8926, - "loc": { - "start": { - "line": 249, - "column": 17 - }, - "end": { - "line": 249, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8927, - "end": 8928, - "loc": { - "start": { - "line": 249, - "column": 20 - }, - "end": { - "line": 249, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 5, - "start": 8929, - "end": 8930, - "loc": { - "start": { - "line": 249, - "column": 22 - }, - "end": { - "line": 249, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8930, - "end": 8931, - "loc": { - "start": { - "line": 249, - "column": 23 - }, - "end": { - "line": 249, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8932, - "end": 8933, - "loc": { - "start": { - "line": 249, - "column": 25 - }, - "end": { - "line": 249, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 8934, - "end": 8935, - "loc": { - "start": { - "line": 249, - "column": 27 - }, - "end": { - "line": 249, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8935, - "end": 8936, - "loc": { - "start": { - "line": 249, - "column": 28 - }, - "end": { - "line": 249, - "column": 29 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8941, - "end": 8945, - "loc": { - "start": { - "line": 250, - "column": 3 - }, - "end": { - "line": 250, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 8946, - "end": 8957, - "loc": { - "start": { - "line": 250, - "column": 8 - }, - "end": { - "line": 250, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8957, - "end": 8958, - "loc": { - "start": { - "line": 250, - "column": 19 - }, - "end": { - "line": 250, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8964, - "end": 8970, - "loc": { - "start": { - "line": 251, - "column": 4 - }, - "end": { - "line": 251, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8971, - "end": 8972, - "loc": { - "start": { - "line": 251, - "column": 11 - }, - "end": { - "line": 251, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8972, - "end": 8976, - "loc": { - "start": { - "line": 251, - "column": 12 - }, - "end": { - "line": 251, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8976, - "end": 8977, - "loc": { - "start": { - "line": 251, - "column": 16 - }, - "end": { - "line": 251, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 8977, - "end": 8979, - "loc": { - "start": { - "line": 251, - "column": 17 - }, - "end": { - "line": 251, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8980, - "end": 8981, - "loc": { - "start": { - "line": 251, - "column": 20 - }, - "end": { - "line": 251, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 7, - "start": 8982, - "end": 8983, - "loc": { - "start": { - "line": 251, - "column": 22 - }, - "end": { - "line": 251, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8983, - "end": 8984, - "loc": { - "start": { - "line": 251, - "column": 23 - }, - "end": { - "line": 251, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 8985, - "end": 8986, - "loc": { - "start": { - "line": 251, - "column": 25 - }, - "end": { - "line": 251, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 8987, - "end": 8988, - "loc": { - "start": { - "line": 251, - "column": 27 - }, - "end": { - "line": 251, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8988, - "end": 8989, - "loc": { - "start": { - "line": 251, - "column": 28 - }, - "end": { - "line": 251, - "column": 29 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 8994, - "end": 9001, - "loc": { - "start": { - "line": 252, - "column": 3 - }, - "end": { - "line": 252, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9001, - "end": 9002, - "loc": { - "start": { - "line": 252, - "column": 10 - }, - "end": { - "line": 252, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 9008, - "end": 9015, - "loc": { - "start": { - "line": 253, - "column": 4 - }, - "end": { - "line": 253, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9015, - "end": 9016, - "loc": { - "start": { - "line": 253, - "column": 11 - }, - "end": { - "line": 253, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 9016, - "end": 9021, - "loc": { - "start": { - "line": 253, - "column": 12 - }, - "end": { - "line": 253, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9021, - "end": 9022, - "loc": { - "start": { - "line": 253, - "column": 17 - }, - "end": { - "line": 253, - "column": 18 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9022, - "end": 9023, - "loc": { - "start": { - "line": 253, - "column": 18 - }, - "end": { - "line": 253, - "column": 19 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "The direction ", - "start": 9023, - "end": 9037, - "loc": { - "start": { - "line": 253, - "column": 19 - }, - "end": { - "line": 253, - "column": 33 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9037, - "end": 9039, - "loc": { - "start": { - "line": 253, - "column": 33 - }, - "end": { - "line": 253, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDir", - "start": 9039, - "end": 9043, - "loc": { - "start": { - "line": 253, - "column": 35 - }, - "end": { - "line": 253, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9043, - "end": 9044, - "loc": { - "start": { - "line": 253, - "column": 39 - }, - "end": { - "line": 253, - "column": 40 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " is not supported.", - "start": 9044, - "end": 9062, - "loc": { - "start": { - "line": 253, - "column": 40 - }, - "end": { - "line": 253, - "column": 58 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9062, - "end": 9063, - "loc": { - "start": { - "line": 253, - "column": 58 - }, - "end": { - "line": 253, - "column": 59 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9063, - "end": 9064, - "loc": { - "start": { - "line": 253, - "column": 59 - }, - "end": { - "line": 253, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9064, - "end": 9065, - "loc": { - "start": { - "line": 253, - "column": 60 - }, - "end": { - "line": 253, - "column": 61 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9069, - "end": 9070, - "loc": { - "start": { - "line": 254, - "column": 2 - }, - "end": { - "line": 254, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9073, - "end": 9074, - "loc": { - "start": { - "line": 255, - "column": 1 - }, - "end": { - "line": 255, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 9077, - "end": 9210, - "loc": { - "start": { - "line": 256, - "column": 1 - }, - "end": { - "line": 261, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 9213, - "end": 9223, - "loc": { - "start": { - "line": 262, - "column": 1 - }, - "end": { - "line": 262, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9223, - "end": 9224, - "loc": { - "start": { - "line": 262, - "column": 11 - }, - "end": { - "line": 262, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIDLength", - "start": 9224, - "end": 9233, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9234, - "end": 9235, - "loc": { - "start": { - "line": 262, - "column": 22 - }, - "end": { - "line": 262, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 7, - "start": 9236, - "end": 9237, - "loc": { - "start": { - "line": 262, - "column": 24 - }, - "end": { - "line": 262, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9237, - "end": 9238, - "loc": { - "start": { - "line": 262, - "column": 25 - }, - "end": { - "line": 262, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9239, - "end": 9240, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 262, - "column": 28 - } - } - }, - { - "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": 9244, - "end": 9249, - "loc": { - "start": { - "line": 263, - "column": 2 - }, - "end": { - "line": 263, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 9250, - "end": 9255, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9256, - "end": 9257, - "loc": { - "start": { - "line": 263, - "column": 14 - }, - "end": { - "line": 263, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "start": 9258, - "end": 9322, - "loc": { - "start": { - "line": 263, - "column": 16 - }, - "end": { - "line": 263, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9322, - "end": 9323, - "loc": { - "start": { - "line": 263, - "column": 80 - }, - "end": { - "line": 263, - "column": 81 - } - } - }, - { - "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": 9327, - "end": 9332, - "loc": { - "start": { - "line": 264, - "column": 2 - }, - "end": { - "line": 264, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 9333, - "end": 9339, - "loc": { - "start": { - "line": 264, - "column": 8 - }, - "end": { - "line": 264, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9340, - "end": 9341, - "loc": { - "start": { - "line": 264, - "column": 15 - }, - "end": { - "line": 264, - "column": 16 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 9342, - "end": 9350, - "loc": { - "start": { - "line": 264, - "column": 17 - }, - "end": { - "line": 264, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9350, - "end": 9351, - "loc": { - "start": { - "line": 264, - "column": 25 - }, - "end": { - "line": 264, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9351, - "end": 9352, - "loc": { - "start": { - "line": 264, - "column": 26 - }, - "end": { - "line": 264, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9353, - "end": 9354, - "loc": { - "start": { - "line": 264, - "column": 28 - }, - "end": { - "line": 264, - "column": 29 - } - } - }, - { - "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": 9359, - "end": 9362, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 265, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9363, - "end": 9365, - "loc": { - "start": { - "line": 265, - "column": 7 - }, - "end": { - "line": 265, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9366, - "end": 9367, - "loc": { - "start": { - "line": 265, - "column": 10 - }, - "end": { - "line": 265, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 9368, - "end": 9370, - "loc": { - "start": { - "line": 265, - "column": 12 - }, - "end": { - "line": 265, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9370, - "end": 9371, - "loc": { - "start": { - "line": 265, - "column": 14 - }, - "end": { - "line": 265, - "column": 15 - } - } - }, - { - "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": 9376, - "end": 9379, - "loc": { - "start": { - "line": 266, - "column": 3 - }, - "end": { - "line": 266, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9380, - "end": 9381, - "loc": { - "start": { - "line": 266, - "column": 7 - }, - "end": { - "line": 266, - "column": 8 - } - } - }, - { - "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": 9381, - "end": 9384, - "loc": { - "start": { - "line": 266, - "column": 8 - }, - "end": { - "line": 266, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 9385, - "end": 9386, - "loc": { - "start": { - "line": 266, - "column": 12 - }, - "end": { - "line": 266, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9387, - "end": 9388, - "loc": { - "start": { - "line": 266, - "column": 14 - }, - "end": { - "line": 266, - "column": 15 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 9389, - "end": 9390, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9390, - "end": 9391, - "loc": { - "start": { - "line": 266, - "column": 17 - }, - "end": { - "line": 266, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 9392, - "end": 9393, - "loc": { - "start": { - "line": 266, - "column": 19 - }, - "end": { - "line": 266, - "column": 20 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 9394, - "end": 9395, - "loc": { - "start": { - "line": 266, - "column": 21 - }, - "end": { - "line": 266, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIDLength", - "start": 9396, - "end": 9405, - "loc": { - "start": { - "line": 266, - "column": 23 - }, - "end": { - "line": 266, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9405, - "end": 9406, - "loc": { - "start": { - "line": 266, - "column": 32 - }, - "end": { - "line": 266, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 9407, - "end": 9408, - "loc": { - "start": { - "line": 266, - "column": 34 - }, - "end": { - "line": 266, - "column": 35 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 9408, - "end": 9410, - "loc": { - "start": { - "line": 266, - "column": 35 - }, - "end": { - "line": 266, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9410, - "end": 9411, - "loc": { - "start": { - "line": 266, - "column": 37 - }, - "end": { - "line": 266, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9412, - "end": 9413, - "loc": { - "start": { - "line": 266, - "column": 39 - }, - "end": { - "line": 266, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9419, - "end": 9421, - "loc": { - "start": { - "line": 267, - "column": 4 - }, - "end": { - "line": 267, - "column": 6 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 9422, - "end": 9424, - "loc": { - "start": { - "line": 267, - "column": 7 - }, - "end": { - "line": 267, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 9425, - "end": 9430, - "loc": { - "start": { - "line": 267, - "column": 10 - }, - "end": { - "line": 267, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9430, - "end": 9431, - "loc": { - "start": { - "line": 267, - "column": 15 - }, - "end": { - "line": 267, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "charAt", - "start": 9431, - "end": 9437, - "loc": { - "start": { - "line": 267, - "column": 16 - }, - "end": { - "line": 267, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9437, - "end": 9438, - "loc": { - "start": { - "line": 267, - "column": 22 - }, - "end": { - "line": 267, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9438, - "end": 9442, - "loc": { - "start": { - "line": 267, - "column": 23 - }, - "end": { - "line": 267, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9442, - "end": 9443, - "loc": { - "start": { - "line": 267, - "column": 27 - }, - "end": { - "line": 267, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 9443, - "end": 9448, - "loc": { - "start": { - "line": 267, - "column": 28 - }, - "end": { - "line": 267, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9448, - "end": 9449, - "loc": { - "start": { - "line": 267, - "column": 33 - }, - "end": { - "line": 267, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9449, - "end": 9453, - "loc": { - "start": { - "line": 267, - "column": 34 - }, - "end": { - "line": 267, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9453, - "end": 9454, - "loc": { - "start": { - "line": 267, - "column": 38 - }, - "end": { - "line": 267, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 9454, - "end": 9460, - "loc": { - "start": { - "line": 267, - "column": 39 - }, - "end": { - "line": 267, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9460, - "end": 9461, - "loc": { - "start": { - "line": 267, - "column": 45 - }, - "end": { - "line": 267, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9461, - "end": 9462, - "loc": { - "start": { - "line": 267, - "column": 46 - }, - "end": { - "line": 267, - "column": 47 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 9463, - "end": 9464, - "loc": { - "start": { - "line": 267, - "column": 48 - }, - "end": { - "line": 267, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 9465, - "end": 9470, - "loc": { - "start": { - "line": 267, - "column": 50 - }, - "end": { - "line": 267, - "column": 55 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9470, - "end": 9471, - "loc": { - "start": { - "line": 267, - "column": 55 - }, - "end": { - "line": 267, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 9471, - "end": 9477, - "loc": { - "start": { - "line": 267, - "column": 56 - }, - "end": { - "line": 267, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9477, - "end": 9478, - "loc": { - "start": { - "line": 267, - "column": 62 - }, - "end": { - "line": 267, - "column": 63 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9478, - "end": 9479, - "loc": { - "start": { - "line": 267, - "column": 63 - }, - "end": { - "line": 267, - "column": 64 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9479, - "end": 9480, - "loc": { - "start": { - "line": 267, - "column": 64 - }, - "end": { - "line": 267, - "column": 65 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9485, - "end": 9486, - "loc": { - "start": { - "line": 268, - "column": 3 - }, - "end": { - "line": 268, - "column": 4 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9491, - "end": 9497, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 269, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9498, - "end": 9500, - "loc": { - "start": { - "line": 269, - "column": 10 - }, - "end": { - "line": 269, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9500, - "end": 9501, - "loc": { - "start": { - "line": 269, - "column": 12 - }, - "end": { - "line": 269, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9505, - "end": 9506, - "loc": { - "start": { - "line": 270, - "column": 2 - }, - "end": { - "line": 270, - "column": 3 - } - } - }, - { - "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": 9510, - "end": 9513, - "loc": { - "start": { - "line": 271, - "column": 2 - }, - "end": { - "line": 271, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9514, - "end": 9516, - "loc": { - "start": { - "line": 271, - "column": 6 - }, - "end": { - "line": 271, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9517, - "end": 9518, - "loc": { - "start": { - "line": 271, - "column": 9 - }, - "end": { - "line": 271, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 9519, - "end": 9525, - "loc": { - "start": { - "line": 271, - "column": 11 - }, - "end": { - "line": 271, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9525, - "end": 9526, - "loc": { - "start": { - "line": 271, - "column": 17 - }, - "end": { - "line": 271, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9526, - "end": 9527, - "loc": { - "start": { - "line": 271, - "column": 18 - }, - "end": { - "line": 271, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9527, - "end": 9528, - "loc": { - "start": { - "line": 271, - "column": 19 - }, - "end": { - "line": 271, - "column": 20 - } - } - }, - { - "type": { - "label": "while", - "keyword": "while", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "while", - "start": 9532, - "end": 9537, - "loc": { - "start": { - "line": 272, - "column": 2 - }, - "end": { - "line": 272, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9537, - "end": 9538, - "loc": { - "start": { - "line": 272, - "column": 7 - }, - "end": { - "line": 272, - "column": 8 - } - } - }, - { - "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": 9538, - "end": 9542, - "loc": { - "start": { - "line": 272, - "column": 8 - }, - "end": { - "line": 272, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9542, - "end": 9543, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 9543, - "end": 9552, - "loc": { - "start": { - "line": 272, - "column": 13 - }, - "end": { - "line": 272, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9552, - "end": 9553, - "loc": { - "start": { - "line": 272, - "column": 22 - }, - "end": { - "line": 272, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 9553, - "end": 9561, - "loc": { - "start": { - "line": 272, - "column": 23 - }, - "end": { - "line": 272, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9561, - "end": 9562, - "loc": { - "start": { - "line": 272, - "column": 31 - }, - "end": { - "line": 272, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9562, - "end": 9564, - "loc": { - "start": { - "line": 272, - "column": 32 - }, - "end": { - "line": 272, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9564, - "end": 9565, - "loc": { - "start": { - "line": 272, - "column": 34 - }, - "end": { - "line": 272, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9565, - "end": 9566, - "loc": { - "start": { - "line": 272, - "column": 35 - }, - "end": { - "line": 272, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9567, - "end": 9568, - "loc": { - "start": { - "line": 272, - "column": 37 - }, - "end": { - "line": 272, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9573, - "end": 9575, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9576, - "end": 9577, - "loc": { - "start": { - "line": 273, - "column": 6 - }, - "end": { - "line": 273, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 9578, - "end": 9584, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9584, - "end": 9585, - "loc": { - "start": { - "line": 273, - "column": 14 - }, - "end": { - "line": 273, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9585, - "end": 9586, - "loc": { - "start": { - "line": 273, - "column": 15 - }, - "end": { - "line": 273, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9586, - "end": 9587, - "loc": { - "start": { - "line": 273, - "column": 16 - }, - "end": { - "line": 273, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9591, - "end": 9592, - "loc": { - "start": { - "line": 274, - "column": 2 - }, - "end": { - "line": 274, - "column": 3 - } - } - }, - { - "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": 9596, - "end": 9600, - "loc": { - "start": { - "line": 275, - "column": 2 - }, - "end": { - "line": 275, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9600, - "end": 9601, - "loc": { - "start": { - "line": 275, - "column": 6 - }, - "end": { - "line": 275, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 9601, - "end": 9610, - "loc": { - "start": { - "line": 275, - "column": 7 - }, - "end": { - "line": 275, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9610, - "end": 9611, - "loc": { - "start": { - "line": 275, - "column": 16 - }, - "end": { - "line": 275, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 9611, - "end": 9615, - "loc": { - "start": { - "line": 275, - "column": 17 - }, - "end": { - "line": 275, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9615, - "end": 9616, - "loc": { - "start": { - "line": 275, - "column": 21 - }, - "end": { - "line": 275, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9616, - "end": 9618, - "loc": { - "start": { - "line": 275, - "column": 22 - }, - "end": { - "line": 275, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9618, - "end": 9619, - "loc": { - "start": { - "line": 275, - "column": 24 - }, - "end": { - "line": 275, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9619, - "end": 9620, - "loc": { - "start": { - "line": 275, - "column": 25 - }, - "end": { - "line": 275, - "column": 26 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9624, - "end": 9630, - "loc": { - "start": { - "line": 276, - "column": 2 - }, - "end": { - "line": 276, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 9631, - "end": 9633, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9633, - "end": 9634, - "loc": { - "start": { - "line": 276, - "column": 11 - }, - "end": { - "line": 276, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9637, - "end": 9638, - "loc": { - "start": { - "line": 277, - "column": 1 - }, - "end": { - "line": 277, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 9641, - "end": 9894, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 284, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalToHex", - "start": 9897, - "end": 9909, - "loc": { - "start": { - "line": 285, - "column": 1 - }, - "end": { - "line": 285, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9909, - "end": 9910, - "loc": { - "start": { - "line": 285, - "column": 13 - }, - "end": { - "line": 285, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDecimal", - "start": 9910, - "end": 9918, - "loc": { - "start": { - "line": 285, - "column": 14 - }, - "end": { - "line": 285, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9918, - "end": 9919, - "loc": { - "start": { - "line": 285, - "column": 22 - }, - "end": { - "line": 285, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 9920, - "end": 9926, - "loc": { - "start": { - "line": 285, - "column": 24 - }, - "end": { - "line": 285, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 9927, - "end": 9928, - "loc": { - "start": { - "line": 285, - "column": 31 - }, - "end": { - "line": 285, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 6, - "start": 9929, - "end": 9930, - "loc": { - "start": { - "line": 285, - "column": 33 - }, - "end": { - "line": 285, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9930, - "end": 9931, - "loc": { - "start": { - "line": 285, - "column": 34 - }, - "end": { - "line": 285, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9932, - "end": 9933, - "loc": { - "start": { - "line": 285, - "column": 36 - }, - "end": { - "line": 285, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9937, - "end": 9943, - "loc": { - "start": { - "line": 286, - "column": 2 - }, - "end": { - "line": 286, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 9944, - "end": 9947, - "loc": { - "start": { - "line": 286, - "column": 9 - }, - "end": { - "line": 286, - "column": 12 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 9948, - "end": 9949, - "loc": { - "start": { - "line": 286, - "column": 13 - }, - "end": { - "line": 286, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9950, - "end": 9951, - "loc": { - "start": { - "line": 286, - "column": 15 - }, - "end": { - "line": 286, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDecimal", - "start": 9951, - "end": 9959, - "loc": { - "start": { - "line": 286, - "column": 16 - }, - "end": { - "line": 286, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 9960, - "end": 9961, - "loc": { - "start": { - "line": 286, - "column": 25 - }, - "end": { - "line": 286, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9962, - "end": 9966, - "loc": { - "start": { - "line": 286, - "column": 27 - }, - "end": { - "line": 286, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9966, - "end": 9967, - "loc": { - "start": { - "line": 286, - "column": 31 - }, - "end": { - "line": 286, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pow", - "start": 9967, - "end": 9970, - "loc": { - "start": { - "line": 286, - "column": 32 - }, - "end": { - "line": 286, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9970, - "end": 9971, - "loc": { - "start": { - "line": 286, - "column": 35 - }, - "end": { - "line": 286, - "column": 36 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 9971, - "end": 9973, - "loc": { - "start": { - "line": 286, - "column": 36 - }, - "end": { - "line": 286, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9973, - "end": 9974, - "loc": { - "start": { - "line": 286, - "column": 38 - }, - "end": { - "line": 286, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 9975, - "end": 9981, - "loc": { - "start": { - "line": 286, - "column": 40 - }, - "end": { - "line": 286, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9981, - "end": 9982, - "loc": { - "start": { - "line": 286, - "column": 46 - }, - "end": { - "line": 286, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9982, - "end": 9983, - "loc": { - "start": { - "line": 286, - "column": 47 - }, - "end": { - "line": 286, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9983, - "end": 9984, - "loc": { - "start": { - "line": 286, - "column": 48 - }, - "end": { - "line": 286, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 9984, - "end": 9992, - "loc": { - "start": { - "line": 286, - "column": 49 - }, - "end": { - "line": 286, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9992, - "end": 9993, - "loc": { - "start": { - "line": 286, - "column": 57 - }, - "end": { - "line": 286, - "column": 58 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 9993, - "end": 9995, - "loc": { - "start": { - "line": 286, - "column": 58 - }, - "end": { - "line": 286, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9995, - "end": 9996, - "loc": { - "start": { - "line": 286, - "column": 60 - }, - "end": { - "line": 286, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9996, - "end": 9997, - "loc": { - "start": { - "line": 286, - "column": 61 - }, - "end": { - "line": 286, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "slice", - "start": 9997, - "end": 10002, - "loc": { - "start": { - "line": 286, - "column": 62 - }, - "end": { - "line": 286, - "column": 67 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10002, - "end": 10003, - "loc": { - "start": { - "line": 286, - "column": 67 - }, - "end": { - "line": 286, - "column": 68 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 10003, - "end": 10004, - "loc": { - "start": { - "line": 286, - "column": 68 - }, - "end": { - "line": 286, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 10004, - "end": 10010, - "loc": { - "start": { - "line": 286, - "column": 69 - }, - "end": { - "line": 286, - "column": 75 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10010, - "end": 10011, - "loc": { - "start": { - "line": 286, - "column": 75 - }, - "end": { - "line": 286, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10011, - "end": 10012, - "loc": { - "start": { - "line": 286, - "column": 76 - }, - "end": { - "line": 286, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toUpperCase", - "start": 10012, - "end": 10023, - "loc": { - "start": { - "line": 286, - "column": 77 - }, - "end": { - "line": 286, - "column": 88 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10023, - "end": 10024, - "loc": { - "start": { - "line": 286, - "column": 88 - }, - "end": { - "line": 286, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10024, - "end": 10025, - "loc": { - "start": { - "line": 286, - "column": 89 - }, - "end": { - "line": 286, - "column": 90 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10025, - "end": 10026, - "loc": { - "start": { - "line": 286, - "column": 90 - }, - "end": { - "line": 286, - "column": 91 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10029, - "end": 10030, - "loc": { - "start": { - "line": 287, - "column": 1 - }, - "end": { - "line": 287, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 10033, - "end": 10285, - "loc": { - "start": { - "line": 288, - "column": 1 - }, - "end": { - "line": 294, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "addIntensity", - "start": 10288, - "end": 10300, - "loc": { - "start": { - "line": 295, - "column": 1 - }, - "end": { - "line": 295, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10300, - "end": 10301, - "loc": { - "start": { - "line": 295, - "column": 13 - }, - "end": { - "line": 295, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 10301, - "end": 10307, - "loc": { - "start": { - "line": 295, - "column": 14 - }, - "end": { - "line": 295, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10307, - "end": 10308, - "loc": { - "start": { - "line": 295, - "column": 20 - }, - "end": { - "line": 295, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 10309, - "end": 10317, - "loc": { - "start": { - "line": 295, - "column": 22 - }, - "end": { - "line": 295, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10317, - "end": 10318, - "loc": { - "start": { - "line": 295, - "column": 30 - }, - "end": { - "line": 295, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10319, - "end": 10320, - "loc": { - "start": { - "line": 295, - "column": 32 - }, - "end": { - "line": 295, - "column": 33 - } - } - }, - { - "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": 10324, - "end": 10329, - "loc": { - "start": { - "line": 296, - "column": 2 - }, - "end": { - "line": 296, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 10330, - "end": 10333, - "loc": { - "start": { - "line": 296, - "column": 8 - }, - "end": { - "line": 296, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10334, - "end": 10335, - "loc": { - "start": { - "line": 296, - "column": 12 - }, - "end": { - "line": 296, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 10336, - "end": 10340, - "loc": { - "start": { - "line": 296, - "column": 14 - }, - "end": { - "line": 296, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10340, - "end": 10341, - "loc": { - "start": { - "line": 296, - "column": 18 - }, - "end": { - "line": 296, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 10341, - "end": 10350, - "loc": { - "start": { - "line": 296, - "column": 19 - }, - "end": { - "line": 296, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10350, - "end": 10351, - "loc": { - "start": { - "line": 296, - "column": 28 - }, - "end": { - "line": 296, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 10351, - "end": 10357, - "loc": { - "start": { - "line": 296, - "column": 29 - }, - "end": { - "line": 296, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10357, - "end": 10358, - "loc": { - "start": { - "line": 296, - "column": 35 - }, - "end": { - "line": 296, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10358, - "end": 10359, - "loc": { - "start": { - "line": 296, - "column": 36 - }, - "end": { - "line": 296, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 10359, - "end": 10367, - "loc": { - "start": { - "line": 296, - "column": 37 - }, - "end": { - "line": 296, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10367, - "end": 10368, - "loc": { - "start": { - "line": 296, - "column": 45 - }, - "end": { - "line": 296, - "column": 46 - } - } - }, - { - "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": 10372, - "end": 10377, - "loc": { - "start": { - "line": 297, - "column": 2 - }, - "end": { - "line": 297, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 10378, - "end": 10379, - "loc": { - "start": { - "line": 297, - "column": 8 - }, - "end": { - "line": 297, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10380, - "end": 10381, - "loc": { - "start": { - "line": 297, - "column": 10 - }, - "end": { - "line": 297, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 10382, - "end": 10385, - "loc": { - "start": { - "line": 297, - "column": 12 - }, - "end": { - "line": 297, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10385, - "end": 10386, - "loc": { - "start": { - "line": 297, - "column": 15 - }, - "end": { - "line": 297, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10386, - "end": 10387, - "loc": { - "start": { - "line": 297, - "column": 16 - }, - "end": { - "line": 297, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10387, - "end": 10388, - "loc": { - "start": { - "line": 297, - "column": 17 - }, - "end": { - "line": 297, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10388, - "end": 10389, - "loc": { - "start": { - "line": 297, - "column": 18 - }, - "end": { - "line": 297, - "column": 19 - } - } - }, - { - "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": 10393, - "end": 10398, - "loc": { - "start": { - "line": 298, - "column": 2 - }, - "end": { - "line": 298, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 10399, - "end": 10400, - "loc": { - "start": { - "line": 298, - "column": 8 - }, - "end": { - "line": 298, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10401, - "end": 10402, - "loc": { - "start": { - "line": 298, - "column": 10 - }, - "end": { - "line": 298, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 10403, - "end": 10406, - "loc": { - "start": { - "line": 298, - "column": 12 - }, - "end": { - "line": 298, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10406, - "end": 10407, - "loc": { - "start": { - "line": 298, - "column": 15 - }, - "end": { - "line": 298, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 10407, - "end": 10408, - "loc": { - "start": { - "line": 298, - "column": 16 - }, - "end": { - "line": 298, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10408, - "end": 10409, - "loc": { - "start": { - "line": 298, - "column": 17 - }, - "end": { - "line": 298, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10409, - "end": 10410, - "loc": { - "start": { - "line": 298, - "column": 18 - }, - "end": { - "line": 298, - "column": 19 - } - } - }, - { - "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": 10414, - "end": 10419, - "loc": { - "start": { - "line": 299, - "column": 2 - }, - "end": { - "line": 299, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 10420, - "end": 10421, - "loc": { - "start": { - "line": 299, - "column": 8 - }, - "end": { - "line": 299, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10422, - "end": 10423, - "loc": { - "start": { - "line": 299, - "column": 10 - }, - "end": { - "line": 299, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 10424, - "end": 10427, - "loc": { - "start": { - "line": 299, - "column": 12 - }, - "end": { - "line": 299, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10427, - "end": 10428, - "loc": { - "start": { - "line": 299, - "column": 15 - }, - "end": { - "line": 299, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 10428, - "end": 10429, - "loc": { - "start": { - "line": 299, - "column": 16 - }, - "end": { - "line": 299, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10429, - "end": 10430, - "loc": { - "start": { - "line": 299, - "column": 17 - }, - "end": { - "line": 299, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10430, - "end": 10431, - "loc": { - "start": { - "line": 299, - "column": 18 - }, - "end": { - "line": 299, - "column": 19 - } - } - }, - { - "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": 10435, - "end": 10438, - "loc": { - "start": { - "line": 300, - "column": 2 - }, - "end": { - "line": 300, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 10439, - "end": 10441, - "loc": { - "start": { - "line": 300, - "column": 6 - }, - "end": { - "line": 300, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10442, - "end": 10443, - "loc": { - "start": { - "line": 300, - "column": 9 - }, - "end": { - "line": 300, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10444, - "end": 10445, - "loc": { - "start": { - "line": 300, - "column": 11 - }, - "end": { - "line": 300, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10445, - "end": 10446, - "loc": { - "start": { - "line": 300, - "column": 12 - }, - "end": { - "line": 300, - "column": 13 - } - } - }, - { - "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": 10450, - "end": 10453, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 10454, - "end": 10456, - "loc": { - "start": { - "line": 301, - "column": 6 - }, - "end": { - "line": 301, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10457, - "end": 10458, - "loc": { - "start": { - "line": 301, - "column": 9 - }, - "end": { - "line": 301, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10459, - "end": 10460, - "loc": { - "start": { - "line": 301, - "column": 11 - }, - "end": { - "line": 301, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10460, - "end": 10461, - "loc": { - "start": { - "line": 301, - "column": 12 - }, - "end": { - "line": 301, - "column": 13 - } - } - }, - { - "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": 10465, - "end": 10468, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 10469, - "end": 10471, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10472, - "end": 10473, - "loc": { - "start": { - "line": 302, - "column": 9 - }, - "end": { - "line": 302, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10474, - "end": 10475, - "loc": { - "start": { - "line": 302, - "column": 11 - }, - "end": { - "line": 302, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10475, - "end": 10476, - "loc": { - "start": { - "line": 302, - "column": 12 - }, - "end": { - "line": 302, - "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": 10480, - "end": 10485, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 10486, - "end": 10491, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10492, - "end": 10493, - "loc": { - "start": { - "line": 303, - "column": 14 - }, - "end": { - "line": 303, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10494, - "end": 10495, - "loc": { - "start": { - "line": 303, - "column": 16 - }, - "end": { - "line": 303, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 10495, - "end": 10496, - "loc": { - "start": { - "line": 303, - "column": 17 - }, - "end": { - "line": 303, - "column": 18 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 10497, - "end": 10500, - "loc": { - "start": { - "line": 303, - "column": 19 - }, - "end": { - "line": 303, - "column": 22 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10501, - "end": 10502, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 10503, - "end": 10505, - "loc": { - "start": { - "line": 303, - "column": 25 - }, - "end": { - "line": 303, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 10506, - "end": 10507, - "loc": { - "start": { - "line": 303, - "column": 28 - }, - "end": { - "line": 303, - "column": 29 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 10508, - "end": 10511, - "loc": { - "start": { - "line": 303, - "column": 30 - }, - "end": { - "line": 303, - "column": 33 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10512, - "end": 10513, - "loc": { - "start": { - "line": 303, - "column": 34 - }, - "end": { - "line": 303, - "column": 35 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 10514, - "end": 10516, - "loc": { - "start": { - "line": 303, - "column": 36 - }, - "end": { - "line": 303, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 10517, - "end": 10518, - "loc": { - "start": { - "line": 303, - "column": 39 - }, - "end": { - "line": 303, - "column": 40 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 10519, - "end": 10522, - "loc": { - "start": { - "line": 303, - "column": 41 - }, - "end": { - "line": 303, - "column": 44 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10523, - "end": 10524, - "loc": { - "start": { - "line": 303, - "column": 45 - }, - "end": { - "line": 303, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10524, - "end": 10525, - "loc": { - "start": { - "line": 303, - "column": 46 - }, - "end": { - "line": 303, - "column": 47 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10526, - "end": 10527, - "loc": { - "start": { - "line": 303, - "column": 48 - }, - "end": { - "line": 303, - "column": 49 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 10528, - "end": 10532, - "loc": { - "start": { - "line": 303, - "column": 50 - }, - "end": { - "line": 303, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10533, - "end": 10534, - "loc": { - "start": { - "line": 303, - "column": 55 - }, - "end": { - "line": 303, - "column": 56 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 10535, - "end": 10540, - "loc": { - "start": { - "line": 303, - "column": 57 - }, - "end": { - "line": 303, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10540, - "end": 10541, - "loc": { - "start": { - "line": 303, - "column": 62 - }, - "end": { - "line": 303, - "column": 63 - } - } - }, - { - "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": 10545, - "end": 10547, - "loc": { - "start": { - "line": 304, - "column": 2 - }, - "end": { - "line": 304, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10548, - "end": 10549, - "loc": { - "start": { - "line": 304, - "column": 5 - }, - "end": { - "line": 304, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 10549, - "end": 10550, - "loc": { - "start": { - "line": 304, - "column": 6 - }, - "end": { - "line": 304, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 10551, - "end": 10553, - "loc": { - "start": { - "line": 304, - "column": 8 - }, - "end": { - "line": 304, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 10554, - "end": 10559, - "loc": { - "start": { - "line": 304, - "column": 11 - }, - "end": { - "line": 304, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10559, - "end": 10560, - "loc": { - "start": { - "line": 304, - "column": 16 - }, - "end": { - "line": 304, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 10561, - "end": 10563, - "loc": { - "start": { - "line": 304, - "column": 18 - }, - "end": { - "line": 304, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10564, - "end": 10565, - "loc": { - "start": { - "line": 304, - "column": 21 - }, - "end": { - "line": 304, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 10566, - "end": 10567, - "loc": { - "start": { - "line": 304, - "column": 23 - }, - "end": { - "line": 304, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 10568, - "end": 10569, - "loc": { - "start": { - "line": 304, - "column": 25 - }, - "end": { - "line": 304, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10570, - "end": 10574, - "loc": { - "start": { - "line": 304, - "column": 27 - }, - "end": { - "line": 304, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10574, - "end": 10575, - "loc": { - "start": { - "line": 304, - "column": 31 - }, - "end": { - "line": 304, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 10575, - "end": 10580, - "loc": { - "start": { - "line": 304, - "column": 32 - }, - "end": { - "line": 304, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10580, - "end": 10581, - "loc": { - "start": { - "line": 304, - "column": 37 - }, - "end": { - "line": 304, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10581, - "end": 10582, - "loc": { - "start": { - "line": 304, - "column": 38 - }, - "end": { - "line": 304, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10582, - "end": 10585, - "loc": { - "start": { - "line": 304, - "column": 39 - }, - "end": { - "line": 304, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 10586, - "end": 10587, - "loc": { - "start": { - "line": 304, - "column": 43 - }, - "end": { - "line": 304, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 10588, - "end": 10596, - "loc": { - "start": { - "line": 304, - "column": 45 - }, - "end": { - "line": 304, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10596, - "end": 10597, - "loc": { - "start": { - "line": 304, - "column": 53 - }, - "end": { - "line": 304, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10598, - "end": 10599, - "loc": { - "start": { - "line": 304, - "column": 55 - }, - "end": { - "line": 304, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 10600, - "end": 10603, - "loc": { - "start": { - "line": 304, - "column": 57 - }, - "end": { - "line": 304, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10603, - "end": 10604, - "loc": { - "start": { - "line": 304, - "column": 60 - }, - "end": { - "line": 304, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10604, - "end": 10605, - "loc": { - "start": { - "line": 304, - "column": 61 - }, - "end": { - "line": 304, - "column": 62 - } - } - }, - { - "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": 10609, - "end": 10611, - "loc": { - "start": { - "line": 305, - "column": 2 - }, - "end": { - "line": 305, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10612, - "end": 10613, - "loc": { - "start": { - "line": 305, - "column": 5 - }, - "end": { - "line": 305, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 10613, - "end": 10614, - "loc": { - "start": { - "line": 305, - "column": 6 - }, - "end": { - "line": 305, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 10615, - "end": 10617, - "loc": { - "start": { - "line": 305, - "column": 8 - }, - "end": { - "line": 305, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 10618, - "end": 10623, - "loc": { - "start": { - "line": 305, - "column": 11 - }, - "end": { - "line": 305, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10623, - "end": 10624, - "loc": { - "start": { - "line": 305, - "column": 16 - }, - "end": { - "line": 305, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 10625, - "end": 10627, - "loc": { - "start": { - "line": 305, - "column": 18 - }, - "end": { - "line": 305, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10628, - "end": 10629, - "loc": { - "start": { - "line": 305, - "column": 21 - }, - "end": { - "line": 305, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 10630, - "end": 10631, - "loc": { - "start": { - "line": 305, - "column": 23 - }, - "end": { - "line": 305, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 10632, - "end": 10633, - "loc": { - "start": { - "line": 305, - "column": 25 - }, - "end": { - "line": 305, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10634, - "end": 10638, - "loc": { - "start": { - "line": 305, - "column": 27 - }, - "end": { - "line": 305, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10638, - "end": 10639, - "loc": { - "start": { - "line": 305, - "column": 31 - }, - "end": { - "line": 305, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 10639, - "end": 10644, - "loc": { - "start": { - "line": 305, - "column": 32 - }, - "end": { - "line": 305, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10644, - "end": 10645, - "loc": { - "start": { - "line": 305, - "column": 37 - }, - "end": { - "line": 305, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10645, - "end": 10646, - "loc": { - "start": { - "line": 305, - "column": 38 - }, - "end": { - "line": 305, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10646, - "end": 10649, - "loc": { - "start": { - "line": 305, - "column": 39 - }, - "end": { - "line": 305, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 10650, - "end": 10651, - "loc": { - "start": { - "line": 305, - "column": 43 - }, - "end": { - "line": 305, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 10652, - "end": 10660, - "loc": { - "start": { - "line": 305, - "column": 45 - }, - "end": { - "line": 305, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10660, - "end": 10661, - "loc": { - "start": { - "line": 305, - "column": 53 - }, - "end": { - "line": 305, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10662, - "end": 10663, - "loc": { - "start": { - "line": 305, - "column": 55 - }, - "end": { - "line": 305, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 10664, - "end": 10667, - "loc": { - "start": { - "line": 305, - "column": 57 - }, - "end": { - "line": 305, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10667, - "end": 10668, - "loc": { - "start": { - "line": 305, - "column": 60 - }, - "end": { - "line": 305, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10668, - "end": 10669, - "loc": { - "start": { - "line": 305, - "column": 61 - }, - "end": { - "line": 305, - "column": 62 - } - } - }, - { - "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": 10673, - "end": 10675, - "loc": { - "start": { - "line": 306, - "column": 2 - }, - "end": { - "line": 306, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10676, - "end": 10677, - "loc": { - "start": { - "line": 306, - "column": 5 - }, - "end": { - "line": 306, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 10677, - "end": 10678, - "loc": { - "start": { - "line": 306, - "column": 6 - }, - "end": { - "line": 306, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 10679, - "end": 10681, - "loc": { - "start": { - "line": 306, - "column": 8 - }, - "end": { - "line": 306, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 10682, - "end": 10687, - "loc": { - "start": { - "line": 306, - "column": 11 - }, - "end": { - "line": 306, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10687, - "end": 10688, - "loc": { - "start": { - "line": 306, - "column": 16 - }, - "end": { - "line": 306, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 10689, - "end": 10691, - "loc": { - "start": { - "line": 306, - "column": 18 - }, - "end": { - "line": 306, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10692, - "end": 10693, - "loc": { - "start": { - "line": 306, - "column": 21 - }, - "end": { - "line": 306, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 10694, - "end": 10695, - "loc": { - "start": { - "line": 306, - "column": 23 - }, - "end": { - "line": 306, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 10696, - "end": 10697, - "loc": { - "start": { - "line": 306, - "column": 25 - }, - "end": { - "line": 306, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10698, - "end": 10702, - "loc": { - "start": { - "line": 306, - "column": 27 - }, - "end": { - "line": 306, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10702, - "end": 10703, - "loc": { - "start": { - "line": 306, - "column": 31 - }, - "end": { - "line": 306, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 10703, - "end": 10708, - "loc": { - "start": { - "line": 306, - "column": 32 - }, - "end": { - "line": 306, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10708, - "end": 10709, - "loc": { - "start": { - "line": 306, - "column": 37 - }, - "end": { - "line": 306, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10709, - "end": 10710, - "loc": { - "start": { - "line": 306, - "column": 38 - }, - "end": { - "line": 306, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10710, - "end": 10713, - "loc": { - "start": { - "line": 306, - "column": 39 - }, - "end": { - "line": 306, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 10714, - "end": 10715, - "loc": { - "start": { - "line": 306, - "column": 43 - }, - "end": { - "line": 306, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 10716, - "end": 10724, - "loc": { - "start": { - "line": 306, - "column": 45 - }, - "end": { - "line": 306, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10724, - "end": 10725, - "loc": { - "start": { - "line": 306, - "column": 53 - }, - "end": { - "line": 306, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10726, - "end": 10727, - "loc": { - "start": { - "line": 306, - "column": 55 - }, - "end": { - "line": 306, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 10728, - "end": 10731, - "loc": { - "start": { - "line": 306, - "column": 57 - }, - "end": { - "line": 306, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10731, - "end": 10732, - "loc": { - "start": { - "line": 306, - "column": 60 - }, - "end": { - "line": 306, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10732, - "end": 10733, - "loc": { - "start": { - "line": 306, - "column": 61 - }, - "end": { - "line": 306, - "column": 62 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 10737, - "end": 10743, - "loc": { - "start": { - "line": 307, - "column": 2 - }, - "end": { - "line": 307, - "column": 8 - } - } - }, - { - "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": 10744, - "end": 10748, - "loc": { - "start": { - "line": 307, - "column": 9 - }, - "end": { - "line": 307, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10748, - "end": 10749, - "loc": { - "start": { - "line": 307, - "column": 13 - }, - "end": { - "line": 307, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 10749, - "end": 10758, - "loc": { - "start": { - "line": 307, - "column": 14 - }, - "end": { - "line": 307, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10758, - "end": 10759, - "loc": { - "start": { - "line": 307, - "column": 23 - }, - "end": { - "line": 307, - "column": 24 - } - } - }, - { - "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": 10759, - "end": 10763, - "loc": { - "start": { - "line": 307, - "column": 24 - }, - "end": { - "line": 307, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10763, - "end": 10764, - "loc": { - "start": { - "line": 307, - "column": 28 - }, - "end": { - "line": 307, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 10764, - "end": 10769, - "loc": { - "start": { - "line": 307, - "column": 29 - }, - "end": { - "line": 307, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10769, - "end": 10770, - "loc": { - "start": { - "line": 307, - "column": 34 - }, - "end": { - "line": 307, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 10770, - "end": 10772, - "loc": { - "start": { - "line": 307, - "column": 35 - }, - "end": { - "line": 307, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10772, - "end": 10773, - "loc": { - "start": { - "line": 307, - "column": 37 - }, - "end": { - "line": 307, - "column": 38 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10774, - "end": 10775, - "loc": { - "start": { - "line": 307, - "column": 39 - }, - "end": { - "line": 307, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10775, - "end": 10776, - "loc": { - "start": { - "line": 307, - "column": 40 - }, - "end": { - "line": 307, - "column": 41 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10777, - "end": 10780, - "loc": { - "start": { - "line": 307, - "column": 42 - }, - "end": { - "line": 307, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10780, - "end": 10781, - "loc": { - "start": { - "line": 307, - "column": 45 - }, - "end": { - "line": 307, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10781, - "end": 10782, - "loc": { - "start": { - "line": 307, - "column": 46 - }, - "end": { - "line": 307, - "column": 47 - } - } - }, - { - "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": 10783, - "end": 10787, - "loc": { - "start": { - "line": 307, - "column": 48 - }, - "end": { - "line": 307, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10787, - "end": 10788, - "loc": { - "start": { - "line": 307, - "column": 52 - }, - "end": { - "line": 307, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 10788, - "end": 10793, - "loc": { - "start": { - "line": 307, - "column": 53 - }, - "end": { - "line": 307, - "column": 58 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10793, - "end": 10794, - "loc": { - "start": { - "line": 307, - "column": 58 - }, - "end": { - "line": 307, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 10794, - "end": 10796, - "loc": { - "start": { - "line": 307, - "column": 59 - }, - "end": { - "line": 307, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10796, - "end": 10797, - "loc": { - "start": { - "line": 307, - "column": 61 - }, - "end": { - "line": 307, - "column": 62 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10798, - "end": 10799, - "loc": { - "start": { - "line": 307, - "column": 63 - }, - "end": { - "line": 307, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10799, - "end": 10800, - "loc": { - "start": { - "line": 307, - "column": 64 - }, - "end": { - "line": 307, - "column": 65 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10801, - "end": 10804, - "loc": { - "start": { - "line": 307, - "column": 66 - }, - "end": { - "line": 307, - "column": 69 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10804, - "end": 10805, - "loc": { - "start": { - "line": 307, - "column": 69 - }, - "end": { - "line": 307, - "column": 70 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10805, - "end": 10806, - "loc": { - "start": { - "line": 307, - "column": 70 - }, - "end": { - "line": 307, - "column": 71 - } - } - }, - { - "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": 10807, - "end": 10811, - "loc": { - "start": { - "line": 307, - "column": 72 - }, - "end": { - "line": 307, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10811, - "end": 10812, - "loc": { - "start": { - "line": 307, - "column": 76 - }, - "end": { - "line": 307, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 10812, - "end": 10817, - "loc": { - "start": { - "line": 307, - "column": 77 - }, - "end": { - "line": 307, - "column": 82 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10817, - "end": 10818, - "loc": { - "start": { - "line": 307, - "column": 82 - }, - "end": { - "line": 307, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 10818, - "end": 10820, - "loc": { - "start": { - "line": 307, - "column": 83 - }, - "end": { - "line": 307, - "column": 85 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10820, - "end": 10821, - "loc": { - "start": { - "line": 307, - "column": 85 - }, - "end": { - "line": 307, - "column": 86 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 10822, - "end": 10823, - "loc": { - "start": { - "line": 307, - "column": 87 - }, - "end": { - "line": 307, - "column": 88 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10823, - "end": 10824, - "loc": { - "start": { - "line": 307, - "column": 88 - }, - "end": { - "line": 307, - "column": 89 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 10825, - "end": 10828, - "loc": { - "start": { - "line": 307, - "column": 90 - }, - "end": { - "line": 307, - "column": 93 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10828, - "end": 10829, - "loc": { - "start": { - "line": 307, - "column": 93 - }, - "end": { - "line": 307, - "column": 94 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10829, - "end": 10830, - "loc": { - "start": { - "line": 307, - "column": 94 - }, - "end": { - "line": 307, - "column": 95 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10830, - "end": 10831, - "loc": { - "start": { - "line": 307, - "column": 95 - }, - "end": { - "line": 307, - "column": 96 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 10831, - "end": 10834, - "loc": { - "start": { - "line": 307, - "column": 96 - }, - "end": { - "line": 307, - "column": 99 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10837, - "end": 10838, - "loc": { - "start": { - "line": 308, - "column": 1 - }, - "end": { - "line": 308, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 10841, - "end": 11149, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 315, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToHex", - "start": 11152, - "end": 11160, - "loc": { - "start": { - "line": 316, - "column": 1 - }, - "end": { - "line": 316, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11160, - "end": 11161, - "loc": { - "start": { - "line": 316, - "column": 9 - }, - "end": { - "line": 316, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 11161, - "end": 11163, - "loc": { - "start": { - "line": 316, - "column": 10 - }, - "end": { - "line": 316, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11163, - "end": 11164, - "loc": { - "start": { - "line": 316, - "column": 12 - }, - "end": { - "line": 316, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 11165, - "end": 11167, - "loc": { - "start": { - "line": 316, - "column": 14 - }, - "end": { - "line": 316, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11167, - "end": 11168, - "loc": { - "start": { - "line": 316, - "column": 16 - }, - "end": { - "line": 316, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 11169, - "end": 11171, - "loc": { - "start": { - "line": 316, - "column": 18 - }, - "end": { - "line": 316, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11171, - "end": 11172, - "loc": { - "start": { - "line": 316, - "column": 20 - }, - "end": { - "line": 316, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11173, - "end": 11174, - "loc": { - "start": { - "line": 316, - "column": 22 - }, - "end": { - "line": 316, - "column": 23 - } - } - }, - { - "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": 11178, - "end": 11183, - "loc": { - "start": { - "line": 317, - "column": 2 - }, - "end": { - "line": 317, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 11184, - "end": 11185, - "loc": { - "start": { - "line": 317, - "column": 8 - }, - "end": { - "line": 317, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11186, - "end": 11187, - "loc": { - "start": { - "line": 317, - "column": 10 - }, - "end": { - "line": 317, - "column": 11 - } - } - }, - { - "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": 11188, - "end": 11192, - "loc": { - "start": { - "line": 317, - "column": 12 - }, - "end": { - "line": 317, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11192, - "end": 11193, - "loc": { - "start": { - "line": 317, - "column": 16 - }, - "end": { - "line": 317, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11193, - "end": 11198, - "loc": { - "start": { - "line": 317, - "column": 17 - }, - "end": { - "line": 317, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11198, - "end": 11199, - "loc": { - "start": { - "line": 317, - "column": 22 - }, - "end": { - "line": 317, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 11199, - "end": 11201, - "loc": { - "start": { - "line": 317, - "column": 23 - }, - "end": { - "line": 317, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11201, - "end": 11202, - "loc": { - "start": { - "line": 317, - "column": 25 - }, - "end": { - "line": 317, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11203, - "end": 11204, - "loc": { - "start": { - "line": 317, - "column": 27 - }, - "end": { - "line": 317, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11204, - "end": 11205, - "loc": { - "start": { - "line": 317, - "column": 28 - }, - "end": { - "line": 317, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 11206, - "end": 11209, - "loc": { - "start": { - "line": 317, - "column": 30 - }, - "end": { - "line": 317, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11209, - "end": 11210, - "loc": { - "start": { - "line": 317, - "column": 33 - }, - "end": { - "line": 317, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11210, - "end": 11211, - "loc": { - "start": { - "line": 317, - "column": 34 - }, - "end": { - "line": 317, - "column": 35 - } - } - }, - { - "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": 11215, - "end": 11220, - "loc": { - "start": { - "line": 318, - "column": 2 - }, - "end": { - "line": 318, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 11221, - "end": 11222, - "loc": { - "start": { - "line": 318, - "column": 8 - }, - "end": { - "line": 318, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11223, - "end": 11224, - "loc": { - "start": { - "line": 318, - "column": 10 - }, - "end": { - "line": 318, - "column": 11 - } - } - }, - { - "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": 11225, - "end": 11229, - "loc": { - "start": { - "line": 318, - "column": 12 - }, - "end": { - "line": 318, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11229, - "end": 11230, - "loc": { - "start": { - "line": 318, - "column": 16 - }, - "end": { - "line": 318, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11230, - "end": 11235, - "loc": { - "start": { - "line": 318, - "column": 17 - }, - "end": { - "line": 318, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11235, - "end": 11236, - "loc": { - "start": { - "line": 318, - "column": 22 - }, - "end": { - "line": 318, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 11236, - "end": 11238, - "loc": { - "start": { - "line": 318, - "column": 23 - }, - "end": { - "line": 318, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11238, - "end": 11239, - "loc": { - "start": { - "line": 318, - "column": 25 - }, - "end": { - "line": 318, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11240, - "end": 11241, - "loc": { - "start": { - "line": 318, - "column": 27 - }, - "end": { - "line": 318, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11241, - "end": 11242, - "loc": { - "start": { - "line": 318, - "column": 28 - }, - "end": { - "line": 318, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 11243, - "end": 11246, - "loc": { - "start": { - "line": 318, - "column": 30 - }, - "end": { - "line": 318, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11246, - "end": 11247, - "loc": { - "start": { - "line": 318, - "column": 33 - }, - "end": { - "line": 318, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11247, - "end": 11248, - "loc": { - "start": { - "line": 318, - "column": 34 - }, - "end": { - "line": 318, - "column": 35 - } - } - }, - { - "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": 11252, - "end": 11257, - "loc": { - "start": { - "line": 319, - "column": 2 - }, - "end": { - "line": 319, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 11258, - "end": 11259, - "loc": { - "start": { - "line": 319, - "column": 8 - }, - "end": { - "line": 319, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11260, - "end": 11261, - "loc": { - "start": { - "line": 319, - "column": 10 - }, - "end": { - "line": 319, - "column": 11 - } - } - }, - { - "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": 11262, - "end": 11266, - "loc": { - "start": { - "line": 319, - "column": 12 - }, - "end": { - "line": 319, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11266, - "end": 11267, - "loc": { - "start": { - "line": 319, - "column": 16 - }, - "end": { - "line": 319, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11267, - "end": 11272, - "loc": { - "start": { - "line": 319, - "column": 17 - }, - "end": { - "line": 319, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11272, - "end": 11273, - "loc": { - "start": { - "line": 319, - "column": 22 - }, - "end": { - "line": 319, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 11273, - "end": 11275, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11275, - "end": 11276, - "loc": { - "start": { - "line": 319, - "column": 25 - }, - "end": { - "line": 319, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11277, - "end": 11278, - "loc": { - "start": { - "line": 319, - "column": 27 - }, - "end": { - "line": 319, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11278, - "end": 11279, - "loc": { - "start": { - "line": 319, - "column": 28 - }, - "end": { - "line": 319, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 11280, - "end": 11283, - "loc": { - "start": { - "line": 319, - "column": 30 - }, - "end": { - "line": 319, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11283, - "end": 11284, - "loc": { - "start": { - "line": 319, - "column": 33 - }, - "end": { - "line": 319, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11284, - "end": 11285, - "loc": { - "start": { - "line": 319, - "column": 34 - }, - "end": { - "line": 319, - "column": 35 - } - } - }, - { - "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": 11289, - "end": 11294, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 320, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "craftString", - "start": 11295, - "end": 11306, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11307, - "end": 11308, - "loc": { - "start": { - "line": 320, - "column": 20 - }, - "end": { - "line": 320, - "column": 21 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 11309, - "end": 11317, - "loc": { - "start": { - "line": 320, - "column": 22 - }, - "end": { - "line": 320, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11317, - "end": 11318, - "loc": { - "start": { - "line": 320, - "column": 30 - }, - "end": { - "line": 320, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 11318, - "end": 11324, - "loc": { - "start": { - "line": 320, - "column": 31 - }, - "end": { - "line": 320, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11324, - "end": 11325, - "loc": { - "start": { - "line": 320, - "column": 37 - }, - "end": { - "line": 320, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11326, - "end": 11327, - "loc": { - "start": { - "line": 320, - "column": 39 - }, - "end": { - "line": 320, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 11332, - "end": 11338, - "loc": { - "start": { - "line": 321, - "column": 3 - }, - "end": { - "line": 321, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 11339, - "end": 11345, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11345, - "end": 11346, - "loc": { - "start": { - "line": 321, - "column": 16 - }, - "end": { - "line": 321, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 11346, - "end": 11354, - "loc": { - "start": { - "line": 321, - "column": 17 - }, - "end": { - "line": 321, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11354, - "end": 11355, - "loc": { - "start": { - "line": 321, - "column": 25 - }, - "end": { - "line": 321, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 11355, - "end": 11357, - "loc": { - "start": { - "line": 321, - "column": 26 - }, - "end": { - "line": 321, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11357, - "end": 11358, - "loc": { - "start": { - "line": 321, - "column": 28 - }, - "end": { - "line": 321, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11358, - "end": 11359, - "loc": { - "start": { - "line": 321, - "column": 29 - }, - "end": { - "line": 321, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "padStart", - "start": 11359, - "end": 11367, - "loc": { - "start": { - "line": 321, - "column": 30 - }, - "end": { - "line": 321, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11367, - "end": 11368, - "loc": { - "start": { - "line": 321, - "column": 38 - }, - "end": { - "line": 321, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 11368, - "end": 11369, - "loc": { - "start": { - "line": 321, - "column": 39 - }, - "end": { - "line": 321, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11369, - "end": 11370, - "loc": { - "start": { - "line": 321, - "column": 40 - }, - "end": { - "line": 321, - "column": 41 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "0", - "start": 11371, - "end": 11374, - "loc": { - "start": { - "line": 321, - "column": 42 - }, - "end": { - "line": 321, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11374, - "end": 11375, - "loc": { - "start": { - "line": 321, - "column": 45 - }, - "end": { - "line": 321, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11375, - "end": 11376, - "loc": { - "start": { - "line": 321, - "column": 46 - }, - "end": { - "line": 321, - "column": 47 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11380, - "end": 11381, - "loc": { - "start": { - "line": 322, - "column": 2 - }, - "end": { - "line": 322, - "column": 3 - } - } - }, - { - "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": 11385, - "end": 11390, - "loc": { - "start": { - "line": 323, - "column": 2 - }, - "end": { - "line": 323, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 11391, - "end": 11394, - "loc": { - "start": { - "line": 323, - "column": 8 - }, - "end": { - "line": 323, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11395, - "end": 11396, - "loc": { - "start": { - "line": 323, - "column": 12 - }, - "end": { - "line": 323, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 11397, - "end": 11400, - "loc": { - "start": { - "line": 323, - "column": 14 - }, - "end": { - "line": 323, - "column": 17 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 11401, - "end": 11402, - "loc": { - "start": { - "line": 323, - "column": 18 - }, - "end": { - "line": 323, - "column": 19 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11403, - "end": 11404, - "loc": { - "start": { - "line": 323, - "column": 20 - }, - "end": { - "line": 323, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 11404, - "end": 11405, - "loc": { - "start": { - "line": 323, - "column": 21 - }, - "end": { - "line": 323, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11405, - "end": 11406, - "loc": { - "start": { - "line": 323, - "column": 22 - }, - "end": { - "line": 323, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 11407, - "end": 11408, - "loc": { - "start": { - "line": 323, - "column": 24 - }, - "end": { - "line": 323, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11408, - "end": 11409, - "loc": { - "start": { - "line": 323, - "column": 25 - }, - "end": { - "line": 323, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 11410, - "end": 11411, - "loc": { - "start": { - "line": 323, - "column": 27 - }, - "end": { - "line": 323, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11411, - "end": 11412, - "loc": { - "start": { - "line": 323, - "column": 28 - }, - "end": { - "line": 323, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11412, - "end": 11413, - "loc": { - "start": { - "line": 323, - "column": 29 - }, - "end": { - "line": 323, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 11413, - "end": 11416, - "loc": { - "start": { - "line": 323, - "column": 30 - }, - "end": { - "line": 323, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11416, - "end": 11417, - "loc": { - "start": { - "line": 323, - "column": 33 - }, - "end": { - "line": 323, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "craftString", - "start": 11417, - "end": 11428, - "loc": { - "start": { - "line": 323, - "column": 34 - }, - "end": { - "line": 323, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11428, - "end": 11429, - "loc": { - "start": { - "line": 323, - "column": 45 - }, - "end": { - "line": 323, - "column": 46 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11429, - "end": 11430, - "loc": { - "start": { - "line": 323, - "column": 46 - }, - "end": { - "line": 323, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "join", - "start": 11430, - "end": 11434, - "loc": { - "start": { - "line": 323, - "column": 47 - }, - "end": { - "line": 323, - "column": 51 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11434, - "end": 11435, - "loc": { - "start": { - "line": 323, - "column": 51 - }, - "end": { - "line": 323, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 11435, - "end": 11437, - "loc": { - "start": { - "line": 323, - "column": 52 - }, - "end": { - "line": 323, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11437, - "end": 11438, - "loc": { - "start": { - "line": 323, - "column": 54 - }, - "end": { - "line": 323, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11438, - "end": 11439, - "loc": { - "start": { - "line": 323, - "column": 55 - }, - "end": { - "line": 323, - "column": 56 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 11443, - "end": 11449, - "loc": { - "start": { - "line": 324, - "column": 2 - }, - "end": { - "line": 324, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 11450, - "end": 11453, - "loc": { - "start": { - "line": 324, - "column": 9 - }, - "end": { - "line": 324, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11453, - "end": 11454, - "loc": { - "start": { - "line": 324, - "column": 12 - }, - "end": { - "line": 324, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11459, - "end": 11460, - "loc": { - "start": { - "line": 325, - "column": 1 - }, - "end": { - "line": 325, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 11463, - "end": 11737, - "loc": { - "start": { - "line": 326, - "column": 1 - }, - "end": { - "line": 331, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToRgb", - "start": 11740, - "end": 11748, - "loc": { - "start": { - "line": 332, - "column": 1 - }, - "end": { - "line": 332, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11748, - "end": 11749, - "loc": { - "start": { - "line": 332, - "column": 9 - }, - "end": { - "line": 332, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11749, - "end": 11753, - "loc": { - "start": { - "line": 332, - "column": 10 - }, - "end": { - "line": 332, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11753, - "end": 11754, - "loc": { - "start": { - "line": 332, - "column": 14 - }, - "end": { - "line": 332, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11755, - "end": 11756, - "loc": { - "start": { - "line": 332, - "column": 16 - }, - "end": { - "line": 332, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11760, - "end": 11764, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11765, - "end": 11766, - "loc": { - "start": { - "line": 333, - "column": 7 - }, - "end": { - "line": 333, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11767, - "end": 11771, - "loc": { - "start": { - "line": 333, - "column": 9 - }, - "end": { - "line": 333, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11771, - "end": 11772, - "loc": { - "start": { - "line": 333, - "column": 13 - }, - "end": { - "line": 333, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 11772, - "end": 11779, - "loc": { - "start": { - "line": 333, - "column": 14 - }, - "end": { - "line": 333, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11779, - "end": 11780, - "loc": { - "start": { - "line": 333, - "column": 21 - }, - "end": { - "line": 333, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 11780, - "end": 11783, - "loc": { - "start": { - "line": 333, - "column": 22 - }, - "end": { - "line": 333, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11783, - "end": 11784, - "loc": { - "start": { - "line": 333, - "column": 25 - }, - "end": { - "line": 333, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 11785, - "end": 11787, - "loc": { - "start": { - "line": 333, - "column": 27 - }, - "end": { - "line": 333, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11787, - "end": 11788, - "loc": { - "start": { - "line": 333, - "column": 29 - }, - "end": { - "line": 333, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11788, - "end": 11789, - "loc": { - "start": { - "line": 333, - "column": 30 - }, - "end": { - "line": 333, - "column": 31 - } - } - }, - { - "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": 11793, - "end": 11795, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 334, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11796, - "end": 11797, - "loc": { - "start": { - "line": 334, - "column": 5 - }, - "end": { - "line": 334, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11797, - "end": 11801, - "loc": { - "start": { - "line": 334, - "column": 6 - }, - "end": { - "line": 334, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11801, - "end": 11802, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 11802, - "end": 11808, - "loc": { - "start": { - "line": 334, - "column": 11 - }, - "end": { - "line": 334, - "column": 17 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 11809, - "end": 11812, - "loc": { - "start": { - "line": 334, - "column": 18 - }, - "end": { - "line": 334, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 11813, - "end": 11814, - "loc": { - "start": { - "line": 334, - "column": 22 - }, - "end": { - "line": 334, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11814, - "end": 11815, - "loc": { - "start": { - "line": 334, - "column": 23 - }, - "end": { - "line": 334, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11816, - "end": 11817, - "loc": { - "start": { - "line": 334, - "column": 25 - }, - "end": { - "line": 334, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11822, - "end": 11826, - "loc": { - "start": { - "line": 335, - "column": 3 - }, - "end": { - "line": 335, - "column": 7 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11827, - "end": 11828, - "loc": { - "start": { - "line": 335, - "column": 8 - }, - "end": { - "line": 335, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11829, - "end": 11833, - "loc": { - "start": { - "line": 335, - "column": 10 - }, - "end": { - "line": 335, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11833, - "end": 11834, - "loc": { - "start": { - "line": 335, - "column": 14 - }, - "end": { - "line": 335, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 11834, - "end": 11841, - "loc": { - "start": { - "line": 335, - "column": 15 - }, - "end": { - "line": 335, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11841, - "end": 11842, - "loc": { - "start": { - "line": 335, - "column": 22 - }, - "end": { - "line": 335, - "column": 23 - } - } - }, - { - "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": 11842, - "end": 11845, - "loc": { - "start": { - "line": 335, - "column": 23 - }, - "end": { - "line": 335, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "RegExp", - "start": 11846, - "end": 11852, - "loc": { - "start": { - "line": 335, - "column": 27 - }, - "end": { - "line": 335, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11852, - "end": 11853, - "loc": { - "start": { - "line": 335, - "column": 33 - }, - "end": { - "line": 335, - "column": 34 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "(.)", - "start": 11853, - "end": 11858, - "loc": { - "start": { - "line": 335, - "column": 34 - }, - "end": { - "line": 335, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11858, - "end": 11859, - "loc": { - "start": { - "line": 335, - "column": 39 - }, - "end": { - "line": 335, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 11860, - "end": 11863, - "loc": { - "start": { - "line": 335, - "column": 41 - }, - "end": { - "line": 335, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11863, - "end": 11864, - "loc": { - "start": { - "line": 335, - "column": 44 - }, - "end": { - "line": 335, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11864, - "end": 11865, - "loc": { - "start": { - "line": 335, - "column": 45 - }, - "end": { - "line": 335, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "$1$1", - "start": 11866, - "end": 11872, - "loc": { - "start": { - "line": 335, - "column": 47 - }, - "end": { - "line": 335, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11872, - "end": 11873, - "loc": { - "start": { - "line": 335, - "column": 53 - }, - "end": { - "line": 335, - "column": 54 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11873, - "end": 11874, - "loc": { - "start": { - "line": 335, - "column": 54 - }, - "end": { - "line": 335, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11878, - "end": 11879, - "loc": { - "start": { - "line": 336, - "column": 2 - }, - "end": { - "line": 336, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11883, - "end": 11887, - "loc": { - "start": { - "line": 337, - "column": 2 - }, - "end": { - "line": 337, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11888, - "end": 11889, - "loc": { - "start": { - "line": 337, - "column": 7 - }, - "end": { - "line": 337, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11890, - "end": 11894, - "loc": { - "start": { - "line": 337, - "column": 9 - }, - "end": { - "line": 337, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11894, - "end": 11895, - "loc": { - "start": { - "line": 337, - "column": 13 - }, - "end": { - "line": 337, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "match", - "start": 11895, - "end": 11900, - "loc": { - "start": { - "line": 337, - "column": 14 - }, - "end": { - "line": 337, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11900, - "end": 11901, - "loc": { - "start": { - "line": 337, - "column": 19 - }, - "end": { - "line": 337, - "column": 20 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 11901, - "end": 11904, - "loc": { - "start": { - "line": 337, - "column": 20 - }, - "end": { - "line": 337, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "RegExp", - "start": 11905, - "end": 11911, - "loc": { - "start": { - "line": 337, - "column": 24 - }, - "end": { - "line": 337, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11911, - "end": 11912, - "loc": { - "start": { - "line": 337, - "column": 30 - }, - "end": { - "line": 337, - "column": 31 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "..", - "start": 11912, - "end": 11916, - "loc": { - "start": { - "line": 337, - "column": 31 - }, - "end": { - "line": 337, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11916, - "end": 11917, - "loc": { - "start": { - "line": 337, - "column": 35 - }, - "end": { - "line": 337, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 11918, - "end": 11921, - "loc": { - "start": { - "line": 337, - "column": 37 - }, - "end": { - "line": 337, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11921, - "end": 11922, - "loc": { - "start": { - "line": 337, - "column": 40 - }, - "end": { - "line": 337, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11922, - "end": 11923, - "loc": { - "start": { - "line": 337, - "column": 41 - }, - "end": { - "line": 337, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11923, - "end": 11924, - "loc": { - "start": { - "line": 337, - "column": 42 - }, - "end": { - "line": 337, - "column": 43 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 11928, - "end": 11933, - "loc": { - "start": { - "line": 338, - "column": 2 - }, - "end": { - "line": 338, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 11934, - "end": 11935, - "loc": { - "start": { - "line": 338, - "column": 8 - }, - "end": { - "line": 338, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11936, - "end": 11937, - "loc": { - "start": { - "line": 338, - "column": 10 - }, - "end": { - "line": 338, - "column": 11 - } - } - }, - { - "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": 11938, - "end": 11942, - "loc": { - "start": { - "line": 338, - "column": 12 - }, - "end": { - "line": 338, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11942, - "end": 11943, - "loc": { - "start": { - "line": 338, - "column": 16 - }, - "end": { - "line": 338, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11943, - "end": 11948, - "loc": { - "start": { - "line": 338, - "column": 17 - }, - "end": { - "line": 338, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11948, - "end": 11949, - "loc": { - "start": { - "line": 338, - "column": 22 - }, - "end": { - "line": 338, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 11949, - "end": 11957, - "loc": { - "start": { - "line": 338, - "column": 23 - }, - "end": { - "line": 338, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11957, - "end": 11958, - "loc": { - "start": { - "line": 338, - "column": 31 - }, - "end": { - "line": 338, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 11958, - "end": 11962, - "loc": { - "start": { - "line": 338, - "column": 32 - }, - "end": { - "line": 338, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11962, - "end": 11963, - "loc": { - "start": { - "line": 338, - "column": 36 - }, - "end": { - "line": 338, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11963, - "end": 11964, - "loc": { - "start": { - "line": 338, - "column": 37 - }, - "end": { - "line": 338, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11964, - "end": 11965, - "loc": { - "start": { - "line": 338, - "column": 38 - }, - "end": { - "line": 338, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11965, - "end": 11966, - "loc": { - "start": { - "line": 338, - "column": 39 - }, - "end": { - "line": 338, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 11967, - "end": 11969, - "loc": { - "start": { - "line": 338, - "column": 41 - }, - "end": { - "line": 338, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11969, - "end": 11970, - "loc": { - "start": { - "line": 338, - "column": 43 - }, - "end": { - "line": 338, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11970, - "end": 11971, - "loc": { - "start": { - "line": 338, - "column": 44 - }, - "end": { - "line": 338, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 11972, - "end": 11973, - "loc": { - "start": { - "line": 338, - "column": 46 - }, - "end": { - "line": 338, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11973, - "end": 11974, - "loc": { - "start": { - "line": 338, - "column": 47 - }, - "end": { - "line": 338, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 11975, - "end": 11978, - "loc": { - "start": { - "line": 338, - "column": 49 - }, - "end": { - "line": 338, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11978, - "end": 11979, - "loc": { - "start": { - "line": 338, - "column": 52 - }, - "end": { - "line": 338, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11979, - "end": 11980, - "loc": { - "start": { - "line": 338, - "column": 53 - }, - "end": { - "line": 338, - "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": 11984, - "end": 11989, - "loc": { - "start": { - "line": 339, - "column": 2 - }, - "end": { - "line": 339, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 11990, - "end": 11991, - "loc": { - "start": { - "line": 339, - "column": 8 - }, - "end": { - "line": 339, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11992, - "end": 11993, - "loc": { - "start": { - "line": 339, - "column": 10 - }, - "end": { - "line": 339, - "column": 11 - } - } - }, - { - "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": 11994, - "end": 11998, - "loc": { - "start": { - "line": 339, - "column": 12 - }, - "end": { - "line": 339, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11998, - "end": 11999, - "loc": { - "start": { - "line": 339, - "column": 16 - }, - "end": { - "line": 339, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 11999, - "end": 12004, - "loc": { - "start": { - "line": 339, - "column": 17 - }, - "end": { - "line": 339, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12004, - "end": 12005, - "loc": { - "start": { - "line": 339, - "column": 22 - }, - "end": { - "line": 339, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 12005, - "end": 12013, - "loc": { - "start": { - "line": 339, - "column": 23 - }, - "end": { - "line": 339, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12013, - "end": 12014, - "loc": { - "start": { - "line": 339, - "column": 31 - }, - "end": { - "line": 339, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12014, - "end": 12018, - "loc": { - "start": { - "line": 339, - "column": 32 - }, - "end": { - "line": 339, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12018, - "end": 12019, - "loc": { - "start": { - "line": 339, - "column": 36 - }, - "end": { - "line": 339, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 12019, - "end": 12020, - "loc": { - "start": { - "line": 339, - "column": 37 - }, - "end": { - "line": 339, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12020, - "end": 12021, - "loc": { - "start": { - "line": 339, - "column": 38 - }, - "end": { - "line": 339, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12021, - "end": 12022, - "loc": { - "start": { - "line": 339, - "column": 39 - }, - "end": { - "line": 339, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 12023, - "end": 12025, - "loc": { - "start": { - "line": 339, - "column": 41 - }, - "end": { - "line": 339, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12025, - "end": 12026, - "loc": { - "start": { - "line": 339, - "column": 43 - }, - "end": { - "line": 339, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12026, - "end": 12027, - "loc": { - "start": { - "line": 339, - "column": 44 - }, - "end": { - "line": 339, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 12028, - "end": 12029, - "loc": { - "start": { - "line": 339, - "column": 46 - }, - "end": { - "line": 339, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12029, - "end": 12030, - "loc": { - "start": { - "line": 339, - "column": 47 - }, - "end": { - "line": 339, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 12031, - "end": 12034, - "loc": { - "start": { - "line": 339, - "column": 49 - }, - "end": { - "line": 339, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12034, - "end": 12035, - "loc": { - "start": { - "line": 339, - "column": 52 - }, - "end": { - "line": 339, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12035, - "end": 12036, - "loc": { - "start": { - "line": 339, - "column": 53 - }, - "end": { - "line": 339, - "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": 12040, - "end": 12045, - "loc": { - "start": { - "line": 340, - "column": 2 - }, - "end": { - "line": 340, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 12046, - "end": 12047, - "loc": { - "start": { - "line": 340, - "column": 8 - }, - "end": { - "line": 340, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 12048, - "end": 12049, - "loc": { - "start": { - "line": 340, - "column": 10 - }, - "end": { - "line": 340, - "column": 11 - } - } - }, - { - "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": 12050, - "end": 12054, - "loc": { - "start": { - "line": 340, - "column": 12 - }, - "end": { - "line": 340, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12054, - "end": 12055, - "loc": { - "start": { - "line": 340, - "column": 16 - }, - "end": { - "line": 340, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 12055, - "end": 12060, - "loc": { - "start": { - "line": 340, - "column": 17 - }, - "end": { - "line": 340, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12060, - "end": 12061, - "loc": { - "start": { - "line": 340, - "column": 22 - }, - "end": { - "line": 340, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 12061, - "end": 12069, - "loc": { - "start": { - "line": 340, - "column": 23 - }, - "end": { - "line": 340, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12069, - "end": 12070, - "loc": { - "start": { - "line": 340, - "column": 31 - }, - "end": { - "line": 340, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12070, - "end": 12074, - "loc": { - "start": { - "line": 340, - "column": 32 - }, - "end": { - "line": 340, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12074, - "end": 12075, - "loc": { - "start": { - "line": 340, - "column": 36 - }, - "end": { - "line": 340, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 12075, - "end": 12076, - "loc": { - "start": { - "line": 340, - "column": 37 - }, - "end": { - "line": 340, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12076, - "end": 12077, - "loc": { - "start": { - "line": 340, - "column": 38 - }, - "end": { - "line": 340, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12077, - "end": 12078, - "loc": { - "start": { - "line": 340, - "column": 39 - }, - "end": { - "line": 340, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 12079, - "end": 12081, - "loc": { - "start": { - "line": 340, - "column": 41 - }, - "end": { - "line": 340, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12081, - "end": 12082, - "loc": { - "start": { - "line": 340, - "column": 43 - }, - "end": { - "line": 340, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12082, - "end": 12083, - "loc": { - "start": { - "line": 340, - "column": 44 - }, - "end": { - "line": 340, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 12084, - "end": 12085, - "loc": { - "start": { - "line": 340, - "column": 46 - }, - "end": { - "line": 340, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12085, - "end": 12086, - "loc": { - "start": { - "line": 340, - "column": 47 - }, - "end": { - "line": 340, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 12087, - "end": 12090, - "loc": { - "start": { - "line": 340, - "column": 49 - }, - "end": { - "line": 340, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12090, - "end": 12091, - "loc": { - "start": { - "line": 340, - "column": 52 - }, - "end": { - "line": 340, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12091, - "end": 12092, - "loc": { - "start": { - "line": 340, - "column": 53 - }, - "end": { - "line": 340, - "column": 54 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12096, - "end": 12102, - "loc": { - "start": { - "line": 341, - "column": 2 - }, - "end": { - "line": 341, - "column": 8 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12103, - "end": 12104, - "loc": { - "start": { - "line": 341, - "column": 9 - }, - "end": { - "line": 341, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 12104, - "end": 12105, - "loc": { - "start": { - "line": 341, - "column": 10 - }, - "end": { - "line": 341, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12105, - "end": 12106, - "loc": { - "start": { - "line": 341, - "column": 11 - }, - "end": { - "line": 341, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 12107, - "end": 12108, - "loc": { - "start": { - "line": 341, - "column": 13 - }, - "end": { - "line": 341, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12108, - "end": 12109, - "loc": { - "start": { - "line": 341, - "column": 14 - }, - "end": { - "line": 341, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 12110, - "end": 12111, - "loc": { - "start": { - "line": 341, - "column": 16 - }, - "end": { - "line": 341, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12111, - "end": 12112, - "loc": { - "start": { - "line": 341, - "column": 17 - }, - "end": { - "line": 341, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12112, - "end": 12113, - "loc": { - "start": { - "line": 341, - "column": 18 - }, - "end": { - "line": 341, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12116, - "end": 12117, - "loc": { - "start": { - "line": 342, - "column": 1 - }, - "end": { - "line": 342, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 12120, - "end": 12416, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 349, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToDecimal", - "start": 12419, - "end": 12431, - "loc": { - "start": { - "line": 350, - "column": 1 - }, - "end": { - "line": 350, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12431, - "end": 12432, - "loc": { - "start": { - "line": 350, - "column": 13 - }, - "end": { - "line": 350, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 12432, - "end": 12434, - "loc": { - "start": { - "line": 350, - "column": 14 - }, - "end": { - "line": 350, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12434, - "end": 12435, - "loc": { - "start": { - "line": 350, - "column": 16 - }, - "end": { - "line": 350, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 12436, - "end": 12438, - "loc": { - "start": { - "line": 350, - "column": 18 - }, - "end": { - "line": 350, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12438, - "end": 12439, - "loc": { - "start": { - "line": 350, - "column": 20 - }, - "end": { - "line": 350, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 12440, - "end": 12442, - "loc": { - "start": { - "line": 350, - "column": 22 - }, - "end": { - "line": 350, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12442, - "end": 12443, - "loc": { - "start": { - "line": 350, - "column": 24 - }, - "end": { - "line": 350, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12444, - "end": 12445, - "loc": { - "start": { - "line": 350, - "column": 26 - }, - "end": { - "line": 350, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12449, - "end": 12455, - "loc": { - "start": { - "line": 351, - "column": 2 - }, - "end": { - "line": 351, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12456, - "end": 12457, - "loc": { - "start": { - "line": 351, - "column": 9 - }, - "end": { - "line": 351, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 12457, - "end": 12459, - "loc": { - "start": { - "line": 351, - "column": 10 - }, - "end": { - "line": 351, - "column": 12 - } - } - }, - { - "type": { - "label": "<>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 8, - "updateContext": null - }, - "value": "<<", - "start": 12460, - "end": 12462, - "loc": { - "start": { - "line": 351, - "column": 13 - }, - "end": { - "line": 351, - "column": 15 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 12463, - "end": 12465, - "loc": { - "start": { - "line": 351, - "column": 16 - }, - "end": { - "line": 351, - "column": 18 - } - } - }, - { - "type": { - "label": "|", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 3, - "updateContext": null - }, - "value": "|", - "start": 12466, - "end": 12467, - "loc": { - "start": { - "line": 351, - "column": 19 - }, - "end": { - "line": 351, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 12468, - "end": 12470, - "loc": { - "start": { - "line": 351, - "column": 21 - }, - "end": { - "line": 351, - "column": 23 - } - } - }, - { - "type": { - "label": "<>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 8, - "updateContext": null - }, - "value": "<<", - "start": 12471, - "end": 12473, - "loc": { - "start": { - "line": 351, - "column": 24 - }, - "end": { - "line": 351, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 8, - "start": 12474, - "end": 12475, - "loc": { - "start": { - "line": 351, - "column": 27 - }, - "end": { - "line": 351, - "column": 28 - } - } - }, - { - "type": { - "label": "|", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 3, - "updateContext": null - }, - "value": "|", - "start": 12476, - "end": 12477, - "loc": { - "start": { - "line": 351, - "column": 29 - }, - "end": { - "line": 351, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 12478, - "end": 12480, - "loc": { - "start": { - "line": 351, - "column": 31 - }, - "end": { - "line": 351, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12480, - "end": 12481, - "loc": { - "start": { - "line": 351, - "column": 33 - }, - "end": { - "line": 351, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12481, - "end": 12482, - "loc": { - "start": { - "line": 351, - "column": 34 - }, - "end": { - "line": 351, - "column": 35 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12485, - "end": 12486, - "loc": { - "start": { - "line": 352, - "column": 1 - }, - "end": { - "line": 352, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 12489, - "end": 12740, - "loc": { - "start": { - "line": 353, - "column": 1 - }, - "end": { - "line": 358, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToDecimal", - "start": 12743, - "end": 12755, - "loc": { - "start": { - "line": 359, - "column": 1 - }, - "end": { - "line": 359, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12755, - "end": 12756, - "loc": { - "start": { - "line": 359, - "column": 13 - }, - "end": { - "line": 359, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12756, - "end": 12760, - "loc": { - "start": { - "line": 359, - "column": 14 - }, - "end": { - "line": 359, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12760, - "end": 12761, - "loc": { - "start": { - "line": 359, - "column": 18 - }, - "end": { - "line": 359, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12762, - "end": 12763, - "loc": { - "start": { - "line": 359, - "column": 20 - }, - "end": { - "line": 359, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12767, - "end": 12771, - "loc": { - "start": { - "line": 360, - "column": 2 - }, - "end": { - "line": 360, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 12772, - "end": 12773, - "loc": { - "start": { - "line": 360, - "column": 7 - }, - "end": { - "line": 360, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12774, - "end": 12778, - "loc": { - "start": { - "line": 360, - "column": 9 - }, - "end": { - "line": 360, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12778, - "end": 12779, - "loc": { - "start": { - "line": 360, - "column": 13 - }, - "end": { - "line": 360, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 12779, - "end": 12786, - "loc": { - "start": { - "line": 360, - "column": 14 - }, - "end": { - "line": 360, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12786, - "end": 12787, - "loc": { - "start": { - "line": 360, - "column": 21 - }, - "end": { - "line": 360, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 12787, - "end": 12790, - "loc": { - "start": { - "line": 360, - "column": 22 - }, - "end": { - "line": 360, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12790, - "end": 12791, - "loc": { - "start": { - "line": 360, - "column": 25 - }, - "end": { - "line": 360, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 12792, - "end": 12794, - "loc": { - "start": { - "line": 360, - "column": 27 - }, - "end": { - "line": 360, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12794, - "end": 12795, - "loc": { - "start": { - "line": 360, - "column": 29 - }, - "end": { - "line": 360, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12795, - "end": 12796, - "loc": { - "start": { - "line": 360, - "column": 30 - }, - "end": { - "line": 360, - "column": 31 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12800, - "end": 12806, - "loc": { - "start": { - "line": 361, - "column": 2 - }, - "end": { - "line": 361, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 12807, - "end": 12815, - "loc": { - "start": { - "line": 361, - "column": 9 - }, - "end": { - "line": 361, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12815, - "end": 12816, - "loc": { - "start": { - "line": 361, - "column": 17 - }, - "end": { - "line": 361, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 12816, - "end": 12820, - "loc": { - "start": { - "line": 361, - "column": 18 - }, - "end": { - "line": 361, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12820, - "end": 12821, - "loc": { - "start": { - "line": 361, - "column": 22 - }, - "end": { - "line": 361, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 12822, - "end": 12824, - "loc": { - "start": { - "line": 361, - "column": 24 - }, - "end": { - "line": 361, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12824, - "end": 12825, - "loc": { - "start": { - "line": 361, - "column": 26 - }, - "end": { - "line": 361, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12825, - "end": 12826, - "loc": { - "start": { - "line": 361, - "column": 27 - }, - "end": { - "line": 361, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12829, - "end": 12830, - "loc": { - "start": { - "line": 362, - "column": 1 - }, - "end": { - "line": 362, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 12833, - "end": 13341, - "loc": { - "start": { - "line": 363, - "column": 1 - }, - "end": { - "line": 372, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 13344, - "end": 13353, - "loc": { - "start": { - "line": 373, - "column": 1 - }, - "end": { - "line": 373, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13353, - "end": 13354, - "loc": { - "start": { - "line": 373, - "column": 10 - }, - "end": { - "line": 373, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13354, - "end": 13361, - "loc": { - "start": { - "line": 373, - "column": 11 - }, - "end": { - "line": 373, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13362, - "end": 13363, - "loc": { - "start": { - "line": 373, - "column": 19 - }, - "end": { - "line": 373, - "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": 13364, - "end": 13368, - "loc": { - "start": { - "line": 373, - "column": 21 - }, - "end": { - "line": 373, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13368, - "end": 13369, - "loc": { - "start": { - "line": 373, - "column": 25 - }, - "end": { - "line": 373, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColor", - "start": 13369, - "end": 13383, - "loc": { - "start": { - "line": 373, - "column": 26 - }, - "end": { - "line": 373, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13383, - "end": 13384, - "loc": { - "start": { - "line": 373, - "column": 40 - }, - "end": { - "line": 373, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13384, - "end": 13385, - "loc": { - "start": { - "line": 373, - "column": 41 - }, - "end": { - "line": 373, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13385, - "end": 13386, - "loc": { - "start": { - "line": 373, - "column": 42 - }, - "end": { - "line": 373, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 13387, - "end": 13389, - "loc": { - "start": { - "line": 373, - "column": 44 - }, - "end": { - "line": 373, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13389, - "end": 13390, - "loc": { - "start": { - "line": 373, - "column": 46 - }, - "end": { - "line": 373, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 13391, - "end": 13393, - "loc": { - "start": { - "line": 373, - "column": 48 - }, - "end": { - "line": 373, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13393, - "end": 13394, - "loc": { - "start": { - "line": 373, - "column": 50 - }, - "end": { - "line": 373, - "column": 51 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13395, - "end": 13396, - "loc": { - "start": { - "line": 373, - "column": 52 - }, - "end": { - "line": 373, - "column": 53 - } - } - }, - { - "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": 13400, - "end": 13403, - "loc": { - "start": { - "line": 374, - "column": 2 - }, - "end": { - "line": 374, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13404, - "end": 13407, - "loc": { - "start": { - "line": 374, - "column": 6 - }, - "end": { - "line": 374, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13407, - "end": 13408, - "loc": { - "start": { - "line": 374, - "column": 9 - }, - "end": { - "line": 374, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13409, - "end": 13412, - "loc": { - "start": { - "line": 374, - "column": 11 - }, - "end": { - "line": 374, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13412, - "end": 13413, - "loc": { - "start": { - "line": 374, - "column": 14 - }, - "end": { - "line": 374, - "column": 15 - } - } - }, - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 13417, - "end": 13438, - "loc": { - "start": { - "line": 375, - "column": 2 - }, - "end": { - "line": 375, - "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": 13442, - "end": 13444, - "loc": { - "start": { - "line": 376, - "column": 2 - }, - "end": { - "line": 376, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13445, - "end": 13446, - "loc": { - "start": { - "line": 376, - "column": 5 - }, - "end": { - "line": 376, - "column": 6 - } - } - }, - { - "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": 13446, - "end": 13452, - "loc": { - "start": { - "line": 376, - "column": 6 - }, - "end": { - "line": 376, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13452, - "end": 13453, - "loc": { - "start": { - "line": 376, - "column": 12 - }, - "end": { - "line": 376, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13453, - "end": 13460, - "loc": { - "start": { - "line": 376, - "column": 13 - }, - "end": { - "line": 376, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13460, - "end": 13461, - "loc": { - "start": { - "line": 376, - "column": 20 - }, - "end": { - "line": 376, - "column": 21 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 13462, - "end": 13465, - "loc": { - "start": { - "line": 376, - "column": 22 - }, - "end": { - "line": 376, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 13466, - "end": 13474, - "loc": { - "start": { - "line": 376, - "column": 26 - }, - "end": { - "line": 376, - "column": 34 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 13475, - "end": 13477, - "loc": { - "start": { - "line": 376, - "column": 35 - }, - "end": { - "line": 376, - "column": 37 - } - } - }, - { - "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": 13478, - "end": 13484, - "loc": { - "start": { - "line": 376, - "column": 38 - }, - "end": { - "line": 376, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13484, - "end": 13485, - "loc": { - "start": { - "line": 376, - "column": 44 - }, - "end": { - "line": 376, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 13485, - "end": 13487, - "loc": { - "start": { - "line": 376, - "column": 45 - }, - "end": { - "line": 376, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13487, - "end": 13488, - "loc": { - "start": { - "line": 376, - "column": 47 - }, - "end": { - "line": 376, - "column": 48 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 13489, - "end": 13492, - "loc": { - "start": { - "line": 376, - "column": 49 - }, - "end": { - "line": 376, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 13493, - "end": 13501, - "loc": { - "start": { - "line": 376, - "column": 53 - }, - "end": { - "line": 376, - "column": 61 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 13502, - "end": 13504, - "loc": { - "start": { - "line": 376, - "column": 62 - }, - "end": { - "line": 376, - "column": 64 - } - } - }, - { - "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": 13505, - "end": 13511, - "loc": { - "start": { - "line": 376, - "column": 65 - }, - "end": { - "line": 376, - "column": 71 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13511, - "end": 13512, - "loc": { - "start": { - "line": 376, - "column": 71 - }, - "end": { - "line": 376, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 13512, - "end": 13514, - "loc": { - "start": { - "line": 376, - "column": 72 - }, - "end": { - "line": 376, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13514, - "end": 13515, - "loc": { - "start": { - "line": 376, - "column": 74 - }, - "end": { - "line": 376, - "column": 75 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 13516, - "end": 13519, - "loc": { - "start": { - "line": 376, - "column": 76 - }, - "end": { - "line": 376, - "column": 79 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 13520, - "end": 13528, - "loc": { - "start": { - "line": 376, - "column": 80 - }, - "end": { - "line": 376, - "column": 88 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13528, - "end": 13529, - "loc": { - "start": { - "line": 376, - "column": 88 - }, - "end": { - "line": 376, - "column": 89 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13530, - "end": 13531, - "loc": { - "start": { - "line": 376, - "column": 90 - }, - "end": { - "line": 376, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13536, - "end": 13539, - "loc": { - "start": { - "line": 377, - "column": 3 - }, - "end": { - "line": 377, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13540, - "end": 13541, - "loc": { - "start": { - "line": 377, - "column": 7 - }, - "end": { - "line": 377, - "column": 8 - } - } - }, - { - "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": 13542, - "end": 13546, - "loc": { - "start": { - "line": 377, - "column": 9 - }, - "end": { - "line": 377, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13546, - "end": 13547, - "loc": { - "start": { - "line": 377, - "column": 13 - }, - "end": { - "line": 377, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToHex", - "start": 13547, - "end": 13555, - "loc": { - "start": { - "line": 377, - "column": 14 - }, - "end": { - "line": 377, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13555, - "end": 13556, - "loc": { - "start": { - "line": 377, - "column": 22 - }, - "end": { - "line": 377, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13556, - "end": 13563, - "loc": { - "start": { - "line": 377, - "column": 23 - }, - "end": { - "line": 377, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13563, - "end": 13564, - "loc": { - "start": { - "line": 377, - "column": 30 - }, - "end": { - "line": 377, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 13565, - "end": 13567, - "loc": { - "start": { - "line": 377, - "column": 32 - }, - "end": { - "line": 377, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13567, - "end": 13568, - "loc": { - "start": { - "line": 377, - "column": 34 - }, - "end": { - "line": 377, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 13569, - "end": 13571, - "loc": { - "start": { - "line": 377, - "column": 36 - }, - "end": { - "line": 377, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13571, - "end": 13572, - "loc": { - "start": { - "line": 377, - "column": 38 - }, - "end": { - "line": 377, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13572, - "end": 13573, - "loc": { - "start": { - "line": 377, - "column": 39 - }, - "end": { - "line": 377, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13577, - "end": 13578, - "loc": { - "start": { - "line": 378, - "column": 2 - }, - "end": { - "line": 378, - "column": 3 - } - } - }, - { - "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": 13579, - "end": 13583, - "loc": { - "start": { - "line": 378, - "column": 4 - }, - "end": { - "line": 378, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13584, - "end": 13585, - "loc": { - "start": { - "line": 378, - "column": 9 - }, - "end": { - "line": 378, - "column": 10 - } - } - }, - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 13590, - "end": 13615, - "loc": { - "start": { - "line": 379, - "column": 3 - }, - "end": { - "line": 379, - "column": 28 - } - } - }, - { - "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": 13620, - "end": 13622, - "loc": { - "start": { - "line": 380, - "column": 3 - }, - "end": { - "line": 380, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13623, - "end": 13624, - "loc": { - "start": { - "line": 380, - "column": 6 - }, - "end": { - "line": 380, - "column": 7 - } - } - }, - { - "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": 13624, - "end": 13630, - "loc": { - "start": { - "line": 380, - "column": 7 - }, - "end": { - "line": 380, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13630, - "end": 13631, - "loc": { - "start": { - "line": 380, - "column": 13 - }, - "end": { - "line": 380, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13631, - "end": 13638, - "loc": { - "start": { - "line": 380, - "column": 14 - }, - "end": { - "line": 380, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13638, - "end": 13639, - "loc": { - "start": { - "line": 380, - "column": 21 - }, - "end": { - "line": 380, - "column": 22 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 13640, - "end": 13643, - "loc": { - "start": { - "line": 380, - "column": 23 - }, - "end": { - "line": 380, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 13644, - "end": 13652, - "loc": { - "start": { - "line": 380, - "column": 27 - }, - "end": { - "line": 380, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13652, - "end": 13653, - "loc": { - "start": { - "line": 380, - "column": 35 - }, - "end": { - "line": 380, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13654, - "end": 13655, - "loc": { - "start": { - "line": 380, - "column": 37 - }, - "end": { - "line": 380, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13661, - "end": 13668, - "loc": { - "start": { - "line": 381, - "column": 4 - }, - "end": { - "line": 381, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13669, - "end": 13670, - "loc": { - "start": { - "line": 381, - "column": 12 - }, - "end": { - "line": 381, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 13671, - "end": 13675, - "loc": { - "start": { - "line": 381, - "column": 14 - }, - "end": { - "line": 381, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13675, - "end": 13676, - "loc": { - "start": { - "line": 381, - "column": 18 - }, - "end": { - "line": 381, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalToHex", - "start": 13676, - "end": 13688, - "loc": { - "start": { - "line": 381, - "column": 19 - }, - "end": { - "line": 381, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13688, - "end": 13689, - "loc": { - "start": { - "line": 381, - "column": 31 - }, - "end": { - "line": 381, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13689, - "end": 13696, - "loc": { - "start": { - "line": 381, - "column": 32 - }, - "end": { - "line": 381, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13696, - "end": 13697, - "loc": { - "start": { - "line": 381, - "column": 39 - }, - "end": { - "line": 381, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13697, - "end": 13698, - "loc": { - "start": { - "line": 381, - "column": 40 - }, - "end": { - "line": 381, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13703, - "end": 13704, - "loc": { - "start": { - "line": 382, - "column": 3 - }, - "end": { - "line": 382, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13709, - "end": 13712, - "loc": { - "start": { - "line": 383, - "column": 3 - }, - "end": { - "line": 383, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13713, - "end": 13714, - "loc": { - "start": { - "line": 383, - "column": 7 - }, - "end": { - "line": 383, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 13715, - "end": 13722, - "loc": { - "start": { - "line": 383, - "column": 9 - }, - "end": { - "line": 383, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13722, - "end": 13723, - "loc": { - "start": { - "line": 383, - "column": 16 - }, - "end": { - "line": 383, - "column": 17 - } - } - }, - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 13728, - "end": 13749, - "loc": { - "start": { - "line": 384, - "column": 3 - }, - "end": { - "line": 384, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13754, - "end": 13757, - "loc": { - "start": { - "line": 385, - "column": 3 - }, - "end": { - "line": 385, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13758, - "end": 13759, - "loc": { - "start": { - "line": 385, - "column": 7 - }, - "end": { - "line": 385, - "column": 8 - } - } - }, - { - "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": 13760, - "end": 13764, - "loc": { - "start": { - "line": 385, - "column": 9 - }, - "end": { - "line": 385, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13764, - "end": 13765, - "loc": { - "start": { - "line": 385, - "column": 13 - }, - "end": { - "line": 385, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToRgb", - "start": 13765, - "end": 13773, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13773, - "end": 13774, - "loc": { - "start": { - "line": 385, - "column": 22 - }, - "end": { - "line": 385, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13774, - "end": 13777, - "loc": { - "start": { - "line": 385, - "column": 23 - }, - "end": { - "line": 385, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13777, - "end": 13778, - "loc": { - "start": { - "line": 385, - "column": 26 - }, - "end": { - "line": 385, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13778, - "end": 13779, - "loc": { - "start": { - "line": 385, - "column": 27 - }, - "end": { - "line": 385, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13783, - "end": 13784, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 13788, - "end": 13794, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 387, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13795, - "end": 13796, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 387, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "hex", - "start": 13802, - "end": 13807, - "loc": { - "start": { - "line": 388, - "column": 3 - }, - "end": { - "line": 388, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13807, - "end": 13808, - "loc": { - "start": { - "line": 388, - "column": 8 - }, - "end": { - "line": 388, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13809, - "end": 13812, - "loc": { - "start": { - "line": 388, - "column": 10 - }, - "end": { - "line": 388, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13812, - "end": 13813, - "loc": { - "start": { - "line": 388, - "column": 13 - }, - "end": { - "line": 388, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 13813, - "end": 13824, - "loc": { - "start": { - "line": 388, - "column": 14 - }, - "end": { - "line": 388, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13824, - "end": 13825, - "loc": { - "start": { - "line": 388, - "column": 25 - }, - "end": { - "line": 388, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13825, - "end": 13826, - "loc": { - "start": { - "line": 388, - "column": 26 - }, - "end": { - "line": 388, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13826, - "end": 13827, - "loc": { - "start": { - "line": 388, - "column": 27 - }, - "end": { - "line": 388, - "column": 28 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "hexTagless", - "start": 13833, - "end": 13845, - "loc": { - "start": { - "line": 389, - "column": 3 - }, - "end": { - "line": 389, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13845, - "end": 13846, - "loc": { - "start": { - "line": 389, - "column": 15 - }, - "end": { - "line": 389, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 13847, - "end": 13850, - "loc": { - "start": { - "line": 389, - "column": 17 - }, - "end": { - "line": 389, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13850, - "end": 13851, - "loc": { - "start": { - "line": 389, - "column": 20 - }, - "end": { - "line": 389, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 13851, - "end": 13858, - "loc": { - "start": { - "line": 389, - "column": 21 - }, - "end": { - "line": 389, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13858, - "end": 13859, - "loc": { - "start": { - "line": 389, - "column": 28 - }, - "end": { - "line": 389, - "column": 29 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 13859, - "end": 13862, - "loc": { - "start": { - "line": 389, - "column": 29 - }, - "end": { - "line": 389, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13862, - "end": 13863, - "loc": { - "start": { - "line": 389, - "column": 32 - }, - "end": { - "line": 389, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 13864, - "end": 13866, - "loc": { - "start": { - "line": 389, - "column": 34 - }, - "end": { - "line": 389, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13866, - "end": 13867, - "loc": { - "start": { - "line": 389, - "column": 36 - }, - "end": { - "line": 389, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13867, - "end": 13868, - "loc": { - "start": { - "line": 389, - "column": 37 - }, - "end": { - "line": 389, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 13868, - "end": 13879, - "loc": { - "start": { - "line": 389, - "column": 38 - }, - "end": { - "line": 389, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13879, - "end": 13880, - "loc": { - "start": { - "line": 389, - "column": 49 - }, - "end": { - "line": 389, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13880, - "end": 13881, - "loc": { - "start": { - "line": 389, - "column": 50 - }, - "end": { - "line": 389, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13881, - "end": 13882, - "loc": { - "start": { - "line": 389, - "column": 51 - }, - "end": { - "line": 389, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgb", - "start": 13888, - "end": 13893, - "loc": { - "start": { - "line": 390, - "column": 3 - }, - "end": { - "line": 390, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13893, - "end": 13894, - "loc": { - "start": { - "line": 390, - "column": 8 - }, - "end": { - "line": 390, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgb(", - "start": 13895, - "end": 13901, - "loc": { - "start": { - "line": 390, - "column": 10 - }, - "end": { - "line": 390, - "column": 16 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13901, - "end": 13902, - "loc": { - "start": { - "line": 390, - "column": 16 - }, - "end": { - "line": 390, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13902, - "end": 13905, - "loc": { - "start": { - "line": 390, - "column": 17 - }, - "end": { - "line": 390, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13905, - "end": 13906, - "loc": { - "start": { - "line": 390, - "column": 20 - }, - "end": { - "line": 390, - "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": 13906, - "end": 13907, - "loc": { - "start": { - "line": 390, - "column": 21 - }, - "end": { - "line": 390, - "column": 22 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13907, - "end": 13908, - "loc": { - "start": { - "line": 390, - "column": 22 - }, - "end": { - "line": 390, - "column": 23 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13908, - "end": 13909, - "loc": { - "start": { - "line": 390, - "column": 23 - }, - "end": { - "line": 390, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ",", - "start": 13909, - "end": 13912, - "loc": { - "start": { - "line": 390, - "column": 24 - }, - "end": { - "line": 390, - "column": 27 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13912, - "end": 13913, - "loc": { - "start": { - "line": 390, - "column": 27 - }, - "end": { - "line": 390, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13913, - "end": 13916, - "loc": { - "start": { - "line": 390, - "column": 28 - }, - "end": { - "line": 390, - "column": 31 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13916, - "end": 13917, - "loc": { - "start": { - "line": 390, - "column": 31 - }, - "end": { - "line": 390, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 13917, - "end": 13918, - "loc": { - "start": { - "line": 390, - "column": 32 - }, - "end": { - "line": 390, - "column": 33 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13918, - "end": 13919, - "loc": { - "start": { - "line": 390, - "column": 33 - }, - "end": { - "line": 390, - "column": 34 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13919, - "end": 13920, - "loc": { - "start": { - "line": 390, - "column": 34 - }, - "end": { - "line": 390, - "column": 35 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ",", - "start": 13920, - "end": 13923, - "loc": { - "start": { - "line": 390, - "column": 35 - }, - "end": { - "line": 390, - "column": 38 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13923, - "end": 13924, - "loc": { - "start": { - "line": 390, - "column": 38 - }, - "end": { - "line": 390, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13924, - "end": 13927, - "loc": { - "start": { - "line": 390, - "column": 39 - }, - "end": { - "line": 390, - "column": 42 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13927, - "end": 13928, - "loc": { - "start": { - "line": 390, - "column": 42 - }, - "end": { - "line": 390, - "column": 43 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 13928, - "end": 13929, - "loc": { - "start": { - "line": 390, - "column": 43 - }, - "end": { - "line": 390, - "column": 44 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13929, - "end": 13930, - "loc": { - "start": { - "line": 390, - "column": 44 - }, - "end": { - "line": 390, - "column": 45 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13930, - "end": 13931, - "loc": { - "start": { - "line": 390, - "column": 45 - }, - "end": { - "line": 390, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ")", - "start": 13931, - "end": 13934, - "loc": { - "start": { - "line": 390, - "column": 46 - }, - "end": { - "line": 390, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13934, - "end": 13935, - "loc": { - "start": { - "line": 390, - "column": 49 - }, - "end": { - "line": 390, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbArray", - "start": 13941, - "end": 13951, - "loc": { - "start": { - "line": 391, - "column": 3 - }, - "end": { - "line": 391, - "column": 13 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13951, - "end": 13952, - "loc": { - "start": { - "line": 391, - "column": 13 - }, - "end": { - "line": 391, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13953, - "end": 13956, - "loc": { - "start": { - "line": 391, - "column": 15 - }, - "end": { - "line": 391, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13956, - "end": 13957, - "loc": { - "start": { - "line": 391, - "column": 18 - }, - "end": { - "line": 391, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbObject", - "start": 13963, - "end": 13974, - "loc": { - "start": { - "line": 392, - "column": 3 - }, - "end": { - "line": 392, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13974, - "end": 13975, - "loc": { - "start": { - "line": 392, - "column": 14 - }, - "end": { - "line": 392, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13976, - "end": 13977, - "loc": { - "start": { - "line": 392, - "column": 16 - }, - "end": { - "line": 392, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "r", - "start": 13978, - "end": 13981, - "loc": { - "start": { - "line": 392, - "column": 18 - }, - "end": { - "line": 392, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13981, - "end": 13982, - "loc": { - "start": { - "line": 392, - "column": 21 - }, - "end": { - "line": 392, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13983, - "end": 13986, - "loc": { - "start": { - "line": 392, - "column": 23 - }, - "end": { - "line": 392, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13986, - "end": 13987, - "loc": { - "start": { - "line": 392, - "column": 26 - }, - "end": { - "line": 392, - "column": 27 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 13987, - "end": 13988, - "loc": { - "start": { - "line": 392, - "column": 27 - }, - "end": { - "line": 392, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13988, - "end": 13989, - "loc": { - "start": { - "line": 392, - "column": 28 - }, - "end": { - "line": 392, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13989, - "end": 13990, - "loc": { - "start": { - "line": 392, - "column": 29 - }, - "end": { - "line": 392, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 13991, - "end": 13994, - "loc": { - "start": { - "line": 392, - "column": 31 - }, - "end": { - "line": 392, - "column": 34 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13994, - "end": 13995, - "loc": { - "start": { - "line": 392, - "column": 34 - }, - "end": { - "line": 392, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 13996, - "end": 13999, - "loc": { - "start": { - "line": 392, - "column": 36 - }, - "end": { - "line": 392, - "column": 39 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13999, - "end": 14000, - "loc": { - "start": { - "line": 392, - "column": 39 - }, - "end": { - "line": 392, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 14000, - "end": 14001, - "loc": { - "start": { - "line": 392, - "column": 40 - }, - "end": { - "line": 392, - "column": 41 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14001, - "end": 14002, - "loc": { - "start": { - "line": 392, - "column": 41 - }, - "end": { - "line": 392, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14002, - "end": 14003, - "loc": { - "start": { - "line": 392, - "column": 42 - }, - "end": { - "line": 392, - "column": 43 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "b", - "start": 14004, - "end": 14007, - "loc": { - "start": { - "line": 392, - "column": 44 - }, - "end": { - "line": 392, - "column": 47 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14007, - "end": 14008, - "loc": { - "start": { - "line": 392, - "column": 47 - }, - "end": { - "line": 392, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 14009, - "end": 14012, - "loc": { - "start": { - "line": 392, - "column": 49 - }, - "end": { - "line": 392, - "column": 52 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14012, - "end": 14013, - "loc": { - "start": { - "line": 392, - "column": 52 - }, - "end": { - "line": 392, - "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": 14013, - "end": 14014, - "loc": { - "start": { - "line": 392, - "column": 53 - }, - "end": { - "line": 392, - "column": 54 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14014, - "end": 14015, - "loc": { - "start": { - "line": 392, - "column": 54 - }, - "end": { - "line": 392, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14016, - "end": 14017, - "loc": { - "start": { - "line": 392, - "column": 56 - }, - "end": { - "line": 392, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14017, - "end": 14018, - "loc": { - "start": { - "line": 392, - "column": 57 - }, - "end": { - "line": 392, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbNormal", - "start": 14024, - "end": 14035, - "loc": { - "start": { - "line": 393, - "column": 3 - }, - "end": { - "line": 393, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14035, - "end": 14036, - "loc": { - "start": { - "line": 393, - "column": 14 - }, - "end": { - "line": 393, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14037, - "end": 14038, - "loc": { - "start": { - "line": 393, - "column": 16 - }, - "end": { - "line": 393, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14038, - "end": 14042, - "loc": { - "start": { - "line": 393, - "column": 17 - }, - "end": { - "line": 393, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14042, - "end": 14043, - "loc": { - "start": { - "line": 393, - "column": 21 - }, - "end": { - "line": 393, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 14043, - "end": 14048, - "loc": { - "start": { - "line": 393, - "column": 22 - }, - "end": { - "line": 393, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14048, - "end": 14049, - "loc": { - "start": { - "line": 393, - "column": 27 - }, - "end": { - "line": 393, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 14049, - "end": 14052, - "loc": { - "start": { - "line": 393, - "column": 28 - }, - "end": { - "line": 393, - "column": 31 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14052, - "end": 14053, - "loc": { - "start": { - "line": 393, - "column": 31 - }, - "end": { - "line": 393, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 14053, - "end": 14054, - "loc": { - "start": { - "line": 393, - "column": 32 - }, - "end": { - "line": 393, - "column": 33 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14054, - "end": 14055, - "loc": { - "start": { - "line": 393, - "column": 33 - }, - "end": { - "line": 393, - "column": 34 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14055, - "end": 14056, - "loc": { - "start": { - "line": 393, - "column": 34 - }, - "end": { - "line": 393, - "column": 35 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 14056, - "end": 14059, - "loc": { - "start": { - "line": 393, - "column": 35 - }, - "end": { - "line": 393, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 14060, - "end": 14061, - "loc": { - "start": { - "line": 393, - "column": 39 - }, - "end": { - "line": 393, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14062, - "end": 14065, - "loc": { - "start": { - "line": 393, - "column": 41 - }, - "end": { - "line": 393, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14065, - "end": 14066, - "loc": { - "start": { - "line": 393, - "column": 44 - }, - "end": { - "line": 393, - "column": 45 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14067, - "end": 14068, - "loc": { - "start": { - "line": 393, - "column": 46 - }, - "end": { - "line": 393, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14069, - "end": 14072, - "loc": { - "start": { - "line": 393, - "column": 48 - }, - "end": { - "line": 393, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14072, - "end": 14073, - "loc": { - "start": { - "line": 393, - "column": 51 - }, - "end": { - "line": 393, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14074, - "end": 14078, - "loc": { - "start": { - "line": 393, - "column": 53 - }, - "end": { - "line": 393, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14078, - "end": 14079, - "loc": { - "start": { - "line": 393, - "column": 57 - }, - "end": { - "line": 393, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 14079, - "end": 14084, - "loc": { - "start": { - "line": 393, - "column": 58 - }, - "end": { - "line": 393, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14084, - "end": 14085, - "loc": { - "start": { - "line": 393, - "column": 63 - }, - "end": { - "line": 393, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 14085, - "end": 14088, - "loc": { - "start": { - "line": 393, - "column": 64 - }, - "end": { - "line": 393, - "column": 67 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14088, - "end": 14089, - "loc": { - "start": { - "line": 393, - "column": 67 - }, - "end": { - "line": 393, - "column": 68 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 14089, - "end": 14090, - "loc": { - "start": { - "line": 393, - "column": 68 - }, - "end": { - "line": 393, - "column": 69 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14090, - "end": 14091, - "loc": { - "start": { - "line": 393, - "column": 69 - }, - "end": { - "line": 393, - "column": 70 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14091, - "end": 14092, - "loc": { - "start": { - "line": 393, - "column": 70 - }, - "end": { - "line": 393, - "column": 71 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 14092, - "end": 14095, - "loc": { - "start": { - "line": 393, - "column": 71 - }, - "end": { - "line": 393, - "column": 74 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 14096, - "end": 14097, - "loc": { - "start": { - "line": 393, - "column": 75 - }, - "end": { - "line": 393, - "column": 76 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14098, - "end": 14101, - "loc": { - "start": { - "line": 393, - "column": 77 - }, - "end": { - "line": 393, - "column": 80 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14101, - "end": 14102, - "loc": { - "start": { - "line": 393, - "column": 80 - }, - "end": { - "line": 393, - "column": 81 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14103, - "end": 14104, - "loc": { - "start": { - "line": 393, - "column": 82 - }, - "end": { - "line": 393, - "column": 83 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14105, - "end": 14108, - "loc": { - "start": { - "line": 393, - "column": 84 - }, - "end": { - "line": 393, - "column": 87 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14108, - "end": 14109, - "loc": { - "start": { - "line": 393, - "column": 87 - }, - "end": { - "line": 393, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14110, - "end": 14114, - "loc": { - "start": { - "line": 393, - "column": 89 - }, - "end": { - "line": 393, - "column": 93 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14114, - "end": 14115, - "loc": { - "start": { - "line": 393, - "column": 93 - }, - "end": { - "line": 393, - "column": 94 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 14115, - "end": 14120, - "loc": { - "start": { - "line": 393, - "column": 94 - }, - "end": { - "line": 393, - "column": 99 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14120, - "end": 14121, - "loc": { - "start": { - "line": 393, - "column": 99 - }, - "end": { - "line": 393, - "column": 100 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 14121, - "end": 14124, - "loc": { - "start": { - "line": 393, - "column": 100 - }, - "end": { - "line": 393, - "column": 103 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14124, - "end": 14125, - "loc": { - "start": { - "line": 393, - "column": 103 - }, - "end": { - "line": 393, - "column": 104 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 14125, - "end": 14126, - "loc": { - "start": { - "line": 393, - "column": 104 - }, - "end": { - "line": 393, - "column": 105 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14126, - "end": 14127, - "loc": { - "start": { - "line": 393, - "column": 105 - }, - "end": { - "line": 393, - "column": 106 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14127, - "end": 14128, - "loc": { - "start": { - "line": 393, - "column": 106 - }, - "end": { - "line": 393, - "column": 107 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 14128, - "end": 14131, - "loc": { - "start": { - "line": 393, - "column": 107 - }, - "end": { - "line": 393, - "column": 110 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 14132, - "end": 14133, - "loc": { - "start": { - "line": 393, - "column": 111 - }, - "end": { - "line": 393, - "column": 112 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14134, - "end": 14137, - "loc": { - "start": { - "line": 393, - "column": 113 - }, - "end": { - "line": 393, - "column": 116 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14137, - "end": 14138, - "loc": { - "start": { - "line": 393, - "column": 116 - }, - "end": { - "line": 393, - "column": 117 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 14139, - "end": 14140, - "loc": { - "start": { - "line": 393, - "column": 118 - }, - "end": { - "line": 393, - "column": 119 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 14141, - "end": 14144, - "loc": { - "start": { - "line": 393, - "column": 120 - }, - "end": { - "line": 393, - "column": 123 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14144, - "end": 14145, - "loc": { - "start": { - "line": 393, - "column": 123 - }, - "end": { - "line": 393, - "column": 124 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14145, - "end": 14146, - "loc": { - "start": { - "line": 393, - "column": 124 - }, - "end": { - "line": 393, - "column": 125 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "decimal", - "start": 14152, - "end": 14161, - "loc": { - "start": { - "line": 394, - "column": 3 - }, - "end": { - "line": 394, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14161, - "end": 14162, - "loc": { - "start": { - "line": 394, - "column": 12 - }, - "end": { - "line": 394, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 14163, - "end": 14167, - "loc": { - "start": { - "line": 394, - "column": 14 - }, - "end": { - "line": 394, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14167, - "end": 14168, - "loc": { - "start": { - "line": 394, - "column": 18 - }, - "end": { - "line": 394, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToDecimal", - "start": 14168, - "end": 14180, - "loc": { - "start": { - "line": 394, - "column": 19 - }, - "end": { - "line": 394, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14180, - "end": 14181, - "loc": { - "start": { - "line": 394, - "column": 31 - }, - "end": { - "line": 394, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 14181, - "end": 14184, - "loc": { - "start": { - "line": 394, - "column": 32 - }, - "end": { - "line": 394, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14184, - "end": 14185, - "loc": { - "start": { - "line": 394, - "column": 35 - }, - "end": { - "line": 394, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14190, - "end": 14191, - "loc": { - "start": { - "line": 395, - "column": 2 - }, - "end": { - "line": 395, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14191, - "end": 14192, - "loc": { - "start": { - "line": 395, - "column": 3 - }, - "end": { - "line": 395, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14195, - "end": 14196, - "loc": { - "start": { - "line": 396, - "column": 1 - }, - "end": { - "line": 396, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 14199, - "end": 14295, - "loc": { - "start": { - "line": 397, - "column": 1 - }, - "end": { - "line": 401, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColor", - "start": 14298, - "end": 14312, - "loc": { - "start": { - "line": 402, - "column": 1 - }, - "end": { - "line": 402, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14312, - "end": 14313, - "loc": { - "start": { - "line": 402, - "column": 15 - }, - "end": { - "line": 402, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14313, - "end": 14314, - "loc": { - "start": { - "line": 402, - "column": 16 - }, - "end": { - "line": 402, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14315, - "end": 14316, - "loc": { - "start": { - "line": 402, - "column": 18 - }, - "end": { - "line": 402, - "column": 19 - } - } - }, - { - "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": 14320, - "end": 14325, - "loc": { - "start": { - "line": 403, - "column": 2 - }, - "end": { - "line": 403, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 14326, - "end": 14331, - "loc": { - "start": { - "line": 403, - "column": 8 - }, - "end": { - "line": 403, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14332, - "end": 14333, - "loc": { - "start": { - "line": 403, - "column": 14 - }, - "end": { - "line": 403, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "0123456789ABCDEF", - "start": 14334, - "end": 14352, - "loc": { - "start": { - "line": 403, - "column": 16 - }, - "end": { - "line": 403, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14352, - "end": 14353, - "loc": { - "start": { - "line": 403, - "column": 34 - }, - "end": { - "line": 403, - "column": 35 - } - } - }, - { - "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": 14357, - "end": 14360, - "loc": { - "start": { - "line": 404, - "column": 2 - }, - "end": { - "line": 404, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 14361, - "end": 14366, - "loc": { - "start": { - "line": 404, - "column": 6 - }, - "end": { - "line": 404, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14367, - "end": 14368, - "loc": { - "start": { - "line": 404, - "column": 12 - }, - "end": { - "line": 404, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 14369, - "end": 14372, - "loc": { - "start": { - "line": 404, - "column": 14 - }, - "end": { - "line": 404, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14372, - "end": 14373, - "loc": { - "start": { - "line": 404, - "column": 17 - }, - "end": { - "line": 404, - "column": 18 - } - } - }, - { - "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": 14377, - "end": 14380, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 405, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14381, - "end": 14382, - "loc": { - "start": { - "line": 405, - "column": 6 - }, - "end": { - "line": 405, - "column": 7 - } - } - }, - { - "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": 14382, - "end": 14385, - "loc": { - "start": { - "line": 405, - "column": 7 - }, - "end": { - "line": 405, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 14386, - "end": 14387, - "loc": { - "start": { - "line": 405, - "column": 11 - }, - "end": { - "line": 405, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14388, - "end": 14389, - "loc": { - "start": { - "line": 405, - "column": 13 - }, - "end": { - "line": 405, - "column": 14 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 14390, - "end": 14391, - "loc": { - "start": { - "line": 405, - "column": 15 - }, - "end": { - "line": 405, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14391, - "end": 14392, - "loc": { - "start": { - "line": 405, - "column": 16 - }, - "end": { - "line": 405, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 14393, - "end": 14394, - "loc": { - "start": { - "line": 405, - "column": 18 - }, - "end": { - "line": 405, - "column": 19 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 14395, - "end": 14396, - "loc": { - "start": { - "line": 405, - "column": 20 - }, - "end": { - "line": 405, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 6, - "start": 14397, - "end": 14398, - "loc": { - "start": { - "line": 405, - "column": 22 - }, - "end": { - "line": 405, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14398, - "end": 14399, - "loc": { - "start": { - "line": 405, - "column": 23 - }, - "end": { - "line": 405, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 14400, - "end": 14401, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 26 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 14401, - "end": 14403, - "loc": { - "start": { - "line": 405, - "column": 26 - }, - "end": { - "line": 405, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14403, - "end": 14404, - "loc": { - "start": { - "line": 405, - "column": 28 - }, - "end": { - "line": 405, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14405, - "end": 14406, - "loc": { - "start": { - "line": 405, - "column": 30 - }, - "end": { - "line": 405, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 14411, - "end": 14416, - "loc": { - "start": { - "line": 406, - "column": 3 - }, - "end": { - "line": 406, - "column": 8 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 14417, - "end": 14419, - "loc": { - "start": { - "line": 406, - "column": 9 - }, - "end": { - "line": 406, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 14420, - "end": 14425, - "loc": { - "start": { - "line": 406, - "column": 12 - }, - "end": { - "line": 406, - "column": 17 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14425, - "end": 14426, - "loc": { - "start": { - "line": 406, - "column": 17 - }, - "end": { - "line": 406, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14426, - "end": 14430, - "loc": { - "start": { - "line": 406, - "column": 18 - }, - "end": { - "line": 406, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14430, - "end": 14431, - "loc": { - "start": { - "line": 406, - "column": 22 - }, - "end": { - "line": 406, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 14431, - "end": 14436, - "loc": { - "start": { - "line": 406, - "column": 23 - }, - "end": { - "line": 406, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14436, - "end": 14437, - "loc": { - "start": { - "line": 406, - "column": 28 - }, - "end": { - "line": 406, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 14437, - "end": 14441, - "loc": { - "start": { - "line": 406, - "column": 29 - }, - "end": { - "line": 406, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14441, - "end": 14442, - "loc": { - "start": { - "line": 406, - "column": 33 - }, - "end": { - "line": 406, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 14442, - "end": 14448, - "loc": { - "start": { - "line": 406, - "column": 34 - }, - "end": { - "line": 406, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14448, - "end": 14449, - "loc": { - "start": { - "line": 406, - "column": 40 - }, - "end": { - "line": 406, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14449, - "end": 14450, - "loc": { - "start": { - "line": 406, - "column": 41 - }, - "end": { - "line": 406, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 14451, - "end": 14452, - "loc": { - "start": { - "line": 406, - "column": 43 - }, - "end": { - "line": 406, - "column": 44 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 14453, - "end": 14455, - "loc": { - "start": { - "line": 406, - "column": 45 - }, - "end": { - "line": 406, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14455, - "end": 14456, - "loc": { - "start": { - "line": 406, - "column": 47 - }, - "end": { - "line": 406, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14456, - "end": 14457, - "loc": { - "start": { - "line": 406, - "column": 48 - }, - "end": { - "line": 406, - "column": 49 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14457, - "end": 14458, - "loc": { - "start": { - "line": 406, - "column": 49 - }, - "end": { - "line": 406, - "column": 50 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14462, - "end": 14463, - "loc": { - "start": { - "line": 407, - "column": 2 - }, - "end": { - "line": 407, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 14467, - "end": 14473, - "loc": { - "start": { - "line": 408, - "column": 2 - }, - "end": { - "line": 408, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 14474, - "end": 14479, - "loc": { - "start": { - "line": 408, - "column": 9 - }, - "end": { - "line": 408, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14479, - "end": 14480, - "loc": { - "start": { - "line": 408, - "column": 14 - }, - "end": { - "line": 408, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14483, - "end": 14484, - "loc": { - "start": { - "line": 409, - "column": 1 - }, - "end": { - "line": 409, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 14487, - "end": 14943, - "loc": { - "start": { - "line": 410, - "column": 1 - }, - "end": { - "line": 419, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColorBetween", - "start": 14946, - "end": 14967, - "loc": { - "start": { - "line": 420, - "column": 1 - }, - "end": { - "line": 420, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14967, - "end": 14968, - "loc": { - "start": { - "line": 420, - "column": 22 - }, - "end": { - "line": 420, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor1", - "start": 14968, - "end": 14975, - "loc": { - "start": { - "line": 420, - "column": 23 - }, - "end": { - "line": 420, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14975, - "end": 14976, - "loc": { - "start": { - "line": 420, - "column": 30 - }, - "end": { - "line": 420, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor2", - "start": 14977, - "end": 14984, - "loc": { - "start": { - "line": 420, - "column": 32 - }, - "end": { - "line": 420, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14984, - "end": 14985, - "loc": { - "start": { - "line": 420, - "column": 39 - }, - "end": { - "line": 420, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 14986, - "end": 14993, - "loc": { - "start": { - "line": 420, - "column": 41 - }, - "end": { - "line": 420, - "column": 48 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14994, - "end": 14995, - "loc": { - "start": { - "line": 420, - "column": 49 - }, - "end": { - "line": 420, - "column": 50 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 14996, - "end": 14999, - "loc": { - "start": { - "line": 420, - "column": 51 - }, - "end": { - "line": 420, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14999, - "end": 15000, - "loc": { - "start": { - "line": 420, - "column": 54 - }, - "end": { - "line": 420, - "column": 55 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15001, - "end": 15002, - "loc": { - "start": { - "line": 420, - "column": 56 - }, - "end": { - "line": 420, - "column": 57 - } - } - }, - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 15006, - "end": 15040, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 36 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 15044, - "end": 15050, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 8 - } - } - }, - { - "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": 15051, - "end": 15055, - "loc": { - "start": { - "line": 422, - "column": 9 - }, - "end": { - "line": 422, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15055, - "end": 15056, - "loc": { - "start": { - "line": 422, - "column": 13 - }, - "end": { - "line": 422, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "flooredLerp", - "start": 15056, - "end": 15067, - "loc": { - "start": { - "line": 422, - "column": 14 - }, - "end": { - "line": 422, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15067, - "end": 15068, - "loc": { - "start": { - "line": 422, - "column": 25 - }, - "end": { - "line": 422, - "column": 26 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 15068, - "end": 15072, - "loc": { - "start": { - "line": 422, - "column": 26 - }, - "end": { - "line": 422, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15072, - "end": 15073, - "loc": { - "start": { - "line": 422, - "column": 30 - }, - "end": { - "line": 422, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 15073, - "end": 15082, - "loc": { - "start": { - "line": 422, - "column": 31 - }, - "end": { - "line": 422, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15082, - "end": 15083, - "loc": { - "start": { - "line": 422, - "column": 40 - }, - "end": { - "line": 422, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor1", - "start": 15083, - "end": 15090, - "loc": { - "start": { - "line": 422, - "column": 41 - }, - "end": { - "line": 422, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15090, - "end": 15091, - "loc": { - "start": { - "line": 422, - "column": 48 - }, - "end": { - "line": 422, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15091, - "end": 15092, - "loc": { - "start": { - "line": 422, - "column": 49 - }, - "end": { - "line": 422, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 15092, - "end": 15099, - "loc": { - "start": { - "line": 422, - "column": 50 - }, - "end": { - "line": 422, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15099, - "end": 15100, - "loc": { - "start": { - "line": 422, - "column": 57 - }, - "end": { - "line": 422, - "column": 58 - } - } - }, - { - "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": 15101, - "end": 15105, - "loc": { - "start": { - "line": 422, - "column": 59 - }, - "end": { - "line": 422, - "column": 63 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15105, - "end": 15106, - "loc": { - "start": { - "line": 422, - "column": 63 - }, - "end": { - "line": 422, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 15106, - "end": 15115, - "loc": { - "start": { - "line": 422, - "column": 64 - }, - "end": { - "line": 422, - "column": 73 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15115, - "end": 15116, - "loc": { - "start": { - "line": 422, - "column": 73 - }, - "end": { - "line": 422, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor2", - "start": 15116, - "end": 15123, - "loc": { - "start": { - "line": 422, - "column": 74 - }, - "end": { - "line": 422, - "column": 81 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15123, - "end": 15124, - "loc": { - "start": { - "line": 422, - "column": 81 - }, - "end": { - "line": 422, - "column": 82 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15124, - "end": 15125, - "loc": { - "start": { - "line": 422, - "column": 82 - }, - "end": { - "line": 422, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 15125, - "end": 15132, - "loc": { - "start": { - "line": 422, - "column": 83 - }, - "end": { - "line": 422, - "column": 90 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15132, - "end": 15133, - "loc": { - "start": { - "line": 422, - "column": 90 - }, - "end": { - "line": 422, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 15134, - "end": 15141, - "loc": { - "start": { - "line": 422, - "column": 92 - }, - "end": { - "line": 422, - "column": 99 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15141, - "end": 15142, - "loc": { - "start": { - "line": 422, - "column": 99 - }, - "end": { - "line": 422, - "column": 100 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15142, - "end": 15143, - "loc": { - "start": { - "line": 422, - "column": 100 - }, - "end": { - "line": 422, - "column": 101 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15146, - "end": 15147, - "loc": { - "start": { - "line": 423, - "column": 1 - }, - "end": { - "line": 423, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 15150, - "end": 15938, - "loc": { - "start": { - "line": 424, - "column": 1 - }, - "end": { - "line": 437, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitionColor", - "start": 15941, - "end": 15956, - "loc": { - "start": { - "line": 438, - "column": 1 - }, - "end": { - "line": 438, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15956, - "end": 15957, - "loc": { - "start": { - "line": 438, - "column": 16 - }, - "end": { - "line": 438, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 15957, - "end": 15966, - "loc": { - "start": { - "line": 438, - "column": 17 - }, - "end": { - "line": 438, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15966, - "end": 15967, - "loc": { - "start": { - "line": 438, - "column": 26 - }, - "end": { - "line": 438, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartColor", - "start": 15968, - "end": 15979, - "loc": { - "start": { - "line": 438, - "column": 28 - }, - "end": { - "line": 438, - "column": 39 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 15979, - "end": 15980, - "loc": { - "start": { - "line": 438, - "column": 39 - }, - "end": { - "line": 438, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#000", - "start": 15980, - "end": 15986, - "loc": { - "start": { - "line": 438, - "column": 40 - }, - "end": { - "line": 438, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15986, - "end": 15987, - "loc": { - "start": { - "line": 438, - "column": 46 - }, - "end": { - "line": 438, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndColor", - "start": 15988, - "end": 15997, - "loc": { - "start": { - "line": 438, - "column": 48 - }, - "end": { - "line": 438, - "column": 57 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 15997, - "end": 15998, - "loc": { - "start": { - "line": 438, - "column": 57 - }, - "end": { - "line": 438, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#fff", - "start": 15998, - "end": 16004, - "loc": { - "start": { - "line": 438, - "column": 58 - }, - "end": { - "line": 438, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16004, - "end": 16005, - "loc": { - "start": { - "line": 438, - "column": 64 - }, - "end": { - "line": 438, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 16006, - "end": 16015, - "loc": { - "start": { - "line": 438, - "column": 66 - }, - "end": { - "line": 438, - "column": 75 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16015, - "end": 16016, - "loc": { - "start": { - "line": 438, - "column": 75 - }, - "end": { - "line": 438, - "column": 76 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1000, - "start": 16016, - "end": 16020, - "loc": { - "start": { - "line": 438, - "column": 76 - }, - "end": { - "line": 438, - "column": 80 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16020, - "end": 16021, - "loc": { - "start": { - "line": 438, - "column": 80 - }, - "end": { - "line": 438, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 16022, - "end": 16040, - "loc": { - "start": { - "line": 438, - "column": 82 - }, - "end": { - "line": 438, - "column": 100 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16040, - "end": 16041, - "loc": { - "start": { - "line": 438, - "column": 100 - }, - "end": { - "line": 438, - "column": 101 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 16042, - "end": 16054, - "loc": { - "start": { - "line": 438, - "column": 102 - }, - "end": { - "line": 438, - "column": 114 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16054, - "end": 16055, - "loc": { - "start": { - "line": 438, - "column": 114 - }, - "end": { - "line": 438, - "column": 115 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16056, - "end": 16057, - "loc": { - "start": { - "line": 438, - "column": 116 - }, - "end": { - "line": 438, - "column": 117 - } - } - }, - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 16061, - "end": 16097, - "loc": { - "start": { - "line": 439, - "column": 2 - }, - "end": { - "line": 439, - "column": 38 - } - } - }, - { - "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": 16101, - "end": 16103, - "loc": { - "start": { - "line": 440, - "column": 2 - }, - "end": { - "line": 440, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16104, - "end": 16105, - "loc": { - "start": { - "line": 440, - "column": 5 - }, - "end": { - "line": 440, - "column": 6 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 16105, - "end": 16106, - "loc": { - "start": { - "line": 440, - "column": 6 - }, - "end": { - "line": 440, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 16106, - "end": 16116, - "loc": { - "start": { - "line": 440, - "column": 7 - }, - "end": { - "line": 440, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16116, - "end": 16117, - "loc": { - "start": { - "line": 440, - "column": 17 - }, - "end": { - "line": 440, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "window", - "start": 16117, - "end": 16123, - "loc": { - "start": { - "line": 440, - "column": 18 - }, - "end": { - "line": 440, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16123, - "end": 16124, - "loc": { - "start": { - "line": 440, - "column": 24 - }, - "end": { - "line": 440, - "column": 25 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 16125, - "end": 16131, - "loc": { - "start": { - "line": 440, - "column": 26 - }, - "end": { - "line": 440, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16131, - "end": 16132, - "loc": { - "start": { - "line": 440, - "column": 32 - }, - "end": { - "line": 440, - "column": 33 - } - } - }, - { - "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": 16136, - "end": 16141, - "loc": { - "start": { - "line": 441, - "column": 2 - }, - "end": { - "line": 441, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 16142, - "end": 16159, - "loc": { - "start": { - "line": 441, - "column": 8 - }, - "end": { - "line": 441, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16160, - "end": 16161, - "loc": { - "start": { - "line": 441, - "column": 26 - }, - "end": { - "line": 441, - "column": 27 - } - } - }, - { - "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": 16162, - "end": 16168, - "loc": { - "start": { - "line": 441, - "column": 28 - }, - "end": { - "line": 441, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16168, - "end": 16169, - "loc": { - "start": { - "line": 441, - "column": 34 - }, - "end": { - "line": 441, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 16169, - "end": 16187, - "loc": { - "start": { - "line": 441, - "column": 35 - }, - "end": { - "line": 441, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16187, - "end": 16188, - "loc": { - "start": { - "line": 441, - "column": 53 - }, - "end": { - "line": 441, - "column": 54 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16189, - "end": 16192, - "loc": { - "start": { - "line": 441, - "column": 55 - }, - "end": { - "line": 441, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "function", - "start": 16193, - "end": 16203, - "loc": { - "start": { - "line": 441, - "column": 59 - }, - "end": { - "line": 441, - "column": 69 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16204, - "end": 16205, - "loc": { - "start": { - "line": 441, - "column": 70 - }, - "end": { - "line": 441, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 16206, - "end": 16224, - "loc": { - "start": { - "line": 441, - "column": 72 - }, - "end": { - "line": 441, - "column": 90 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16225, - "end": 16226, - "loc": { - "start": { - "line": 441, - "column": 91 - }, - "end": { - "line": 441, - "column": 92 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 16227, - "end": 16231, - "loc": { - "start": { - "line": 441, - "column": 93 - }, - "end": { - "line": 441, - "column": 97 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16231, - "end": 16232, - "loc": { - "start": { - "line": 441, - "column": 97 - }, - "end": { - "line": 441, - "column": 98 - } - } - }, - { - "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": 16236, - "end": 16241, - "loc": { - "start": { - "line": 442, - "column": 2 - }, - "end": { - "line": 442, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 16242, - "end": 16253, - "loc": { - "start": { - "line": 442, - "column": 8 - }, - "end": { - "line": 442, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16254, - "end": 16255, - "loc": { - "start": { - "line": 442, - "column": 20 - }, - "end": { - "line": 442, - "column": 21 - } - } - }, - { - "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": 16256, - "end": 16262, - "loc": { - "start": { - "line": 442, - "column": 22 - }, - "end": { - "line": 442, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16262, - "end": 16263, - "loc": { - "start": { - "line": 442, - "column": 28 - }, - "end": { - "line": 442, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 16263, - "end": 16275, - "loc": { - "start": { - "line": 442, - "column": 29 - }, - "end": { - "line": 442, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16275, - "end": 16276, - "loc": { - "start": { - "line": 442, - "column": 41 - }, - "end": { - "line": 442, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16277, - "end": 16280, - "loc": { - "start": { - "line": 442, - "column": 43 - }, - "end": { - "line": 442, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "function", - "start": 16281, - "end": 16291, - "loc": { - "start": { - "line": 442, - "column": 47 - }, - "end": { - "line": 442, - "column": 57 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16292, - "end": 16293, - "loc": { - "start": { - "line": 442, - "column": 58 - }, - "end": { - "line": 442, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 16294, - "end": 16306, - "loc": { - "start": { - "line": 442, - "column": 60 - }, - "end": { - "line": 442, - "column": 72 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16307, - "end": 16308, - "loc": { - "start": { - "line": 442, - "column": 73 - }, - "end": { - "line": 442, - "column": 74 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 16309, - "end": 16313, - "loc": { - "start": { - "line": 442, - "column": 75 - }, - "end": { - "line": 442, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16313, - "end": 16314, - "loc": { - "start": { - "line": 442, - "column": 79 - }, - "end": { - "line": 442, - "column": 80 - } - } - }, - { - "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": 16318, - "end": 16321, - "loc": { - "start": { - "line": 443, - "column": 2 - }, - "end": { - "line": 443, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16322, - "end": 16324, - "loc": { - "start": { - "line": 443, - "column": 6 - }, - "end": { - "line": 443, - "column": 8 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16324, - "end": 16325, - "loc": { - "start": { - "line": 443, - "column": 8 - }, - "end": { - "line": 443, - "column": 9 - } - } - }, - { - "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": 16329, - "end": 16332, - "loc": { - "start": { - "line": 444, - "column": 2 - }, - "end": { - "line": 444, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 16333, - "end": 16343, - "loc": { - "start": { - "line": 444, - "column": 6 - }, - "end": { - "line": 444, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16343, - "end": 16344, - "loc": { - "start": { - "line": 444, - "column": 16 - }, - "end": { - "line": 444, - "column": 17 - } - } - }, - { - "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": 16348, - "end": 16351, - "loc": { - "start": { - "line": 445, - "column": 2 - }, - "end": { - "line": 445, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 16352, - "end": 16364, - "loc": { - "start": { - "line": 445, - "column": 6 - }, - "end": { - "line": 445, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16364, - "end": 16365, - "loc": { - "start": { - "line": 445, - "column": 18 - }, - "end": { - "line": 445, - "column": 19 - } - } - }, - { - "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": 16371, - "end": 16373, - "loc": { - "start": { - "line": 447, - "column": 2 - }, - "end": { - "line": 447, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16374, - "end": 16375, - "loc": { - "start": { - "line": 447, - "column": 5 - }, - "end": { - "line": 447, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16375, - "end": 16384, - "loc": { - "start": { - "line": 447, - "column": 6 - }, - "end": { - "line": 447, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16384, - "end": 16385, - "loc": { - "start": { - "line": 447, - "column": 15 - }, - "end": { - "line": 447, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16386, - "end": 16387, - "loc": { - "start": { - "line": 447, - "column": 17 - }, - "end": { - "line": 447, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16392, - "end": 16394, - "loc": { - "start": { - "line": 448, - "column": 3 - }, - "end": { - "line": 448, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16395, - "end": 16396, - "loc": { - "start": { - "line": 448, - "column": 6 - }, - "end": { - "line": 448, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16397, - "end": 16406, - "loc": { - "start": { - "line": 448, - "column": 8 - }, - "end": { - "line": 448, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16406, - "end": 16407, - "loc": { - "start": { - "line": 448, - "column": 17 - }, - "end": { - "line": 448, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16407, - "end": 16409, - "loc": { - "start": { - "line": 448, - "column": 18 - }, - "end": { - "line": 448, - "column": 20 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16410, - "end": 16411, - "loc": { - "start": { - "line": 448, - "column": 21 - }, - "end": { - "line": 448, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16412, - "end": 16421, - "loc": { - "start": { - "line": 448, - "column": 23 - }, - "end": { - "line": 448, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16421, - "end": 16422, - "loc": { - "start": { - "line": 448, - "column": 32 - }, - "end": { - "line": 448, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16422, - "end": 16424, - "loc": { - "start": { - "line": 448, - "column": 33 - }, - "end": { - "line": 448, - "column": 35 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16425, - "end": 16426, - "loc": { - "start": { - "line": 448, - "column": 36 - }, - "end": { - "line": 448, - "column": 37 - } - } - }, - { - "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": 16427, - "end": 16431, - "loc": { - "start": { - "line": 448, - "column": 38 - }, - "end": { - "line": 448, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16431, - "end": 16432, - "loc": { - "start": { - "line": 448, - "column": 42 - }, - "end": { - "line": 448, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 16432, - "end": 16442, - "loc": { - "start": { - "line": 448, - "column": 43 - }, - "end": { - "line": 448, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16442, - "end": 16443, - "loc": { - "start": { - "line": 448, - "column": 53 - }, - "end": { - "line": 448, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16443, - "end": 16444, - "loc": { - "start": { - "line": 448, - "column": 54 - }, - "end": { - "line": 448, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16444, - "end": 16445, - "loc": { - "start": { - "line": 448, - "column": 55 - }, - "end": { - "line": 448, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 16450, - "end": 16460, - "loc": { - "start": { - "line": 449, - "column": 3 - }, - "end": { - "line": 449, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16461, - "end": 16462, - "loc": { - "start": { - "line": 449, - "column": 14 - }, - "end": { - "line": 449, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16463, - "end": 16464, - "loc": { - "start": { - "line": 449, - "column": 16 - }, - "end": { - "line": 449, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16464, - "end": 16473, - "loc": { - "start": { - "line": 449, - "column": 17 - }, - "end": { - "line": 449, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16473, - "end": 16474, - "loc": { - "start": { - "line": 449, - "column": 26 - }, - "end": { - "line": 449, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 16474, - "end": 16478, - "loc": { - "start": { - "line": 449, - "column": 27 - }, - "end": { - "line": 449, - "column": 31 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16479, - "end": 16482, - "loc": { - "start": { - "line": 449, - "column": 32 - }, - "end": { - "line": 449, - "column": 35 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GeneratedParticle", - "start": 16483, - "end": 16502, - "loc": { - "start": { - "line": 449, - "column": 36 - }, - "end": { - "line": 449, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16502, - "end": 16503, - "loc": { - "start": { - "line": 449, - "column": 55 - }, - "end": { - "line": 449, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16503, - "end": 16504, - "loc": { - "start": { - "line": 449, - "column": 56 - }, - "end": { - "line": 449, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 16509, - "end": 16521, - "loc": { - "start": { - "line": 450, - "column": 3 - }, - "end": { - "line": 450, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16522, - "end": 16523, - "loc": { - "start": { - "line": 450, - "column": 16 - }, - "end": { - "line": 450, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16524, - "end": 16525, - "loc": { - "start": { - "line": 450, - "column": 18 - }, - "end": { - "line": 450, - "column": 19 - } - } - }, - { - "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": 16525, - "end": 16531, - "loc": { - "start": { - "line": 450, - "column": 19 - }, - "end": { - "line": 450, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16531, - "end": 16532, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16532, - "end": 16541, - "loc": { - "start": { - "line": 450, - "column": 26 - }, - "end": { - "line": 450, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16541, - "end": 16542, - "loc": { - "start": { - "line": 450, - "column": 35 - }, - "end": { - "line": 450, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 16542, - "end": 16547, - "loc": { - "start": { - "line": 450, - "column": 36 - }, - "end": { - "line": 450, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16547, - "end": 16548, - "loc": { - "start": { - "line": 450, - "column": 41 - }, - "end": { - "line": 450, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16549, - "end": 16552, - "loc": { - "start": { - "line": 450, - "column": 43 - }, - "end": { - "line": 450, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 16553, - "end": 16561, - "loc": { - "start": { - "line": 450, - "column": 47 - }, - "end": { - "line": 450, - "column": 55 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 16562, - "end": 16564, - "loc": { - "start": { - "line": 450, - "column": 56 - }, - "end": { - "line": 450, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16565, - "end": 16574, - "loc": { - "start": { - "line": 450, - "column": 59 - }, - "end": { - "line": 450, - "column": 68 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16574, - "end": 16575, - "loc": { - "start": { - "line": 450, - "column": 68 - }, - "end": { - "line": 450, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 16575, - "end": 16580, - "loc": { - "start": { - "line": 450, - "column": 69 - }, - "end": { - "line": 450, - "column": 74 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16580, - "end": 16581, - "loc": { - "start": { - "line": 450, - "column": 74 - }, - "end": { - "line": 450, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "constructor", - "start": 16581, - "end": 16592, - "loc": { - "start": { - "line": 450, - "column": 75 - }, - "end": { - "line": 450, - "column": 86 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 16593, - "end": 16596, - "loc": { - "start": { - "line": 450, - "column": 87 - }, - "end": { - "line": 450, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 16597, - "end": 16603, - "loc": { - "start": { - "line": 450, - "column": 91 - }, - "end": { - "line": 450, - "column": 97 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16604, - "end": 16605, - "loc": { - "start": { - "line": 450, - "column": 98 - }, - "end": { - "line": 450, - "column": 99 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 16606, - "end": 16610, - "loc": { - "start": { - "line": 450, - "column": 100 - }, - "end": { - "line": 450, - "column": 104 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16611, - "end": 16612, - "loc": { - "start": { - "line": 450, - "column": 105 - }, - "end": { - "line": 450, - "column": 106 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 16613, - "end": 16618, - "loc": { - "start": { - "line": 450, - "column": 107 - }, - "end": { - "line": 450, - "column": 112 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16618, - "end": 16619, - "loc": { - "start": { - "line": 450, - "column": 112 - }, - "end": { - "line": 450, - "column": 113 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16619, - "end": 16620, - "loc": { - "start": { - "line": 450, - "column": 113 - }, - "end": { - "line": 450, - "column": 114 - } - } - }, - { - "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": 16625, - "end": 16627, - "loc": { - "start": { - "line": 451, - "column": 3 - }, - "end": { - "line": 451, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16628, - "end": 16629, - "loc": { - "start": { - "line": 451, - "column": 6 - }, - "end": { - "line": 451, - "column": 7 - } - } - }, - { - "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": 16629, - "end": 16633, - "loc": { - "start": { - "line": 451, - "column": 7 - }, - "end": { - "line": 451, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16633, - "end": 16634, - "loc": { - "start": { - "line": 451, - "column": 11 - }, - "end": { - "line": 451, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 16634, - "end": 16645, - "loc": { - "start": { - "line": 451, - "column": 12 - }, - "end": { - "line": 451, - "column": 23 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16645, - "end": 16646, - "loc": { - "start": { - "line": 451, - "column": 23 - }, - "end": { - "line": 451, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16646, - "end": 16648, - "loc": { - "start": { - "line": 451, - "column": 24 - }, - "end": { - "line": 451, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16648, - "end": 16649, - "loc": { - "start": { - "line": 451, - "column": 26 - }, - "end": { - "line": 451, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16649, - "end": 16650, - "loc": { - "start": { - "line": 451, - "column": 27 - }, - "end": { - "line": 451, - "column": 28 - } - } - }, - { - "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": 16651, - "end": 16655, - "loc": { - "start": { - "line": 451, - "column": 29 - }, - "end": { - "line": 451, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16655, - "end": 16656, - "loc": { - "start": { - "line": 451, - "column": 33 - }, - "end": { - "line": 451, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 16656, - "end": 16677, - "loc": { - "start": { - "line": 451, - "column": 34 - }, - "end": { - "line": 451, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16677, - "end": 16678, - "loc": { - "start": { - "line": 451, - "column": 55 - }, - "end": { - "line": 451, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16678, - "end": 16680, - "loc": { - "start": { - "line": 451, - "column": 56 - }, - "end": { - "line": 451, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16680, - "end": 16681, - "loc": { - "start": { - "line": 451, - "column": 58 - }, - "end": { - "line": 451, - "column": 59 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16681, - "end": 16682, - "loc": { - "start": { - "line": 451, - "column": 59 - }, - "end": { - "line": 451, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16686, - "end": 16687, - "loc": { - "start": { - "line": 452, - "column": 2 - }, - "end": { - "line": 452, - "column": 3 - } - } - }, - { - "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": 16688, - "end": 16692, - "loc": { - "start": { - "line": 452, - "column": 4 - }, - "end": { - "line": 452, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16693, - "end": 16694, - "loc": { - "start": { - "line": 452, - "column": 9 - }, - "end": { - "line": 452, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16699, - "end": 16701, - "loc": { - "start": { - "line": 453, - "column": 3 - }, - "end": { - "line": 453, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16702, - "end": 16703, - "loc": { - "start": { - "line": 453, - "column": 6 - }, - "end": { - "line": 453, - "column": 7 - } - } - }, - { - "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": 16704, - "end": 16708, - "loc": { - "start": { - "line": 453, - "column": 8 - }, - "end": { - "line": 453, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16708, - "end": 16709, - "loc": { - "start": { - "line": 453, - "column": 12 - }, - "end": { - "line": 453, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 16709, - "end": 16719, - "loc": { - "start": { - "line": 453, - "column": 13 - }, - "end": { - "line": 453, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16719, - "end": 16720, - "loc": { - "start": { - "line": 453, - "column": 23 - }, - "end": { - "line": 453, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16720, - "end": 16721, - "loc": { - "start": { - "line": 453, - "column": 24 - }, - "end": { - "line": 453, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16721, - "end": 16722, - "loc": { - "start": { - "line": 453, - "column": 25 - }, - "end": { - "line": 453, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16726, - "end": 16727, - "loc": { - "start": { - "line": 454, - "column": 2 - }, - "end": { - "line": 454, - "column": 3 - } - } - }, - { - "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": 16736, - "end": 16740, - "loc": { - "start": { - "line": 456, - "column": 2 - }, - "end": { - "line": 456, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16740, - "end": 16741, - "loc": { - "start": { - "line": 456, - "column": 6 - }, - "end": { - "line": 456, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 16741, - "end": 16752, - "loc": { - "start": { - "line": 456, - "column": 7 - }, - "end": { - "line": 456, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16752, - "end": 16753, - "loc": { - "start": { - "line": 456, - "column": 18 - }, - "end": { - "line": 456, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 16753, - "end": 16755, - "loc": { - "start": { - "line": 456, - "column": 19 - }, - "end": { - "line": 456, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16755, - "end": 16756, - "loc": { - "start": { - "line": 456, - "column": 21 - }, - "end": { - "line": 456, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16757, - "end": 16758, - "loc": { - "start": { - "line": 456, - "column": 23 - }, - "end": { - "line": 456, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16759, - "end": 16760, - "loc": { - "start": { - "line": 456, - "column": 25 - }, - "end": { - "line": 456, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "duration", - "start": 16765, - "end": 16775, - "loc": { - "start": { - "line": 457, - "column": 3 - }, - "end": { - "line": 457, - "column": 13 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16775, - "end": 16776, - "loc": { - "start": { - "line": 457, - "column": 13 - }, - "end": { - "line": 457, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 16777, - "end": 16786, - "loc": { - "start": { - "line": 457, - "column": 15 - }, - "end": { - "line": 457, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16786, - "end": 16787, - "loc": { - "start": { - "line": 457, - "column": 24 - }, - "end": { - "line": 457, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "timeTracker", - "start": 16792, - "end": 16805, - "loc": { - "start": { - "line": 458, - "column": 3 - }, - "end": { - "line": 458, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16805, - "end": 16806, - "loc": { - "start": { - "line": 458, - "column": 16 - }, - "end": { - "line": 458, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 16807, - "end": 16817, - "loc": { - "start": { - "line": 458, - "column": 18 - }, - "end": { - "line": 458, - "column": 28 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16818, - "end": 16819, - "loc": { - "start": { - "line": 458, - "column": 29 - }, - "end": { - "line": 458, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 16820, - "end": 16829, - "loc": { - "start": { - "line": 458, - "column": 31 - }, - "end": { - "line": 458, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16829, - "end": 16830, - "loc": { - "start": { - "line": 458, - "column": 40 - }, - "end": { - "line": 458, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 16830, - "end": 16834, - "loc": { - "start": { - "line": 458, - "column": 41 - }, - "end": { - "line": 458, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16834, - "end": 16835, - "loc": { - "start": { - "line": 458, - "column": 45 - }, - "end": { - "line": 458, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lifetime", - "start": 16835, - "end": 16843, - "loc": { - "start": { - "line": 458, - "column": 46 - }, - "end": { - "line": 458, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16844, - "end": 16845, - "loc": { - "start": { - "line": 458, - "column": 55 - }, - "end": { - "line": 458, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 16846, - "end": 16847, - "loc": { - "start": { - "line": 458, - "column": 57 - }, - "end": { - "line": 458, - "column": 58 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16851, - "end": 16852, - "loc": { - "start": { - "line": 459, - "column": 2 - }, - "end": { - "line": 459, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16852, - "end": 16853, - "loc": { - "start": { - "line": 459, - "column": 3 - }, - "end": { - "line": 459, - "column": 4 - } - } - }, - { - "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": 16859, - "end": 16864, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 461, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 16865, - "end": 16878, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16879, - "end": 16880, - "loc": { - "start": { - "line": 461, - "column": 22 - }, - "end": { - "line": 461, - "column": 23 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 16881, - "end": 16885, - "loc": { - "start": { - "line": 461, - "column": 24 - }, - "end": { - "line": 461, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16885, - "end": 16886, - "loc": { - "start": { - "line": 461, - "column": 28 - }, - "end": { - "line": 461, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 16886, - "end": 16895, - "loc": { - "start": { - "line": 461, - "column": 29 - }, - "end": { - "line": 461, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16895, - "end": 16896, - "loc": { - "start": { - "line": 461, - "column": 38 - }, - "end": { - "line": 461, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartColor", - "start": 16896, - "end": 16907, - "loc": { - "start": { - "line": 461, - "column": 39 - }, - "end": { - "line": 461, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16907, - "end": 16908, - "loc": { - "start": { - "line": 461, - "column": 50 - }, - "end": { - "line": 461, - "column": 51 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16908, - "end": 16909, - "loc": { - "start": { - "line": 461, - "column": 51 - }, - "end": { - "line": 461, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 16909, - "end": 16917, - "loc": { - "start": { - "line": 461, - "column": 52 - }, - "end": { - "line": 461, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16917, - "end": 16918, - "loc": { - "start": { - "line": 461, - "column": 60 - }, - "end": { - "line": 461, - "column": 61 - } - } - }, - { - "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": 16922, - "end": 16927, - "loc": { - "start": { - "line": 462, - "column": 2 - }, - "end": { - "line": 462, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 16928, - "end": 16939, - "loc": { - "start": { - "line": 462, - "column": 8 - }, - "end": { - "line": 462, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16940, - "end": 16941, - "loc": { - "start": { - "line": 462, - "column": 20 - }, - "end": { - "line": 462, - "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": 16942, - "end": 16946, - "loc": { - "start": { - "line": 462, - "column": 22 - }, - "end": { - "line": 462, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16946, - "end": 16947, - "loc": { - "start": { - "line": 462, - "column": 26 - }, - "end": { - "line": 462, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 16947, - "end": 16956, - "loc": { - "start": { - "line": 462, - "column": 27 - }, - "end": { - "line": 462, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16956, - "end": 16957, - "loc": { - "start": { - "line": 462, - "column": 36 - }, - "end": { - "line": 462, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndColor", - "start": 16957, - "end": 16966, - "loc": { - "start": { - "line": 462, - "column": 37 - }, - "end": { - "line": 462, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16966, - "end": 16967, - "loc": { - "start": { - "line": 462, - "column": 46 - }, - "end": { - "line": 462, - "column": 47 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16967, - "end": 16968, - "loc": { - "start": { - "line": 462, - "column": 47 - }, - "end": { - "line": 462, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 16968, - "end": 16976, - "loc": { - "start": { - "line": 462, - "column": 48 - }, - "end": { - "line": 462, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16976, - "end": 16977, - "loc": { - "start": { - "line": 462, - "column": 56 - }, - "end": { - "line": 462, - "column": 57 - } - } - }, - { - "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": 16983, - "end": 16988, - "loc": { - "start": { - "line": 464, - "column": 2 - }, - "end": { - "line": 464, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 16989, - "end": 16993, - "loc": { - "start": { - "line": 464, - "column": 8 - }, - "end": { - "line": 464, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16994, - "end": 16995, - "loc": { - "start": { - "line": 464, - "column": 13 - }, - "end": { - "line": 464, - "column": 14 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 16996, - "end": 17000, - "loc": { - "start": { - "line": 464, - "column": 15 - }, - "end": { - "line": 464, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17000, - "end": 17001, - "loc": { - "start": { - "line": 464, - "column": 19 - }, - "end": { - "line": 464, - "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": 17005, - "end": 17009, - "loc": { - "start": { - "line": 465, - "column": 2 - }, - "end": { - "line": 465, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17009, - "end": 17010, - "loc": { - "start": { - "line": 465, - "column": 6 - }, - "end": { - "line": 465, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17010, - "end": 17021, - "loc": { - "start": { - "line": 465, - "column": 7 - }, - "end": { - "line": 465, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17021, - "end": 17022, - "loc": { - "start": { - "line": 465, - "column": 18 - }, - "end": { - "line": 465, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17022, - "end": 17024, - "loc": { - "start": { - "line": 465, - "column": 19 - }, - "end": { - "line": 465, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17024, - "end": 17025, - "loc": { - "start": { - "line": 465, - "column": 21 - }, - "end": { - "line": 465, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17025, - "end": 17026, - "loc": { - "start": { - "line": 465, - "column": 22 - }, - "end": { - "line": 465, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 17026, - "end": 17030, - "loc": { - "start": { - "line": 465, - "column": 23 - }, - "end": { - "line": 465, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17031, - "end": 17032, - "loc": { - "start": { - "line": 465, - "column": 28 - }, - "end": { - "line": 465, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17033, - "end": 17034, - "loc": { - "start": { - "line": 465, - "column": 30 - }, - "end": { - "line": 465, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTimeStamp", - "start": 17034, - "end": 17044, - "loc": { - "start": { - "line": 465, - "column": 31 - }, - "end": { - "line": 465, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17044, - "end": 17045, - "loc": { - "start": { - "line": 465, - "column": 41 - }, - "end": { - "line": 465, - "column": 42 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17046, - "end": 17048, - "loc": { - "start": { - "line": 465, - "column": 43 - }, - "end": { - "line": 465, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17049, - "end": 17050, - "loc": { - "start": { - "line": 465, - "column": 46 - }, - "end": { - "line": 465, - "column": 47 - } - } - }, - { - "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": 17055, - "end": 17057, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 466, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17058, - "end": 17059, - "loc": { - "start": { - "line": 466, - "column": 6 - }, - "end": { - "line": 466, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17059, - "end": 17063, - "loc": { - "start": { - "line": 466, - "column": 7 - }, - "end": { - "line": 466, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17063, - "end": 17064, - "loc": { - "start": { - "line": 466, - "column": 11 - }, - "end": { - "line": 466, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17064, - "end": 17075, - "loc": { - "start": { - "line": 466, - "column": 12 - }, - "end": { - "line": 466, - "column": 23 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17075, - "end": 17076, - "loc": { - "start": { - "line": 466, - "column": 23 - }, - "end": { - "line": 466, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17076, - "end": 17078, - "loc": { - "start": { - "line": 466, - "column": 24 - }, - "end": { - "line": 466, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17078, - "end": 17079, - "loc": { - "start": { - "line": 466, - "column": 26 - }, - "end": { - "line": 466, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17079, - "end": 17080, - "loc": { - "start": { - "line": 466, - "column": 27 - }, - "end": { - "line": 466, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17081, - "end": 17082, - "loc": { - "start": { - "line": 466, - "column": 29 - }, - "end": { - "line": 466, - "column": 30 - } - } - }, - { - "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": 17088, - "end": 17090, - "loc": { - "start": { - "line": 467, - "column": 4 - }, - "end": { - "line": 467, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17091, - "end": 17092, - "loc": { - "start": { - "line": 467, - "column": 7 - }, - "end": { - "line": 467, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 17092, - "end": 17102, - "loc": { - "start": { - "line": 467, - "column": 8 - }, - "end": { - "line": 467, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17102, - "end": 17103, - "loc": { - "start": { - "line": 467, - "column": 18 - }, - "end": { - "line": 467, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17104, - "end": 17105, - "loc": { - "start": { - "line": 467, - "column": 20 - }, - "end": { - "line": 467, - "column": 21 - } - } - }, - { - "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": 17112, - "end": 17114, - "loc": { - "start": { - "line": 468, - "column": 5 - }, - "end": { - "line": 468, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17115, - "end": 17116, - "loc": { - "start": { - "line": 468, - "column": 8 - }, - "end": { - "line": 468, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 17116, - "end": 17125, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17125, - "end": 17126, - "loc": { - "start": { - "line": 468, - "column": 18 - }, - "end": { - "line": 468, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 17126, - "end": 17130, - "loc": { - "start": { - "line": 468, - "column": 19 - }, - "end": { - "line": 468, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17130, - "end": 17131, - "loc": { - "start": { - "line": 468, - "column": 23 - }, - "end": { - "line": 468, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17132, - "end": 17133, - "loc": { - "start": { - "line": 468, - "column": 25 - }, - "end": { - "line": 468, - "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": 17141, - "end": 17143, - "loc": { - "start": { - "line": 469, - "column": 6 - }, - "end": { - "line": 469, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17144, - "end": 17145, - "loc": { - "start": { - "line": 469, - "column": 9 - }, - "end": { - "line": 469, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 17145, - "end": 17154, - "loc": { - "start": { - "line": 469, - "column": 10 - }, - "end": { - "line": 469, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17154, - "end": 17155, - "loc": { - "start": { - "line": 469, - "column": 19 - }, - "end": { - "line": 469, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 17155, - "end": 17159, - "loc": { - "start": { - "line": 469, - "column": 20 - }, - "end": { - "line": 469, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17159, - "end": 17160, - "loc": { - "start": { - "line": 469, - "column": 24 - }, - "end": { - "line": 469, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "owner", - "start": 17160, - "end": 17165, - "loc": { - "start": { - "line": 469, - "column": 25 - }, - "end": { - "line": 469, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17165, - "end": 17166, - "loc": { - "start": { - "line": 469, - "column": 30 - }, - "end": { - "line": 469, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17167, - "end": 17168, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 469, - "column": 33 - } - } - }, - { - "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": 17177, - "end": 17179, - "loc": { - "start": { - "line": 470, - "column": 7 - }, - "end": { - "line": 470, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17180, - "end": 17181, - "loc": { - "start": { - "line": 470, - "column": 10 - }, - "end": { - "line": 470, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 17181, - "end": 17190, - "loc": { - "start": { - "line": 470, - "column": 11 - }, - "end": { - "line": 470, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17190, - "end": 17191, - "loc": { - "start": { - "line": 470, - "column": 20 - }, - "end": { - "line": 470, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 17191, - "end": 17195, - "loc": { - "start": { - "line": 470, - "column": 21 - }, - "end": { - "line": 470, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17195, - "end": 17196, - "loc": { - "start": { - "line": 470, - "column": 25 - }, - "end": { - "line": 470, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "owner", - "start": 17196, - "end": 17201, - "loc": { - "start": { - "line": 470, - "column": 26 - }, - "end": { - "line": 470, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17201, - "end": 17202, - "loc": { - "start": { - "line": 470, - "column": 31 - }, - "end": { - "line": 470, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 17202, - "end": 17210, - "loc": { - "start": { - "line": 470, - "column": 32 - }, - "end": { - "line": 470, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17210, - "end": 17211, - "loc": { - "start": { - "line": 470, - "column": 40 - }, - "end": { - "line": 470, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "paused", - "start": 17211, - "end": 17217, - "loc": { - "start": { - "line": 470, - "column": 41 - }, - "end": { - "line": 470, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17217, - "end": 17218, - "loc": { - "start": { - "line": 470, - "column": 47 - }, - "end": { - "line": 470, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17219, - "end": 17220, - "loc": { - "start": { - "line": 470, - "column": 49 - }, - "end": { - "line": 470, - "column": 50 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 17230, - "end": 17236, - "loc": { - "start": { - "line": 471, - "column": 8 - }, - "end": { - "line": 471, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17236, - "end": 17237, - "loc": { - "start": { - "line": 471, - "column": 14 - }, - "end": { - "line": 471, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17246, - "end": 17247, - "loc": { - "start": { - "line": 472, - "column": 7 - }, - "end": { - "line": 472, - "column": 8 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17255, - "end": 17256, - "loc": { - "start": { - "line": 473, - "column": 6 - }, - "end": { - "line": 473, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17263, - "end": 17264, - "loc": { - "start": { - "line": 474, - "column": 5 - }, - "end": { - "line": 474, - "column": 6 - } - } - }, - { - "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": 17265, - "end": 17269, - "loc": { - "start": { - "line": 474, - "column": 7 - }, - "end": { - "line": 474, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17270, - "end": 17271, - "loc": { - "start": { - "line": 474, - "column": 12 - }, - "end": { - "line": 474, - "column": 13 - } - } - }, - { - "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": 17279, - "end": 17281, - "loc": { - "start": { - "line": 475, - "column": 6 - }, - "end": { - "line": 475, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17282, - "end": 17283, - "loc": { - "start": { - "line": 475, - "column": 9 - }, - "end": { - "line": 475, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17283, - "end": 17287, - "loc": { - "start": { - "line": 475, - "column": 10 - }, - "end": { - "line": 475, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17287, - "end": 17288, - "loc": { - "start": { - "line": 475, - "column": 14 - }, - "end": { - "line": 475, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17288, - "end": 17299, - "loc": { - "start": { - "line": 475, - "column": 15 - }, - "end": { - "line": 475, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17299, - "end": 17300, - "loc": { - "start": { - "line": 475, - "column": 26 - }, - "end": { - "line": 475, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17300, - "end": 17302, - "loc": { - "start": { - "line": 475, - "column": 27 - }, - "end": { - "line": 475, - "column": 29 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17302, - "end": 17303, - "loc": { - "start": { - "line": 475, - "column": 29 - }, - "end": { - "line": 475, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17303, - "end": 17304, - "loc": { - "start": { - "line": 475, - "column": 30 - }, - "end": { - "line": 475, - "column": 31 - } - } - }, - { - "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": 17305, - "end": 17309, - "loc": { - "start": { - "line": 475, - "column": 32 - }, - "end": { - "line": 475, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17309, - "end": 17310, - "loc": { - "start": { - "line": 475, - "column": 36 - }, - "end": { - "line": 475, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 17310, - "end": 17331, - "loc": { - "start": { - "line": 475, - "column": 37 - }, - "end": { - "line": 475, - "column": 58 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17331, - "end": 17332, - "loc": { - "start": { - "line": 475, - "column": 58 - }, - "end": { - "line": 475, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17332, - "end": 17334, - "loc": { - "start": { - "line": 475, - "column": 59 - }, - "end": { - "line": 475, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17334, - "end": 17335, - "loc": { - "start": { - "line": 475, - "column": 61 - }, - "end": { - "line": 475, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17335, - "end": 17336, - "loc": { - "start": { - "line": 475, - "column": 62 - }, - "end": { - "line": 475, - "column": 63 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 17344, - "end": 17350, - "loc": { - "start": { - "line": 476, - "column": 6 - }, - "end": { - "line": 476, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17350, - "end": 17351, - "loc": { - "start": { - "line": 476, - "column": 12 - }, - "end": { - "line": 476, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17362, - "end": 17363, - "loc": { - "start": { - "line": 477, - "column": 5 - }, - "end": { - "line": 477, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17369, - "end": 17370, - "loc": { - "start": { - "line": 478, - "column": 4 - }, - "end": { - "line": 478, - "column": 5 - } - } - }, - { - "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": 17378, - "end": 17383, - "loc": { - "start": { - "line": 480, - "column": 4 - }, - "end": { - "line": 480, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 17384, - "end": 17387, - "loc": { - "start": { - "line": 480, - "column": 10 - }, - "end": { - "line": 480, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17388, - "end": 17389, - "loc": { - "start": { - "line": 480, - "column": 14 - }, - "end": { - "line": 480, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTimeStamp", - "start": 17390, - "end": 17400, - "loc": { - "start": { - "line": 480, - "column": 16 - }, - "end": { - "line": 480, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17400, - "end": 17401, - "loc": { - "start": { - "line": 480, - "column": 26 - }, - "end": { - "line": 480, - "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": 17407, - "end": 17409, - "loc": { - "start": { - "line": 481, - "column": 4 - }, - "end": { - "line": 481, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17410, - "end": 17411, - "loc": { - "start": { - "line": 481, - "column": 7 - }, - "end": { - "line": 481, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 17411, - "end": 17412, - "loc": { - "start": { - "line": 481, - "column": 8 - }, - "end": { - "line": 481, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17412, - "end": 17416, - "loc": { - "start": { - "line": 481, - "column": 9 - }, - "end": { - "line": 481, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17416, - "end": 17417, - "loc": { - "start": { - "line": 481, - "column": 13 - }, - "end": { - "line": 481, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17417, - "end": 17428, - "loc": { - "start": { - "line": 481, - "column": 14 - }, - "end": { - "line": 481, - "column": 25 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17428, - "end": 17429, - "loc": { - "start": { - "line": 481, - "column": 25 - }, - "end": { - "line": 481, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17429, - "end": 17431, - "loc": { - "start": { - "line": 481, - "column": 26 - }, - "end": { - "line": 481, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17431, - "end": 17432, - "loc": { - "start": { - "line": 481, - "column": 28 - }, - "end": { - "line": 481, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17432, - "end": 17433, - "loc": { - "start": { - "line": 481, - "column": 29 - }, - "end": { - "line": 481, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 17433, - "end": 17441, - "loc": { - "start": { - "line": 481, - "column": 30 - }, - "end": { - "line": 481, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17441, - "end": 17442, - "loc": { - "start": { - "line": 481, - "column": 38 - }, - "end": { - "line": 481, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17443, - "end": 17447, - "loc": { - "start": { - "line": 481, - "column": 40 - }, - "end": { - "line": 481, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17447, - "end": 17448, - "loc": { - "start": { - "line": 481, - "column": 44 - }, - "end": { - "line": 481, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17448, - "end": 17459, - "loc": { - "start": { - "line": 481, - "column": 45 - }, - "end": { - "line": 481, - "column": 56 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17459, - "end": 17460, - "loc": { - "start": { - "line": 481, - "column": 56 - }, - "end": { - "line": 481, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17460, - "end": 17462, - "loc": { - "start": { - "line": 481, - "column": 57 - }, - "end": { - "line": 481, - "column": 59 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17462, - "end": 17463, - "loc": { - "start": { - "line": 481, - "column": 59 - }, - "end": { - "line": 481, - "column": 60 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17463, - "end": 17464, - "loc": { - "start": { - "line": 481, - "column": 60 - }, - "end": { - "line": 481, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 17464, - "end": 17472, - "loc": { - "start": { - "line": 481, - "column": 61 - }, - "end": { - "line": 481, - "column": 69 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17473, - "end": 17474, - "loc": { - "start": { - "line": 481, - "column": 70 - }, - "end": { - "line": 481, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 17475, - "end": 17478, - "loc": { - "start": { - "line": 481, - "column": 72 - }, - "end": { - "line": 481, - "column": 75 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17478, - "end": 17479, - "loc": { - "start": { - "line": 481, - "column": 75 - }, - "end": { - "line": 481, - "column": 76 - } - } - }, - { - "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": 17485, - "end": 17490, - "loc": { - "start": { - "line": 482, - "column": 4 - }, - "end": { - "line": 482, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "elapsed", - "start": 17491, - "end": 17498, - "loc": { - "start": { - "line": 482, - "column": 10 - }, - "end": { - "line": 482, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17499, - "end": 17500, - "loc": { - "start": { - "line": 482, - "column": 18 - }, - "end": { - "line": 482, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 17501, - "end": 17504, - "loc": { - "start": { - "line": 482, - "column": 20 - }, - "end": { - "line": 482, - "column": 23 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 17505, - "end": 17506, - "loc": { - "start": { - "line": 482, - "column": 24 - }, - "end": { - "line": 482, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17507, - "end": 17511, - "loc": { - "start": { - "line": 482, - "column": 26 - }, - "end": { - "line": 482, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17511, - "end": 17512, - "loc": { - "start": { - "line": 482, - "column": 30 - }, - "end": { - "line": 482, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17512, - "end": 17523, - "loc": { - "start": { - "line": 482, - "column": 31 - }, - "end": { - "line": 482, - "column": 42 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17523, - "end": 17524, - "loc": { - "start": { - "line": 482, - "column": 42 - }, - "end": { - "line": 482, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17524, - "end": 17526, - "loc": { - "start": { - "line": 482, - "column": 43 - }, - "end": { - "line": 482, - "column": 45 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17526, - "end": 17527, - "loc": { - "start": { - "line": 482, - "column": 45 - }, - "end": { - "line": 482, - "column": 46 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17527, - "end": 17528, - "loc": { - "start": { - "line": 482, - "column": 46 - }, - "end": { - "line": 482, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 17528, - "end": 17536, - "loc": { - "start": { - "line": 482, - "column": 47 - }, - "end": { - "line": 482, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17536, - "end": 17537, - "loc": { - "start": { - "line": 482, - "column": 55 - }, - "end": { - "line": 482, - "column": 56 - } - } - }, - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 17543, - "end": 17726, - "loc": { - "start": { - "line": 483, - "column": 4 - }, - "end": { - "line": 483, - "column": 187 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17732, - "end": 17736, - "loc": { - "start": { - "line": 484, - "column": 4 - }, - "end": { - "line": 484, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17736, - "end": 17737, - "loc": { - "start": { - "line": 484, - "column": 8 - }, - "end": { - "line": 484, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17737, - "end": 17748, - "loc": { - "start": { - "line": 484, - "column": 9 - }, - "end": { - "line": 484, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17748, - "end": 17749, - "loc": { - "start": { - "line": 484, - "column": 20 - }, - "end": { - "line": 484, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17749, - "end": 17751, - "loc": { - "start": { - "line": 484, - "column": 21 - }, - "end": { - "line": 484, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17751, - "end": 17752, - "loc": { - "start": { - "line": 484, - "column": 23 - }, - "end": { - "line": 484, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17752, - "end": 17753, - "loc": { - "start": { - "line": 484, - "column": 24 - }, - "end": { - "line": 484, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 17753, - "end": 17764, - "loc": { - "start": { - "line": 484, - "column": 25 - }, - "end": { - "line": 484, - "column": 36 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 17765, - "end": 17767, - "loc": { - "start": { - "line": 484, - "column": 37 - }, - "end": { - "line": 484, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "elapsed", - "start": 17768, - "end": 17775, - "loc": { - "start": { - "line": 484, - "column": 40 - }, - "end": { - "line": 484, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17775, - "end": 17776, - "loc": { - "start": { - "line": 484, - "column": 47 - }, - "end": { - "line": 484, - "column": 48 - } - } - }, - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 17782, - "end": 17838, - "loc": { - "start": { - "line": 485, - "column": 4 - }, - "end": { - "line": 485, - "column": 60 - } - } - }, - { - "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": 17844, - "end": 17849, - "loc": { - "start": { - "line": 486, - "column": 4 - }, - "end": { - "line": 486, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 17850, - "end": 17860, - "loc": { - "start": { - "line": 486, - "column": 10 - }, - "end": { - "line": 486, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17861, - "end": 17862, - "loc": { - "start": { - "line": 486, - "column": 21 - }, - "end": { - "line": 486, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 17863, - "end": 17867, - "loc": { - "start": { - "line": 486, - "column": 23 - }, - "end": { - "line": 486, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17867, - "end": 17868, - "loc": { - "start": { - "line": 486, - "column": 27 - }, - "end": { - "line": 486, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "min", - "start": 17868, - "end": 17871, - "loc": { - "start": { - "line": 486, - "column": 28 - }, - "end": { - "line": 486, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17871, - "end": 17872, - "loc": { - "start": { - "line": 486, - "column": 31 - }, - "end": { - "line": 486, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17872, - "end": 17876, - "loc": { - "start": { - "line": 486, - "column": 32 - }, - "end": { - "line": 486, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17876, - "end": 17877, - "loc": { - "start": { - "line": 486, - "column": 36 - }, - "end": { - "line": 486, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17877, - "end": 17888, - "loc": { - "start": { - "line": 486, - "column": 37 - }, - "end": { - "line": 486, - "column": 48 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17888, - "end": 17889, - "loc": { - "start": { - "line": 486, - "column": 48 - }, - "end": { - "line": 486, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17889, - "end": 17891, - "loc": { - "start": { - "line": 486, - "column": 49 - }, - "end": { - "line": 486, - "column": 51 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17891, - "end": 17892, - "loc": { - "start": { - "line": 486, - "column": 51 - }, - "end": { - "line": 486, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17892, - "end": 17893, - "loc": { - "start": { - "line": 486, - "column": 52 - }, - "end": { - "line": 486, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 17893, - "end": 17904, - "loc": { - "start": { - "line": 486, - "column": 53 - }, - "end": { - "line": 486, - "column": 64 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 17905, - "end": 17906, - "loc": { - "start": { - "line": 486, - "column": 65 - }, - "end": { - "line": 486, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17907, - "end": 17911, - "loc": { - "start": { - "line": 486, - "column": 67 - }, - "end": { - "line": 486, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17911, - "end": 17912, - "loc": { - "start": { - "line": 486, - "column": 71 - }, - "end": { - "line": 486, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 17912, - "end": 17923, - "loc": { - "start": { - "line": 486, - "column": 72 - }, - "end": { - "line": 486, - "column": 83 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17923, - "end": 17924, - "loc": { - "start": { - "line": 486, - "column": 83 - }, - "end": { - "line": 486, - "column": 84 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 17924, - "end": 17926, - "loc": { - "start": { - "line": 486, - "column": 84 - }, - "end": { - "line": 486, - "column": 86 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17926, - "end": 17927, - "loc": { - "start": { - "line": 486, - "column": 86 - }, - "end": { - "line": 486, - "column": 87 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17927, - "end": 17928, - "loc": { - "start": { - "line": 486, - "column": 87 - }, - "end": { - "line": 486, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duration", - "start": 17928, - "end": 17936, - "loc": { - "start": { - "line": 486, - "column": 88 - }, - "end": { - "line": 486, - "column": 96 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17936, - "end": 17937, - "loc": { - "start": { - "line": 486, - "column": 96 - }, - "end": { - "line": 486, - "column": 97 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 17938, - "end": 17939, - "loc": { - "start": { - "line": 486, - "column": 98 - }, - "end": { - "line": 486, - "column": 99 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17939, - "end": 17940, - "loc": { - "start": { - "line": 486, - "column": 99 - }, - "end": { - "line": 486, - "column": 100 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17940, - "end": 17941, - "loc": { - "start": { - "line": 486, - "column": 100 - }, - "end": { - "line": 486, - "column": 101 - } - } - }, - { - "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": 17953, - "end": 17958, - "loc": { - "start": { - "line": 488, - "column": 4 - }, - "end": { - "line": 488, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 17959, - "end": 17960, - "loc": { - "start": { - "line": 488, - "column": 10 - }, - "end": { - "line": 488, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17961, - "end": 17962, - "loc": { - "start": { - "line": 488, - "column": 12 - }, - "end": { - "line": 488, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 17963, - "end": 17971, - "loc": { - "start": { - "line": 488, - "column": 14 - }, - "end": { - "line": 488, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17971, - "end": 17972, - "loc": { - "start": { - "line": 488, - "column": 22 - }, - "end": { - "line": 488, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 17972, - "end": 17976, - "loc": { - "start": { - "line": 488, - "column": 23 - }, - "end": { - "line": 488, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17976, - "end": 17977, - "loc": { - "start": { - "line": 488, - "column": 27 - }, - "end": { - "line": 488, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 17977, - "end": 17981, - "loc": { - "start": { - "line": 488, - "column": 28 - }, - "end": { - "line": 488, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17981, - "end": 17982, - "loc": { - "start": { - "line": 488, - "column": 32 - }, - "end": { - "line": 488, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 17982, - "end": 17995, - "loc": { - "start": { - "line": 488, - "column": 33 - }, - "end": { - "line": 488, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17995, - "end": 17996, - "loc": { - "start": { - "line": 488, - "column": 46 - }, - "end": { - "line": 488, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 17996, - "end": 17997, - "loc": { - "start": { - "line": 488, - "column": 47 - }, - "end": { - "line": 488, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17997, - "end": 17998, - "loc": { - "start": { - "line": 488, - "column": 48 - }, - "end": { - "line": 488, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17998, - "end": 17999, - "loc": { - "start": { - "line": 488, - "column": 49 - }, - "end": { - "line": 488, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 18000, - "end": 18011, - "loc": { - "start": { - "line": 488, - "column": 51 - }, - "end": { - "line": 488, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18011, - "end": 18012, - "loc": { - "start": { - "line": 488, - "column": 62 - }, - "end": { - "line": 488, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 18012, - "end": 18013, - "loc": { - "start": { - "line": 488, - "column": 63 - }, - "end": { - "line": 488, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18013, - "end": 18014, - "loc": { - "start": { - "line": 488, - "column": 64 - }, - "end": { - "line": 488, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18014, - "end": 18015, - "loc": { - "start": { - "line": 488, - "column": 65 - }, - "end": { - "line": 488, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 18016, - "end": 18026, - "loc": { - "start": { - "line": 488, - "column": 67 - }, - "end": { - "line": 488, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18026, - "end": 18027, - "loc": { - "start": { - "line": 488, - "column": 77 - }, - "end": { - "line": 488, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18027, - "end": 18028, - "loc": { - "start": { - "line": 488, - "column": 78 - }, - "end": { - "line": 488, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 18029, - "end": 18031, - "loc": { - "start": { - "line": 488, - "column": 80 - }, - "end": { - "line": 488, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18031, - "end": 18032, - "loc": { - "start": { - "line": 488, - "column": 82 - }, - "end": { - "line": 488, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18032, - "end": 18033, - "loc": { - "start": { - "line": 488, - "column": 83 - }, - "end": { - "line": 488, - "column": 84 - } - } - }, - { - "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": 18039, - "end": 18044, - "loc": { - "start": { - "line": 489, - "column": 4 - }, - "end": { - "line": 489, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 18045, - "end": 18046, - "loc": { - "start": { - "line": 489, - "column": 10 - }, - "end": { - "line": 489, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18047, - "end": 18048, - "loc": { - "start": { - "line": 489, - "column": 12 - }, - "end": { - "line": 489, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 18049, - "end": 18057, - "loc": { - "start": { - "line": 489, - "column": 14 - }, - "end": { - "line": 489, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18057, - "end": 18058, - "loc": { - "start": { - "line": 489, - "column": 22 - }, - "end": { - "line": 489, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18058, - "end": 18062, - "loc": { - "start": { - "line": 489, - "column": 23 - }, - "end": { - "line": 489, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18062, - "end": 18063, - "loc": { - "start": { - "line": 489, - "column": 27 - }, - "end": { - "line": 489, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 18063, - "end": 18067, - "loc": { - "start": { - "line": 489, - "column": 28 - }, - "end": { - "line": 489, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18067, - "end": 18068, - "loc": { - "start": { - "line": 489, - "column": 32 - }, - "end": { - "line": 489, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 18068, - "end": 18081, - "loc": { - "start": { - "line": 489, - "column": 33 - }, - "end": { - "line": 489, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18081, - "end": 18082, - "loc": { - "start": { - "line": 489, - "column": 46 - }, - "end": { - "line": 489, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 18082, - "end": 18083, - "loc": { - "start": { - "line": 489, - "column": 47 - }, - "end": { - "line": 489, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18083, - "end": 18084, - "loc": { - "start": { - "line": 489, - "column": 48 - }, - "end": { - "line": 489, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18084, - "end": 18085, - "loc": { - "start": { - "line": 489, - "column": 49 - }, - "end": { - "line": 489, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 18086, - "end": 18097, - "loc": { - "start": { - "line": 489, - "column": 51 - }, - "end": { - "line": 489, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18097, - "end": 18098, - "loc": { - "start": { - "line": 489, - "column": 62 - }, - "end": { - "line": 489, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 18098, - "end": 18099, - "loc": { - "start": { - "line": 489, - "column": 63 - }, - "end": { - "line": 489, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18099, - "end": 18100, - "loc": { - "start": { - "line": 489, - "column": 64 - }, - "end": { - "line": 489, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18100, - "end": 18101, - "loc": { - "start": { - "line": 489, - "column": 65 - }, - "end": { - "line": 489, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 18102, - "end": 18112, - "loc": { - "start": { - "line": 489, - "column": 67 - }, - "end": { - "line": 489, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18112, - "end": 18113, - "loc": { - "start": { - "line": 489, - "column": 77 - }, - "end": { - "line": 489, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18113, - "end": 18114, - "loc": { - "start": { - "line": 489, - "column": 78 - }, - "end": { - "line": 489, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 18115, - "end": 18117, - "loc": { - "start": { - "line": 489, - "column": 80 - }, - "end": { - "line": 489, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18117, - "end": 18118, - "loc": { - "start": { - "line": 489, - "column": 82 - }, - "end": { - "line": 489, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18118, - "end": 18119, - "loc": { - "start": { - "line": 489, - "column": 83 - }, - "end": { - "line": 489, - "column": 84 - } - } - }, - { - "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": 18125, - "end": 18130, - "loc": { - "start": { - "line": 490, - "column": 4 - }, - "end": { - "line": 490, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 18131, - "end": 18132, - "loc": { - "start": { - "line": 490, - "column": 10 - }, - "end": { - "line": 490, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18133, - "end": 18134, - "loc": { - "start": { - "line": 490, - "column": 12 - }, - "end": { - "line": 490, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 18135, - "end": 18143, - "loc": { - "start": { - "line": 490, - "column": 14 - }, - "end": { - "line": 490, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18143, - "end": 18144, - "loc": { - "start": { - "line": 490, - "column": 22 - }, - "end": { - "line": 490, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18144, - "end": 18148, - "loc": { - "start": { - "line": 490, - "column": 23 - }, - "end": { - "line": 490, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18148, - "end": 18149, - "loc": { - "start": { - "line": 490, - "column": 27 - }, - "end": { - "line": 490, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 18149, - "end": 18153, - "loc": { - "start": { - "line": 490, - "column": 28 - }, - "end": { - "line": 490, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18153, - "end": 18154, - "loc": { - "start": { - "line": 490, - "column": 32 - }, - "end": { - "line": 490, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 18154, - "end": 18167, - "loc": { - "start": { - "line": 490, - "column": 33 - }, - "end": { - "line": 490, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18167, - "end": 18168, - "loc": { - "start": { - "line": 490, - "column": 46 - }, - "end": { - "line": 490, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 18168, - "end": 18169, - "loc": { - "start": { - "line": 490, - "column": 47 - }, - "end": { - "line": 490, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18169, - "end": 18170, - "loc": { - "start": { - "line": 490, - "column": 48 - }, - "end": { - "line": 490, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18170, - "end": 18171, - "loc": { - "start": { - "line": 490, - "column": 49 - }, - "end": { - "line": 490, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 18172, - "end": 18183, - "loc": { - "start": { - "line": 490, - "column": 51 - }, - "end": { - "line": 490, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18183, - "end": 18184, - "loc": { - "start": { - "line": 490, - "column": 62 - }, - "end": { - "line": 490, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 18184, - "end": 18185, - "loc": { - "start": { - "line": 490, - "column": 63 - }, - "end": { - "line": 490, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18185, - "end": 18186, - "loc": { - "start": { - "line": 490, - "column": 64 - }, - "end": { - "line": 490, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18186, - "end": 18187, - "loc": { - "start": { - "line": 490, - "column": 65 - }, - "end": { - "line": 490, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 18188, - "end": 18198, - "loc": { - "start": { - "line": 490, - "column": 67 - }, - "end": { - "line": 490, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18198, - "end": 18199, - "loc": { - "start": { - "line": 490, - "column": 77 - }, - "end": { - "line": 490, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18199, - "end": 18200, - "loc": { - "start": { - "line": 490, - "column": 78 - }, - "end": { - "line": 490, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 18201, - "end": 18203, - "loc": { - "start": { - "line": 490, - "column": 80 - }, - "end": { - "line": 490, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18203, - "end": 18204, - "loc": { - "start": { - "line": 490, - "column": 82 - }, - "end": { - "line": 490, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18204, - "end": 18205, - "loc": { - "start": { - "line": 490, - "column": 83 - }, - "end": { - "line": 490, - "column": 84 - } - } - }, - { - "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": 18211, - "end": 18216, - "loc": { - "start": { - "line": 491, - "column": 4 - }, - "end": { - "line": 491, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18217, - "end": 18222, - "loc": { - "start": { - "line": 491, - "column": 10 - }, - "end": { - "line": 491, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18223, - "end": 18224, - "loc": { - "start": { - "line": 491, - "column": 16 - }, - "end": { - "line": 491, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18225, - "end": 18229, - "loc": { - "start": { - "line": 491, - "column": 18 - }, - "end": { - "line": 491, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18229, - "end": 18230, - "loc": { - "start": { - "line": 491, - "column": 22 - }, - "end": { - "line": 491, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 18230, - "end": 18239, - "loc": { - "start": { - "line": 491, - "column": 23 - }, - "end": { - "line": 491, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18239, - "end": 18240, - "loc": { - "start": { - "line": 491, - "column": 32 - }, - "end": { - "line": 491, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 18240, - "end": 18241, - "loc": { - "start": { - "line": 491, - "column": 33 - }, - "end": { - "line": 491, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18241, - "end": 18242, - "loc": { - "start": { - "line": 491, - "column": 34 - }, - "end": { - "line": 491, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 18243, - "end": 18244, - "loc": { - "start": { - "line": 491, - "column": 36 - }, - "end": { - "line": 491, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18244, - "end": 18245, - "loc": { - "start": { - "line": 491, - "column": 37 - }, - "end": { - "line": 491, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 18246, - "end": 18247, - "loc": { - "start": { - "line": 491, - "column": 39 - }, - "end": { - "line": 491, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18247, - "end": 18248, - "loc": { - "start": { - "line": 491, - "column": 40 - }, - "end": { - "line": 491, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18248, - "end": 18249, - "loc": { - "start": { - "line": 491, - "column": 41 - }, - "end": { - "line": 491, - "column": 42 - } - } - }, - { - "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": 18257, - "end": 18259, - "loc": { - "start": { - "line": 493, - "column": 4 - }, - "end": { - "line": 493, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18260, - "end": 18261, - "loc": { - "start": { - "line": 493, - "column": 7 - }, - "end": { - "line": 493, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 18261, - "end": 18278, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18278, - "end": 18279, - "loc": { - "start": { - "line": 493, - "column": 25 - }, - "end": { - "line": 493, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 18280, - "end": 18297, - "loc": { - "start": { - "line": 493, - "column": 27 - }, - "end": { - "line": 493, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18297, - "end": 18298, - "loc": { - "start": { - "line": 493, - "column": 44 - }, - "end": { - "line": 493, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18298, - "end": 18303, - "loc": { - "start": { - "line": 493, - "column": 45 - }, - "end": { - "line": 493, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18303, - "end": 18304, - "loc": { - "start": { - "line": 493, - "column": 50 - }, - "end": { - "line": 493, - "column": 51 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18304, - "end": 18305, - "loc": { - "start": { - "line": 493, - "column": 51 - }, - "end": { - "line": 493, - "column": 52 - } - } - }, - { - "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": 18313, - "end": 18315, - "loc": { - "start": { - "line": 495, - "column": 4 - }, - "end": { - "line": 495, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18316, - "end": 18317, - "loc": { - "start": { - "line": 495, - "column": 7 - }, - "end": { - "line": 495, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18317, - "end": 18326, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18326, - "end": 18327, - "loc": { - "start": { - "line": 495, - "column": 17 - }, - "end": { - "line": 495, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18328, - "end": 18329, - "loc": { - "start": { - "line": 495, - "column": 19 - }, - "end": { - "line": 495, - "column": 20 - } - } - }, - { - "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": 18336, - "end": 18338, - "loc": { - "start": { - "line": 496, - "column": 5 - }, - "end": { - "line": 496, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18339, - "end": 18340, - "loc": { - "start": { - "line": 496, - "column": 8 - }, - "end": { - "line": 496, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 18340, - "end": 18352, - "loc": { - "start": { - "line": 496, - "column": 9 - }, - "end": { - "line": 496, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18352, - "end": 18353, - "loc": { - "start": { - "line": 496, - "column": 21 - }, - "end": { - "line": 496, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18354, - "end": 18355, - "loc": { - "start": { - "line": 496, - "column": 23 - }, - "end": { - "line": 496, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18363, - "end": 18372, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18372, - "end": 18373, - "loc": { - "start": { - "line": 497, - "column": 15 - }, - "end": { - "line": 497, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18373, - "end": 18378, - "loc": { - "start": { - "line": 497, - "column": 16 - }, - "end": { - "line": 497, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18378, - "end": 18379, - "loc": { - "start": { - "line": 497, - "column": 21 - }, - "end": { - "line": 497, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tint", - "start": 18379, - "end": 18383, - "loc": { - "start": { - "line": 497, - "column": 22 - }, - "end": { - "line": 497, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18384, - "end": 18385, - "loc": { - "start": { - "line": 497, - "column": 27 - }, - "end": { - "line": 497, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18386, - "end": 18391, - "loc": { - "start": { - "line": 497, - "column": 29 - }, - "end": { - "line": 497, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18391, - "end": 18392, - "loc": { - "start": { - "line": 497, - "column": 34 - }, - "end": { - "line": 497, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 18392, - "end": 18399, - "loc": { - "start": { - "line": 497, - "column": 35 - }, - "end": { - "line": 497, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18399, - "end": 18400, - "loc": { - "start": { - "line": 497, - "column": 42 - }, - "end": { - "line": 497, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18408, - "end": 18417, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18417, - "end": 18418, - "loc": { - "start": { - "line": 498, - "column": 15 - }, - "end": { - "line": 498, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18418, - "end": 18423, - "loc": { - "start": { - "line": 498, - "column": 16 - }, - "end": { - "line": 498, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18424, - "end": 18425, - "loc": { - "start": { - "line": 498, - "column": 22 - }, - "end": { - "line": 498, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18426, - "end": 18435, - "loc": { - "start": { - "line": 498, - "column": 24 - }, - "end": { - "line": 498, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18435, - "end": 18436, - "loc": { - "start": { - "line": 498, - "column": 33 - }, - "end": { - "line": 498, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18436, - "end": 18441, - "loc": { - "start": { - "line": 498, - "column": 34 - }, - "end": { - "line": 498, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18441, - "end": 18442, - "loc": { - "start": { - "line": 498, - "column": 39 - }, - "end": { - "line": 498, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18449, - "end": 18450, - "loc": { - "start": { - "line": 499, - "column": 5 - }, - "end": { - "line": 499, - "column": 6 - } - } - }, - { - "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": 18451, - "end": 18455, - "loc": { - "start": { - "line": 499, - "column": 7 - }, - "end": { - "line": 499, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18456, - "end": 18457, - "loc": { - "start": { - "line": 499, - "column": 12 - }, - "end": { - "line": 499, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 18465, - "end": 18474, - "loc": { - "start": { - "line": 500, - "column": 6 - }, - "end": { - "line": 500, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18474, - "end": 18475, - "loc": { - "start": { - "line": 500, - "column": 15 - }, - "end": { - "line": 500, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18475, - "end": 18480, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18481, - "end": 18482, - "loc": { - "start": { - "line": 500, - "column": 22 - }, - "end": { - "line": 500, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18483, - "end": 18488, - "loc": { - "start": { - "line": 500, - "column": 24 - }, - "end": { - "line": 500, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18488, - "end": 18489, - "loc": { - "start": { - "line": 500, - "column": 29 - }, - "end": { - "line": 500, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 18489, - "end": 18492, - "loc": { - "start": { - "line": 500, - "column": 30 - }, - "end": { - "line": 500, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18492, - "end": 18493, - "loc": { - "start": { - "line": 500, - "column": 33 - }, - "end": { - "line": 500, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18500, - "end": 18501, - "loc": { - "start": { - "line": 501, - "column": 5 - }, - "end": { - "line": 501, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18507, - "end": 18508, - "loc": { - "start": { - "line": 502, - "column": 4 - }, - "end": { - "line": 502, - "column": 5 - } - } - }, - { - "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": 18516, - "end": 18518, - "loc": { - "start": { - "line": 504, - "column": 4 - }, - "end": { - "line": 504, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18519, - "end": 18520, - "loc": { - "start": { - "line": 504, - "column": 7 - }, - "end": { - "line": 504, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 18520, - "end": 18530, - "loc": { - "start": { - "line": 504, - "column": 8 - }, - "end": { - "line": 504, - "column": 18 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 18531, - "end": 18533, - "loc": { - "start": { - "line": 504, - "column": 19 - }, - "end": { - "line": 504, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 18534, - "end": 18535, - "loc": { - "start": { - "line": 504, - "column": 22 - }, - "end": { - "line": 504, - "column": 23 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 18536, - "end": 18538, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18539, - "end": 18543, - "loc": { - "start": { - "line": 504, - "column": 27 - }, - "end": { - "line": 504, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18543, - "end": 18544, - "loc": { - "start": { - "line": 504, - "column": 31 - }, - "end": { - "line": 504, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18544, - "end": 18555, - "loc": { - "start": { - "line": 504, - "column": 32 - }, - "end": { - "line": 504, - "column": 43 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18555, - "end": 18556, - "loc": { - "start": { - "line": 504, - "column": 43 - }, - "end": { - "line": 504, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18556, - "end": 18558, - "loc": { - "start": { - "line": 504, - "column": 44 - }, - "end": { - "line": 504, - "column": 46 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18558, - "end": 18559, - "loc": { - "start": { - "line": 504, - "column": 46 - }, - "end": { - "line": 504, - "column": 47 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18559, - "end": 18560, - "loc": { - "start": { - "line": 504, - "column": 47 - }, - "end": { - "line": 504, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 18560, - "end": 18571, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 59 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 18572, - "end": 18574, - "loc": { - "start": { - "line": 504, - "column": 60 - }, - "end": { - "line": 504, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 18575, - "end": 18584, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 72 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18584, - "end": 18585, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 73 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18586, - "end": 18587, - "loc": { - "start": { - "line": 504, - "column": 74 - }, - "end": { - "line": 504, - "column": 75 - } - } - }, - { - "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": 18594, - "end": 18596, - "loc": { - "start": { - "line": 505, - "column": 5 - }, - "end": { - "line": 505, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18597, - "end": 18598, - "loc": { - "start": { - "line": 505, - "column": 8 - }, - "end": { - "line": 505, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18598, - "end": 18602, - "loc": { - "start": { - "line": 505, - "column": 9 - }, - "end": { - "line": 505, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18602, - "end": 18603, - "loc": { - "start": { - "line": 505, - "column": 13 - }, - "end": { - "line": 505, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18603, - "end": 18614, - "loc": { - "start": { - "line": 505, - "column": 14 - }, - "end": { - "line": 505, - "column": 25 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18614, - "end": 18615, - "loc": { - "start": { - "line": 505, - "column": 25 - }, - "end": { - "line": 505, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18615, - "end": 18617, - "loc": { - "start": { - "line": 505, - "column": 26 - }, - "end": { - "line": 505, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18617, - "end": 18618, - "loc": { - "start": { - "line": 505, - "column": 28 - }, - "end": { - "line": 505, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18618, - "end": 18619, - "loc": { - "start": { - "line": 505, - "column": 29 - }, - "end": { - "line": 505, - "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": 18620, - "end": 18624, - "loc": { - "start": { - "line": 505, - "column": 31 - }, - "end": { - "line": 505, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18624, - "end": 18625, - "loc": { - "start": { - "line": 505, - "column": 35 - }, - "end": { - "line": 505, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 18625, - "end": 18646, - "loc": { - "start": { - "line": 505, - "column": 36 - }, - "end": { - "line": 505, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18646, - "end": 18647, - "loc": { - "start": { - "line": 505, - "column": 57 - }, - "end": { - "line": 505, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18647, - "end": 18649, - "loc": { - "start": { - "line": 505, - "column": 58 - }, - "end": { - "line": 505, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18649, - "end": 18650, - "loc": { - "start": { - "line": 505, - "column": 60 - }, - "end": { - "line": 505, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18650, - "end": 18651, - "loc": { - "start": { - "line": 505, - "column": 61 - }, - "end": { - "line": 505, - "column": 62 - } - } - }, - { - "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": 18658, - "end": 18660, - "loc": { - "start": { - "line": 506, - "column": 5 - }, - "end": { - "line": 506, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18661, - "end": 18662, - "loc": { - "start": { - "line": 506, - "column": 8 - }, - "end": { - "line": 506, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 18662, - "end": 18673, - "loc": { - "start": { - "line": 506, - "column": 9 - }, - "end": { - "line": 506, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18673, - "end": 18674, - "loc": { - "start": { - "line": 506, - "column": 20 - }, - "end": { - "line": 506, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 18675, - "end": 18686, - "loc": { - "start": { - "line": 506, - "column": 22 - }, - "end": { - "line": 506, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18686, - "end": 18687, - "loc": { - "start": { - "line": 506, - "column": 33 - }, - "end": { - "line": 506, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 18687, - "end": 18692, - "loc": { - "start": { - "line": 506, - "column": 34 - }, - "end": { - "line": 506, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18692, - "end": 18693, - "loc": { - "start": { - "line": 506, - "column": 39 - }, - "end": { - "line": 506, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18693, - "end": 18694, - "loc": { - "start": { - "line": 506, - "column": 40 - }, - "end": { - "line": 506, - "column": 41 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 18701, - "end": 18707, - "loc": { - "start": { - "line": 507, - "column": 5 - }, - "end": { - "line": 507, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18707, - "end": 18708, - "loc": { - "start": { - "line": 507, - "column": 11 - }, - "end": { - "line": 507, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18714, - "end": 18715, - "loc": { - "start": { - "line": 508, - "column": 4 - }, - "end": { - "line": 508, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18721, - "end": 18725, - "loc": { - "start": { - "line": 509, - "column": 4 - }, - "end": { - "line": 509, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18725, - "end": 18726, - "loc": { - "start": { - "line": 509, - "column": 8 - }, - "end": { - "line": 509, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18726, - "end": 18737, - "loc": { - "start": { - "line": 509, - "column": 9 - }, - "end": { - "line": 509, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18737, - "end": 18738, - "loc": { - "start": { - "line": 509, - "column": 20 - }, - "end": { - "line": 509, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18738, - "end": 18740, - "loc": { - "start": { - "line": 509, - "column": 21 - }, - "end": { - "line": 509, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18740, - "end": 18741, - "loc": { - "start": { - "line": 509, - "column": 23 - }, - "end": { - "line": 509, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18741, - "end": 18742, - "loc": { - "start": { - "line": 509, - "column": 24 - }, - "end": { - "line": 509, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 18742, - "end": 18745, - "loc": { - "start": { - "line": 509, - "column": 25 - }, - "end": { - "line": 509, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18746, - "end": 18747, - "loc": { - "start": { - "line": 509, - "column": 29 - }, - "end": { - "line": 509, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 18748, - "end": 18758, - "loc": { - "start": { - "line": 509, - "column": 31 - }, - "end": { - "line": 509, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18758, - "end": 18759, - "loc": { - "start": { - "line": 509, - "column": 41 - }, - "end": { - "line": 509, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requestAnimationFrame", - "start": 18759, - "end": 18780, - "loc": { - "start": { - "line": 509, - "column": 42 - }, - "end": { - "line": 509, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18780, - "end": 18781, - "loc": { - "start": { - "line": 509, - "column": 63 - }, - "end": { - "line": 509, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18781, - "end": 18785, - "loc": { - "start": { - "line": 509, - "column": 64 - }, - "end": { - "line": 509, - "column": 68 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18785, - "end": 18786, - "loc": { - "start": { - "line": 509, - "column": 68 - }, - "end": { - "line": 509, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18786, - "end": 18797, - "loc": { - "start": { - "line": 509, - "column": 69 - }, - "end": { - "line": 509, - "column": 80 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18797, - "end": 18798, - "loc": { - "start": { - "line": 509, - "column": 80 - }, - "end": { - "line": 509, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18798, - "end": 18800, - "loc": { - "start": { - "line": 509, - "column": 81 - }, - "end": { - "line": 509, - "column": 83 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18800, - "end": 18801, - "loc": { - "start": { - "line": 509, - "column": 83 - }, - "end": { - "line": 509, - "column": 84 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18801, - "end": 18802, - "loc": { - "start": { - "line": 509, - "column": 84 - }, - "end": { - "line": 509, - "column": 85 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 18802, - "end": 18806, - "loc": { - "start": { - "line": 509, - "column": 85 - }, - "end": { - "line": 509, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18806, - "end": 18807, - "loc": { - "start": { - "line": 509, - "column": 89 - }, - "end": { - "line": 509, - "column": 90 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18807, - "end": 18808, - "loc": { - "start": { - "line": 509, - "column": 90 - }, - "end": { - "line": 509, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 18814, - "end": 18818, - "loc": { - "start": { - "line": 510, - "column": 4 - }, - "end": { - "line": 510, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18818, - "end": 18819, - "loc": { - "start": { - "line": 510, - "column": 8 - }, - "end": { - "line": 510, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18819, - "end": 18830, - "loc": { - "start": { - "line": 510, - "column": 9 - }, - "end": { - "line": 510, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18830, - "end": 18831, - "loc": { - "start": { - "line": 510, - "column": 20 - }, - "end": { - "line": 510, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18831, - "end": 18833, - "loc": { - "start": { - "line": 510, - "column": 21 - }, - "end": { - "line": 510, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18833, - "end": 18834, - "loc": { - "start": { - "line": 510, - "column": 23 - }, - "end": { - "line": 510, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18834, - "end": 18835, - "loc": { - "start": { - "line": 510, - "column": 24 - }, - "end": { - "line": 510, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 18835, - "end": 18843, - "loc": { - "start": { - "line": 510, - "column": 25 - }, - "end": { - "line": 510, - "column": 33 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18844, - "end": 18845, - "loc": { - "start": { - "line": 510, - "column": 34 - }, - "end": { - "line": 510, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 18846, - "end": 18849, - "loc": { - "start": { - "line": 510, - "column": 36 - }, - "end": { - "line": 510, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18849, - "end": 18850, - "loc": { - "start": { - "line": 510, - "column": 39 - }, - "end": { - "line": 510, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18855, - "end": 18856, - "loc": { - "start": { - "line": 511, - "column": 3 - }, - "end": { - "line": 511, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18860, - "end": 18861, - "loc": { - "start": { - "line": 512, - "column": 2 - }, - "end": { - "line": 512, - "column": 3 - } - } - }, - { - "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": 18867, - "end": 18871, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18871, - "end": 18872, - "loc": { - "start": { - "line": 514, - "column": 6 - }, - "end": { - "line": 514, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18872, - "end": 18883, - "loc": { - "start": { - "line": 514, - "column": 7 - }, - "end": { - "line": 514, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18883, - "end": 18884, - "loc": { - "start": { - "line": 514, - "column": 18 - }, - "end": { - "line": 514, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18884, - "end": 18886, - "loc": { - "start": { - "line": 514, - "column": 19 - }, - "end": { - "line": 514, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18886, - "end": 18887, - "loc": { - "start": { - "line": 514, - "column": 21 - }, - "end": { - "line": 514, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18887, - "end": 18888, - "loc": { - "start": { - "line": 514, - "column": 22 - }, - "end": { - "line": 514, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 18888, - "end": 18891, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18892, - "end": 18893, - "loc": { - "start": { - "line": 514, - "column": 27 - }, - "end": { - "line": 514, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 18894, - "end": 18904, - "loc": { - "start": { - "line": 514, - "column": 29 - }, - "end": { - "line": 514, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18904, - "end": 18905, - "loc": { - "start": { - "line": 514, - "column": 39 - }, - "end": { - "line": 514, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requestAnimationFrame", - "start": 18905, - "end": 18926, - "loc": { - "start": { - "line": 514, - "column": 40 - }, - "end": { - "line": 514, - "column": 61 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18926, - "end": 18927, - "loc": { - "start": { - "line": 514, - "column": 61 - }, - "end": { - "line": 514, - "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": 18927, - "end": 18931, - "loc": { - "start": { - "line": 514, - "column": 62 - }, - "end": { - "line": 514, - "column": 66 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18931, - "end": 18932, - "loc": { - "start": { - "line": 514, - "column": 66 - }, - "end": { - "line": 514, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 18932, - "end": 18943, - "loc": { - "start": { - "line": 514, - "column": 67 - }, - "end": { - "line": 514, - "column": 78 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18943, - "end": 18944, - "loc": { - "start": { - "line": 514, - "column": 78 - }, - "end": { - "line": 514, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18944, - "end": 18946, - "loc": { - "start": { - "line": 514, - "column": 79 - }, - "end": { - "line": 514, - "column": 81 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18946, - "end": 18947, - "loc": { - "start": { - "line": 514, - "column": 81 - }, - "end": { - "line": 514, - "column": 82 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18947, - "end": 18948, - "loc": { - "start": { - "line": 514, - "column": 82 - }, - "end": { - "line": 514, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 18948, - "end": 18952, - "loc": { - "start": { - "line": 514, - "column": 83 - }, - "end": { - "line": 514, - "column": 87 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18952, - "end": 18953, - "loc": { - "start": { - "line": 514, - "column": 87 - }, - "end": { - "line": 514, - "column": 88 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18953, - "end": 18954, - "loc": { - "start": { - "line": 514, - "column": 88 - }, - "end": { - "line": 514, - "column": 89 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 18958, - "end": 18964, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 18965, - "end": 18967, - "loc": { - "start": { - "line": 515, - "column": 9 - }, - "end": { - "line": 515, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18967, - "end": 18968, - "loc": { - "start": { - "line": 515, - "column": 11 - }, - "end": { - "line": 515, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18971, - "end": 18972, - "loc": { - "start": { - "line": 516, - "column": 1 - }, - "end": { - "line": 516, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 18975, - "end": 19095, - "loc": { - "start": { - "line": 517, - "column": 1 - }, - "end": { - "line": 521, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 19098, - "end": 19119, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 522, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19119, - "end": 19120, - "loc": { - "start": { - "line": 522, - "column": 22 - }, - "end": { - "line": 522, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 19120, - "end": 19123, - "loc": { - "start": { - "line": 522, - "column": 23 - }, - "end": { - "line": 522, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19123, - "end": 19124, - "loc": { - "start": { - "line": 522, - "column": 26 - }, - "end": { - "line": 522, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19125, - "end": 19126, - "loc": { - "start": { - "line": 522, - "column": 28 - }, - "end": { - "line": 522, - "column": 29 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 19130, - "end": 19132, - "loc": { - "start": { - "line": 523, - "column": 2 - }, - "end": { - "line": 523, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19133, - "end": 19134, - "loc": { - "start": { - "line": 523, - "column": 5 - }, - "end": { - "line": 523, - "column": 6 - } - } - }, - { - "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": 19134, - "end": 19138, - "loc": { - "start": { - "line": 523, - "column": 6 - }, - "end": { - "line": 523, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19138, - "end": 19139, - "loc": { - "start": { - "line": 523, - "column": 10 - }, - "end": { - "line": 523, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 19139, - "end": 19150, - "loc": { - "start": { - "line": 523, - "column": 11 - }, - "end": { - "line": 523, - "column": 22 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19150, - "end": 19151, - "loc": { - "start": { - "line": 523, - "column": 22 - }, - "end": { - "line": 523, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 19151, - "end": 19154, - "loc": { - "start": { - "line": 523, - "column": 23 - }, - "end": { - "line": 523, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19154, - "end": 19155, - "loc": { - "start": { - "line": 523, - "column": 26 - }, - "end": { - "line": 523, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19155, - "end": 19156, - "loc": { - "start": { - "line": 523, - "column": 27 - }, - "end": { - "line": 523, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19157, - "end": 19158, - "loc": { - "start": { - "line": 523, - "column": 29 - }, - "end": { - "line": 523, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 19163, - "end": 19173, - "loc": { - "start": { - "line": 524, - "column": 3 - }, - "end": { - "line": 524, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19173, - "end": 19174, - "loc": { - "start": { - "line": 524, - "column": 13 - }, - "end": { - "line": 524, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelAnimationFrame", - "start": 19174, - "end": 19194, - "loc": { - "start": { - "line": 524, - "column": 14 - }, - "end": { - "line": 524, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19194, - "end": 19195, - "loc": { - "start": { - "line": 524, - "column": 34 - }, - "end": { - "line": 524, - "column": 35 - } - } - }, - { - "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": 19195, - "end": 19199, - "loc": { - "start": { - "line": 524, - "column": 35 - }, - "end": { - "line": 524, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19199, - "end": 19200, - "loc": { - "start": { - "line": 524, - "column": 39 - }, - "end": { - "line": 524, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 19200, - "end": 19211, - "loc": { - "start": { - "line": 524, - "column": 40 - }, - "end": { - "line": 524, - "column": 51 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19211, - "end": 19212, - "loc": { - "start": { - "line": 524, - "column": 51 - }, - "end": { - "line": 524, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 19212, - "end": 19215, - "loc": { - "start": { - "line": 524, - "column": 52 - }, - "end": { - "line": 524, - "column": 55 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19215, - "end": 19216, - "loc": { - "start": { - "line": 524, - "column": 55 - }, - "end": { - "line": 524, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19216, - "end": 19217, - "loc": { - "start": { - "line": 524, - "column": 56 - }, - "end": { - "line": 524, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 19217, - "end": 19220, - "loc": { - "start": { - "line": 524, - "column": 57 - }, - "end": { - "line": 524, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19220, - "end": 19221, - "loc": { - "start": { - "line": 524, - "column": 60 - }, - "end": { - "line": 524, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19221, - "end": 19222, - "loc": { - "start": { - "line": 524, - "column": 61 - }, - "end": { - "line": 524, - "column": 62 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 19227, - "end": 19233, - "loc": { - "start": { - "line": 525, - "column": 3 - }, - "end": { - "line": 525, - "column": 9 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 19234, - "end": 19238, - "loc": { - "start": { - "line": 525, - "column": 10 - }, - "end": { - "line": 525, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19238, - "end": 19239, - "loc": { - "start": { - "line": 525, - "column": 14 - }, - "end": { - "line": 525, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 19239, - "end": 19250, - "loc": { - "start": { - "line": 525, - "column": 15 - }, - "end": { - "line": 525, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19250, - "end": 19251, - "loc": { - "start": { - "line": 525, - "column": 26 - }, - "end": { - "line": 525, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 19251, - "end": 19254, - "loc": { - "start": { - "line": 525, - "column": 27 - }, - "end": { - "line": 525, - "column": 30 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19254, - "end": 19255, - "loc": { - "start": { - "line": 525, - "column": 30 - }, - "end": { - "line": 525, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19255, - "end": 19256, - "loc": { - "start": { - "line": 525, - "column": 31 - }, - "end": { - "line": 525, - "column": 32 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19260, - "end": 19261, - "loc": { - "start": { - "line": 526, - "column": 2 - }, - "end": { - "line": 526, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19264, - "end": 19265, - "loc": { - "start": { - "line": 527, - "column": 1 - }, - "end": { - "line": 527, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 19268, - "end": 19949, - "loc": { - "start": { - "line": 528, - "column": 1 - }, - "end": { - "line": 538, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 19952, - "end": 19967, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 539, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19967, - "end": 19968, - "loc": { - "start": { - "line": 539, - "column": 16 - }, - "end": { - "line": 539, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 19968, - "end": 19973, - "loc": { - "start": { - "line": 539, - "column": 17 - }, - "end": { - "line": 539, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19973, - "end": 19974, - "loc": { - "start": { - "line": 539, - "column": 22 - }, - "end": { - "line": 539, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 19975, - "end": 19981, - "loc": { - "start": { - "line": 539, - "column": 24 - }, - "end": { - "line": 539, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19981, - "end": 19982, - "loc": { - "start": { - "line": 539, - "column": 30 - }, - "end": { - "line": 539, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 19983, - "end": 19989, - "loc": { - "start": { - "line": 539, - "column": 32 - }, - "end": { - "line": 539, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19989, - "end": 19990, - "loc": { - "start": { - "line": 539, - "column": 38 - }, - "end": { - "line": 539, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19991, - "end": 19992, - "loc": { - "start": { - "line": 539, - "column": 40 - }, - "end": { - "line": 539, - "column": 41 - } - } - }, - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 19996, - "end": 20036, - "loc": { - "start": { - "line": 540, - "column": 2 - }, - "end": { - "line": 540, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 20040, - "end": 20093, - "loc": { - "start": { - "line": 541, - "column": 2 - }, - "end": { - "line": 541, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 20097, - "end": 20130, - "loc": { - "start": { - "line": 542, - "column": 2 - }, - "end": { - "line": 542, - "column": 35 - } - } - }, - { - "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": 20134, - "end": 20139, - "loc": { - "start": { - "line": 543, - "column": 2 - }, - "end": { - "line": 543, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 20140, - "end": 20142, - "loc": { - "start": { - "line": 543, - "column": 8 - }, - "end": { - "line": 543, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20143, - "end": 20144, - "loc": { - "start": { - "line": 543, - "column": 11 - }, - "end": { - "line": 543, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20145, - "end": 20150, - "loc": { - "start": { - "line": 543, - "column": 13 - }, - "end": { - "line": 543, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20150, - "end": 20151, - "loc": { - "start": { - "line": 543, - "column": 18 - }, - "end": { - "line": 543, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20151, - "end": 20152, - "loc": { - "start": { - "line": 543, - "column": 19 - }, - "end": { - "line": 543, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20153, - "end": 20154, - "loc": { - "start": { - "line": 543, - "column": 21 - }, - "end": { - "line": 543, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20155, - "end": 20160, - "loc": { - "start": { - "line": 543, - "column": 23 - }, - "end": { - "line": 543, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20160, - "end": 20161, - "loc": { - "start": { - "line": 543, - "column": 28 - }, - "end": { - "line": 543, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 20161, - "end": 20166, - "loc": { - "start": { - "line": 543, - "column": 29 - }, - "end": { - "line": 543, - "column": 34 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20167, - "end": 20168, - "loc": { - "start": { - "line": 543, - "column": 35 - }, - "end": { - "line": 543, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20169, - "end": 20170, - "loc": { - "start": { - "line": 543, - "column": 37 - }, - "end": { - "line": 543, - "column": 38 - } - } - }, - { - "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": 20170, - "end": 20176, - "loc": { - "start": { - "line": 543, - "column": 38 - }, - "end": { - "line": 543, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20176, - "end": 20177, - "loc": { - "start": { - "line": 543, - "column": 44 - }, - "end": { - "line": 543, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20177, - "end": 20182, - "loc": { - "start": { - "line": 543, - "column": 45 - }, - "end": { - "line": 543, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20182, - "end": 20183, - "loc": { - "start": { - "line": 543, - "column": 50 - }, - "end": { - "line": 543, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20183, - "end": 20189, - "loc": { - "start": { - "line": 543, - "column": 51 - }, - "end": { - "line": 543, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20189, - "end": 20190, - "loc": { - "start": { - "line": 543, - "column": 57 - }, - "end": { - "line": 543, - "column": 58 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 20191, - "end": 20194, - "loc": { - "start": { - "line": 543, - "column": 59 - }, - "end": { - "line": 543, - "column": 62 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 20195, - "end": 20203, - "loc": { - "start": { - "line": 543, - "column": 63 - }, - "end": { - "line": 543, - "column": 71 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 20204, - "end": 20206, - "loc": { - "start": { - "line": 543, - "column": 72 - }, - "end": { - "line": 543, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20207, - "end": 20212, - "loc": { - "start": { - "line": 543, - "column": 75 - }, - "end": { - "line": 543, - "column": 80 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20212, - "end": 20213, - "loc": { - "start": { - "line": 543, - "column": 80 - }, - "end": { - "line": 543, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20213, - "end": 20219, - "loc": { - "start": { - "line": 543, - "column": 81 - }, - "end": { - "line": 543, - "column": 87 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20219, - "end": 20220, - "loc": { - "start": { - "line": 543, - "column": 87 - }, - "end": { - "line": 543, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20220, - "end": 20221, - "loc": { - "start": { - "line": 543, - "column": 88 - }, - "end": { - "line": 543, - "column": 89 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20222, - "end": 20223, - "loc": { - "start": { - "line": 543, - "column": 90 - }, - "end": { - "line": 543, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20224, - "end": 20229, - "loc": { - "start": { - "line": 543, - "column": 92 - }, - "end": { - "line": 543, - "column": 97 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20229, - "end": 20230, - "loc": { - "start": { - "line": 543, - "column": 97 - }, - "end": { - "line": 543, - "column": 98 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20230, - "end": 20236, - "loc": { - "start": { - "line": 543, - "column": 98 - }, - "end": { - "line": 543, - "column": 104 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20236, - "end": 20237, - "loc": { - "start": { - "line": 543, - "column": 104 - }, - "end": { - "line": 543, - "column": 105 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20237, - "end": 20238, - "loc": { - "start": { - "line": 543, - "column": 105 - }, - "end": { - "line": 543, - "column": 106 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20239, - "end": 20240, - "loc": { - "start": { - "line": 543, - "column": 107 - }, - "end": { - "line": 543, - "column": 108 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 20241, - "end": 20244, - "loc": { - "start": { - "line": 543, - "column": 109 - }, - "end": { - "line": 543, - "column": 112 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20244, - "end": 20245, - "loc": { - "start": { - "line": 543, - "column": 112 - }, - "end": { - "line": 543, - "column": 113 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20245, - "end": 20246, - "loc": { - "start": { - "line": 543, - "column": 113 - }, - "end": { - "line": 543, - "column": 114 - } - } - }, - { - "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": 20250, - "end": 20255, - "loc": { - "start": { - "line": 544, - "column": 2 - }, - "end": { - "line": 544, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 20256, - "end": 20258, - "loc": { - "start": { - "line": 544, - "column": 8 - }, - "end": { - "line": 544, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20259, - "end": 20260, - "loc": { - "start": { - "line": 544, - "column": 11 - }, - "end": { - "line": 544, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20261, - "end": 20266, - "loc": { - "start": { - "line": 544, - "column": 13 - }, - "end": { - "line": 544, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20266, - "end": 20267, - "loc": { - "start": { - "line": 544, - "column": 18 - }, - "end": { - "line": 544, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20267, - "end": 20268, - "loc": { - "start": { - "line": 544, - "column": 19 - }, - "end": { - "line": 544, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20269, - "end": 20270, - "loc": { - "start": { - "line": 544, - "column": 21 - }, - "end": { - "line": 544, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20271, - "end": 20276, - "loc": { - "start": { - "line": 544, - "column": 23 - }, - "end": { - "line": 544, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20276, - "end": 20277, - "loc": { - "start": { - "line": 544, - "column": 28 - }, - "end": { - "line": 544, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 20277, - "end": 20283, - "loc": { - "start": { - "line": 544, - "column": 29 - }, - "end": { - "line": 544, - "column": 35 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20284, - "end": 20285, - "loc": { - "start": { - "line": 544, - "column": 36 - }, - "end": { - "line": 544, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20286, - "end": 20287, - "loc": { - "start": { - "line": 544, - "column": 38 - }, - "end": { - "line": 544, - "column": 39 - } - } - }, - { - "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": 20287, - "end": 20293, - "loc": { - "start": { - "line": 544, - "column": 39 - }, - "end": { - "line": 544, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20293, - "end": 20294, - "loc": { - "start": { - "line": 544, - "column": 45 - }, - "end": { - "line": 544, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20294, - "end": 20299, - "loc": { - "start": { - "line": 544, - "column": 46 - }, - "end": { - "line": 544, - "column": 51 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20299, - "end": 20300, - "loc": { - "start": { - "line": 544, - "column": 51 - }, - "end": { - "line": 544, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20300, - "end": 20306, - "loc": { - "start": { - "line": 544, - "column": 52 - }, - "end": { - "line": 544, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20306, - "end": 20307, - "loc": { - "start": { - "line": 544, - "column": 58 - }, - "end": { - "line": 544, - "column": 59 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 20308, - "end": 20311, - "loc": { - "start": { - "line": 544, - "column": 60 - }, - "end": { - "line": 544, - "column": 63 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 20312, - "end": 20320, - "loc": { - "start": { - "line": 544, - "column": 64 - }, - "end": { - "line": 544, - "column": 72 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 20321, - "end": 20323, - "loc": { - "start": { - "line": 544, - "column": 73 - }, - "end": { - "line": 544, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20324, - "end": 20329, - "loc": { - "start": { - "line": 544, - "column": 76 - }, - "end": { - "line": 544, - "column": 81 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20329, - "end": 20330, - "loc": { - "start": { - "line": 544, - "column": 81 - }, - "end": { - "line": 544, - "column": 82 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20330, - "end": 20336, - "loc": { - "start": { - "line": 544, - "column": 82 - }, - "end": { - "line": 544, - "column": 88 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20336, - "end": 20337, - "loc": { - "start": { - "line": 544, - "column": 88 - }, - "end": { - "line": 544, - "column": 89 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20337, - "end": 20338, - "loc": { - "start": { - "line": 544, - "column": 89 - }, - "end": { - "line": 544, - "column": 90 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20339, - "end": 20340, - "loc": { - "start": { - "line": 544, - "column": 91 - }, - "end": { - "line": 544, - "column": 92 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 20341, - "end": 20346, - "loc": { - "start": { - "line": 544, - "column": 93 - }, - "end": { - "line": 544, - "column": 98 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20346, - "end": 20347, - "loc": { - "start": { - "line": 544, - "column": 98 - }, - "end": { - "line": 544, - "column": 99 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 20347, - "end": 20353, - "loc": { - "start": { - "line": 544, - "column": 99 - }, - "end": { - "line": 544, - "column": 105 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20353, - "end": 20354, - "loc": { - "start": { - "line": 544, - "column": 105 - }, - "end": { - "line": 544, - "column": 106 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20354, - "end": 20355, - "loc": { - "start": { - "line": 544, - "column": 106 - }, - "end": { - "line": 544, - "column": 107 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20356, - "end": 20357, - "loc": { - "start": { - "line": 544, - "column": 108 - }, - "end": { - "line": 544, - "column": 109 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 20358, - "end": 20361, - "loc": { - "start": { - "line": 544, - "column": 110 - }, - "end": { - "line": 544, - "column": 113 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20361, - "end": 20362, - "loc": { - "start": { - "line": 544, - "column": 113 - }, - "end": { - "line": 544, - "column": 114 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20362, - "end": 20363, - "loc": { - "start": { - "line": 544, - "column": 114 - }, - "end": { - "line": 544, - "column": 115 - } - } - }, - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 20369, - "end": 20397, - "loc": { - "start": { - "line": 546, - "column": 2 - }, - "end": { - "line": 546, - "column": 30 - } - } - }, - { - "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": 20401, - "end": 20406, - "loc": { - "start": { - "line": 547, - "column": 2 - }, - "end": { - "line": 547, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 20407, - "end": 20412, - "loc": { - "start": { - "line": 547, - "column": 8 - }, - "end": { - "line": 547, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20413, - "end": 20414, - "loc": { - "start": { - "line": 547, - "column": 14 - }, - "end": { - "line": 547, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 20415, - "end": 20421, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20421, - "end": 20422, - "loc": { - "start": { - "line": 547, - "column": 22 - }, - "end": { - "line": 547, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20422, - "end": 20423, - "loc": { - "start": { - "line": 547, - "column": 23 - }, - "end": { - "line": 547, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20424, - "end": 20425, - "loc": { - "start": { - "line": 547, - "column": 25 - }, - "end": { - "line": 547, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 20426, - "end": 20428, - "loc": { - "start": { - "line": 547, - "column": 27 - }, - "end": { - "line": 547, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20428, - "end": 20429, - "loc": { - "start": { - "line": 547, - "column": 29 - }, - "end": { - "line": 547, - "column": 30 - } - } - }, - { - "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": 20433, - "end": 20438, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 20439, - "end": 20444, - "loc": { - "start": { - "line": 548, - "column": 8 - }, - "end": { - "line": 548, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20445, - "end": 20446, - "loc": { - "start": { - "line": 548, - "column": 14 - }, - "end": { - "line": 548, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 20447, - "end": 20453, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20453, - "end": 20454, - "loc": { - "start": { - "line": 548, - "column": 22 - }, - "end": { - "line": 548, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20454, - "end": 20455, - "loc": { - "start": { - "line": 548, - "column": 23 - }, - "end": { - "line": 548, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20456, - "end": 20457, - "loc": { - "start": { - "line": 548, - "column": 25 - }, - "end": { - "line": 548, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 20458, - "end": 20460, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20460, - "end": 20461, - "loc": { - "start": { - "line": 548, - "column": 29 - }, - "end": { - "line": 548, - "column": 30 - } - } - }, - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 20467, - "end": 20488, - "loc": { - "start": { - "line": 550, - "column": 2 - }, - "end": { - "line": 550, - "column": 23 - } - } - }, - { - "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": 20492, - "end": 20497, - "loc": { - "start": { - "line": 551, - "column": 2 - }, - "end": { - "line": 551, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedX", - "start": 20498, - "end": 20506, - "loc": { - "start": { - "line": 551, - "column": 8 - }, - "end": { - "line": 551, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20507, - "end": 20508, - "loc": { - "start": { - "line": 551, - "column": 17 - }, - "end": { - "line": 551, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 20509, - "end": 20514, - "loc": { - "start": { - "line": 551, - "column": 19 - }, - "end": { - "line": 551, - "column": 24 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20514, - "end": 20515, - "loc": { - "start": { - "line": 551, - "column": 24 - }, - "end": { - "line": 551, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 20515, - "end": 20519, - "loc": { - "start": { - "line": 551, - "column": 25 - }, - "end": { - "line": 551, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20519, - "end": 20520, - "loc": { - "start": { - "line": 551, - "column": 29 - }, - "end": { - "line": 551, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cos", - "start": 20520, - "end": 20523, - "loc": { - "start": { - "line": 551, - "column": 30 - }, - "end": { - "line": 551, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20523, - "end": 20524, - "loc": { - "start": { - "line": 551, - "column": 33 - }, - "end": { - "line": 551, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 20524, - "end": 20530, - "loc": { - "start": { - "line": 551, - "column": 34 - }, - "end": { - "line": 551, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20530, - "end": 20531, - "loc": { - "start": { - "line": 551, - "column": 40 - }, - "end": { - "line": 551, - "column": 41 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20532, - "end": 20533, - "loc": { - "start": { - "line": 551, - "column": 42 - }, - "end": { - "line": 551, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 20534, - "end": 20539, - "loc": { - "start": { - "line": 551, - "column": 44 - }, - "end": { - "line": 551, - "column": 49 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20539, - "end": 20540, - "loc": { - "start": { - "line": 551, - "column": 49 - }, - "end": { - "line": 551, - "column": 50 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20540, - "end": 20541, - "loc": { - "start": { - "line": 551, - "column": 50 - }, - "end": { - "line": 551, - "column": 51 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20541, - "end": 20542, - "loc": { - "start": { - "line": 551, - "column": 51 - }, - "end": { - "line": 551, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 20542, - "end": 20546, - "loc": { - "start": { - "line": 551, - "column": 52 - }, - "end": { - "line": 551, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20546, - "end": 20547, - "loc": { - "start": { - "line": 551, - "column": 56 - }, - "end": { - "line": 551, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sin", - "start": 20547, - "end": 20550, - "loc": { - "start": { - "line": 551, - "column": 57 - }, - "end": { - "line": 551, - "column": 60 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20550, - "end": 20551, - "loc": { - "start": { - "line": 551, - "column": 60 - }, - "end": { - "line": 551, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 20551, - "end": 20557, - "loc": { - "start": { - "line": 551, - "column": 61 - }, - "end": { - "line": 551, - "column": 67 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20557, - "end": 20558, - "loc": { - "start": { - "line": 551, - "column": 67 - }, - "end": { - "line": 551, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20558, - "end": 20559, - "loc": { - "start": { - "line": 551, - "column": 68 - }, - "end": { - "line": 551, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20559, - "end": 20560, - "loc": { - "start": { - "line": 551, - "column": 69 - }, - "end": { - "line": 551, - "column": 70 - } - } - }, - { - "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": 20564, - "end": 20569, - "loc": { - "start": { - "line": 552, - "column": 2 - }, - "end": { - "line": 552, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedY", - "start": 20570, - "end": 20578, - "loc": { - "start": { - "line": 552, - "column": 8 - }, - "end": { - "line": 552, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20579, - "end": 20580, - "loc": { - "start": { - "line": 552, - "column": 17 - }, - "end": { - "line": 552, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 20581, - "end": 20586, - "loc": { - "start": { - "line": 552, - "column": 19 - }, - "end": { - "line": 552, - "column": 24 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20586, - "end": 20587, - "loc": { - "start": { - "line": 552, - "column": 24 - }, - "end": { - "line": 552, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20587, - "end": 20588, - "loc": { - "start": { - "line": 552, - "column": 25 - }, - "end": { - "line": 552, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 20588, - "end": 20589, - "loc": { - "start": { - "line": 552, - "column": 26 - }, - "end": { - "line": 552, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 20589, - "end": 20593, - "loc": { - "start": { - "line": 552, - "column": 27 - }, - "end": { - "line": 552, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20593, - "end": 20594, - "loc": { - "start": { - "line": 552, - "column": 31 - }, - "end": { - "line": 552, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sin", - "start": 20594, - "end": 20597, - "loc": { - "start": { - "line": 552, - "column": 32 - }, - "end": { - "line": 552, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20597, - "end": 20598, - "loc": { - "start": { - "line": 552, - "column": 35 - }, - "end": { - "line": 552, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 552, - "column": 36 - }, - "end": { - "line": 552, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20604, - "end": 20605, - "loc": { - "start": { - "line": 552, - "column": 42 - }, - "end": { - "line": 552, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20605, - "end": 20606, - "loc": { - "start": { - "line": 552, - "column": 43 - }, - "end": { - "line": 552, - "column": 44 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20607, - "end": 20608, - "loc": { - "start": { - "line": 552, - "column": 45 - }, - "end": { - "line": 552, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 20609, - "end": 20614, - "loc": { - "start": { - "line": 552, - "column": 47 - }, - "end": { - "line": 552, - "column": 52 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 20614, - "end": 20615, - "loc": { - "start": { - "line": 552, - "column": 52 - }, - "end": { - "line": 552, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 20615, - "end": 20619, - "loc": { - "start": { - "line": 552, - "column": 53 - }, - "end": { - "line": 552, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20619, - "end": 20620, - "loc": { - "start": { - "line": 552, - "column": 57 - }, - "end": { - "line": 552, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cos", - "start": 20620, - "end": 20623, - "loc": { - "start": { - "line": 552, - "column": 58 - }, - "end": { - "line": 552, - "column": 61 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20623, - "end": 20624, - "loc": { - "start": { - "line": 552, - "column": 61 - }, - "end": { - "line": 552, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 20624, - "end": 20630, - "loc": { - "start": { - "line": 552, - "column": 62 - }, - "end": { - "line": 552, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20630, - "end": 20631, - "loc": { - "start": { - "line": 552, - "column": 68 - }, - "end": { - "line": 552, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20631, - "end": 20632, - "loc": { - "start": { - "line": 552, - "column": 69 - }, - "end": { - "line": 552, - "column": 70 - } - } - }, - { - "type": "CommentLine", - "value": " translate back", - "start": 20638, - "end": 20655, - "loc": { - "start": { - "line": 554, - "column": 2 - }, - "end": { - "line": 554, - "column": 19 - } - } - }, - { - "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": 20659, - "end": 20664, - "loc": { - "start": { - "line": 555, - "column": 2 - }, - "end": { - "line": 555, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20665, - "end": 20666, - "loc": { - "start": { - "line": 555, - "column": 8 - }, - "end": { - "line": 555, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20667, - "end": 20668, - "loc": { - "start": { - "line": 555, - "column": 10 - }, - "end": { - "line": 555, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedX", - "start": 20669, - "end": 20677, - "loc": { - "start": { - "line": 555, - "column": 12 - }, - "end": { - "line": 555, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20678, - "end": 20679, - "loc": { - "start": { - "line": 555, - "column": 21 - }, - "end": { - "line": 555, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 20680, - "end": 20682, - "loc": { - "start": { - "line": 555, - "column": 23 - }, - "end": { - "line": 555, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20682, - "end": 20683, - "loc": { - "start": { - "line": 555, - "column": 25 - }, - "end": { - "line": 555, - "column": 26 - } - } - }, - { - "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": 20687, - "end": 20692, - "loc": { - "start": { - "line": 556, - "column": 2 - }, - "end": { - "line": 556, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20693, - "end": 20694, - "loc": { - "start": { - "line": 556, - "column": 8 - }, - "end": { - "line": 556, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20695, - "end": 20696, - "loc": { - "start": { - "line": 556, - "column": 10 - }, - "end": { - "line": 556, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedY", - "start": 20697, - "end": 20705, - "loc": { - "start": { - "line": 556, - "column": 12 - }, - "end": { - "line": 556, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20706, - "end": 20707, - "loc": { - "start": { - "line": 556, - "column": 21 - }, - "end": { - "line": 556, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 20708, - "end": 20710, - "loc": { - "start": { - "line": 556, - "column": 23 - }, - "end": { - "line": 556, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20710, - "end": 20711, - "loc": { - "start": { - "line": 556, - "column": 25 - }, - "end": { - "line": 556, - "column": 26 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 20715, - "end": 20721, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20722, - "end": 20723, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 20724, - "end": 20727, - "loc": { - "start": { - "line": 557, - "column": 11 - }, - "end": { - "line": 557, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20727, - "end": 20728, - "loc": { - "start": { - "line": 557, - "column": 14 - }, - "end": { - "line": 557, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 20729, - "end": 20730, - "loc": { - "start": { - "line": 557, - "column": 16 - }, - "end": { - "line": 557, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20730, - "end": 20731, - "loc": { - "start": { - "line": 557, - "column": 17 - }, - "end": { - "line": 557, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 20732, - "end": 20735, - "loc": { - "start": { - "line": 557, - "column": 19 - }, - "end": { - "line": 557, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20735, - "end": 20736, - "loc": { - "start": { - "line": 557, - "column": 22 - }, - "end": { - "line": 557, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 20737, - "end": 20738, - "loc": { - "start": { - "line": 557, - "column": 24 - }, - "end": { - "line": 557, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20739, - "end": 20740, - "loc": { - "start": { - "line": 557, - "column": 26 - }, - "end": { - "line": 557, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20740, - "end": 20741, - "loc": { - "start": { - "line": 557, - "column": 27 - }, - "end": { - "line": 557, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20744, - "end": 20745, - "loc": { - "start": { - "line": 558, - "column": 1 - }, - "end": { - "line": 558, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 20748, - "end": 21243, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 566, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointsOfRotatedRect", - "start": 21246, - "end": 21268, - "loc": { - "start": { - "line": 567, - "column": 1 - }, - "end": { - "line": 567, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21268, - "end": 21269, - "loc": { - "start": { - "line": 567, - "column": 23 - }, - "end": { - "line": 567, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21269, - "end": 21274, - "loc": { - "start": { - "line": 567, - "column": 24 - }, - "end": { - "line": 567, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21274, - "end": 21275, - "loc": { - "start": { - "line": 567, - "column": 29 - }, - "end": { - "line": 567, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21276, - "end": 21282, - "loc": { - "start": { - "line": 567, - "column": 31 - }, - "end": { - "line": 567, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21282, - "end": 21283, - "loc": { - "start": { - "line": 567, - "column": 37 - }, - "end": { - "line": 567, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21284, - "end": 21285, - "loc": { - "start": { - "line": 567, - "column": 39 - }, - "end": { - "line": 567, - "column": 40 - } - } - }, - { - "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": 21289, - "end": 21294, - "loc": { - "start": { - "line": 568, - "column": 2 - }, - "end": { - "line": 568, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tl", - "start": 21295, - "end": 21297, - "loc": { - "start": { - "line": 568, - "column": 8 - }, - "end": { - "line": 568, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21298, - "end": 21299, - "loc": { - "start": { - "line": 568, - "column": 11 - }, - "end": { - "line": 568, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 21300, - "end": 21304, - "loc": { - "start": { - "line": 568, - "column": 13 - }, - "end": { - "line": 568, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21304, - "end": 21305, - "loc": { - "start": { - "line": 568, - "column": 17 - }, - "end": { - "line": 568, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21305, - "end": 21320, - "loc": { - "start": { - "line": 568, - "column": 18 - }, - "end": { - "line": 568, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21320, - "end": 21321, - "loc": { - "start": { - "line": 568, - "column": 33 - }, - "end": { - "line": 568, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21321, - "end": 21326, - "loc": { - "start": { - "line": 568, - "column": 34 - }, - "end": { - "line": 568, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21326, - "end": 21327, - "loc": { - "start": { - "line": 568, - "column": 39 - }, - "end": { - "line": 568, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21328, - "end": 21334, - "loc": { - "start": { - "line": 568, - "column": 41 - }, - "end": { - "line": 568, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21334, - "end": 21335, - "loc": { - "start": { - "line": 568, - "column": 47 - }, - "end": { - "line": 568, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21336, - "end": 21337, - "loc": { - "start": { - "line": 568, - "column": 49 - }, - "end": { - "line": 568, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21338, - "end": 21341, - "loc": { - "start": { - "line": 568, - "column": 51 - }, - "end": { - "line": 568, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21341, - "end": 21342, - "loc": { - "start": { - "line": 568, - "column": 54 - }, - "end": { - "line": 568, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21343, - "end": 21348, - "loc": { - "start": { - "line": 568, - "column": 56 - }, - "end": { - "line": 568, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21348, - "end": 21349, - "loc": { - "start": { - "line": 568, - "column": 61 - }, - "end": { - "line": 568, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21349, - "end": 21350, - "loc": { - "start": { - "line": 568, - "column": 62 - }, - "end": { - "line": 568, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21350, - "end": 21351, - "loc": { - "start": { - "line": 568, - "column": 63 - }, - "end": { - "line": 568, - "column": 64 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21352, - "end": 21355, - "loc": { - "start": { - "line": 568, - "column": 65 - }, - "end": { - "line": 568, - "column": 68 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21355, - "end": 21356, - "loc": { - "start": { - "line": 568, - "column": 68 - }, - "end": { - "line": 568, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21357, - "end": 21362, - "loc": { - "start": { - "line": 568, - "column": 70 - }, - "end": { - "line": 568, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21362, - "end": 21363, - "loc": { - "start": { - "line": 568, - "column": 75 - }, - "end": { - "line": 568, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21363, - "end": 21364, - "loc": { - "start": { - "line": 568, - "column": 76 - }, - "end": { - "line": 568, - "column": 77 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21365, - "end": 21366, - "loc": { - "start": { - "line": 568, - "column": 78 - }, - "end": { - "line": 568, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21366, - "end": 21367, - "loc": { - "start": { - "line": 568, - "column": 79 - }, - "end": { - "line": 568, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21367, - "end": 21368, - "loc": { - "start": { - "line": 568, - "column": 80 - }, - "end": { - "line": 568, - "column": 81 - } - } - }, - { - "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": 21372, - "end": 21377, - "loc": { - "start": { - "line": 569, - "column": 2 - }, - "end": { - "line": 569, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tr", - "start": 21378, - "end": 21380, - "loc": { - "start": { - "line": 569, - "column": 8 - }, - "end": { - "line": 569, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21381, - "end": 21382, - "loc": { - "start": { - "line": 569, - "column": 11 - }, - "end": { - "line": 569, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 21383, - "end": 21387, - "loc": { - "start": { - "line": 569, - "column": 13 - }, - "end": { - "line": 569, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21387, - "end": 21388, - "loc": { - "start": { - "line": 569, - "column": 17 - }, - "end": { - "line": 569, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21388, - "end": 21403, - "loc": { - "start": { - "line": 569, - "column": 18 - }, - "end": { - "line": 569, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21403, - "end": 21404, - "loc": { - "start": { - "line": 569, - "column": 33 - }, - "end": { - "line": 569, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21404, - "end": 21409, - "loc": { - "start": { - "line": 569, - "column": 34 - }, - "end": { - "line": 569, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21409, - "end": 21410, - "loc": { - "start": { - "line": 569, - "column": 39 - }, - "end": { - "line": 569, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21411, - "end": 21417, - "loc": { - "start": { - "line": 569, - "column": 41 - }, - "end": { - "line": 569, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21417, - "end": 21418, - "loc": { - "start": { - "line": 569, - "column": 47 - }, - "end": { - "line": 569, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21419, - "end": 21420, - "loc": { - "start": { - "line": 569, - "column": 49 - }, - "end": { - "line": 569, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21421, - "end": 21424, - "loc": { - "start": { - "line": 569, - "column": 51 - }, - "end": { - "line": 569, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21424, - "end": 21425, - "loc": { - "start": { - "line": 569, - "column": 54 - }, - "end": { - "line": 569, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21426, - "end": 21431, - "loc": { - "start": { - "line": 569, - "column": 56 - }, - "end": { - "line": 569, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21431, - "end": 21432, - "loc": { - "start": { - "line": 569, - "column": 61 - }, - "end": { - "line": 569, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21432, - "end": 21433, - "loc": { - "start": { - "line": 569, - "column": 62 - }, - "end": { - "line": 569, - "column": 63 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21434, - "end": 21435, - "loc": { - "start": { - "line": 569, - "column": 64 - }, - "end": { - "line": 569, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21436, - "end": 21441, - "loc": { - "start": { - "line": 569, - "column": 66 - }, - "end": { - "line": 569, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21441, - "end": 21442, - "loc": { - "start": { - "line": 569, - "column": 71 - }, - "end": { - "line": 569, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 21442, - "end": 21447, - "loc": { - "start": { - "line": 569, - "column": 72 - }, - "end": { - "line": 569, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21447, - "end": 21448, - "loc": { - "start": { - "line": 569, - "column": 77 - }, - "end": { - "line": 569, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21449, - "end": 21452, - "loc": { - "start": { - "line": 569, - "column": 79 - }, - "end": { - "line": 569, - "column": 82 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21452, - "end": 21453, - "loc": { - "start": { - "line": 569, - "column": 82 - }, - "end": { - "line": 569, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21454, - "end": 21459, - "loc": { - "start": { - "line": 569, - "column": 84 - }, - "end": { - "line": 569, - "column": 89 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21459, - "end": 21460, - "loc": { - "start": { - "line": 569, - "column": 89 - }, - "end": { - "line": 569, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21460, - "end": 21461, - "loc": { - "start": { - "line": 569, - "column": 90 - }, - "end": { - "line": 569, - "column": 91 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21462, - "end": 21463, - "loc": { - "start": { - "line": 569, - "column": 92 - }, - "end": { - "line": 569, - "column": 93 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21463, - "end": 21464, - "loc": { - "start": { - "line": 569, - "column": 93 - }, - "end": { - "line": 569, - "column": 94 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21464, - "end": 21465, - "loc": { - "start": { - "line": 569, - "column": 94 - }, - "end": { - "line": 569, - "column": 95 - } - } - }, - { - "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": 21469, - "end": 21474, - "loc": { - "start": { - "line": 570, - "column": 2 - }, - "end": { - "line": 570, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bl", - "start": 21475, - "end": 21477, - "loc": { - "start": { - "line": 570, - "column": 8 - }, - "end": { - "line": 570, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21478, - "end": 21479, - "loc": { - "start": { - "line": 570, - "column": 11 - }, - "end": { - "line": 570, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 21480, - "end": 21484, - "loc": { - "start": { - "line": 570, - "column": 13 - }, - "end": { - "line": 570, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21484, - "end": 21485, - "loc": { - "start": { - "line": 570, - "column": 17 - }, - "end": { - "line": 570, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21485, - "end": 21500, - "loc": { - "start": { - "line": 570, - "column": 18 - }, - "end": { - "line": 570, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21500, - "end": 21501, - "loc": { - "start": { - "line": 570, - "column": 33 - }, - "end": { - "line": 570, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21501, - "end": 21506, - "loc": { - "start": { - "line": 570, - "column": 34 - }, - "end": { - "line": 570, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21506, - "end": 21507, - "loc": { - "start": { - "line": 570, - "column": 39 - }, - "end": { - "line": 570, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21508, - "end": 21514, - "loc": { - "start": { - "line": 570, - "column": 41 - }, - "end": { - "line": 570, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21514, - "end": 21515, - "loc": { - "start": { - "line": 570, - "column": 47 - }, - "end": { - "line": 570, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21516, - "end": 21517, - "loc": { - "start": { - "line": 570, - "column": 49 - }, - "end": { - "line": 570, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21518, - "end": 21521, - "loc": { - "start": { - "line": 570, - "column": 51 - }, - "end": { - "line": 570, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21521, - "end": 21522, - "loc": { - "start": { - "line": 570, - "column": 54 - }, - "end": { - "line": 570, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21523, - "end": 21528, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21528, - "end": 21529, - "loc": { - "start": { - "line": 570, - "column": 61 - }, - "end": { - "line": 570, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21529, - "end": 21530, - "loc": { - "start": { - "line": 570, - "column": 62 - }, - "end": { - "line": 570, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21530, - "end": 21531, - "loc": { - "start": { - "line": 570, - "column": 63 - }, - "end": { - "line": 570, - "column": 64 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21532, - "end": 21535, - "loc": { - "start": { - "line": 570, - "column": 65 - }, - "end": { - "line": 570, - "column": 68 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21535, - "end": 21536, - "loc": { - "start": { - "line": 570, - "column": 68 - }, - "end": { - "line": 570, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21537, - "end": 21542, - "loc": { - "start": { - "line": 570, - "column": 70 - }, - "end": { - "line": 570, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21542, - "end": 21543, - "loc": { - "start": { - "line": 570, - "column": 75 - }, - "end": { - "line": 570, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21543, - "end": 21544, - "loc": { - "start": { - "line": 570, - "column": 76 - }, - "end": { - "line": 570, - "column": 77 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21545, - "end": 21546, - "loc": { - "start": { - "line": 570, - "column": 78 - }, - "end": { - "line": 570, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21547, - "end": 21552, - "loc": { - "start": { - "line": 570, - "column": 80 - }, - "end": { - "line": 570, - "column": 85 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21552, - "end": 21553, - "loc": { - "start": { - "line": 570, - "column": 85 - }, - "end": { - "line": 570, - "column": 86 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 21553, - "end": 21559, - "loc": { - "start": { - "line": 570, - "column": 86 - }, - "end": { - "line": 570, - "column": 92 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21560, - "end": 21561, - "loc": { - "start": { - "line": 570, - "column": 93 - }, - "end": { - "line": 570, - "column": 94 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21561, - "end": 21562, - "loc": { - "start": { - "line": 570, - "column": 94 - }, - "end": { - "line": 570, - "column": 95 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21562, - "end": 21563, - "loc": { - "start": { - "line": 570, - "column": 95 - }, - "end": { - "line": 570, - "column": 96 - } - } - }, - { - "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": 21567, - "end": 21572, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "br", - "start": 21573, - "end": 21575, - "loc": { - "start": { - "line": 571, - "column": 8 - }, - "end": { - "line": 571, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21576, - "end": 21577, - "loc": { - "start": { - "line": 571, - "column": 11 - }, - "end": { - "line": 571, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 21578, - "end": 21582, - "loc": { - "start": { - "line": 571, - "column": 13 - }, - "end": { - "line": 571, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21582, - "end": 21583, - "loc": { - "start": { - "line": 571, - "column": 17 - }, - "end": { - "line": 571, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21583, - "end": 21598, - "loc": { - "start": { - "line": 571, - "column": 18 - }, - "end": { - "line": 571, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21598, - "end": 21599, - "loc": { - "start": { - "line": 571, - "column": 33 - }, - "end": { - "line": 571, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21599, - "end": 21604, - "loc": { - "start": { - "line": 571, - "column": 34 - }, - "end": { - "line": 571, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21604, - "end": 21605, - "loc": { - "start": { - "line": 571, - "column": 39 - }, - "end": { - "line": 571, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21606, - "end": 21612, - "loc": { - "start": { - "line": 571, - "column": 41 - }, - "end": { - "line": 571, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21612, - "end": 21613, - "loc": { - "start": { - "line": 571, - "column": 47 - }, - "end": { - "line": 571, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21614, - "end": 21615, - "loc": { - "start": { - "line": 571, - "column": 49 - }, - "end": { - "line": 571, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21616, - "end": 21619, - "loc": { - "start": { - "line": 571, - "column": 51 - }, - "end": { - "line": 571, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21619, - "end": 21620, - "loc": { - "start": { - "line": 571, - "column": 54 - }, - "end": { - "line": 571, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21621, - "end": 21626, - "loc": { - "start": { - "line": 571, - "column": 56 - }, - "end": { - "line": 571, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21626, - "end": 21627, - "loc": { - "start": { - "line": 571, - "column": 61 - }, - "end": { - "line": 571, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21627, - "end": 21628, - "loc": { - "start": { - "line": 571, - "column": 62 - }, - "end": { - "line": 571, - "column": 63 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21629, - "end": 21630, - "loc": { - "start": { - "line": 571, - "column": 64 - }, - "end": { - "line": 571, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21631, - "end": 21636, - "loc": { - "start": { - "line": 571, - "column": 66 - }, - "end": { - "line": 571, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21636, - "end": 21637, - "loc": { - "start": { - "line": 571, - "column": 71 - }, - "end": { - "line": 571, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 21637, - "end": 21642, - "loc": { - "start": { - "line": 571, - "column": 72 - }, - "end": { - "line": 571, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21642, - "end": 21643, - "loc": { - "start": { - "line": 571, - "column": 77 - }, - "end": { - "line": 571, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21644, - "end": 21647, - "loc": { - "start": { - "line": 571, - "column": 79 - }, - "end": { - "line": 571, - "column": 82 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21647, - "end": 21648, - "loc": { - "start": { - "line": 571, - "column": 82 - }, - "end": { - "line": 571, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21649, - "end": 21654, - "loc": { - "start": { - "line": 571, - "column": 84 - }, - "end": { - "line": 571, - "column": 89 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21654, - "end": 21655, - "loc": { - "start": { - "line": 571, - "column": 89 - }, - "end": { - "line": 571, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21655, - "end": 21656, - "loc": { - "start": { - "line": 571, - "column": 90 - }, - "end": { - "line": 571, - "column": 91 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21657, - "end": 21658, - "loc": { - "start": { - "line": 571, - "column": 92 - }, - "end": { - "line": 571, - "column": 93 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21659, - "end": 21664, - "loc": { - "start": { - "line": 571, - "column": 94 - }, - "end": { - "line": 571, - "column": 99 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21664, - "end": 21665, - "loc": { - "start": { - "line": 571, - "column": 99 - }, - "end": { - "line": 571, - "column": 100 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 21665, - "end": 21671, - "loc": { - "start": { - "line": 571, - "column": 100 - }, - "end": { - "line": 571, - "column": 106 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21672, - "end": 21673, - "loc": { - "start": { - "line": 571, - "column": 107 - }, - "end": { - "line": 571, - "column": 108 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21673, - "end": 21674, - "loc": { - "start": { - "line": 571, - "column": 108 - }, - "end": { - "line": 571, - "column": 109 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21674, - "end": 21675, - "loc": { - "start": { - "line": 571, - "column": 109 - }, - "end": { - "line": 571, - "column": 110 - } - } - }, - { - "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": 21679, - "end": 21684, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "center", - "start": 21685, - "end": 21691, - "loc": { - "start": { - "line": 572, - "column": 8 - }, - "end": { - "line": 572, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21692, - "end": 21693, - "loc": { - "start": { - "line": 572, - "column": 15 - }, - "end": { - "line": 572, - "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": 21694, - "end": 21698, - "loc": { - "start": { - "line": 572, - "column": 17 - }, - "end": { - "line": 572, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21698, - "end": 21699, - "loc": { - "start": { - "line": 572, - "column": 21 - }, - "end": { - "line": 572, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 21699, - "end": 21714, - "loc": { - "start": { - "line": 572, - "column": 22 - }, - "end": { - "line": 572, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21714, - "end": 21715, - "loc": { - "start": { - "line": 572, - "column": 37 - }, - "end": { - "line": 572, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21715, - "end": 21720, - "loc": { - "start": { - "line": 572, - "column": 38 - }, - "end": { - "line": 572, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21720, - "end": 21721, - "loc": { - "start": { - "line": 572, - "column": 43 - }, - "end": { - "line": 572, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 21722, - "end": 21728, - "loc": { - "start": { - "line": 572, - "column": 45 - }, - "end": { - "line": 572, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21728, - "end": 21729, - "loc": { - "start": { - "line": 572, - "column": 51 - }, - "end": { - "line": 572, - "column": 52 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21730, - "end": 21731, - "loc": { - "start": { - "line": 572, - "column": 53 - }, - "end": { - "line": 572, - "column": 54 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 21732, - "end": 21735, - "loc": { - "start": { - "line": 572, - "column": 55 - }, - "end": { - "line": 572, - "column": 58 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21735, - "end": 21736, - "loc": { - "start": { - "line": 572, - "column": 58 - }, - "end": { - "line": 572, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21737, - "end": 21742, - "loc": { - "start": { - "line": 572, - "column": 60 - }, - "end": { - "line": 572, - "column": 65 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21742, - "end": 21743, - "loc": { - "start": { - "line": 572, - "column": 65 - }, - "end": { - "line": 572, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 21743, - "end": 21744, - "loc": { - "start": { - "line": 572, - "column": 66 - }, - "end": { - "line": 572, - "column": 67 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21745, - "end": 21746, - "loc": { - "start": { - "line": 572, - "column": 68 - }, - "end": { - "line": 572, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21747, - "end": 21752, - "loc": { - "start": { - "line": 572, - "column": 70 - }, - "end": { - "line": 572, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21752, - "end": 21753, - "loc": { - "start": { - "line": 572, - "column": 75 - }, - "end": { - "line": 572, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 21753, - "end": 21758, - "loc": { - "start": { - "line": 572, - "column": 76 - }, - "end": { - "line": 572, - "column": 81 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 21759, - "end": 21760, - "loc": { - "start": { - "line": 572, - "column": 82 - }, - "end": { - "line": 572, - "column": 83 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 21761, - "end": 21762, - "loc": { - "start": { - "line": 572, - "column": 84 - }, - "end": { - "line": 572, - "column": 85 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21762, - "end": 21763, - "loc": { - "start": { - "line": 572, - "column": 85 - }, - "end": { - "line": 572, - "column": 86 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 21764, - "end": 21767, - "loc": { - "start": { - "line": 572, - "column": 87 - }, - "end": { - "line": 572, - "column": 90 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21767, - "end": 21768, - "loc": { - "start": { - "line": 572, - "column": 90 - }, - "end": { - "line": 572, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21769, - "end": 21774, - "loc": { - "start": { - "line": 572, - "column": 92 - }, - "end": { - "line": 572, - "column": 97 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21774, - "end": 21775, - "loc": { - "start": { - "line": 572, - "column": 97 - }, - "end": { - "line": 572, - "column": 98 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 21775, - "end": 21776, - "loc": { - "start": { - "line": 572, - "column": 98 - }, - "end": { - "line": 572, - "column": 99 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 21777, - "end": 21778, - "loc": { - "start": { - "line": 572, - "column": 100 - }, - "end": { - "line": 572, - "column": 101 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 21779, - "end": 21784, - "loc": { - "start": { - "line": 572, - "column": 102 - }, - "end": { - "line": 572, - "column": 107 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21784, - "end": 21785, - "loc": { - "start": { - "line": 572, - "column": 107 - }, - "end": { - "line": 572, - "column": 108 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 21785, - "end": 21791, - "loc": { - "start": { - "line": 572, - "column": 108 - }, - "end": { - "line": 572, - "column": 114 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 21792, - "end": 21793, - "loc": { - "start": { - "line": 572, - "column": 115 - }, - "end": { - "line": 572, - "column": 116 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 21794, - "end": 21795, - "loc": { - "start": { - "line": 572, - "column": 117 - }, - "end": { - "line": 572, - "column": 118 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21796, - "end": 21797, - "loc": { - "start": { - "line": 572, - "column": 119 - }, - "end": { - "line": 572, - "column": 120 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21797, - "end": 21798, - "loc": { - "start": { - "line": 572, - "column": 120 - }, - "end": { - "line": 572, - "column": 121 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21798, - "end": 21799, - "loc": { - "start": { - "line": 572, - "column": 121 - }, - "end": { - "line": 572, - "column": 122 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 21803, - "end": 21809, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 573, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21810, - "end": 21811, - "loc": { - "start": { - "line": 573, - "column": 9 - }, - "end": { - "line": 573, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "tl", - "start": 21812, - "end": 21816, - "loc": { - "start": { - "line": 573, - "column": 11 - }, - "end": { - "line": 573, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21816, - "end": 21817, - "loc": { - "start": { - "line": 573, - "column": 15 - }, - "end": { - "line": 573, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tl", - "start": 21818, - "end": 21820, - "loc": { - "start": { - "line": 573, - "column": 17 - }, - "end": { - "line": 573, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21820, - "end": 21821, - "loc": { - "start": { - "line": 573, - "column": 19 - }, - "end": { - "line": 573, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "tr", - "start": 21822, - "end": 21826, - "loc": { - "start": { - "line": 573, - "column": 21 - }, - "end": { - "line": 573, - "column": 25 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21826, - "end": 21827, - "loc": { - "start": { - "line": 573, - "column": 25 - }, - "end": { - "line": 573, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tr", - "start": 21828, - "end": 21830, - "loc": { - "start": { - "line": 573, - "column": 27 - }, - "end": { - "line": 573, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21830, - "end": 21831, - "loc": { - "start": { - "line": 573, - "column": 29 - }, - "end": { - "line": 573, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "bl", - "start": 21832, - "end": 21836, - "loc": { - "start": { - "line": 573, - "column": 31 - }, - "end": { - "line": 573, - "column": 35 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21836, - "end": 21837, - "loc": { - "start": { - "line": 573, - "column": 35 - }, - "end": { - "line": 573, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bl", - "start": 21838, - "end": 21840, - "loc": { - "start": { - "line": 573, - "column": 37 - }, - "end": { - "line": 573, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21840, - "end": 21841, - "loc": { - "start": { - "line": 573, - "column": 39 - }, - "end": { - "line": 573, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "br", - "start": 21842, - "end": 21846, - "loc": { - "start": { - "line": 573, - "column": 41 - }, - "end": { - "line": 573, - "column": 45 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21846, - "end": 21847, - "loc": { - "start": { - "line": 573, - "column": 45 - }, - "end": { - "line": 573, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "br", - "start": 21848, - "end": 21850, - "loc": { - "start": { - "line": 573, - "column": 47 - }, - "end": { - "line": 573, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21850, - "end": 21851, - "loc": { - "start": { - "line": 573, - "column": 49 - }, - "end": { - "line": 573, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "center", - "start": 21852, - "end": 21860, - "loc": { - "start": { - "line": 573, - "column": 51 - }, - "end": { - "line": 573, - "column": 59 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21860, - "end": 21861, - "loc": { - "start": { - "line": 573, - "column": 59 - }, - "end": { - "line": 573, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "center", - "start": 21862, - "end": 21868, - "loc": { - "start": { - "line": 573, - "column": 61 - }, - "end": { - "line": 573, - "column": 67 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21869, - "end": 21870, - "loc": { - "start": { - "line": 573, - "column": 68 - }, - "end": { - "line": 573, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21870, - "end": 21871, - "loc": { - "start": { - "line": 573, - "column": 69 - }, - "end": { - "line": 573, - "column": 70 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21874, - "end": 21875, - "loc": { - "start": { - "line": 574, - "column": 1 - }, - "end": { - "line": 574, - "column": 2 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21877, - "end": 21878, - "loc": { - "start": { - "line": 575, - "column": 0 - }, - "end": { - "line": 575, - "column": 1 - } - } - }, - { - "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": 21880, - "end": 21886, - "loc": { - "start": { - "line": 576, - "column": 0 - }, - "end": { - "line": 576, - "column": 6 - } - } - }, - { - "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": 21887, - "end": 21892, - "loc": { - "start": { - "line": 576, - "column": 7 - }, - "end": { - "line": 576, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "EUtils", - "start": 21893, - "end": 21899, - "loc": { - "start": { - "line": 576, - "column": 13 - }, - "end": { - "line": 576, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21900, - "end": 21901, - "loc": { - "start": { - "line": 576, - "column": 20 - }, - "end": { - "line": 576, - "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": 21902, - "end": 21905, - "loc": { - "start": { - "line": 576, - "column": 22 - }, - "end": { - "line": 576, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "EUtilsSingleton", - "start": 21906, - "end": 21921, - "loc": { - "start": { - "line": 576, - "column": 26 - }, - "end": { - "line": 576, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21921, - "end": 21922, - "loc": { - "start": { - "line": 576, - "column": 41 - }, - "end": { - "line": 576, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21922, - "end": 21923, - "loc": { - "start": { - "line": 576, - "column": 42 - }, - "end": { - "line": 576, - "column": 43 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21923, - "end": 21924, - "loc": { - "start": { - "line": 576, - "column": 43 - }, - "end": { - "line": 576, - "column": 44 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21926, - "end": 21926, - "loc": { - "start": { - "line": 577, - "column": 0 - }, - "end": { - "line": 577, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/utils.mjs.json b/docs/ast/source/utils.mjs.json deleted file mode 100644 index 9ca7fd3..0000000 --- a/docs/ast/source/utils.mjs.json +++ /dev/null @@ -1,177808 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 31955, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 804, - "column": 0 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 31955, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 804, - "column": 0 - } - }, - "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" - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class UtilsSingleton\r\n* @license Utils is free software, available under the terms of a MIT style License.\r\n* @author https://github.com/doubleactii\r\n", - "start": 53, - "end": 234, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - } - ] - }, - { - "type": "Identifier", - "start": 236, - "end": 31909, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 802, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 242, - "end": 256, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 20 - }, - "identifierName": "UtilsSingleton" - }, - "name": "UtilsSingleton", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 257, - "end": 31909, - "loc": { - "start": { - "line": 9, - "column": 21 - }, - "end": { - "line": 802, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 378, - "end": 395, - "loc": { - "start": { - "line": 15, - "column": 1 - }, - "end": { - "line": 15, - "column": 18 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 378, - "end": 389, - "loc": { - "start": { - "line": 15, - "column": 1 - }, - "end": { - "line": 15, - "column": 12 - }, - "identifierName": "transitions" - }, - "name": "transitions", - "leadingComments": null - }, - "value": { - "type": "ObjectExpression", - "start": 392, - "end": 394, - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 17 - } - }, - "properties": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Object storing all color objects being transitioned at the moment\r\n\t * @private\r\n\t * @type {Object}\r\n\t ", - "start": 261, - "end": 375, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 14, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * An array storing all the reserved unique IDS\r\n\t * @private\r\n\t * @type {Array}\r\n\t ", - "start": 398, - "end": 490, - "loc": { - "start": { - "line": 16, - "column": 1 - }, - "end": { - "line": 20, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 493, - "end": 508, - "loc": { - "start": { - "line": 21, - "column": 1 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 493, - "end": 502, - "loc": { - "start": { - "line": 21, - "column": 1 - }, - "end": { - "line": 21, - "column": 10 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs", - "leadingComments": null - }, - "value": { - "type": "ArrayExpression", - "start": 505, - "end": 507, - "loc": { - "start": { - "line": 21, - "column": 13 - }, - "end": { - "line": 21, - "column": 15 - } - }, - "elements": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * An array storing all the reserved unique IDS\r\n\t * @private\r\n\t * @type {Array}\r\n\t ", - "start": 398, - "end": 490, - "loc": { - "start": { - "line": 16, - "column": 1 - }, - "end": { - "line": 20, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 511, - "end": 552, - "loc": { - "start": { - "line": 22, - "column": 1 - }, - "end": { - "line": 24, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 555, - "end": 586, - "loc": { - "start": { - "line": 25, - "column": 1 - }, - "end": { - "line": 25, - "column": 32 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 555, - "end": 562, - "loc": { - "start": { - "line": 25, - "column": 1 - }, - "end": { - "line": 25, - "column": 8 - }, - "identifierName": "version" - }, - "name": "version", - "leadingComments": null - }, - "value": { - "type": "StringLiteral", - "start": 565, - "end": 585, - "loc": { - "start": { - "line": 25, - "column": 11 - }, - "end": { - "line": 25, - "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": 511, - "end": 552, - "loc": { - "start": { - "line": 22, - "column": 1 - }, - "end": { - "line": 24, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 589, - "end": 865, - "loc": { - "start": { - "line": 26, - "column": 1 - }, - "end": { - "line": 34, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 589, - "end": 600, - "loc": { - "start": { - "line": 26, - "column": 1 - }, - "end": { - "line": 26, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 603, - "end": 865, - "loc": { - "start": { - "line": 26, - "column": 15 - }, - "end": { - "line": 34, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 772, - "end": 799, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 35 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 772, - "end": 798, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 34 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 772, - "end": 783, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 772, - "end": 776, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 12 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 777, - "end": 783, - "loc": { - "start": { - "line": 32, - "column": 13 - }, - "end": { - "line": 32, - "column": 19 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "NewExpression", - "start": 786, - "end": 798, - "loc": { - "start": { - "line": 32, - "column": 22 - }, - "end": { - "line": 32, - "column": 34 - } - }, - "callee": { - "type": "Identifier", - "start": 790, - "end": 796, - "loc": { - "start": { - "line": 32, - "column": 26 - }, - "end": { - "line": 32, - "column": 32 - }, - "identifierName": "Logger" - }, - "name": "Logger" - }, - "arguments": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Create a logger", - "start": 614, - "end": 632, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 26 - } - } - }, - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 642, - "end": 762, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 31, - "column": 11 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 809, - "end": 861, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 809, - "end": 860, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 809, - "end": 833, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 32 - } - }, - "object": { - "type": "MemberExpression", - "start": 809, - "end": 820, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 809, - "end": 813, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 814, - "end": 820, - "loc": { - "start": { - "line": 33, - "column": 13 - }, - "end": { - "line": 33, - "column": 19 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 821, - "end": 833, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 32 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 834, - "end": 848, - "loc": { - "start": { - "line": 33, - "column": 33 - }, - "end": { - "line": 33, - "column": 47 - } - }, - "extra": { - "rawValue": "Utils-Module", - "raw": "'Utils-Module'" - }, - "value": "Utils-Module" - }, - { - "type": "StringLiteral", - "start": 850, - "end": 859, - "loc": { - "start": { - "line": 33, - "column": 49 - }, - "end": { - "line": 33, - "column": 58 - } - }, - "extra": { - "rawValue": "#ff6600", - "raw": "'#ff6600'" - }, - "value": "#ff6600" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 868, - "end": 1438, - "loc": { - "start": { - "line": 35, - "column": 1 - }, - "end": { - "line": 42, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1441, - "end": 1626, - "loc": { - "start": { - "line": 43, - "column": 1 - }, - "end": { - "line": 46, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1441, - "end": 1452, - "loc": { - "start": { - "line": 43, - "column": 1 - }, - "end": { - "line": 43, - "column": 12 - }, - "identifierName": "decimalRand" - }, - "name": "decimalRand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1453, - "end": 1458, - "loc": { - "start": { - "line": 43, - "column": 13 - }, - "end": { - "line": 43, - "column": 18 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1460, - "end": 1465, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 25 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - { - "type": "AssignmentPattern", - "start": 1467, - "end": 1478, - "loc": { - "start": { - "line": 43, - "column": 27 - }, - "end": { - "line": 43, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 1467, - "end": 1474, - "loc": { - "start": { - "line": 43, - "column": 27 - }, - "end": { - "line": 43, - "column": 34 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - }, - "right": { - "type": "NumericLiteral", - "start": 1477, - "end": 1478, - "loc": { - "start": { - "line": 43, - "column": 37 - }, - "end": { - "line": 43, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1480, - "end": 1626, - "loc": { - "start": { - "line": 43, - "column": 40 - }, - "end": { - "line": 46, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1485, - "end": 1567, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1491, - "end": 1566, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 1491, - "end": 1497, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1500, - "end": 1566, - "loc": { - "start": { - "line": 44, - "column": 17 - }, - "end": { - "line": 44, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 1500, - "end": 1506, - "loc": { - "start": { - "line": 44, - "column": 17 - }, - "end": { - "line": 44, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1507, - "end": 1565, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1507, - "end": 1556, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 73 - } - }, - "object": { - "type": "BinaryExpression", - "start": 1508, - "end": 1547, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1508, - "end": 1539, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1508, - "end": 1521, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1508, - "end": 1519, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1508, - "end": 1512, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1513, - "end": 1519, - "loc": { - "start": { - "line": 44, - "column": 30 - }, - "end": { - "line": 44, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1525, - "end": 1538, - "loc": { - "start": { - "line": 44, - "column": 42 - }, - "end": { - "line": 44, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1525, - "end": 1530, - "loc": { - "start": { - "line": 44, - "column": 42 - }, - "end": { - "line": 44, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1533, - "end": 1538, - "loc": { - "start": { - "line": 44, - "column": 50 - }, - "end": { - "line": 44, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1524 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1542, - "end": 1547, - "loc": { - "start": { - "line": 44, - "column": 59 - }, - "end": { - "line": 44, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1507 - } - }, - "property": { - "type": "Identifier", - "start": 1549, - "end": 1556, - "loc": { - "start": { - "line": 44, - "column": 66 - }, - "end": { - "line": 44, - "column": 73 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1557, - "end": 1564, - "loc": { - "start": { - "line": 44, - "column": 74 - }, - "end": { - "line": 44, - "column": 81 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1571, - "end": 1622, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 45, - "column": 53 - } - }, - "argument": { - "type": "ConditionalExpression", - "start": 1579, - "end": 1620, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 51 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1579, - "end": 1590, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 1579, - "end": 1585, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 16 - }, - "identifierName": "result" - }, - "name": "result" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 1589, - "end": 1590, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 21 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "CallExpression", - "start": 1593, - "end": 1611, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1593, - "end": 1603, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1593, - "end": 1597, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1598, - "end": 1603, - "loc": { - "start": { - "line": 45, - "column": 29 - }, - "end": { - "line": 45, - "column": 34 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1604, - "end": 1610, - "loc": { - "start": { - "line": 45, - "column": 35 - }, - "end": { - "line": 45, - "column": 41 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - }, - "alternate": { - "type": "Identifier", - "start": 1614, - "end": 1620, - "loc": { - "start": { - "line": 45, - "column": 45 - }, - "end": { - "line": 45, - "column": 51 - }, - "identifierName": "result" - }, - "name": "result" - }, - "extra": { - "parenthesized": true, - "parenStart": 1578 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 868, - "end": 1438, - "loc": { - "start": { - "line": 35, - "column": 1 - }, - "end": { - "line": 42, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1629, - "end": 2053, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 53, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2056, - "end": 2179, - "loc": { - "start": { - "line": 54, - "column": 1 - }, - "end": { - "line": 57, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2056, - "end": 2060, - "loc": { - "start": { - "line": 54, - "column": 1 - }, - "end": { - "line": 54, - "column": 5 - }, - "identifierName": "rand" - }, - "name": "rand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2061, - "end": 2066, - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 54, - "column": 11 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 2068, - "end": 2073, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 18 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - } - ], - "body": { - "type": "BlockStatement", - "start": 2075, - "end": 2179, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 57, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2080, - "end": 2145, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2086, - "end": 2144, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 2086, - "end": 2092, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 2095, - "end": 2144, - "loc": { - "start": { - "line": 55, - "column": 17 - }, - "end": { - "line": 55, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 2095, - "end": 2101, - "loc": { - "start": { - "line": 55, - "column": 17 - }, - "end": { - "line": 55, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 2103, - "end": 2142, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2103, - "end": 2134, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 2103, - "end": 2116, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2103, - "end": 2114, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 2103, - "end": 2107, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2108, - "end": 2114, - "loc": { - "start": { - "line": 55, - "column": 30 - }, - "end": { - "line": 55, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 2120, - "end": 2133, - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 2120, - "end": 2125, - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 2128, - "end": 2133, - "loc": { - "start": { - "line": 55, - "column": 50 - }, - "end": { - "line": 55, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 2119 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 2137, - "end": 2142, - "loc": { - "start": { - "line": 55, - "column": 59 - }, - "end": { - "line": 55, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 2102 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 2149, - "end": 2175, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 2156, - "end": 2174, - "loc": { - "start": { - "line": 56, - "column": 9 - }, - "end": { - "line": 56, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2156, - "end": 2166, - "loc": { - "start": { - "line": 56, - "column": 9 - }, - "end": { - "line": 56, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 2156, - "end": 2160, - "loc": { - "start": { - "line": 56, - "column": 9 - }, - "end": { - "line": 56, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2161, - "end": 2166, - "loc": { - "start": { - "line": 56, - "column": 14 - }, - "end": { - "line": 56, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2167, - "end": 2173, - "loc": { - "start": { - "line": 56, - "column": 20 - }, - "end": { - "line": 56, - "column": 26 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1629, - "end": 2053, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 53, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 2182, - "end": 2510, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 64, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2513, - "end": 2593, - "loc": { - "start": { - "line": 65, - "column": 1 - }, - "end": { - "line": 67, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2513, - "end": 2526, - "loc": { - "start": { - "line": 65, - "column": 1 - }, - "end": { - "line": 65, - "column": 14 - }, - "identifierName": "getPercentage" - }, - "name": "getPercentage", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2527, - "end": 2533, - "loc": { - "start": { - "line": 65, - "column": 15 - }, - "end": { - "line": 65, - "column": 21 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - { - "type": "Identifier", - "start": 2535, - "end": 2546, - "loc": { - "start": { - "line": 65, - "column": 23 - }, - "end": { - "line": 65, - "column": 34 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - ], - "body": { - "type": "BlockStatement", - "start": 2548, - "end": 2593, - "loc": { - "start": { - "line": 65, - "column": 36 - }, - "end": { - "line": 67, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2553, - "end": 2589, - "loc": { - "start": { - "line": 66, - "column": 2 - }, - "end": { - "line": 66, - "column": 38 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 2560, - "end": 2588, - "loc": { - "start": { - "line": 66, - "column": 9 - }, - "end": { - "line": 66, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2561, - "end": 2573, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 22 - } - }, - "left": { - "type": "NumericLiteral", - "start": 2561, - "end": 2564, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 13 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 2567, - "end": 2573, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 22 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - "extra": { - "parenthesized": true, - "parenStart": 2560 - } - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 2577, - "end": 2588, - "loc": { - "start": { - "line": 66, - "column": 26 - }, - "end": { - "line": 66, - "column": 37 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 2182, - "end": 2510, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 64, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2596, - "end": 3013, - "loc": { - "start": { - "line": 68, - "column": 1 - }, - "end": { - "line": 75, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3016, - "end": 3107, - "loc": { - "start": { - "line": 76, - "column": 1 - }, - "end": { - "line": 78, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3016, - "end": 3021, - "loc": { - "start": { - "line": 76, - "column": 1 - }, - "end": { - "line": 76, - "column": 6 - }, - "identifierName": "clamp" - }, - "name": "clamp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3022, - "end": 3029, - "loc": { - "start": { - "line": 76, - "column": 7 - }, - "end": { - "line": 76, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 3031, - "end": 3039, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 3031, - "end": 3035, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 20 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "right": { - "type": "NumericLiteral", - "start": 3038, - "end": 3039, - "loc": { - "start": { - "line": 76, - "column": 23 - }, - "end": { - "line": 76, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "AssignmentPattern", - "start": 3041, - "end": 3049, - "loc": { - "start": { - "line": 76, - "column": 26 - }, - "end": { - "line": 76, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 3041, - "end": 3045, - "loc": { - "start": { - "line": 76, - "column": 26 - }, - "end": { - "line": 76, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "right": { - "type": "NumericLiteral", - "start": 3048, - "end": 3049, - "loc": { - "start": { - "line": 76, - "column": 33 - }, - "end": { - "line": 76, - "column": 34 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 3051, - "end": 3107, - "loc": { - "start": { - "line": 76, - "column": 36 - }, - "end": { - "line": 78, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3056, - "end": 3103, - "loc": { - "start": { - "line": 77, - "column": 2 - }, - "end": { - "line": 77, - "column": 49 - } - }, - "argument": { - "type": "CallExpression", - "start": 3063, - "end": 3102, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3063, - "end": 3071, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 3063, - "end": 3067, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 3068, - "end": 3071, - "loc": { - "start": { - "line": 77, - "column": 14 - }, - "end": { - "line": 77, - "column": 17 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3072, - "end": 3076, - "loc": { - "start": { - "line": 77, - "column": 18 - }, - "end": { - "line": 77, - "column": 22 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "CallExpression", - "start": 3078, - "end": 3101, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3078, - "end": 3086, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 3078, - "end": 3082, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 3083, - "end": 3086, - "loc": { - "start": { - "line": 77, - "column": 29 - }, - "end": { - "line": 77, - "column": 32 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3087, - "end": 3094, - "loc": { - "start": { - "line": 77, - "column": 33 - }, - "end": { - "line": 77, - "column": 40 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "Identifier", - "start": 3096, - "end": 3100, - "loc": { - "start": { - "line": 77, - "column": 42 - }, - "end": { - "line": 77, - "column": 46 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2596, - "end": 3013, - "loc": { - "start": { - "line": 68, - "column": 1 - }, - "end": { - "line": 75, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 3110, - "end": 3523, - "loc": { - "start": { - "line": 79, - "column": 1 - }, - "end": { - "line": 86, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3526, - "end": 3602, - "loc": { - "start": { - "line": 87, - "column": 1 - }, - "end": { - "line": 89, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3526, - "end": 3530, - "loc": { - "start": { - "line": 87, - "column": 1 - }, - "end": { - "line": 87, - "column": 5 - }, - "identifierName": "lerp" - }, - "name": "lerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3531, - "end": 3537, - "loc": { - "start": { - "line": 87, - "column": 6 - }, - "end": { - "line": 87, - "column": 12 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3539, - "end": 3543, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 18 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3545, - "end": 3552, - "loc": { - "start": { - "line": 87, - "column": 20 - }, - "end": { - "line": 87, - "column": 27 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3554, - "end": 3602, - "loc": { - "start": { - "line": 87, - "column": 29 - }, - "end": { - "line": 89, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3559, - "end": 3598, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 88, - "column": 41 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 3566, - "end": 3597, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 40 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3566, - "end": 3584, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3567, - "end": 3576, - "loc": { - "start": { - "line": 88, - "column": 10 - }, - "end": { - "line": 88, - "column": 19 - } - }, - "left": { - "type": "NumericLiteral", - "start": 3567, - "end": 3568, - "loc": { - "start": { - "line": 88, - "column": 10 - }, - "end": { - "line": 88, - "column": 11 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 3569, - "end": 3576, - "loc": { - "start": { - "line": 88, - "column": 12 - }, - "end": { - "line": 88, - "column": 19 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "extra": { - "parenthesized": true, - "parenStart": 3566 - } - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3578, - "end": 3584, - "loc": { - "start": { - "line": 88, - "column": 21 - }, - "end": { - "line": 88, - "column": 27 - }, - "identifierName": "pStart" - }, - "name": "pStart" - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 3585, - "end": 3597, - "loc": { - "start": { - "line": 88, - "column": 28 - }, - "end": { - "line": 88, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 3585, - "end": 3592, - "loc": { - "start": { - "line": 88, - "column": 28 - }, - "end": { - "line": 88, - "column": 35 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3593, - "end": 3597, - "loc": { - "start": { - "line": 88, - "column": 36 - }, - "end": { - "line": 88, - "column": 40 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 3110, - "end": 3523, - "loc": { - "start": { - "line": 79, - "column": 1 - }, - "end": { - "line": 86, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3605, - "end": 4099, - "loc": { - "start": { - "line": 90, - "column": 1 - }, - "end": { - "line": 97, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4102, - "end": 4198, - "loc": { - "start": { - "line": 98, - "column": 1 - }, - "end": { - "line": 100, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4102, - "end": 4113, - "loc": { - "start": { - "line": 98, - "column": 1 - }, - "end": { - "line": 98, - "column": 12 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4114, - "end": 4120, - "loc": { - "start": { - "line": 98, - "column": 13 - }, - "end": { - "line": 98, - "column": 19 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 4122, - "end": 4126, - "loc": { - "start": { - "line": 98, - "column": 21 - }, - "end": { - "line": 98, - "column": 25 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 4128, - "end": 4135, - "loc": { - "start": { - "line": 98, - "column": 27 - }, - "end": { - "line": 98, - "column": 34 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 4137, - "end": 4198, - "loc": { - "start": { - "line": 98, - "column": 36 - }, - "end": { - "line": 100, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 4142, - "end": 4194, - "loc": { - "start": { - "line": 99, - "column": 2 - }, - "end": { - "line": 99, - "column": 54 - } - }, - "argument": { - "type": "CallExpression", - "start": 4149, - "end": 4193, - "loc": { - "start": { - "line": 99, - "column": 9 - }, - "end": { - "line": 99, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4149, - "end": 4159, - "loc": { - "start": { - "line": 99, - "column": 9 - }, - "end": { - "line": 99, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4149, - "end": 4153, - "loc": { - "start": { - "line": 99, - "column": 9 - }, - "end": { - "line": 99, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 4154, - "end": 4159, - "loc": { - "start": { - "line": 99, - "column": 14 - }, - "end": { - "line": 99, - "column": 19 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4160, - "end": 4192, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 52 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4160, - "end": 4169, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 4160, - "end": 4164, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 4165, - "end": 4169, - "loc": { - "start": { - "line": 99, - "column": 25 - }, - "end": { - "line": 99, - "column": 29 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4170, - "end": 4176, - "loc": { - "start": { - "line": 99, - "column": 30 - }, - "end": { - "line": 99, - "column": 36 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 4178, - "end": 4182, - "loc": { - "start": { - "line": 99, - "column": 38 - }, - "end": { - "line": 99, - "column": 42 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 4184, - "end": 4191, - "loc": { - "start": { - "line": 99, - "column": 44 - }, - "end": { - "line": 99, - "column": 51 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3605, - "end": 4099, - "loc": { - "start": { - "line": 90, - "column": 1 - }, - "end": { - "line": 97, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 4201, - "end": 4522, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 107, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4525, - "end": 4604, - "loc": { - "start": { - "line": 108, - "column": 1 - }, - "end": { - "line": 110, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4525, - "end": 4530, - "loc": { - "start": { - "line": 108, - "column": 1 - }, - "end": { - "line": 108, - "column": 6 - }, - "identifierName": "round" - }, - "name": "round", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4531, - "end": 4538, - "loc": { - "start": { - "line": 108, - "column": 7 - }, - "end": { - "line": 108, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 4540, - "end": 4548, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 4540, - "end": 4546, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 22 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "right": { - "type": "NumericLiteral", - "start": 4547, - "end": 4548, - "loc": { - "start": { - "line": 108, - "column": 23 - }, - "end": { - "line": 108, - "column": 24 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 4550, - "end": 4604, - "loc": { - "start": { - "line": 108, - "column": 26 - }, - "end": { - "line": 110, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 4555, - "end": 4600, - "loc": { - "start": { - "line": 109, - "column": 2 - }, - "end": { - "line": 109, - "column": 47 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4562, - "end": 4599, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 46 - } - }, - "left": { - "type": "CallExpression", - "start": 4562, - "end": 4590, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4562, - "end": 4572, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4562, - "end": 4566, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 4567, - "end": 4572, - "loc": { - "start": { - "line": 109, - "column": 14 - }, - "end": { - "line": 109, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 4573, - "end": 4589, - "loc": { - "start": { - "line": 109, - "column": 20 - }, - "end": { - "line": 109, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 4573, - "end": 4579, - "loc": { - "start": { - "line": 109, - "column": 20 - }, - "end": { - "line": 109, - "column": 26 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 4582, - "end": 4589, - "loc": { - "start": { - "line": 109, - "column": 29 - }, - "end": { - "line": 109, - "column": 36 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - } - } - ] - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 4593, - "end": 4599, - "loc": { - "start": { - "line": 109, - "column": 40 - }, - "end": { - "line": 109, - "column": 46 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 4201, - "end": 4522, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 107, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4607, - "end": 5089, - "loc": { - "start": { - "line": 111, - "column": 1 - }, - "end": { - "line": 119, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5092, - "end": 5202, - "loc": { - "start": { - "line": 120, - "column": 1 - }, - "end": { - "line": 123, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5092, - "end": 5101, - "loc": { - "start": { - "line": 120, - "column": 1 - }, - "end": { - "line": 120, - "column": 10 - }, - "identifierName": "normalize" - }, - "name": "normalize", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5102, - "end": 5106, - "loc": { - "start": { - "line": 120, - "column": 11 - }, - "end": { - "line": 120, - "column": 15 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5108, - "end": 5112, - "loc": { - "start": { - "line": 120, - "column": 17 - }, - "end": { - "line": 120, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5114, - "end": 5118, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 27 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 5120, - "end": 5202, - "loc": { - "start": { - "line": 120, - "column": 29 - }, - "end": { - "line": 123, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5125, - "end": 5157, - "loc": { - "start": { - "line": 121, - "column": 2 - }, - "end": { - "line": 121, - "column": 34 - } - }, - "test": { - "type": "BinaryExpression", - "start": 5129, - "end": 5146, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 23 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5129, - "end": 5140, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 5129, - "end": 5133, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 10 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5136, - "end": 5140, - "loc": { - "start": { - "line": 121, - "column": 13 - }, - "end": { - "line": 121, - "column": 17 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 5145, - "end": 5146, - "loc": { - "start": { - "line": 121, - "column": 22 - }, - "end": { - "line": 121, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 5148, - "end": 5157, - "loc": { - "start": { - "line": 121, - "column": 25 - }, - "end": { - "line": 121, - "column": 34 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 5155, - "end": 5156, - "loc": { - "start": { - "line": 121, - "column": 32 - }, - "end": { - "line": 121, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 5161, - "end": 5198, - "loc": { - "start": { - "line": 122, - "column": 2 - }, - "end": { - "line": 122, - "column": 39 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 5168, - "end": 5197, - "loc": { - "start": { - "line": 122, - "column": 9 - }, - "end": { - "line": 122, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5169, - "end": 5180, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 5169, - "end": 5173, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 14 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5176, - "end": 5180, - "loc": { - "start": { - "line": 122, - "column": 17 - }, - "end": { - "line": 122, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 5168 - } - }, - "operator": "/", - "right": { - "type": "BinaryExpression", - "start": 5185, - "end": 5196, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 5185, - "end": 5189, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5192, - "end": 5196, - "loc": { - "start": { - "line": 122, - "column": 33 - }, - "end": { - "line": 122, - "column": 37 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 5184 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4607, - "end": 5089, - "loc": { - "start": { - "line": 111, - "column": 1 - }, - "end": { - "line": 119, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.\r\n\t *\r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized and clamped value between -1 and 1 based on the input value's\r\n\t * position between the minimum and maximum values. If the difference between pMax and pMin is 0,\r\n\t * returns 1 to avoid dividing by zero.\r\n\t ", - "start": 5205, - "end": 5737, - "loc": { - "start": { - "line": 124, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5740, - "end": 5992, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 139, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5740, - "end": 5755, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 16 - }, - "identifierName": "normalizeRanged" - }, - "name": "normalizeRanged", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5756, - "end": 5760, - "loc": { - "start": { - "line": 134, - "column": 17 - }, - "end": { - "line": 134, - "column": 21 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5762, - "end": 5766, - "loc": { - "start": { - "line": 134, - "column": 23 - }, - "end": { - "line": 134, - "column": 27 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5768, - "end": 5772, - "loc": { - "start": { - "line": 134, - "column": 29 - }, - "end": { - "line": 134, - "column": 33 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 5774, - "end": 5992, - "loc": { - "start": { - "line": 134, - "column": 35 - }, - "end": { - "line": 139, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5779, - "end": 5811, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 34 - } - }, - "test": { - "type": "BinaryExpression", - "start": 5783, - "end": 5800, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 23 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5783, - "end": 5794, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 5783, - "end": 5787, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 10 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5790, - "end": 5794, - "loc": { - "start": { - "line": 135, - "column": 13 - }, - "end": { - "line": 135, - "column": 17 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 5799, - "end": 5800, - "loc": { - "start": { - "line": 135, - "column": 22 - }, - "end": { - "line": 135, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 5802, - "end": 5811, - "loc": { - "start": { - "line": 135, - "column": 25 - }, - "end": { - "line": 135, - "column": 34 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 5809, - "end": 5810, - "loc": { - "start": { - "line": 135, - "column": 32 - }, - "end": { - "line": 135, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 5815, - "end": 5885, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 136, - "column": 72 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5821, - "end": 5884, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 71 - } - }, - "id": { - "type": "Identifier", - "start": 5821, - "end": 5836, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 23 - }, - "identifierName": "normalizedValue" - }, - "name": "normalizedValue" - }, - "init": { - "type": "UnaryExpression", - "start": 5839, - "end": 5884, - "loc": { - "start": { - "line": 136, - "column": 26 - }, - "end": { - "line": 136, - "column": 71 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "BinaryExpression", - "start": 5841, - "end": 5883, - "loc": { - "start": { - "line": 136, - "column": 28 - }, - "end": { - "line": 136, - "column": 70 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5842, - "end": 5878, - "loc": { - "start": { - "line": 136, - "column": 29 - }, - "end": { - "line": 136, - "column": 65 - } - }, - "left": { - "type": "NumericLiteral", - "start": 5842, - "end": 5843, - "loc": { - "start": { - "line": 136, - "column": 29 - }, - "end": { - "line": 136, - "column": 30 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 5846, - "end": 5878, - "loc": { - "start": { - "line": 136, - "column": 33 - }, - "end": { - "line": 136, - "column": 65 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5846, - "end": 5860, - "loc": { - "start": { - "line": 136, - "column": 33 - }, - "end": { - "line": 136, - "column": 47 - } - }, - "object": { - "type": "ThisExpression", - "start": 5846, - "end": 5850, - "loc": { - "start": { - "line": 136, - "column": 33 - }, - "end": { - "line": 136, - "column": 37 - } - } - }, - "property": { - "type": "Identifier", - "start": 5851, - "end": 5860, - "loc": { - "start": { - "line": 136, - "column": 38 - }, - "end": { - "line": 136, - "column": 47 - }, - "identifierName": "normalize" - }, - "name": "normalize" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5861, - "end": 5865, - "loc": { - "start": { - "line": 136, - "column": 48 - }, - "end": { - "line": 136, - "column": 52 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5867, - "end": 5871, - "loc": { - "start": { - "line": 136, - "column": 54 - }, - "end": { - "line": 136, - "column": 58 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5873, - "end": 5877, - "loc": { - "start": { - "line": 136, - "column": 60 - }, - "end": { - "line": 136, - "column": 64 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 5841 - } - }, - "operator": "-", - "right": { - "type": "NumericLiteral", - "start": 5882, - "end": 5883, - "loc": { - "start": { - "line": 136, - "column": 69 - }, - "end": { - "line": 136, - "column": 70 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesized": true, - "parenStart": 5840 - } - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Clamp the normalized value to the range of -1 to 1", - "start": 5889, - "end": 5942, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 137, - "column": 55 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 5946, - "end": 5988, - "loc": { - "start": { - "line": 138, - "column": 2 - }, - "end": { - "line": 138, - "column": 44 - } - }, - "argument": { - "type": "CallExpression", - "start": 5953, - "end": 5987, - "loc": { - "start": { - "line": 138, - "column": 9 - }, - "end": { - "line": 138, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5953, - "end": 5963, - "loc": { - "start": { - "line": 138, - "column": 9 - }, - "end": { - "line": 138, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 5953, - "end": 5957, - "loc": { - "start": { - "line": 138, - "column": 9 - }, - "end": { - "line": 138, - "column": 13 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5958, - "end": 5963, - "loc": { - "start": { - "line": 138, - "column": 14 - }, - "end": { - "line": 138, - "column": 19 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 5964, - "end": 5979, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 35 - }, - "identifierName": "normalizedValue" - }, - "name": "normalizedValue" - }, - { - "type": "UnaryExpression", - "start": 5981, - "end": 5983, - "loc": { - "start": { - "line": 138, - "column": 37 - }, - "end": { - "line": 138, - "column": 39 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 5982, - "end": 5983, - "loc": { - "start": { - "line": 138, - "column": 38 - }, - "end": { - "line": 138, - "column": 39 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesizedArgument": false - } - }, - { - "type": "NumericLiteral", - "start": 5985, - "end": 5986, - "loc": { - "start": { - "line": 138, - "column": 41 - }, - "end": { - "line": 138, - "column": 42 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Clamp the normalized value to the range of -1 to 1", - "start": 5889, - "end": 5942, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 137, - "column": 55 - } - } - } - ] - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.\r\n\t *\r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized and clamped value between -1 and 1 based on the input value's\r\n\t * position between the minimum and maximum values. If the difference between pMax and pMin is 0,\r\n\t * returns 1 to avoid dividing by zero.\r\n\t ", - "start": 5205, - "end": 5737, - "loc": { - "start": { - "line": 124, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6392, - "end": 6462, - "loc": { - "start": { - "line": 148, - "column": 1 - }, - "end": { - "line": 150, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6392, - "end": 6398, - "loc": { - "start": { - "line": 148, - "column": 1 - }, - "end": { - "line": 148, - "column": 7 - }, - "identifierName": "within" - }, - "name": "within", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6399, - "end": 6403, - "loc": { - "start": { - "line": 148, - "column": 8 - }, - "end": { - "line": 148, - "column": 12 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 6405, - "end": 6409, - "loc": { - "start": { - "line": 148, - "column": 14 - }, - "end": { - "line": 148, - "column": 18 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 6411, - "end": 6415, - "loc": { - "start": { - "line": 148, - "column": 20 - }, - "end": { - "line": 148, - "column": 24 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 6417, - "end": 6462, - "loc": { - "start": { - "line": 148, - "column": 26 - }, - "end": { - "line": 150, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 6422, - "end": 6458, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 149, - "column": 38 - } - }, - "argument": { - "type": "LogicalExpression", - "start": 6429, - "end": 6457, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 6429, - "end": 6441, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 6429, - "end": 6433, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 13 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 149, - "column": 17 - }, - "end": { - "line": 149, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 6445, - "end": 6457, - "loc": { - "start": { - "line": 149, - "column": 25 - }, - "end": { - "line": 149, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 6445, - "end": 6449, - "loc": { - "start": { - "line": 149, - "column": 25 - }, - "end": { - "line": 149, - "column": 29 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 6453, - "end": 6457, - "loc": { - "start": { - "line": 149, - "column": 33 - }, - "end": { - "line": 149, - "column": 37 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 5996, - "end": 6389, - "loc": { - "start": { - "line": 140, - "column": 1 - }, - "end": { - "line": 147, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 6465, - "end": 6710, - "loc": { - "start": { - "line": 151, - "column": 1 - }, - "end": { - "line": 156, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6713, - "end": 6827, - "loc": { - "start": { - "line": 157, - "column": 1 - }, - "end": { - "line": 159, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6713, - "end": 6736, - "loc": { - "start": { - "line": 157, - "column": 1 - }, - "end": { - "line": 157, - "column": 24 - }, - "identifierName": "formatIntegerWithCommas" - }, - "name": "formatIntegerWithCommas", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6737, - "end": 6741, - "loc": { - "start": { - "line": 157, - "column": 25 - }, - "end": { - "line": 157, - "column": 29 - }, - "identifierName": "pNum" - }, - "name": "pNum" - } - ], - "body": { - "type": "BlockStatement", - "start": 6743, - "end": 6827, - "loc": { - "start": { - "line": 157, - "column": 31 - }, - "end": { - "line": 159, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 6748, - "end": 6823, - "loc": { - "start": { - "line": 158, - "column": 2 - }, - "end": { - "line": 158, - "column": 77 - } - }, - "argument": { - "type": "CallExpression", - "start": 6755, - "end": 6822, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6755, - "end": 6788, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 42 - } - }, - "object": { - "type": "CallExpression", - "start": 6755, - "end": 6780, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6755, - "end": 6778, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 32 - } - }, - "object": { - "type": "CallExpression", - "start": 6755, - "end": 6769, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6755, - "end": 6767, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 6755, - "end": 6759, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 13 - }, - "identifierName": "pNum" - }, - "name": "pNum" - }, - "property": { - "type": "Identifier", - "start": 6760, - "end": 6767, - "loc": { - "start": { - "line": 158, - "column": 14 - }, - "end": { - "line": 158, - "column": 21 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 6770, - "end": 6778, - "loc": { - "start": { - "line": 158, - "column": 24 - }, - "end": { - "line": 158, - "column": 32 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 6781, - "end": 6788, - "loc": { - "start": { - "line": 158, - "column": 35 - }, - "end": { - "line": 158, - "column": 42 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "RegExpLiteral", - "start": 6789, - "end": 6814, - "loc": { - "start": { - "line": 158, - "column": 43 - }, - "end": { - "line": 158, - "column": 68 - } - }, - "extra": { - "raw": "/(\\d)(?=(\\d{3})+(?!\\d))/g" - }, - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - { - "type": "StringLiteral", - "start": 6816, - "end": 6821, - "loc": { - "start": { - "line": 158, - "column": 70 - }, - "end": { - "line": 158, - "column": 75 - } - }, - "extra": { - "rawValue": "$1,", - "raw": "'$1,'" - }, - "value": "$1," - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 6465, - "end": 6710, - "loc": { - "start": { - "line": 151, - "column": 1 - }, - "end": { - "line": 156, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 6830, - "end": 6978, - "loc": { - "start": { - "line": 160, - "column": 1 - }, - "end": { - "line": 165, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6981, - "end": 7044, - "loc": { - "start": { - "line": 166, - "column": 1 - }, - "end": { - "line": 168, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6981, - "end": 6990, - "loc": { - "start": { - "line": 166, - "column": 1 - }, - "end": { - "line": 166, - "column": 10 - }, - "identifierName": "toRadians" - }, - "name": "toRadians", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6991, - "end": 6999, - "loc": { - "start": { - "line": 166, - "column": 11 - }, - "end": { - "line": 166, - "column": 19 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - } - ], - "body": { - "type": "BlockStatement", - "start": 7001, - "end": 7044, - "loc": { - "start": { - "line": 166, - "column": 21 - }, - "end": { - "line": 168, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7006, - "end": 7040, - "loc": { - "start": { - "line": 167, - "column": 2 - }, - "end": { - "line": 167, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 7013, - "end": 7039, - "loc": { - "start": { - "line": 167, - "column": 9 - }, - "end": { - "line": 167, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 7013, - "end": 7021, - "loc": { - "start": { - "line": 167, - "column": 9 - }, - "end": { - "line": 167, - "column": 17 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 7025, - "end": 7038, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 34 - } - }, - "left": { - "type": "MemberExpression", - "start": 7025, - "end": 7032, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 7025, - "end": 7029, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 25 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7030, - "end": 7032, - "loc": { - "start": { - "line": 167, - "column": 26 - }, - "end": { - "line": 167, - "column": 28 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7035, - "end": 7038, - "loc": { - "start": { - "line": 167, - "column": 31 - }, - "end": { - "line": 167, - "column": 34 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "extra": { - "parenthesized": true, - "parenStart": 7024 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 6830, - "end": 6978, - "loc": { - "start": { - "line": 160, - "column": 1 - }, - "end": { - "line": 165, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 7047, - "end": 7195, - "loc": { - "start": { - "line": 169, - "column": 1 - }, - "end": { - "line": 174, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7198, - "end": 7261, - "loc": { - "start": { - "line": 175, - "column": 1 - }, - "end": { - "line": 177, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7198, - "end": 7207, - "loc": { - "start": { - "line": 175, - "column": 1 - }, - "end": { - "line": 175, - "column": 10 - }, - "identifierName": "toDegrees" - }, - "name": "toDegrees", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7208, - "end": 7216, - "loc": { - "start": { - "line": 175, - "column": 11 - }, - "end": { - "line": 175, - "column": 19 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - } - ], - "body": { - "type": "BlockStatement", - "start": 7218, - "end": 7261, - "loc": { - "start": { - "line": 175, - "column": 21 - }, - "end": { - "line": 177, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7223, - "end": 7257, - "loc": { - "start": { - "line": 176, - "column": 2 - }, - "end": { - "line": 176, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 7230, - "end": 7256, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 7230, - "end": 7238, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 17 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 7242, - "end": 7255, - "loc": { - "start": { - "line": 176, - "column": 21 - }, - "end": { - "line": 176, - "column": 34 - } - }, - "left": { - "type": "NumericLiteral", - "start": 7242, - "end": 7245, - "loc": { - "start": { - "line": 176, - "column": 21 - }, - "end": { - "line": 176, - "column": 24 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 7248, - "end": 7255, - "loc": { - "start": { - "line": 176, - "column": 27 - }, - "end": { - "line": 176, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 7248, - "end": 7252, - "loc": { - "start": { - "line": 176, - "column": 27 - }, - "end": { - "line": 176, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7253, - "end": 7255, - "loc": { - "start": { - "line": 176, - "column": 32 - }, - "end": { - "line": 176, - "column": 34 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 7241 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 7047, - "end": 7195, - "loc": { - "start": { - "line": 169, - "column": 1 - }, - "end": { - "line": 174, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 7264, - "end": 7428, - "loc": { - "start": { - "line": 178, - "column": 1 - }, - "end": { - "line": 183, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7431, - "end": 7546, - "loc": { - "start": { - "line": 184, - "column": 1 - }, - "end": { - "line": 187, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7431, - "end": 7435, - "loc": { - "start": { - "line": 184, - "column": 1 - }, - "end": { - "line": 184, - "column": 5 - }, - "identifierName": "pick" - }, - "name": "pick", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7436, - "end": 7442, - "loc": { - "start": { - "line": 184, - "column": 6 - }, - "end": { - "line": 184, - "column": 12 - }, - "identifierName": "pArray" - }, - "name": "pArray" - } - ], - "body": { - "type": "BlockStatement", - "start": 7444, - "end": 7546, - "loc": { - "start": { - "line": 184, - "column": 14 - }, - "end": { - "line": 187, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7449, - "end": 7511, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 185, - "column": 64 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7455, - "end": 7510, - "loc": { - "start": { - "line": 185, - "column": 8 - }, - "end": { - "line": 185, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 7455, - "end": 7466, - "loc": { - "start": { - "line": 185, - "column": 8 - }, - "end": { - "line": 185, - "column": 19 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "init": { - "type": "CallExpression", - "start": 7469, - "end": 7510, - "loc": { - "start": { - "line": 185, - "column": 22 - }, - "end": { - "line": 185, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7469, - "end": 7479, - "loc": { - "start": { - "line": 185, - "column": 22 - }, - "end": { - "line": 185, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 7469, - "end": 7473, - "loc": { - "start": { - "line": 185, - "column": 22 - }, - "end": { - "line": 185, - "column": 26 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7474, - "end": 7479, - "loc": { - "start": { - "line": 185, - "column": 27 - }, - "end": { - "line": 185, - "column": 32 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7480, - "end": 7509, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 7480, - "end": 7493, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7480, - "end": 7491, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 7480, - "end": 7484, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 37 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7485, - "end": 7491, - "loc": { - "start": { - "line": 185, - "column": 38 - }, - "end": { - "line": 185, - "column": 44 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 7496, - "end": 7509, - "loc": { - "start": { - "line": 185, - "column": 49 - }, - "end": { - "line": 185, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 7496, - "end": 7502, - "loc": { - "start": { - "line": 185, - "column": 49 - }, - "end": { - "line": 185, - "column": 55 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 7503, - "end": 7509, - "loc": { - "start": { - "line": 185, - "column": 56 - }, - "end": { - "line": 185, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 7515, - "end": 7542, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 186, - "column": 29 - } - }, - "argument": { - "type": "MemberExpression", - "start": 7522, - "end": 7541, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 7522, - "end": 7528, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 15 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 7529, - "end": 7540, - "loc": { - "start": { - "line": 186, - "column": 16 - }, - "end": { - "line": 186, - "column": 27 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "computed": true - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 7264, - "end": 7428, - "loc": { - "start": { - "line": 178, - "column": 1 - }, - "end": { - "line": 183, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 7549, - "end": 7797, - "loc": { - "start": { - "line": 188, - "column": 1 - }, - "end": { - "line": 193, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7800, - "end": 8112, - "loc": { - "start": { - "line": 194, - "column": 1 - }, - "end": { - "line": 204, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7800, - "end": 7816, - "loc": { - "start": { - "line": 194, - "column": 1 - }, - "end": { - "line": 194, - "column": 17 - }, - "identifierName": "removeProperties" - }, - "name": "removeProperties", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7817, - "end": 7824, - "loc": { - "start": { - "line": 194, - "column": 18 - }, - "end": { - "line": 194, - "column": 25 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - { - "type": "Identifier", - "start": 7826, - "end": 7834, - "loc": { - "start": { - "line": 194, - "column": 27 - }, - "end": { - "line": 194, - "column": 35 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "body": { - "type": "BlockStatement", - "start": 7836, - "end": 8112, - "loc": { - "start": { - "line": 194, - "column": 37 - }, - "end": { - "line": 204, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7841, - "end": 8107, - "loc": { - "start": { - "line": 195, - "column": 2 - }, - "end": { - "line": 203, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7845, - "end": 7873, - "loc": { - "start": { - "line": 195, - "column": 6 - }, - "end": { - "line": 195, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 7845, - "end": 7860, - "loc": { - "start": { - "line": 195, - "column": 6 - }, - "end": { - "line": 195, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 7852, - "end": 7859, - "loc": { - "start": { - "line": 195, - "column": 13 - }, - "end": { - "line": 195, - "column": 20 - }, - "identifierName": "pObject" - }, - "name": "pObject", - "extra": { - "parenthesized": true, - "parenStart": 7851 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7865, - "end": 7873, - "loc": { - "start": { - "line": 195, - "column": 26 - }, - "end": { - "line": 195, - "column": 34 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7875, - "end": 8107, - "loc": { - "start": { - "line": 195, - "column": 36 - }, - "end": { - "line": 203, - "column": 3 - } - }, - "body": [ - { - "type": "ForInStatement", - "start": 7881, - "end": 8102, - "loc": { - "start": { - "line": 196, - "column": 3 - }, - "end": { - "line": 202, - "column": 4 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 7886, - "end": 7896, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7892, - "end": 7896, - "loc": { - "start": { - "line": 196, - "column": 14 - }, - "end": { - "line": 196, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 7892, - "end": 7896, - "loc": { - "start": { - "line": 196, - "column": 14 - }, - "end": { - "line": 196, - "column": 18 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "Identifier", - "start": 7900, - "end": 7907, - "loc": { - "start": { - "line": 196, - "column": 22 - }, - "end": { - "line": 196, - "column": 29 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "body": { - "type": "BlockStatement", - "start": 7909, - "end": 8102, - "loc": { - "start": { - "line": 196, - "column": 31 - }, - "end": { - "line": 202, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7955, - "end": 8020, - "loc": { - "start": { - "line": 198, - "column": 4 - }, - "end": { - "line": 198, - "column": 69 - } - }, - "test": { - "type": "LogicalExpression", - "start": 7959, - "end": 8009, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 7959, - "end": 7982, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7959, - "end": 7972, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 7959, - "end": 7964, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 13 - }, - "identifierName": "Array" - }, - "name": "Array", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7965, - "end": 7972, - "loc": { - "start": { - "line": 198, - "column": 14 - }, - "end": { - "line": 198, - "column": 21 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 7973, - "end": 7981, - "loc": { - "start": { - "line": 198, - "column": 22 - }, - "end": { - "line": 198, - "column": 30 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 7986, - "end": 8009, - "loc": { - "start": { - "line": 198, - "column": 35 - }, - "end": { - "line": 198, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7986, - "end": 8003, - "loc": { - "start": { - "line": 198, - "column": 35 - }, - "end": { - "line": 198, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 7986, - "end": 7994, - "loc": { - "start": { - "line": 198, - "column": 35 - }, - "end": { - "line": 198, - "column": 43 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - }, - "property": { - "type": "Identifier", - "start": 7995, - "end": 8003, - "loc": { - "start": { - "line": 198, - "column": 44 - }, - "end": { - "line": 198, - "column": 52 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 8004, - "end": 8008, - "loc": { - "start": { - "line": 198, - "column": 53 - }, - "end": { - "line": 198, - "column": 57 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "leadingComments": null - }, - "consequent": { - "type": "ContinueStatement", - "start": 8011, - "end": 8020, - "loc": { - "start": { - "line": 198, - "column": 60 - }, - "end": { - "line": 198, - "column": 69 - } - }, - "label": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 7916, - "end": 7949, - "loc": { - "start": { - "line": 197, - "column": 4 - }, - "end": { - "line": 197, - "column": 37 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 8026, - "end": 8096, - "loc": { - "start": { - "line": 199, - "column": 4 - }, - "end": { - "line": 201, - "column": 5 - } - }, - "test": { - "type": "CallExpression", - "start": 8030, - "end": 8058, - "loc": { - "start": { - "line": 199, - "column": 8 - }, - "end": { - "line": 199, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8030, - "end": 8052, - "loc": { - "start": { - "line": 199, - "column": 8 - }, - "end": { - "line": 199, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 8030, - "end": 8037, - "loc": { - "start": { - "line": 199, - "column": 8 - }, - "end": { - "line": 199, - "column": 15 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 8038, - "end": 8052, - "loc": { - "start": { - "line": 199, - "column": 16 - }, - "end": { - "line": 199, - "column": 30 - }, - "identifierName": "hasOwnProperty" - }, - "name": "hasOwnProperty" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 8053, - "end": 8057, - "loc": { - "start": { - "line": 199, - "column": 31 - }, - "end": { - "line": 199, - "column": 35 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 8060, - "end": 8096, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 201, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8068, - "end": 8089, - "loc": { - "start": { - "line": 200, - "column": 5 - }, - "end": { - "line": 200, - "column": 26 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 8068, - "end": 8088, - "loc": { - "start": { - "line": 200, - "column": 5 - }, - "end": { - "line": 200, - "column": 25 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 8075, - "end": 8088, - "loc": { - "start": { - "line": 200, - "column": 12 - }, - "end": { - "line": 200, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 8075, - "end": 8082, - "loc": { - "start": { - "line": 200, - "column": 12 - }, - "end": { - "line": 200, - "column": 19 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 8083, - "end": 8087, - "loc": { - "start": { - "line": 200, - "column": 20 - }, - "end": { - "line": 200, - "column": 24 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 7549, - "end": 7797, - "loc": { - "start": { - "line": 188, - "column": 1 - }, - "end": { - "line": 193, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 8115, - "end": 8434, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 211, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8437, - "end": 8645, - "loc": { - "start": { - "line": 212, - "column": 1 - }, - "end": { - "line": 221, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8437, - "end": 8441, - "loc": { - "start": { - "line": 212, - "column": 1 - }, - "end": { - "line": 212, - "column": 5 - }, - "identifierName": "prob" - }, - "name": "prob", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8442, - "end": 8449, - "loc": { - "start": { - "line": 212, - "column": 6 - }, - "end": { - "line": 212, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - ], - "body": { - "type": "BlockStatement", - "start": 8451, - "end": 8645, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 221, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 8456, - "end": 8498, - "loc": { - "start": { - "line": 213, - "column": 2 - }, - "end": { - "line": 215, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 8460, - "end": 8472, - "loc": { - "start": { - "line": 213, - "column": 6 - }, - "end": { - "line": 213, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 8460, - "end": 8467, - "loc": { - "start": { - "line": 213, - "column": 6 - }, - "end": { - "line": 213, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 8471, - "end": 8472, - "loc": { - "start": { - "line": 213, - "column": 17 - }, - "end": { - "line": 213, - "column": 18 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8474, - "end": 8498, - "loc": { - "start": { - "line": 213, - "column": 20 - }, - "end": { - "line": 215, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 8480, - "end": 8493, - "loc": { - "start": { - "line": 214, - "column": 3 - }, - "end": { - "line": 214, - "column": 16 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 8487, - "end": 8492, - "loc": { - "start": { - "line": 214, - "column": 10 - }, - "end": { - "line": 214, - "column": 15 - } - }, - "value": false - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 8502, - "end": 8545, - "loc": { - "start": { - "line": 216, - "column": 2 - }, - "end": { - "line": 218, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 8506, - "end": 8520, - "loc": { - "start": { - "line": 216, - "column": 6 - }, - "end": { - "line": 216, - "column": 20 - } - }, - "left": { - "type": "Identifier", - "start": 8506, - "end": 8513, - "loc": { - "start": { - "line": 216, - "column": 6 - }, - "end": { - "line": 216, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 8517, - "end": 8520, - "loc": { - "start": { - "line": 216, - "column": 17 - }, - "end": { - "line": 216, - "column": 20 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8522, - "end": 8545, - "loc": { - "start": { - "line": 216, - "column": 22 - }, - "end": { - "line": 218, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 8528, - "end": 8540, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 217, - "column": 15 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 8535, - "end": 8539, - "loc": { - "start": { - "line": 217, - "column": 10 - }, - "end": { - "line": 217, - "column": 14 - } - }, - "value": true - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 8549, - "end": 8606, - "loc": { - "start": { - "line": 219, - "column": 2 - }, - "end": { - "line": 219, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8555, - "end": 8605, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 8555, - "end": 8567, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 20 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "init": { - "type": "BinaryExpression", - "start": 8570, - "end": 8605, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 8570, - "end": 8601, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8570, - "end": 8580, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 8570, - "end": 8574, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8575, - "end": 8580, - "loc": { - "start": { - "line": 219, - "column": 28 - }, - "end": { - "line": 219, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 8581, - "end": 8600, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 53 - } - }, - "left": { - "type": "CallExpression", - "start": 8581, - "end": 8594, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8581, - "end": 8592, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8586, - "end": 8592, - "loc": { - "start": { - "line": 219, - "column": 39 - }, - "end": { - "line": 219, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8597, - "end": 8600, - "loc": { - "start": { - "line": 219, - "column": 50 - }, - "end": { - "line": 219, - "column": 53 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 8604, - "end": 8605, - "loc": { - "start": { - "line": 219, - "column": 57 - }, - "end": { - "line": 219, - "column": 58 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 8610, - "end": 8641, - "loc": { - "start": { - "line": 220, - "column": 2 - }, - "end": { - "line": 220, - "column": 33 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8617, - "end": 8640, - "loc": { - "start": { - "line": 220, - "column": 9 - }, - "end": { - "line": 220, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 8617, - "end": 8629, - "loc": { - "start": { - "line": 220, - "column": 9 - }, - "end": { - "line": 220, - "column": 21 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 8633, - "end": 8640, - "loc": { - "start": { - "line": 220, - "column": 25 - }, - "end": { - "line": 220, - "column": 32 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 8115, - "end": 8434, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 211, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDirection - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 8648, - "end": 8835, - "loc": { - "start": { - "line": 222, - "column": 1 - }, - "end": { - "line": 227, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8838, - "end": 9354, - "loc": { - "start": { - "line": 228, - "column": 1 - }, - "end": { - "line": 249, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8838, - "end": 8857, - "loc": { - "start": { - "line": 228, - "column": 1 - }, - "end": { - "line": 228, - "column": 20 - }, - "identifierName": "getInverseDirection" - }, - "name": "getInverseDirection", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8858, - "end": 8868, - "loc": { - "start": { - "line": 228, - "column": 21 - }, - "end": { - "line": 228, - "column": 31 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - } - ], - "body": { - "type": "BlockStatement", - "start": 8870, - "end": 9354, - "loc": { - "start": { - "line": 228, - "column": 33 - }, - "end": { - "line": 249, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 8875, - "end": 9350, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 248, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 8883, - "end": 8893, - "loc": { - "start": { - "line": 229, - "column": 10 - }, - "end": { - "line": 229, - "column": 20 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 8901, - "end": 8935, - "loc": { - "start": { - "line": 230, - "column": 3 - }, - "end": { - "line": 231, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8920, - "end": 8935, - "loc": { - "start": { - "line": 231, - "column": 4 - }, - "end": { - "line": 231, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8927, - "end": 8934, - "loc": { - "start": { - "line": 231, - "column": 11 - }, - "end": { - "line": 231, - "column": 18 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8906, - "end": 8913, - "loc": { - "start": { - "line": 230, - "column": 8 - }, - "end": { - "line": 230, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 8940, - "end": 8974, - "loc": { - "start": { - "line": 232, - "column": 3 - }, - "end": { - "line": 233, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8959, - "end": 8974, - "loc": { - "start": { - "line": 233, - "column": 4 - }, - "end": { - "line": 233, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8966, - "end": 8973, - "loc": { - "start": { - "line": 233, - "column": 11 - }, - "end": { - "line": 233, - "column": 18 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8945, - "end": 8952, - "loc": { - "start": { - "line": 232, - "column": 8 - }, - "end": { - "line": 232, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 8979, - "end": 9011, - "loc": { - "start": { - "line": 234, - "column": 3 - }, - "end": { - "line": 235, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8997, - "end": 9011, - "loc": { - "start": { - "line": 235, - "column": 4 - }, - "end": { - "line": 235, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9004, - "end": 9010, - "loc": { - "start": { - "line": 235, - "column": 11 - }, - "end": { - "line": 235, - "column": 17 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8984, - "end": 8990, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 234, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 9016, - "end": 9048, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 237, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9034, - "end": 9048, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9041, - "end": 9047, - "loc": { - "start": { - "line": 237, - "column": 11 - }, - "end": { - "line": 237, - "column": 17 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9021, - "end": 9027, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 9053, - "end": 9095, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9076, - "end": 9095, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9083, - "end": 9094, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 22 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9058, - "end": 9069, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 9100, - "end": 9142, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9123, - "end": 9142, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9130, - "end": 9141, - "loc": { - "start": { - "line": 241, - "column": 11 - }, - "end": { - "line": 241, - "column": 22 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9105, - "end": 9116, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 9147, - "end": 9189, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 243, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9170, - "end": 9189, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9177, - "end": 9188, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 22 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9152, - "end": 9163, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 9194, - "end": 9236, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9217, - "end": 9236, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9224, - "end": 9235, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 22 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9199, - "end": 9210, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 9241, - "end": 9345, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 247, - "column": 94 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 9255, - "end": 9345, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 94 - } - }, - "expression": { - "type": "CallExpression", - "start": 9255, - "end": 9344, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 93 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9255, - "end": 9295, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 44 - } - }, - "object": { - "type": "CallExpression", - "start": 9255, - "end": 9289, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9255, - "end": 9273, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 9255, - "end": 9266, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 15 - } - }, - "object": { - "type": "ThisExpression", - "start": 9255, - "end": 9259, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 8 - } - } - }, - "property": { - "type": "Identifier", - "start": 9260, - "end": 9266, - "loc": { - "start": { - "line": 247, - "column": 9 - }, - "end": { - "line": 247, - "column": 15 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9267, - "end": 9273, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 22 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 9274, - "end": 9288, - "loc": { - "start": { - "line": 247, - "column": 23 - }, - "end": { - "line": 247, - "column": 37 - } - }, - "extra": { - "rawValue": "Utils-Module", - "raw": "'Utils-Module'" - }, - "value": "Utils-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 9290, - "end": 9295, - "loc": { - "start": { - "line": 247, - "column": 39 - }, - "end": { - "line": 247, - "column": 44 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 9296, - "end": 9343, - "loc": { - "start": { - "line": 247, - "column": 45 - }, - "end": { - "line": 247, - "column": 92 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 9313, - "end": 9323, - "loc": { - "start": { - "line": 247, - "column": 62 - }, - "end": { - "line": 247, - "column": 72 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 9297, - "end": 9311, - "loc": { - "start": { - "line": 247, - "column": 46 - }, - "end": { - "line": 247, - "column": 60 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 9324, - "end": 9342, - "loc": { - "start": { - "line": 247, - "column": 73 - }, - "end": { - "line": 247, - "column": 91 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDirection - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 8648, - "end": 8835, - "loc": { - "start": { - "line": 222, - "column": 1 - }, - "end": { - "line": 227, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDirection - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 9357, - "end": 9668, - "loc": { - "start": { - "line": 250, - "column": 1 - }, - "end": { - "line": 256, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9671, - "end": 10256, - "loc": { - "start": { - "line": 257, - "column": 1 - }, - "end": { - "line": 278, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9671, - "end": 9692, - "loc": { - "start": { - "line": 257, - "column": 1 - }, - "end": { - "line": 257, - "column": 22 - }, - "identifierName": "getAngleFromDirection" - }, - "name": "getAngleFromDirection", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 9693, - "end": 9703, - "loc": { - "start": { - "line": 257, - "column": 23 - }, - "end": { - "line": 257, - "column": 33 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - } - ], - "body": { - "type": "BlockStatement", - "start": 9705, - "end": 10256, - "loc": { - "start": { - "line": 257, - "column": 35 - }, - "end": { - "line": 278, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 9710, - "end": 10252, - "loc": { - "start": { - "line": 258, - "column": 2 - }, - "end": { - "line": 277, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 9718, - "end": 9728, - "loc": { - "start": { - "line": 258, - "column": 10 - }, - "end": { - "line": 258, - "column": 20 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 9736, - "end": 9774, - "loc": { - "start": { - "line": 259, - "column": 3 - }, - "end": { - "line": 260, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9755, - "end": 9774, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 260, - "column": 23 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9762, - "end": 9773, - "loc": { - "start": { - "line": 260, - "column": 11 - }, - "end": { - "line": 260, - "column": 22 - } - }, - "left": { - "type": "MemberExpression", - "start": 9762, - "end": 9769, - "loc": { - "start": { - "line": 260, - "column": 11 - }, - "end": { - "line": 260, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 9762, - "end": 9766, - "loc": { - "start": { - "line": 260, - "column": 11 - }, - "end": { - "line": 260, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9767, - "end": 9769, - "loc": { - "start": { - "line": 260, - "column": 16 - }, - "end": { - "line": 260, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 9772, - "end": 9773, - "loc": { - "start": { - "line": 260, - "column": 21 - }, - "end": { - "line": 260, - "column": 22 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9741, - "end": 9748, - "loc": { - "start": { - "line": 259, - "column": 8 - }, - "end": { - "line": 259, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 9779, - "end": 9823, - "loc": { - "start": { - "line": 261, - "column": 3 - }, - "end": { - "line": 262, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9798, - "end": 9823, - "loc": { - "start": { - "line": 262, - "column": 4 - }, - "end": { - "line": 262, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9805, - "end": 9822, - "loc": { - "start": { - "line": 262, - "column": 11 - }, - "end": { - "line": 262, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 9806, - "end": 9817, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 9806, - "end": 9813, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 9806, - "end": 9810, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9811, - "end": 9813, - "loc": { - "start": { - "line": 262, - "column": 17 - }, - "end": { - "line": 262, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 9816, - "end": 9817, - "loc": { - "start": { - "line": 262, - "column": 22 - }, - "end": { - "line": 262, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 9805 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 9821, - "end": 9822, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 262, - "column": 28 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - }, - "trailingComments": null - } - ], - "test": { - "type": "StringLiteral", - "start": 9784, - "end": 9791, - "loc": { - "start": { - "line": 261, - "column": 8 - }, - "end": { - "line": 261, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Corrected to 270 degrees in radians", - "start": 9824, - "end": 9862, - "loc": { - "start": { - "line": 262, - "column": 30 - }, - "end": { - "line": 262, - "column": 68 - } - } - } - ] - }, - { - "type": "SwitchCase", - "start": 9867, - "end": 9894, - "loc": { - "start": { - "line": 263, - "column": 3 - }, - "end": { - "line": 264, - "column": 13 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9885, - "end": 9894, - "loc": { - "start": { - "line": 264, - "column": 4 - }, - "end": { - "line": 264, - "column": 13 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 9892, - "end": 9893, - "loc": { - "start": { - "line": 264, - "column": 11 - }, - "end": { - "line": 264, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9872, - "end": 9878, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east", - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Corrected to 270 degrees in radians", - "start": 9824, - "end": 9862, - "loc": { - "start": { - "line": 262, - "column": 30 - }, - "end": { - "line": 262, - "column": 68 - } - } - } - ] - }, - { - "type": "SwitchCase", - "start": 9899, - "end": 9932, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 266, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9917, - "end": 9932, - "loc": { - "start": { - "line": 266, - "column": 4 - }, - "end": { - "line": 266, - "column": 19 - } - }, - "argument": { - "type": "MemberExpression", - "start": 9924, - "end": 9931, - "loc": { - "start": { - "line": 266, - "column": 11 - }, - "end": { - "line": 266, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 9924, - "end": 9928, - "loc": { - "start": { - "line": 266, - "column": 11 - }, - "end": { - "line": 266, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9929, - "end": 9931, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9904, - "end": 9910, - "loc": { - "start": { - "line": 265, - "column": 8 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 9937, - "end": 9985, - "loc": { - "start": { - "line": 267, - "column": 3 - }, - "end": { - "line": 268, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9960, - "end": 9985, - "loc": { - "start": { - "line": 268, - "column": 4 - }, - "end": { - "line": 268, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9967, - "end": 9984, - "loc": { - "start": { - "line": 268, - "column": 11 - }, - "end": { - "line": 268, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 9968, - "end": 9979, - "loc": { - "start": { - "line": 268, - "column": 12 - }, - "end": { - "line": 268, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 9968, - "end": 9975, - "loc": { - "start": { - "line": 268, - "column": 12 - }, - "end": { - "line": 268, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 9968, - "end": 9972, - "loc": { - "start": { - "line": 268, - "column": 12 - }, - "end": { - "line": 268, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9973, - "end": 9975, - "loc": { - "start": { - "line": 268, - "column": 17 - }, - "end": { - "line": 268, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 9978, - "end": 9979, - "loc": { - "start": { - "line": 268, - "column": 22 - }, - "end": { - "line": 268, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 9967 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 9983, - "end": 9984, - "loc": { - "start": { - "line": 268, - "column": 27 - }, - "end": { - "line": 268, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9942, - "end": 9953, - "loc": { - "start": { - "line": 267, - "column": 8 - }, - "end": { - "line": 267, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 9990, - "end": 10032, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 270, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 10013, - "end": 10032, - "loc": { - "start": { - "line": 270, - "column": 4 - }, - "end": { - "line": 270, - "column": 23 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 10020, - "end": 10031, - "loc": { - "start": { - "line": 270, - "column": 11 - }, - "end": { - "line": 270, - "column": 22 - } - }, - "left": { - "type": "MemberExpression", - "start": 10020, - "end": 10027, - "loc": { - "start": { - "line": 270, - "column": 11 - }, - "end": { - "line": 270, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10020, - "end": 10024, - "loc": { - "start": { - "line": 270, - "column": 11 - }, - "end": { - "line": 270, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10025, - "end": 10027, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10030, - "end": 10031, - "loc": { - "start": { - "line": 270, - "column": 21 - }, - "end": { - "line": 270, - "column": 22 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9995, - "end": 10006, - "loc": { - "start": { - "line": 269, - "column": 8 - }, - "end": { - "line": 269, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 10037, - "end": 10085, - "loc": { - "start": { - "line": 271, - "column": 3 - }, - "end": { - "line": 272, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 10060, - "end": 10085, - "loc": { - "start": { - "line": 272, - "column": 4 - }, - "end": { - "line": 272, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 10067, - "end": 10084, - "loc": { - "start": { - "line": 272, - "column": 11 - }, - "end": { - "line": 272, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10068, - "end": 10079, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 10068, - "end": 10075, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 10068, - "end": 10072, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10073, - "end": 10075, - "loc": { - "start": { - "line": 272, - "column": 17 - }, - "end": { - "line": 272, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 10078, - "end": 10079, - "loc": { - "start": { - "line": 272, - "column": 22 - }, - "end": { - "line": 272, - "column": 23 - } - }, - "extra": { - "rawValue": 5, - "raw": "5" - }, - "value": 5 - }, - "extra": { - "parenthesized": true, - "parenStart": 10067 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10083, - "end": 10084, - "loc": { - "start": { - "line": 272, - "column": 27 - }, - "end": { - "line": 272, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 10042, - "end": 10053, - "loc": { - "start": { - "line": 271, - "column": 8 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 10090, - "end": 10138, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 274, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 10113, - "end": 10138, - "loc": { - "start": { - "line": 274, - "column": 4 - }, - "end": { - "line": 274, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 10120, - "end": 10137, - "loc": { - "start": { - "line": 274, - "column": 11 - }, - "end": { - "line": 274, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10121, - "end": 10132, - "loc": { - "start": { - "line": 274, - "column": 12 - }, - "end": { - "line": 274, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 10121, - "end": 10128, - "loc": { - "start": { - "line": 274, - "column": 12 - }, - "end": { - "line": 274, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 10121, - "end": 10125, - "loc": { - "start": { - "line": 274, - "column": 12 - }, - "end": { - "line": 274, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10126, - "end": 10128, - "loc": { - "start": { - "line": 274, - "column": 17 - }, - "end": { - "line": 274, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 10131, - "end": 10132, - "loc": { - "start": { - "line": 274, - "column": 22 - }, - "end": { - "line": 274, - "column": 23 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - }, - "extra": { - "parenthesized": true, - "parenStart": 10120 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10136, - "end": 10137, - "loc": { - "start": { - "line": 274, - "column": 27 - }, - "end": { - "line": 274, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 10095, - "end": 10106, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 10143, - "end": 10247, - "loc": { - "start": { - "line": 275, - "column": 3 - }, - "end": { - "line": 276, - "column": 94 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 10157, - "end": 10247, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 94 - } - }, - "expression": { - "type": "CallExpression", - "start": 10157, - "end": 10246, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 93 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10157, - "end": 10197, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 44 - } - }, - "object": { - "type": "CallExpression", - "start": 10157, - "end": 10191, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10157, - "end": 10175, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 10157, - "end": 10168, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 15 - } - }, - "object": { - "type": "ThisExpression", - "start": 10157, - "end": 10161, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 8 - } - } - }, - "property": { - "type": "Identifier", - "start": 10162, - "end": 10168, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 15 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 10169, - "end": 10175, - "loc": { - "start": { - "line": 276, - "column": 16 - }, - "end": { - "line": 276, - "column": 22 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 10176, - "end": 10190, - "loc": { - "start": { - "line": 276, - "column": 23 - }, - "end": { - "line": 276, - "column": 37 - } - }, - "extra": { - "rawValue": "Utils-Module", - "raw": "'Utils-Module'" - }, - "value": "Utils-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 10192, - "end": 10197, - "loc": { - "start": { - "line": 276, - "column": 39 - }, - "end": { - "line": 276, - "column": 44 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 10198, - "end": 10245, - "loc": { - "start": { - "line": 276, - "column": 45 - }, - "end": { - "line": 276, - "column": 92 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 10215, - "end": 10225, - "loc": { - "start": { - "line": 276, - "column": 62 - }, - "end": { - "line": 276, - "column": 72 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 10199, - "end": 10213, - "loc": { - "start": { - "line": 276, - "column": 46 - }, - "end": { - "line": 276, - "column": 60 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 10226, - "end": 10244, - "loc": { - "start": { - "line": 276, - "column": 73 - }, - "end": { - "line": 276, - "column": 91 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDirection - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 9357, - "end": 9668, - "loc": { - "start": { - "line": 250, - "column": 1 - }, - "end": { - "line": 256, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Centers a rectangle (defined by its dimensions) within a parent rectangle.\r\n\t *\r\n\t * @param {number} pChildWidth - The width of the child rectangle.\r\n\t * @param {number} pChildHeight - The height of the child rectangle.\r\n\t * @param {number} pParentWidth - The width of the parent rectangle.\r\n\t * @param {number} pParentHeight - The height of the parent rectangle.\r\n\t * @param {number} pParentX - The x-coordinate of the parent rectangle.\r\n\t * @param {number} pParentY - The y-coordinate of the parent rectangle.\r\n\t * @returns {Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.\r\n\t *\r\n\t * @example\r\n\t * const childWidth = 50;\r\n\t * const childHeight = 30;\r\n\t * const parentWidth = 100;\r\n\t * const parentHeight = 80;\r\n\t * const parentX = 20;\r\n\t * const parentY = 10;\r\n\t * const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);\r\n\t * // Returns {x: 45, y: 35}\r\n\t ", - "start": 10259, - "end": 11251, - "loc": { - "start": { - "line": 279, - "column": 1 - }, - "end": { - "line": 299, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11254, - "end": 11531, - "loc": { - "start": { - "line": 300, - "column": 1 - }, - "end": { - "line": 304, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11254, - "end": 11277, - "loc": { - "start": { - "line": 300, - "column": 1 - }, - "end": { - "line": 300, - "column": 24 - }, - "identifierName": "centerRectangleOnParent" - }, - "name": "centerRectangleOnParent", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11278, - "end": 11289, - "loc": { - "start": { - "line": 300, - "column": 25 - }, - "end": { - "line": 300, - "column": 36 - }, - "identifierName": "pChildWidth" - }, - "name": "pChildWidth" - }, - { - "type": "Identifier", - "start": 11291, - "end": 11303, - "loc": { - "start": { - "line": 300, - "column": 38 - }, - "end": { - "line": 300, - "column": 50 - }, - "identifierName": "pChildHeight" - }, - "name": "pChildHeight" - }, - { - "type": "Identifier", - "start": 11305, - "end": 11317, - "loc": { - "start": { - "line": 300, - "column": 52 - }, - "end": { - "line": 300, - "column": 64 - }, - "identifierName": "pParentWidth" - }, - "name": "pParentWidth" - }, - { - "type": "Identifier", - "start": 11319, - "end": 11332, - "loc": { - "start": { - "line": 300, - "column": 66 - }, - "end": { - "line": 300, - "column": 79 - }, - "identifierName": "pParentHeight" - }, - "name": "pParentHeight" - }, - { - "type": "Identifier", - "start": 11334, - "end": 11342, - "loc": { - "start": { - "line": 300, - "column": 81 - }, - "end": { - "line": 300, - "column": 89 - }, - "identifierName": "pParentX" - }, - "name": "pParentX" - }, - { - "type": "Identifier", - "start": 11344, - "end": 11352, - "loc": { - "start": { - "line": 300, - "column": 91 - }, - "end": { - "line": 300, - "column": 99 - }, - "identifierName": "pParentY" - }, - "name": "pParentY" - } - ], - "body": { - "type": "BlockStatement", - "start": 11354, - "end": 11531, - "loc": { - "start": { - "line": 300, - "column": 101 - }, - "end": { - "line": 304, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 11359, - "end": 11421, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 64 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11365, - "end": 11420, - "loc": { - "start": { - "line": 301, - "column": 8 - }, - "end": { - "line": 301, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 11365, - "end": 11372, - "loc": { - "start": { - "line": 301, - "column": 8 - }, - "end": { - "line": 301, - "column": 15 - }, - "identifierName": "centerX" - }, - "name": "centerX" - }, - "init": { - "type": "BinaryExpression", - "start": 11375, - "end": 11420, - "loc": { - "start": { - "line": 301, - "column": 18 - }, - "end": { - "line": 301, - "column": 63 - } - }, - "left": { - "type": "Identifier", - "start": 11375, - "end": 11383, - "loc": { - "start": { - "line": 301, - "column": 18 - }, - "end": { - "line": 301, - "column": 26 - }, - "identifierName": "pParentX" - }, - "name": "pParentX" - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 11387, - "end": 11419, - "loc": { - "start": { - "line": 301, - "column": 30 - }, - "end": { - "line": 301, - "column": 62 - } - }, - "left": { - "type": "BinaryExpression", - "start": 11388, - "end": 11414, - "loc": { - "start": { - "line": 301, - "column": 31 - }, - "end": { - "line": 301, - "column": 57 - } - }, - "left": { - "type": "Identifier", - "start": 11388, - "end": 11400, - "loc": { - "start": { - "line": 301, - "column": 31 - }, - "end": { - "line": 301, - "column": 43 - }, - "identifierName": "pParentWidth" - }, - "name": "pParentWidth" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 11403, - "end": 11414, - "loc": { - "start": { - "line": 301, - "column": 46 - }, - "end": { - "line": 301, - "column": 57 - }, - "identifierName": "pChildWidth" - }, - "name": "pChildWidth" - }, - "extra": { - "parenthesized": true, - "parenStart": 11387 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 11418, - "end": 11419, - "loc": { - "start": { - "line": 301, - "column": 61 - }, - "end": { - "line": 301, - "column": 62 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 11386 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11425, - "end": 11489, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 66 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11431, - "end": 11488, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 65 - } - }, - "id": { - "type": "Identifier", - "start": 11431, - "end": 11438, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 15 - }, - "identifierName": "centerY" - }, - "name": "centerY" - }, - "init": { - "type": "BinaryExpression", - "start": 11441, - "end": 11488, - "loc": { - "start": { - "line": 302, - "column": 18 - }, - "end": { - "line": 302, - "column": 65 - } - }, - "left": { - "type": "Identifier", - "start": 11441, - "end": 11449, - "loc": { - "start": { - "line": 302, - "column": 18 - }, - "end": { - "line": 302, - "column": 26 - }, - "identifierName": "pParentY" - }, - "name": "pParentY" - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 11453, - "end": 11487, - "loc": { - "start": { - "line": 302, - "column": 30 - }, - "end": { - "line": 302, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 11454, - "end": 11482, - "loc": { - "start": { - "line": 302, - "column": 31 - }, - "end": { - "line": 302, - "column": 59 - } - }, - "left": { - "type": "Identifier", - "start": 11454, - "end": 11467, - "loc": { - "start": { - "line": 302, - "column": 31 - }, - "end": { - "line": 302, - "column": 44 - }, - "identifierName": "pParentHeight" - }, - "name": "pParentHeight" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 11470, - "end": 11482, - "loc": { - "start": { - "line": 302, - "column": 47 - }, - "end": { - "line": 302, - "column": 59 - }, - "identifierName": "pChildHeight" - }, - "name": "pChildHeight" - }, - "extra": { - "parenthesized": true, - "parenStart": 11453 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 11486, - "end": 11487, - "loc": { - "start": { - "line": 302, - "column": 63 - }, - "end": { - "line": 302, - "column": 64 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 11452 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 11493, - "end": 11527, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 36 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 11500, - "end": 11526, - "loc": { - "start": { - "line": 303, - "column": 9 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11502, - "end": 11512, - "loc": { - "start": { - "line": 303, - "column": 11 - }, - "end": { - "line": 303, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11502, - "end": 11503, - "loc": { - "start": { - "line": 303, - "column": 11 - }, - "end": { - "line": 303, - "column": 12 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "Identifier", - "start": 11505, - "end": 11512, - "loc": { - "start": { - "line": 303, - "column": 14 - }, - "end": { - "line": 303, - "column": 21 - }, - "identifierName": "centerX" - }, - "name": "centerX" - } - }, - { - "type": "ObjectProperty", - "start": 11514, - "end": 11524, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11514, - "end": 11515, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "Identifier", - "start": 11517, - "end": 11524, - "loc": { - "start": { - "line": 303, - "column": 26 - }, - "end": { - "line": 303, - "column": 33 - }, - "identifierName": "centerY" - }, - "name": "centerY" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Centers a rectangle (defined by its dimensions) within a parent rectangle.\r\n\t *\r\n\t * @param {number} pChildWidth - The width of the child rectangle.\r\n\t * @param {number} pChildHeight - The height of the child rectangle.\r\n\t * @param {number} pParentWidth - The width of the parent rectangle.\r\n\t * @param {number} pParentHeight - The height of the parent rectangle.\r\n\t * @param {number} pParentX - The x-coordinate of the parent rectangle.\r\n\t * @param {number} pParentY - The y-coordinate of the parent rectangle.\r\n\t * @returns {Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.\r\n\t *\r\n\t * @example\r\n\t * const childWidth = 50;\r\n\t * const childHeight = 30;\r\n\t * const parentWidth = 100;\r\n\t * const parentHeight = 80;\r\n\t * const parentX = 20;\r\n\t * const parentY = 10;\r\n\t * const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);\r\n\t * // Returns {x: 45, y: 35}\r\n\t ", - "start": 10259, - "end": 11251, - "loc": { - "start": { - "line": 279, - "column": 1 - }, - "end": { - "line": 299, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random angle in radians.\r\n\t * @returns {number} A random angle in radians.\r\n\t ", - "start": 11534, - "end": 11635, - "loc": { - "start": { - "line": 305, - "column": 1 - }, - "end": { - "line": 308, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11638, - "end": 11750, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 311, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11638, - "end": 11652, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 309, - "column": 15 - }, - "identifierName": "getRandomAngle" - }, - "name": "getRandomAngle", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 11655, - "end": 11750, - "loc": { - "start": { - "line": 309, - "column": 18 - }, - "end": { - "line": 311, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 11660, - "end": 11697, - "loc": { - "start": { - "line": 310, - "column": 2 - }, - "end": { - "line": 310, - "column": 39 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 11667, - "end": 11696, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 38 - } - }, - "left": { - "type": "CallExpression", - "start": 11667, - "end": 11680, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11667, - "end": 11678, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 11667, - "end": 11671, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 11672, - "end": 11678, - "loc": { - "start": { - "line": 310, - "column": 14 - }, - "end": { - "line": 310, - "column": 20 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 11684, - "end": 11695, - "loc": { - "start": { - "line": 310, - "column": 26 - }, - "end": { - "line": 310, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 11684, - "end": 11691, - "loc": { - "start": { - "line": 310, - "column": 26 - }, - "end": { - "line": 310, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 11684, - "end": 11688, - "loc": { - "start": { - "line": 310, - "column": 26 - }, - "end": { - "line": 310, - "column": 30 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 11689, - "end": 11691, - "loc": { - "start": { - "line": 310, - "column": 31 - }, - "end": { - "line": 310, - "column": 33 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 11694, - "end": 11695, - "loc": { - "start": { - "line": 310, - "column": 36 - }, - "end": { - "line": 310, - "column": 37 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 11683 - } - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Random value between 0 and 2*pi (360 degrees)", - "start": 11698, - "end": 11746, - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 88 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random angle in radians.\r\n\t * @returns {number} A random angle in radians.\r\n\t ", - "start": 11534, - "end": 11635, - "loc": { - "start": { - "line": 305, - "column": 1 - }, - "end": { - "line": 308, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 11753, - "end": 11992, - "loc": { - "start": { - "line": 312, - "column": 1 - }, - "end": { - "line": 318, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11995, - "end": 12145, - "loc": { - "start": { - "line": 319, - "column": 1 - }, - "end": { - "line": 323, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11995, - "end": 12003, - "loc": { - "start": { - "line": 319, - "column": 1 - }, - "end": { - "line": 319, - "column": 9 - }, - "identifierName": "getAngle" - }, - "name": "getAngle", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12004, - "end": 12015, - "loc": { - "start": { - "line": 319, - "column": 10 - }, - "end": { - "line": 319, - "column": 21 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - { - "type": "Identifier", - "start": 12017, - "end": 12026, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 32 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 12028, - "end": 12145, - "loc": { - "start": { - "line": 319, - "column": 34 - }, - "end": { - "line": 323, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 12033, - "end": 12071, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 320, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12039, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 12039, - "end": 12040, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 12043, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 12 - }, - "end": { - "line": 320, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 12043, - "end": 12056, - "loc": { - "start": { - "line": 320, - "column": 12 - }, - "end": { - "line": 320, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 12043, - "end": 12054, - "loc": { - "start": { - "line": 320, - "column": 12 - }, - "end": { - "line": 320, - "column": 23 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 12055, - "end": 12056, - "loc": { - "start": { - "line": 320, - "column": 24 - }, - "end": { - "line": 320, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12059, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 28 - }, - "end": { - "line": 320, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12059, - "end": 12068, - "loc": { - "start": { - "line": 320, - "column": 28 - }, - "end": { - "line": 320, - "column": 37 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 12069, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 38 - }, - "end": { - "line": 320, - "column": 39 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 12075, - "end": 12113, - "loc": { - "start": { - "line": 321, - "column": 2 - }, - "end": { - "line": 321, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12081, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 8 - }, - "end": { - "line": 321, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 12081, - "end": 12082, - "loc": { - "start": { - "line": 321, - "column": 8 - }, - "end": { - "line": 321, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "BinaryExpression", - "start": 12085, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 12 - }, - "end": { - "line": 321, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 12085, - "end": 12098, - "loc": { - "start": { - "line": 321, - "column": 12 - }, - "end": { - "line": 321, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 12085, - "end": 12096, - "loc": { - "start": { - "line": 321, - "column": 12 - }, - "end": { - "line": 321, - "column": 23 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 12097, - "end": 12098, - "loc": { - "start": { - "line": 321, - "column": 24 - }, - "end": { - "line": 321, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12101, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 28 - }, - "end": { - "line": 321, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12101, - "end": 12110, - "loc": { - "start": { - "line": 321, - "column": 28 - }, - "end": { - "line": 321, - "column": 37 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 12111, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 38 - }, - "end": { - "line": 321, - "column": 39 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 12117, - "end": 12141, - "loc": { - "start": { - "line": 322, - "column": 2 - }, - "end": { - "line": 322, - "column": 26 - } - }, - "argument": { - "type": "CallExpression", - "start": 12124, - "end": 12140, - "loc": { - "start": { - "line": 322, - "column": 9 - }, - "end": { - "line": 322, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12124, - "end": 12134, - "loc": { - "start": { - "line": 322, - "column": 9 - }, - "end": { - "line": 322, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 12124, - "end": 12128, - "loc": { - "start": { - "line": 322, - "column": 9 - }, - "end": { - "line": 322, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 12129, - "end": 12134, - "loc": { - "start": { - "line": 322, - "column": 14 - }, - "end": { - "line": 322, - "column": 19 - }, - "identifierName": "atan2" - }, - "name": "atan2" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 12135, - "end": 12136, - "loc": { - "start": { - "line": 322, - "column": 20 - }, - "end": { - "line": 322, - "column": 21 - }, - "identifierName": "y" - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 12138, - "end": 12139, - "loc": { - "start": { - "line": 322, - "column": 23 - }, - "end": { - "line": 322, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 11753, - "end": 11992, - "loc": { - "start": { - "line": 312, - "column": 1 - }, - "end": { - "line": 318, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 12148, - "end": 12461, - "loc": { - "start": { - "line": 324, - "column": 1 - }, - "end": { - "line": 330, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12464, - "end": 12632, - "loc": { - "start": { - "line": 331, - "column": 1 - }, - "end": { - "line": 335, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12464, - "end": 12473, - "loc": { - "start": { - "line": 331, - "column": 1 - }, - "end": { - "line": 331, - "column": 10 - }, - "identifierName": "getAngle2" - }, - "name": "getAngle2", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12474, - "end": 12485, - "loc": { - "start": { - "line": 331, - "column": 11 - }, - "end": { - "line": 331, - "column": 22 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - { - "type": "Identifier", - "start": 12487, - "end": 12496, - "loc": { - "start": { - "line": 331, - "column": 24 - }, - "end": { - "line": 331, - "column": 33 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 12498, - "end": 12632, - "loc": { - "start": { - "line": 331, - "column": 35 - }, - "end": { - "line": 335, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 12503, - "end": 12541, - "loc": { - "start": { - "line": 332, - "column": 2 - }, - "end": { - "line": 332, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12509, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 8 - }, - "end": { - "line": 332, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 12509, - "end": 12510, - "loc": { - "start": { - "line": 332, - "column": 8 - }, - "end": { - "line": 332, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 12513, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 12 - }, - "end": { - "line": 332, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 12513, - "end": 12526, - "loc": { - "start": { - "line": 332, - "column": 12 - }, - "end": { - "line": 332, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 12513, - "end": 12524, - "loc": { - "start": { - "line": 332, - "column": 12 - }, - "end": { - "line": 332, - "column": 23 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 12525, - "end": 12526, - "loc": { - "start": { - "line": 332, - "column": 24 - }, - "end": { - "line": 332, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12529, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 28 - }, - "end": { - "line": 332, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12529, - "end": 12538, - "loc": { - "start": { - "line": 332, - "column": 28 - }, - "end": { - "line": 332, - "column": 37 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 12539, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 38 - }, - "end": { - "line": 332, - "column": 39 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 12545, - "end": 12583, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12551, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 8 - }, - "end": { - "line": 333, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 12551, - "end": 12552, - "loc": { - "start": { - "line": 333, - "column": 8 - }, - "end": { - "line": 333, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "BinaryExpression", - "start": 12555, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 12 - }, - "end": { - "line": 333, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 12555, - "end": 12568, - "loc": { - "start": { - "line": 333, - "column": 12 - }, - "end": { - "line": 333, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 12555, - "end": 12566, - "loc": { - "start": { - "line": 333, - "column": 12 - }, - "end": { - "line": 333, - "column": 23 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 12567, - "end": 12568, - "loc": { - "start": { - "line": 333, - "column": 24 - }, - "end": { - "line": 333, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12571, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 28 - }, - "end": { - "line": 333, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12571, - "end": 12580, - "loc": { - "start": { - "line": 333, - "column": 28 - }, - "end": { - "line": 333, - "column": 37 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 12581, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 38 - }, - "end": { - "line": 333, - "column": 39 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 12587, - "end": 12628, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 334, - "column": 43 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 12594, - "end": 12627, - "loc": { - "start": { - "line": 334, - "column": 9 - }, - "end": { - "line": 334, - "column": 42 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12595, - "end": 12621, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 36 - } - }, - "left": { - "type": "CallExpression", - "start": 12595, - "end": 12611, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 26 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12595, - "end": 12605, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 12595, - "end": 12599, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 14 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 12600, - "end": 12605, - "loc": { - "start": { - "line": 334, - "column": 15 - }, - "end": { - "line": 334, - "column": 20 - }, - "identifierName": "atan2" - }, - "name": "atan2" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 12606, - "end": 12607, - "loc": { - "start": { - "line": 334, - "column": 21 - }, - "end": { - "line": 334, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 12609, - "end": 12610, - "loc": { - "start": { - "line": 334, - "column": 24 - }, - "end": { - "line": 334, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - } - ] - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12614, - "end": 12621, - "loc": { - "start": { - "line": 334, - "column": 29 - }, - "end": { - "line": 334, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 12614, - "end": 12618, - "loc": { - "start": { - "line": 334, - "column": 29 - }, - "end": { - "line": 334, - "column": 33 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 12619, - "end": 12621, - "loc": { - "start": { - "line": 334, - "column": 34 - }, - "end": { - "line": 334, - "column": 36 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 12594 - } - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 12625, - "end": 12627, - "loc": { - "start": { - "line": 334, - "column": 40 - }, - "end": { - "line": 334, - "column": 42 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 12626, - "end": 12627, - "loc": { - "start": { - "line": 334, - "column": 41 - }, - "end": { - "line": 334, - "column": 42 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesizedArgument": false - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 12148, - "end": 12461, - "loc": { - "start": { - "line": 324, - "column": 1 - }, - "end": { - "line": 330, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees\r\n\t * @param {number} pAngle - The angle to convert.\r\n\t * @returns The converted angle\r\n\t ", - "start": 12635, - "end": 12816, - "loc": { - "start": { - "line": 336, - "column": 1 - }, - "end": { - "line": 340, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12819, - "end": 12895, - "loc": { - "start": { - "line": 341, - "column": 1 - }, - "end": { - "line": 343, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12819, - "end": 12846, - "loc": { - "start": { - "line": 341, - "column": 1 - }, - "end": { - "line": 341, - "column": 28 - }, - "identifierName": "convertRaWAngleToVyloCoords" - }, - "name": "convertRaWAngleToVyloCoords", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12847, - "end": 12853, - "loc": { - "start": { - "line": 341, - "column": 29 - }, - "end": { - "line": 341, - "column": 35 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ], - "body": { - "type": "BlockStatement", - "start": 12855, - "end": 12895, - "loc": { - "start": { - "line": 341, - "column": 37 - }, - "end": { - "line": 343, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 12860, - "end": 12891, - "loc": { - "start": { - "line": 342, - "column": 2 - }, - "end": { - "line": 342, - "column": 33 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 12867, - "end": 12890, - "loc": { - "start": { - "line": 342, - "column": 9 - }, - "end": { - "line": 342, - "column": 32 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12868, - "end": 12884, - "loc": { - "start": { - "line": 342, - "column": 10 - }, - "end": { - "line": 342, - "column": 26 - } - }, - "left": { - "type": "Identifier", - "start": 12868, - "end": 12874, - "loc": { - "start": { - "line": 342, - "column": 10 - }, - "end": { - "line": 342, - "column": 16 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12877, - "end": 12884, - "loc": { - "start": { - "line": 342, - "column": 19 - }, - "end": { - "line": 342, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 12877, - "end": 12881, - "loc": { - "start": { - "line": 342, - "column": 19 - }, - "end": { - "line": 342, - "column": 23 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 12882, - "end": 12884, - "loc": { - "start": { - "line": 342, - "column": 24 - }, - "end": { - "line": 342, - "column": 26 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 12867 - } - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 12888, - "end": 12890, - "loc": { - "start": { - "line": 342, - "column": 30 - }, - "end": { - "line": 342, - "column": 32 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 12889, - "end": 12890, - "loc": { - "start": { - "line": 342, - "column": 31 - }, - "end": { - "line": 342, - "column": 32 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesizedArgument": false - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees\r\n\t * @param {number} pAngle - The angle to convert.\r\n\t * @returns The converted angle\r\n\t ", - "start": 12635, - "end": 12816, - "loc": { - "start": { - "line": 336, - "column": 1 - }, - "end": { - "line": 340, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the Euclidean distance between two points in a two-dimensional space.\r\n\t *\r\n\t * @param {Object} pStartPoint - The starting point with x and y coordinates.\r\n\t * @param {number} pStartPoint.x - The x-coordinate of the starting point.\r\n\t * @param {number} pStartPoint.y - The y-coordinate of the starting point.\r\n\t * @param {Object} pEndPoint - The ending point with x and y coordinates.\r\n\t * @param {number} pEndPoint.x - The x-coordinate of the ending point.\r\n\t * @param {number} pEndPoint.y - The y-coordinate of the ending point.\r\n\t * @returns {number} The Euclidean distance between the two points.\r\n\t *\r\n\t * @example\r\n\t * const startPoint = { x: 1, y: 2 };\r\n\t * const endPoint = { x: 4, y: 6 };\r\n\t * const distance = getDistance(startPoint, endPoint); // 5\r\n\t * // Returns the Euclidean distance between the points (1, 2) and (4, 6).\r\n\t ", - "start": 12898, - "end": 13760, - "loc": { - "start": { - "line": 344, - "column": 1 - }, - "end": { - "line": 360, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 13763, - "end": 13932, - "loc": { - "start": { - "line": 361, - "column": 1 - }, - "end": { - "line": 365, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13763, - "end": 13774, - "loc": { - "start": { - "line": 361, - "column": 1 - }, - "end": { - "line": 361, - "column": 12 - }, - "identifierName": "getDistance" - }, - "name": "getDistance", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13775, - "end": 13786, - "loc": { - "start": { - "line": 361, - "column": 13 - }, - "end": { - "line": 361, - "column": 24 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - { - "type": "Identifier", - "start": 13788, - "end": 13797, - "loc": { - "start": { - "line": 361, - "column": 26 - }, - "end": { - "line": 361, - "column": 35 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 13799, - "end": 13932, - "loc": { - "start": { - "line": 361, - "column": 37 - }, - "end": { - "line": 365, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13804, - "end": 13844, - "loc": { - "start": { - "line": 362, - "column": 2 - }, - "end": { - "line": 362, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13810, - "end": 13843, - "loc": { - "start": { - "line": 362, - "column": 8 - }, - "end": { - "line": 362, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 13810, - "end": 13811, - "loc": { - "start": { - "line": 362, - "column": 8 - }, - "end": { - "line": 362, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 13815, - "end": 13842, - "loc": { - "start": { - "line": 362, - "column": 13 - }, - "end": { - "line": 362, - "column": 40 - } - }, - "left": { - "type": "MemberExpression", - "start": 13815, - "end": 13828, - "loc": { - "start": { - "line": 362, - "column": 13 - }, - "end": { - "line": 362, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 13815, - "end": 13826, - "loc": { - "start": { - "line": 362, - "column": 13 - }, - "end": { - "line": 362, - "column": 24 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 13827, - "end": 13828, - "loc": { - "start": { - "line": 362, - "column": 25 - }, - "end": { - "line": 362, - "column": 26 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 13831, - "end": 13842, - "loc": { - "start": { - "line": 362, - "column": 29 - }, - "end": { - "line": 362, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 13831, - "end": 13840, - "loc": { - "start": { - "line": 362, - "column": 29 - }, - "end": { - "line": 362, - "column": 38 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 13841, - "end": 13842, - "loc": { - "start": { - "line": 362, - "column": 39 - }, - "end": { - "line": 362, - "column": 40 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 13814 - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 13848, - "end": 13888, - "loc": { - "start": { - "line": 363, - "column": 2 - }, - "end": { - "line": 363, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13854, - "end": 13887, - "loc": { - "start": { - "line": 363, - "column": 8 - }, - "end": { - "line": 363, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 13854, - "end": 13855, - "loc": { - "start": { - "line": 363, - "column": 8 - }, - "end": { - "line": 363, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "BinaryExpression", - "start": 13859, - "end": 13886, - "loc": { - "start": { - "line": 363, - "column": 13 - }, - "end": { - "line": 363, - "column": 40 - } - }, - "left": { - "type": "MemberExpression", - "start": 13859, - "end": 13872, - "loc": { - "start": { - "line": 363, - "column": 13 - }, - "end": { - "line": 363, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 13859, - "end": 13870, - "loc": { - "start": { - "line": 363, - "column": 13 - }, - "end": { - "line": 363, - "column": 24 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 13871, - "end": 13872, - "loc": { - "start": { - "line": 363, - "column": 25 - }, - "end": { - "line": 363, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 13875, - "end": 13886, - "loc": { - "start": { - "line": 363, - "column": 29 - }, - "end": { - "line": 363, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 13875, - "end": 13884, - "loc": { - "start": { - "line": 363, - "column": 29 - }, - "end": { - "line": 363, - "column": 38 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 13885, - "end": 13886, - "loc": { - "start": { - "line": 363, - "column": 39 - }, - "end": { - "line": 363, - "column": 40 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 13858 - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 13892, - "end": 13928, - "loc": { - "start": { - "line": 364, - "column": 2 - }, - "end": { - "line": 364, - "column": 38 - } - }, - "argument": { - "type": "CallExpression", - "start": 13899, - "end": 13927, - "loc": { - "start": { - "line": 364, - "column": 9 - }, - "end": { - "line": 364, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13899, - "end": 13908, - "loc": { - "start": { - "line": 364, - "column": 9 - }, - "end": { - "line": 364, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 13899, - "end": 13903, - "loc": { - "start": { - "line": 364, - "column": 9 - }, - "end": { - "line": 364, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 13904, - "end": 13908, - "loc": { - "start": { - "line": 364, - "column": 14 - }, - "end": { - "line": 364, - "column": 18 - }, - "identifierName": "sqrt" - }, - "name": "sqrt" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 13909, - "end": 13926, - "loc": { - "start": { - "line": 364, - "column": 19 - }, - "end": { - "line": 364, - "column": 36 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13910, - "end": 13915, - "loc": { - "start": { - "line": 364, - "column": 20 - }, - "end": { - "line": 364, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 13910, - "end": 13911, - "loc": { - "start": { - "line": 364, - "column": 20 - }, - "end": { - "line": 364, - "column": 21 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 13914, - "end": 13915, - "loc": { - "start": { - "line": 364, - "column": 24 - }, - "end": { - "line": 364, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "extra": { - "parenthesized": true, - "parenStart": 13909 - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 13920, - "end": 13925, - "loc": { - "start": { - "line": 364, - "column": 30 - }, - "end": { - "line": 364, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 13920, - "end": 13921, - "loc": { - "start": { - "line": 364, - "column": 30 - }, - "end": { - "line": 364, - "column": 31 - }, - "identifierName": "y" - }, - "name": "y" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 13924, - "end": 13925, - "loc": { - "start": { - "line": 364, - "column": 34 - }, - "end": { - "line": 364, - "column": 35 - }, - "identifierName": "y" - }, - "name": "y" - }, - "extra": { - "parenthesized": true, - "parenStart": 13919 - } - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the Euclidean distance between two points in a two-dimensional space.\r\n\t *\r\n\t * @param {Object} pStartPoint - The starting point with x and y coordinates.\r\n\t * @param {number} pStartPoint.x - The x-coordinate of the starting point.\r\n\t * @param {number} pStartPoint.y - The y-coordinate of the starting point.\r\n\t * @param {Object} pEndPoint - The ending point with x and y coordinates.\r\n\t * @param {number} pEndPoint.x - The x-coordinate of the ending point.\r\n\t * @param {number} pEndPoint.y - The y-coordinate of the ending point.\r\n\t * @returns {number} The Euclidean distance between the two points.\r\n\t *\r\n\t * @example\r\n\t * const startPoint = { x: 1, y: 2 };\r\n\t * const endPoint = { x: 4, y: 6 };\r\n\t * const distance = getDistance(startPoint, endPoint); // 5\r\n\t * // Returns the Euclidean distance between the points (1, 2) and (4, 6).\r\n\t ", - "start": 12898, - "end": 13760, - "loc": { - "start": { - "line": 344, - "column": 1 - }, - "end": { - "line": 360, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the new position of a point based on distance and angle.\r\n\t *\r\n\t * @param {Object} pPoint - The initial position of the point with x and y coordinates.\r\n\t * @param {number} pPoint.x - The initial x-coordinate of the point.\r\n\t * @param {number} pPoint.y - The initial y-coordinate of the point.\r\n\t * @param {number} pDistance - The distance by which to move the point.\r\n\t * @param {number} pAngle - The angle (in radians) at which to move the point.\r\n\t * @returns {Object} The new position of the point after moving by the specified distance and angle.\r\n\t *\r\n\t * @example\r\n\t * const initialPosition = { x: 10, y: 20 };\r\n\t * const distance = 5;\r\n\t * const angleInRadians = 0.785398; // 45 degrees\r\n\t * const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);\r\n\t * // Returns the new position of the point after moving by 5 units at a 45-degree angle.\r\n\t ", - "start": 13935, - "end": 14857, - "loc": { - "start": { - "line": 366, - "column": 1 - }, - "end": { - "line": 382, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14860, - "end": 15115, - "loc": { - "start": { - "line": 383, - "column": 1 - }, - "end": { - "line": 388, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14860, - "end": 14900, - "loc": { - "start": { - "line": 383, - "column": 1 - }, - "end": { - "line": 383, - "column": 41 - }, - "identifierName": "calculateNewPositionFromDistanceAndAngle" - }, - "name": "calculateNewPositionFromDistanceAndAngle", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 14901, - "end": 14907, - "loc": { - "start": { - "line": 383, - "column": 42 - }, - "end": { - "line": 383, - "column": 48 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - { - "type": "Identifier", - "start": 14909, - "end": 14918, - "loc": { - "start": { - "line": 383, - "column": 50 - }, - "end": { - "line": 383, - "column": 59 - }, - "identifierName": "pDistance" - }, - "name": "pDistance" - }, - { - "type": "Identifier", - "start": 14920, - "end": 14926, - "loc": { - "start": { - "line": 383, - "column": 61 - }, - "end": { - "line": 383, - "column": 67 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ], - "body": { - "type": "BlockStatement", - "start": 14928, - "end": 15115, - "loc": { - "start": { - "line": 383, - "column": 69 - }, - "end": { - "line": 388, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 14933, - "end": 14968, - "loc": { - "start": { - "line": 384, - "column": 2 - }, - "end": { - "line": 384, - "column": 37 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14939, - "end": 14967, - "loc": { - "start": { - "line": 384, - "column": 8 - }, - "end": { - "line": 384, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 14939, - "end": 14950, - "loc": { - "start": { - "line": 384, - "column": 8 - }, - "end": { - "line": 384, - "column": 19 - }, - "identifierName": "newPosition" - }, - "name": "newPosition" - }, - "init": { - "type": "ObjectExpression", - "start": 14953, - "end": 14967, - "loc": { - "start": { - "line": 384, - "column": 22 - }, - "end": { - "line": 384, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 14955, - "end": 14959, - "loc": { - "start": { - "line": 384, - "column": 24 - }, - "end": { - "line": 384, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14955, - "end": 14956, - "loc": { - "start": { - "line": 384, - "column": 24 - }, - "end": { - "line": 384, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "NumericLiteral", - "start": 14958, - "end": 14959, - "loc": { - "start": { - "line": 384, - "column": 27 - }, - "end": { - "line": 384, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "ObjectProperty", - "start": 14961, - "end": 14965, - "loc": { - "start": { - "line": 384, - "column": 30 - }, - "end": { - "line": 384, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14961, - "end": 14962, - "loc": { - "start": { - "line": 384, - "column": 30 - }, - "end": { - "line": 384, - "column": 31 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "NumericLiteral", - "start": 14964, - "end": 14965, - "loc": { - "start": { - "line": 384, - "column": 33 - }, - "end": { - "line": 384, - "column": 34 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 14972, - "end": 15028, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 58 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 14972, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 57 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 14972, - "end": 14985, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 14972, - "end": 14983, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 13 - }, - "identifierName": "newPosition" - }, - "name": "newPosition" - }, - "property": { - "type": "Identifier", - "start": 14984, - "end": 14985, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 15 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 14988, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 18 - }, - "end": { - "line": 385, - "column": 57 - } - }, - "left": { - "type": "MemberExpression", - "start": 14988, - "end": 14996, - "loc": { - "start": { - "line": 385, - "column": 18 - }, - "end": { - "line": 385, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 14988, - "end": 14994, - "loc": { - "start": { - "line": 385, - "column": 18 - }, - "end": { - "line": 385, - "column": 24 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 14995, - "end": 14996, - "loc": { - "start": { - "line": 385, - "column": 25 - }, - "end": { - "line": 385, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 14999, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 29 - }, - "end": { - "line": 385, - "column": 57 - } - }, - "left": { - "type": "Identifier", - "start": 14999, - "end": 15008, - "loc": { - "start": { - "line": 385, - "column": 29 - }, - "end": { - "line": 385, - "column": 38 - }, - "identifierName": "pDistance" - }, - "name": "pDistance" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 15011, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 41 - }, - "end": { - "line": 385, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15011, - "end": 15019, - "loc": { - "start": { - "line": 385, - "column": 41 - }, - "end": { - "line": 385, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 15011, - "end": 15015, - "loc": { - "start": { - "line": 385, - "column": 41 - }, - "end": { - "line": 385, - "column": 45 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 15016, - "end": 15019, - "loc": { - "start": { - "line": 385, - "column": 46 - }, - "end": { - "line": 385, - "column": 49 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15020, - "end": 15026, - "loc": { - "start": { - "line": 385, - "column": 50 - }, - "end": { - "line": 385, - "column": 56 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ] - } - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 15032, - "end": 15088, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 58 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 15032, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 57 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 15032, - "end": 15045, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 15032, - "end": 15043, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 13 - }, - "identifierName": "newPosition" - }, - "name": "newPosition" - }, - "property": { - "type": "Identifier", - "start": 15044, - "end": 15045, - "loc": { - "start": { - "line": 386, - "column": 14 - }, - "end": { - "line": 386, - "column": 15 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 15048, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 18 - }, - "end": { - "line": 386, - "column": 57 - } - }, - "left": { - "type": "MemberExpression", - "start": 15048, - "end": 15056, - "loc": { - "start": { - "line": 386, - "column": 18 - }, - "end": { - "line": 386, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 15048, - "end": 15054, - "loc": { - "start": { - "line": 386, - "column": 18 - }, - "end": { - "line": 386, - "column": 24 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 15055, - "end": 15056, - "loc": { - "start": { - "line": 386, - "column": 25 - }, - "end": { - "line": 386, - "column": 26 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 15059, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 29 - }, - "end": { - "line": 386, - "column": 57 - } - }, - "left": { - "type": "Identifier", - "start": 15059, - "end": 15068, - "loc": { - "start": { - "line": 386, - "column": 29 - }, - "end": { - "line": 386, - "column": 38 - }, - "identifierName": "pDistance" - }, - "name": "pDistance" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 15071, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 41 - }, - "end": { - "line": 386, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15071, - "end": 15079, - "loc": { - "start": { - "line": 386, - "column": 41 - }, - "end": { - "line": 386, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 15071, - "end": 15075, - "loc": { - "start": { - "line": 386, - "column": 41 - }, - "end": { - "line": 386, - "column": 45 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 15076, - "end": 15079, - "loc": { - "start": { - "line": 386, - "column": 46 - }, - "end": { - "line": 386, - "column": 49 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15080, - "end": 15086, - "loc": { - "start": { - "line": 386, - "column": 50 - }, - "end": { - "line": 386, - "column": 56 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ] - } - } - } - } - }, - { - "type": "ReturnStatement", - "start": 15092, - "end": 15111, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 387, - "column": 21 - } - }, - "argument": { - "type": "Identifier", - "start": 15099, - "end": 15110, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 387, - "column": 20 - }, - "identifierName": "newPosition" - }, - "name": "newPosition" - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the new position of a point based on distance and angle.\r\n\t *\r\n\t * @param {Object} pPoint - The initial position of the point with x and y coordinates.\r\n\t * @param {number} pPoint.x - The initial x-coordinate of the point.\r\n\t * @param {number} pPoint.y - The initial y-coordinate of the point.\r\n\t * @param {number} pDistance - The distance by which to move the point.\r\n\t * @param {number} pAngle - The angle (in radians) at which to move the point.\r\n\t * @returns {Object} The new position of the point after moving by the specified distance and angle.\r\n\t *\r\n\t * @example\r\n\t * const initialPosition = { x: 10, y: 20 };\r\n\t * const distance = 5;\r\n\t * const angleInRadians = 0.785398; // 45 degrees\r\n\t * const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);\r\n\t * // Returns the new position of the point after moving by 5 units at a 45-degree angle.\r\n\t ", - "start": 13935, - "end": 14857, - "loc": { - "start": { - "line": 366, - "column": 1 - }, - "end": { - "line": 382, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 15834, - "end": 15941, - "loc": { - "start": { - "line": 404, - "column": 1 - }, - "end": { - "line": 406, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 15834, - "end": 15861, - "loc": { - "start": { - "line": 404, - "column": 1 - }, - "end": { - "line": 404, - "column": 28 - }, - "identifierName": "calculateProportionalLength" - }, - "name": "calculateProportionalLength", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 15862, - "end": 15870, - "loc": { - "start": { - "line": 404, - "column": 29 - }, - "end": { - "line": 404, - "column": 37 - }, - "identifierName": "pCurrent" - }, - "name": "pCurrent" - }, - { - "type": "Identifier", - "start": 15872, - "end": 15876, - "loc": { - "start": { - "line": 404, - "column": 39 - }, - "end": { - "line": 404, - "column": 43 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - { - "type": "Identifier", - "start": 15878, - "end": 15890, - "loc": { - "start": { - "line": 404, - "column": 45 - }, - "end": { - "line": 404, - "column": 57 - }, - "identifierName": "pTotalLength" - }, - "name": "pTotalLength" - } - ], - "body": { - "type": "BlockStatement", - "start": 15892, - "end": 15941, - "loc": { - "start": { - "line": 404, - "column": 59 - }, - "end": { - "line": 406, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 15897, - "end": 15937, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 405, - "column": 42 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 15904, - "end": 15936, - "loc": { - "start": { - "line": 405, - "column": 9 - }, - "end": { - "line": 405, - "column": 41 - } - }, - "left": { - "type": "BinaryExpression", - "start": 15905, - "end": 15920, - "loc": { - "start": { - "line": 405, - "column": 10 - }, - "end": { - "line": 405, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 15905, - "end": 15913, - "loc": { - "start": { - "line": 405, - "column": 10 - }, - "end": { - "line": 405, - "column": 18 - }, - "identifierName": "pCurrent" - }, - "name": "pCurrent" - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 15916, - "end": 15920, - "loc": { - "start": { - "line": 405, - "column": 21 - }, - "end": { - "line": 405, - "column": 25 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "extra": { - "parenthesized": true, - "parenStart": 15904 - } - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 15924, - "end": 15936, - "loc": { - "start": { - "line": 405, - "column": 29 - }, - "end": { - "line": 405, - "column": 41 - }, - "identifierName": "pTotalLength" - }, - "name": "pTotalLength" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the proportional length based on a current value, a maximum value, and a specified total length.\r\n\t *\r\n\t * @param {number} pCurrent - The current value to be scaled.\r\n\t * @param {number} pMax - The maximum value for scaling.\r\n\t * @param {number} pTotalLength - The specified total length.\r\n\t * @returns {number} The proportional length based on the current value, maximum value, and total length.\r\n\t *\r\n\t * @example\r\n\t * const current = 25;\r\n\t * const max = 50;\r\n\t * const totalLength = 100;\r\n\t * const proportionalLength = calculateProportionalLength(current, max, totalLength); // 50\r\n\t * // Returns the proportional length based on the current value, maximum value, and total length.\r\n\t ", - "start": 15119, - "end": 15831, - "loc": { - "start": { - "line": 389, - "column": 1 - }, - "end": { - "line": 403, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the compass direction based on the given angle.\r\n\t *\r\n\t * @param {number} pAngle - The angle in radians.\r\n\t * @returns {string} The compass direction (e.g., 'east', 'southeast', 'south', etc.).\r\n\t *\r\n\t * @example\r\n\t * const angle = Math.PI / 4; // 45 degrees in radians\r\n\t * const direction = getDirection(angle); // Returns 'northeast'\r\n\t ", - "start": 15944, - "end": 16306, - "loc": { - "start": { - "line": 407, - "column": 1 - }, - "end": { - "line": 416, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 16309, - "end": 16809, - "loc": { - "start": { - "line": 417, - "column": 1 - }, - "end": { - "line": 429, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 16309, - "end": 16321, - "loc": { - "start": { - "line": 417, - "column": 1 - }, - "end": { - "line": 417, - "column": 13 - }, - "identifierName": "getDirection" - }, - "name": "getDirection", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 16322, - "end": 16328, - "loc": { - "start": { - "line": 417, - "column": 14 - }, - "end": { - "line": 417, - "column": 20 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ], - "body": { - "type": "BlockStatement", - "start": 16330, - "end": 16809, - "loc": { - "start": { - "line": 417, - "column": 22 - }, - "end": { - "line": 429, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 16335, - "end": 16412, - "loc": { - "start": { - "line": 418, - "column": 2 - }, - "end": { - "line": 418, - "column": 79 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16341, - "end": 16411, - "loc": { - "start": { - "line": 418, - "column": 8 - }, - "end": { - "line": 418, - "column": 78 - } - }, - "id": { - "type": "Identifier", - "start": 16341, - "end": 16347, - "loc": { - "start": { - "line": 418, - "column": 8 - }, - "end": { - "line": 418, - "column": 14 - }, - "identifierName": "degree" - }, - "name": "degree" - }, - "init": { - "type": "CallExpression", - "start": 16350, - "end": 16411, - "loc": { - "start": { - "line": 418, - "column": 17 - }, - "end": { - "line": 418, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16350, - "end": 16358, - "loc": { - "start": { - "line": 418, - "column": 17 - }, - "end": { - "line": 418, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 16350, - "end": 16354, - "loc": { - "start": { - "line": 418, - "column": 17 - }, - "end": { - "line": 418, - "column": 21 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 16355, - "end": 16358, - "loc": { - "start": { - "line": 418, - "column": 22 - }, - "end": { - "line": 418, - "column": 25 - }, - "identifierName": "abs" - }, - "name": "abs" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 16359, - "end": 16410, - "loc": { - "start": { - "line": 418, - "column": 26 - }, - "end": { - "line": 418, - "column": 77 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16359, - "end": 16369, - "loc": { - "start": { - "line": 418, - "column": 26 - }, - "end": { - "line": 418, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 16359, - "end": 16363, - "loc": { - "start": { - "line": 418, - "column": 26 - }, - "end": { - "line": 418, - "column": 30 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 16364, - "end": 16369, - "loc": { - "start": { - "line": 418, - "column": 31 - }, - "end": { - "line": 418, - "column": 36 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 16370, - "end": 16409, - "loc": { - "start": { - "line": 418, - "column": 37 - }, - "end": { - "line": 418, - "column": 76 - } - }, - "left": { - "type": "BinaryExpression", - "start": 16371, - "end": 16402, - "loc": { - "start": { - "line": 418, - "column": 38 - }, - "end": { - "line": 418, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 16372, - "end": 16396, - "loc": { - "start": { - "line": 418, - "column": 39 - }, - "end": { - "line": 418, - "column": 63 - } - }, - "left": { - "type": "Identifier", - "start": 16372, - "end": 16378, - "loc": { - "start": { - "line": 418, - "column": 39 - }, - "end": { - "line": 418, - "column": 45 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 16382, - "end": 16395, - "loc": { - "start": { - "line": 418, - "column": 49 - }, - "end": { - "line": 418, - "column": 62 - } - }, - "left": { - "type": "NumericLiteral", - "start": 16382, - "end": 16385, - "loc": { - "start": { - "line": 418, - "column": 49 - }, - "end": { - "line": 418, - "column": 52 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 16388, - "end": 16395, - "loc": { - "start": { - "line": 418, - "column": 55 - }, - "end": { - "line": 418, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 16388, - "end": 16392, - "loc": { - "start": { - "line": 418, - "column": 55 - }, - "end": { - "line": 418, - "column": 59 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 16393, - "end": 16395, - "loc": { - "start": { - "line": 418, - "column": 60 - }, - "end": { - "line": 418, - "column": 62 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 16381 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 16371 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 16400, - "end": 16402, - "loc": { - "start": { - "line": 418, - "column": 67 - }, - "end": { - "line": 418, - "column": 69 - } - }, - "extra": { - "rawValue": 45, - "raw": "45" - }, - "value": 45 - }, - "extra": { - "parenthesized": true, - "parenStart": 16370 - } - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 16406, - "end": 16409, - "loc": { - "start": { - "line": 418, - "column": 73 - }, - "end": { - "line": 418, - "column": 76 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ] - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " 0 or 360 degrees: 'east'", - "start": 16416, - "end": 16443, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 419, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 45 degrees: 'northeast'", - "start": 16447, - "end": 16473, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 420, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " 90 degrees: 'north'", - "start": 16477, - "end": 16499, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 135 degrees: 'northwest'", - "start": 16503, - "end": 16530, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 180 degrees: 'west'", - "start": 16534, - "end": 16556, - "loc": { - "start": { - "line": 423, - "column": 2 - }, - "end": { - "line": 423, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 225 degrees: 'southwest'", - "start": 16560, - "end": 16587, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 424, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 270 degrees: 'south'", - "start": 16591, - "end": 16614, - "loc": { - "start": { - "line": 425, - "column": 2 - }, - "end": { - "line": 425, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " 315 degrees: 'southeast'", - "start": 16618, - "end": 16645, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 426, - "column": 29 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 16649, - "end": 16762, - "loc": { - "start": { - "line": 427, - "column": 2 - }, - "end": { - "line": 427, - "column": 115 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16655, - "end": 16761, - "loc": { - "start": { - "line": 427, - "column": 8 - }, - "end": { - "line": 427, - "column": 114 - } - }, - "id": { - "type": "Identifier", - "start": 16655, - "end": 16672, - "loc": { - "start": { - "line": 427, - "column": 8 - }, - "end": { - "line": 427, - "column": 25 - }, - "identifierName": "compassDirections" - }, - "name": "compassDirections", - "leadingComments": null - }, - "init": { - "type": "ArrayExpression", - "start": 16675, - "end": 16761, - "loc": { - "start": { - "line": 427, - "column": 28 - }, - "end": { - "line": 427, - "column": 114 - } - }, - "elements": [ - { - "type": "StringLiteral", - "start": 16676, - "end": 16682, - "loc": { - "start": { - "line": 427, - "column": 29 - }, - "end": { - "line": 427, - "column": 35 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - }, - { - "type": "StringLiteral", - "start": 16684, - "end": 16695, - "loc": { - "start": { - "line": 427, - "column": 37 - }, - "end": { - "line": 427, - "column": 48 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - }, - { - "type": "StringLiteral", - "start": 16697, - "end": 16704, - "loc": { - "start": { - "line": 427, - "column": 50 - }, - "end": { - "line": 427, - "column": 57 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - }, - { - "type": "StringLiteral", - "start": 16706, - "end": 16717, - "loc": { - "start": { - "line": 427, - "column": 59 - }, - "end": { - "line": 427, - "column": 70 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - }, - { - "type": "StringLiteral", - "start": 16719, - "end": 16725, - "loc": { - "start": { - "line": 427, - "column": 72 - }, - "end": { - "line": 427, - "column": 78 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - }, - { - "type": "StringLiteral", - "start": 16727, - "end": 16738, - "loc": { - "start": { - "line": 427, - "column": 80 - }, - "end": { - "line": 427, - "column": 91 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - }, - { - "type": "StringLiteral", - "start": 16740, - "end": 16747, - "loc": { - "start": { - "line": 427, - "column": 93 - }, - "end": { - "line": 427, - "column": 100 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - }, - { - "type": "StringLiteral", - "start": 16749, - "end": 16760, - "loc": { - "start": { - "line": 427, - "column": 102 - }, - "end": { - "line": 427, - "column": 113 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " 0 or 360 degrees: 'east'", - "start": 16416, - "end": 16443, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 419, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 45 degrees: 'northeast'", - "start": 16447, - "end": 16473, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 420, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " 90 degrees: 'north'", - "start": 16477, - "end": 16499, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 135 degrees: 'northwest'", - "start": 16503, - "end": 16530, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 180 degrees: 'west'", - "start": 16534, - "end": 16556, - "loc": { - "start": { - "line": 423, - "column": 2 - }, - "end": { - "line": 423, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 225 degrees: 'southwest'", - "start": 16560, - "end": 16587, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 424, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 270 degrees: 'south'", - "start": 16591, - "end": 16614, - "loc": { - "start": { - "line": 425, - "column": 2 - }, - "end": { - "line": 425, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " 315 degrees: 'southeast'", - "start": 16618, - "end": 16645, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 426, - "column": 29 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 16766, - "end": 16805, - "loc": { - "start": { - "line": 428, - "column": 2 - }, - "end": { - "line": 428, - "column": 41 - } - }, - "argument": { - "type": "MemberExpression", - "start": 16773, - "end": 16804, - "loc": { - "start": { - "line": 428, - "column": 9 - }, - "end": { - "line": 428, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 16773, - "end": 16790, - "loc": { - "start": { - "line": 428, - "column": 9 - }, - "end": { - "line": 428, - "column": 26 - }, - "identifierName": "compassDirections" - }, - "name": "compassDirections" - }, - "property": { - "type": "BinaryExpression", - "start": 16792, - "end": 16802, - "loc": { - "start": { - "line": 428, - "column": 28 - }, - "end": { - "line": 428, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 16792, - "end": 16798, - "loc": { - "start": { - "line": 428, - "column": 28 - }, - "end": { - "line": 428, - "column": 34 - }, - "identifierName": "degree" - }, - "name": "degree" - }, - "operator": "%", - "right": { - "type": "NumericLiteral", - "start": 16801, - "end": 16802, - "loc": { - "start": { - "line": 428, - "column": 37 - }, - "end": { - "line": 428, - "column": 38 - } - }, - "extra": { - "rawValue": 8, - "raw": "8" - }, - "value": 8 - }, - "extra": { - "parenthesized": true, - "parenStart": 16791 - } - }, - "computed": true - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the compass direction based on the given angle.\r\n\t *\r\n\t * @param {number} pAngle - The angle in radians.\r\n\t * @returns {string} The compass direction (e.g., 'east', 'southeast', 'south', etc.).\r\n\t *\r\n\t * @example\r\n\t * const angle = Math.PI / 4; // 45 degrees in radians\r\n\t * const direction = getDirection(angle); // Returns 'northeast'\r\n\t ", - "start": 15944, - "end": 16306, - "loc": { - "start": { - "line": 407, - "column": 1 - }, - "end": { - "line": 416, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the linear decay of a variable over time.\r\n\t *\r\n\t * @param {number} pInitialValue - The initial value of the variable.\r\n\t * @param {number} pCurrentTime - The current time at which to calculate the variable value.\r\n\t * @param {number} pMaxTime - The maximum time for the decay process.\r\n\t * @param {number} [pDecayRate=0.5] - The decay rate (default is 0.5).\r\n\t * @returns {number} The remaining value of the variable after linear decay.\r\n\t *\r\n\t * @example\r\n\t * const initialValue = 100;\r\n\t * const currentTime = 50;\r\n\t * const maxTime = 1000;\r\n\t * const decayRate = 0.3;\r\n\t * const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);\r\n\t * // Returns the remaining value after linear decay.\r\n\t ", - "start": 16812, - "end": 17553, - "loc": { - "start": { - "line": 430, - "column": 1 - }, - "end": { - "line": 446, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 17556, - "end": 17870, - "loc": { - "start": { - "line": 447, - "column": 1 - }, - "end": { - "line": 452, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17556, - "end": 17567, - "loc": { - "start": { - "line": 447, - "column": 1 - }, - "end": { - "line": 447, - "column": 12 - }, - "identifierName": "linearDecay" - }, - "name": "linearDecay", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 17568, - "end": 17581, - "loc": { - "start": { - "line": 447, - "column": 13 - }, - "end": { - "line": 447, - "column": 26 - }, - "identifierName": "pInitialValue" - }, - "name": "pInitialValue" - }, - { - "type": "Identifier", - "start": 17583, - "end": 17595, - "loc": { - "start": { - "line": 447, - "column": 28 - }, - "end": { - "line": 447, - "column": 40 - }, - "identifierName": "pCurrentTime" - }, - "name": "pCurrentTime" - }, - { - "type": "Identifier", - "start": 17597, - "end": 17605, - "loc": { - "start": { - "line": 447, - "column": 42 - }, - "end": { - "line": 447, - "column": 50 - }, - "identifierName": "pMaxTime" - }, - "name": "pMaxTime" - }, - { - "type": "AssignmentPattern", - "start": 17607, - "end": 17623, - "loc": { - "start": { - "line": 447, - "column": 52 - }, - "end": { - "line": 447, - "column": 68 - } - }, - "left": { - "type": "Identifier", - "start": 17607, - "end": 17617, - "loc": { - "start": { - "line": 447, - "column": 52 - }, - "end": { - "line": 447, - "column": 62 - }, - "identifierName": "pDecayRate" - }, - "name": "pDecayRate" - }, - "right": { - "type": "NumericLiteral", - "start": 17620, - "end": 17623, - "loc": { - "start": { - "line": 447, - "column": 65 - }, - "end": { - "line": 447, - "column": 68 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 17625, - "end": 17870, - "loc": { - "start": { - "line": 447, - "column": 70 - }, - "end": { - "line": 452, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 17685, - "end": 17740, - "loc": { - "start": { - "line": 449, - "column": 2 - }, - "end": { - "line": 449, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17691, - "end": 17739, - "loc": { - "start": { - "line": 449, - "column": 8 - }, - "end": { - "line": 449, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 17691, - "end": 17713, - "loc": { - "start": { - "line": 449, - "column": 8 - }, - "end": { - "line": 449, - "column": 30 - }, - "identifierName": "proportionOfTimePassed" - }, - "name": "proportionOfTimePassed", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 17716, - "end": 17739, - "loc": { - "start": { - "line": 449, - "column": 33 - }, - "end": { - "line": 449, - "column": 56 - } - }, - "left": { - "type": "Identifier", - "start": 17716, - "end": 17728, - "loc": { - "start": { - "line": 449, - "column": 33 - }, - "end": { - "line": 449, - "column": 45 - }, - "identifierName": "pCurrentTime" - }, - "name": "pCurrentTime" - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 17731, - "end": 17739, - "loc": { - "start": { - "line": 449, - "column": 48 - }, - "end": { - "line": 449, - "column": 56 - }, - "identifierName": "pMaxTime" - }, - "name": "pMaxTime" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Calculate the variable value at the current time", - "start": 17630, - "end": 17681, - "loc": { - "start": { - "line": 448, - "column": 2 - }, - "end": { - "line": 448, - "column": 53 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17744, - "end": 17840, - "loc": { - "start": { - "line": 450, - "column": 2 - }, - "end": { - "line": 450, - "column": 98 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17750, - "end": 17839, - "loc": { - "start": { - "line": 450, - "column": 8 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "id": { - "type": "Identifier", - "start": 17750, - "end": 17764, - "loc": { - "start": { - "line": 450, - "column": 8 - }, - "end": { - "line": 450, - "column": 22 - }, - "identifierName": "remainingValue" - }, - "name": "remainingValue" - }, - "init": { - "type": "CallExpression", - "start": 17767, - "end": 17839, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17767, - "end": 17775, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 17767, - "end": 17771, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 17772, - "end": 17775, - "loc": { - "start": { - "line": 450, - "column": 30 - }, - "end": { - "line": 450, - "column": 33 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 17776, - "end": 17835, - "loc": { - "start": { - "line": 450, - "column": 34 - }, - "end": { - "line": 450, - "column": 93 - } - }, - "left": { - "type": "Identifier", - "start": 17776, - "end": 17789, - "loc": { - "start": { - "line": 450, - "column": 34 - }, - "end": { - "line": 450, - "column": 47 - }, - "identifierName": "pInitialValue" - }, - "name": "pInitialValue" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 17793, - "end": 17834, - "loc": { - "start": { - "line": 450, - "column": 51 - }, - "end": { - "line": 450, - "column": 92 - } - }, - "left": { - "type": "NumericLiteral", - "start": 17793, - "end": 17794, - "loc": { - "start": { - "line": 450, - "column": 51 - }, - "end": { - "line": 450, - "column": 52 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 17798, - "end": 17833, - "loc": { - "start": { - "line": 450, - "column": 56 - }, - "end": { - "line": 450, - "column": 91 - } - }, - "left": { - "type": "Identifier", - "start": 17798, - "end": 17820, - "loc": { - "start": { - "line": 450, - "column": 56 - }, - "end": { - "line": 450, - "column": 78 - }, - "identifierName": "proportionOfTimePassed" - }, - "name": "proportionOfTimePassed" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 17823, - "end": 17833, - "loc": { - "start": { - "line": 450, - "column": 81 - }, - "end": { - "line": 450, - "column": 91 - }, - "identifierName": "pDecayRate" - }, - "name": "pDecayRate" - }, - "extra": { - "parenthesized": true, - "parenStart": 17797 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 17792 - } - } - }, - { - "type": "NumericLiteral", - "start": 17837, - "end": 17838, - "loc": { - "start": { - "line": 450, - "column": 95 - }, - "end": { - "line": 450, - "column": 96 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 17844, - "end": 17866, - "loc": { - "start": { - "line": 451, - "column": 2 - }, - "end": { - "line": 451, - "column": 24 - } - }, - "argument": { - "type": "Identifier", - "start": 17851, - "end": 17865, - "loc": { - "start": { - "line": 451, - "column": 9 - }, - "end": { - "line": 451, - "column": 23 - }, - "identifierName": "remainingValue" - }, - "name": "remainingValue" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the linear decay of a variable over time.\r\n\t *\r\n\t * @param {number} pInitialValue - The initial value of the variable.\r\n\t * @param {number} pCurrentTime - The current time at which to calculate the variable value.\r\n\t * @param {number} pMaxTime - The maximum time for the decay process.\r\n\t * @param {number} [pDecayRate=0.5] - The decay rate (default is 0.5).\r\n\t * @returns {number} The remaining value of the variable after linear decay.\r\n\t *\r\n\t * @example\r\n\t * const initialValue = 100;\r\n\t * const currentTime = 50;\r\n\t * const maxTime = 1000;\r\n\t * const decayRate = 0.3;\r\n\t * const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);\r\n\t * // Returns the remaining value after linear decay.\r\n\t ", - "start": 16812, - "end": 17553, - "loc": { - "start": { - "line": 430, - "column": 1 - }, - "end": { - "line": 446, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 17873, - "end": 18006, - "loc": { - "start": { - "line": 453, - "column": 1 - }, - "end": { - "line": 458, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 18009, - "end": 18434, - "loc": { - "start": { - "line": 459, - "column": 1 - }, - "end": { - "line": 474, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 18009, - "end": 18019, - "loc": { - "start": { - "line": 459, - "column": 1 - }, - "end": { - "line": 459, - "column": 11 - }, - "identifierName": "generateID" - }, - "name": "generateID", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 18020, - "end": 18033, - "loc": { - "start": { - "line": 459, - "column": 12 - }, - "end": { - "line": 459, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 18020, - "end": 18029, - "loc": { - "start": { - "line": 459, - "column": 12 - }, - "end": { - "line": 459, - "column": 21 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - }, - "right": { - "type": "NumericLiteral", - "start": 18032, - "end": 18033, - "loc": { - "start": { - "line": 459, - "column": 24 - }, - "end": { - "line": 459, - "column": 25 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 18035, - "end": 18434, - "loc": { - "start": { - "line": 459, - "column": 27 - }, - "end": { - "line": 474, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 18040, - "end": 18119, - "loc": { - "start": { - "line": 460, - "column": 2 - }, - "end": { - "line": 460, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18046, - "end": 18118, - "loc": { - "start": { - "line": 460, - "column": 8 - }, - "end": { - "line": 460, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 18046, - "end": 18051, - "loc": { - "start": { - "line": 460, - "column": 8 - }, - "end": { - "line": 460, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 18054, - "end": 18118, - "loc": { - "start": { - "line": 460, - "column": 16 - }, - "end": { - "line": 460, - "column": 80 - } - }, - "extra": { - "rawValue": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "raw": "'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'" - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18123, - "end": 18302, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 467, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18129, - "end": 18302, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 467, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 18129, - "end": 18135, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "init": { - "type": "FunctionExpression", - "start": 18138, - "end": 18302, - "loc": { - "start": { - "line": 461, - "column": 17 - }, - "end": { - "line": 467, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 18149, - "end": 18302, - "loc": { - "start": { - "line": 461, - "column": 28 - }, - "end": { - "line": 467, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 18155, - "end": 18167, - "loc": { - "start": { - "line": 462, - "column": 3 - }, - "end": { - "line": 462, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18159, - "end": 18166, - "loc": { - "start": { - "line": 462, - "column": 7 - }, - "end": { - "line": 462, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 18159, - "end": 18161, - "loc": { - "start": { - "line": 462, - "column": 7 - }, - "end": { - "line": 462, - "column": 9 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "StringLiteral", - "start": 18164, - "end": 18166, - "loc": { - "start": { - "line": 462, - "column": 12 - }, - "end": { - "line": 462, - "column": 14 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 18172, - "end": 18282, - "loc": { - "start": { - "line": 463, - "column": 3 - }, - "end": { - "line": 465, - "column": 4 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 18177, - "end": 18186, - "loc": { - "start": { - "line": 463, - "column": 8 - }, - "end": { - "line": 463, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18181, - "end": 18186, - "loc": { - "start": { - "line": 463, - "column": 12 - }, - "end": { - "line": 463, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 18181, - "end": 18182, - "loc": { - "start": { - "line": 463, - "column": 12 - }, - "end": { - "line": 463, - "column": 13 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 18185, - "end": 18186, - "loc": { - "start": { - "line": 463, - "column": 16 - }, - "end": { - "line": 463, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 18188, - "end": 18201, - "loc": { - "start": { - "line": 463, - "column": 19 - }, - "end": { - "line": 463, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 18188, - "end": 18189, - "loc": { - "start": { - "line": 463, - "column": 19 - }, - "end": { - "line": 463, - "column": 20 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 18192, - "end": 18201, - "loc": { - "start": { - "line": 463, - "column": 23 - }, - "end": { - "line": 463, - "column": 32 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - } - }, - "update": { - "type": "UpdateExpression", - "start": 18203, - "end": 18206, - "loc": { - "start": { - "line": 463, - "column": 34 - }, - "end": { - "line": 463, - "column": 37 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 18203, - "end": 18204, - "loc": { - "start": { - "line": 463, - "column": 34 - }, - "end": { - "line": 463, - "column": 35 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 18208, - "end": 18282, - "loc": { - "start": { - "line": 463, - "column": 39 - }, - "end": { - "line": 465, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18215, - "end": 18276, - "loc": { - "start": { - "line": 464, - "column": 4 - }, - "end": { - "line": 464, - "column": 65 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18215, - "end": 18275, - "loc": { - "start": { - "line": 464, - "column": 4 - }, - "end": { - "line": 464, - "column": 64 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 18215, - "end": 18217, - "loc": { - "start": { - "line": 464, - "column": 4 - }, - "end": { - "line": 464, - "column": 6 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 18221, - "end": 18275, - "loc": { - "start": { - "line": 464, - "column": 10 - }, - "end": { - "line": 464, - "column": 64 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18221, - "end": 18233, - "loc": { - "start": { - "line": 464, - "column": 10 - }, - "end": { - "line": 464, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 18221, - "end": 18226, - "loc": { - "start": { - "line": 464, - "column": 10 - }, - "end": { - "line": 464, - "column": 15 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 18227, - "end": 18233, - "loc": { - "start": { - "line": 464, - "column": 16 - }, - "end": { - "line": 464, - "column": 22 - }, - "identifierName": "charAt" - }, - "name": "charAt" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18234, - "end": 18274, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18234, - "end": 18244, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 18234, - "end": 18238, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 18239, - "end": 18244, - "loc": { - "start": { - "line": 464, - "column": 28 - }, - "end": { - "line": 464, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 18245, - "end": 18273, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 18245, - "end": 18258, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18245, - "end": 18256, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 18245, - "end": 18249, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 18250, - "end": 18256, - "loc": { - "start": { - "line": 464, - "column": 39 - }, - "end": { - "line": 464, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 18261, - "end": 18273, - "loc": { - "start": { - "line": 464, - "column": 50 - }, - "end": { - "line": 464, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 18261, - "end": 18266, - "loc": { - "start": { - "line": 464, - "column": 50 - }, - "end": { - "line": 464, - "column": 55 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 18267, - "end": 18273, - "loc": { - "start": { - "line": 464, - "column": 56 - }, - "end": { - "line": 464, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - ] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 18287, - "end": 18297, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 466, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 18294, - "end": 18296, - "loc": { - "start": { - "line": 466, - "column": 10 - }, - "end": { - "line": 466, - "column": 12 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18306, - "end": 18324, - "loc": { - "start": { - "line": 468, - "column": 2 - }, - "end": { - "line": 468, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18310, - "end": 18323, - "loc": { - "start": { - "line": 468, - "column": 6 - }, - "end": { - "line": 468, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 18310, - "end": 18312, - "loc": { - "start": { - "line": 468, - "column": 6 - }, - "end": { - "line": 468, - "column": 8 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "CallExpression", - "start": 18315, - "end": 18323, - "loc": { - "start": { - "line": 468, - "column": 11 - }, - "end": { - "line": 468, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 18315, - "end": 18321, - "loc": { - "start": { - "line": 468, - "column": 11 - }, - "end": { - "line": 468, - "column": 17 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "WhileStatement", - "start": 18328, - "end": 18388, - "loc": { - "start": { - "line": 469, - "column": 2 - }, - "end": { - "line": 471, - "column": 3 - } - }, - "test": { - "type": "CallExpression", - "start": 18334, - "end": 18361, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 35 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18334, - "end": 18357, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 18334, - "end": 18348, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 18334, - "end": 18338, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 18339, - "end": 18348, - "loc": { - "start": { - "line": 469, - "column": 13 - }, - "end": { - "line": 469, - "column": 22 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18349, - "end": 18357, - "loc": { - "start": { - "line": 469, - "column": 23 - }, - "end": { - "line": 469, - "column": 31 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18358, - "end": 18360, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 469, - "column": 34 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - }, - "body": { - "type": "BlockStatement", - "start": 18363, - "end": 18388, - "loc": { - "start": { - "line": 469, - "column": 37 - }, - "end": { - "line": 471, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18369, - "end": 18383, - "loc": { - "start": { - "line": 470, - "column": 3 - }, - "end": { - "line": 470, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18369, - "end": 18382, - "loc": { - "start": { - "line": 470, - "column": 3 - }, - "end": { - "line": 470, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 18369, - "end": 18371, - "loc": { - "start": { - "line": 470, - "column": 3 - }, - "end": { - "line": 470, - "column": 5 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 18374, - "end": 18382, - "loc": { - "start": { - "line": 470, - "column": 8 - }, - "end": { - "line": 470, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 18374, - "end": 18380, - "loc": { - "start": { - "line": 470, - "column": 8 - }, - "end": { - "line": 470, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 18392, - "end": 18416, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 18392, - "end": 18415, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18392, - "end": 18411, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 21 - } - }, - "object": { - "type": "MemberExpression", - "start": 18392, - "end": 18406, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 18392, - "end": 18396, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 18397, - "end": 18406, - "loc": { - "start": { - "line": 472, - "column": 7 - }, - "end": { - "line": 472, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18407, - "end": 18411, - "loc": { - "start": { - "line": 472, - "column": 17 - }, - "end": { - "line": 472, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18412, - "end": 18414, - "loc": { - "start": { - "line": 472, - "column": 22 - }, - "end": { - "line": 472, - "column": 24 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 18420, - "end": 18430, - "loc": { - "start": { - "line": 473, - "column": 2 - }, - "end": { - "line": 473, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 18427, - "end": 18429, - "loc": { - "start": { - "line": 473, - "column": 9 - }, - "end": { - "line": 473, - "column": 11 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 17873, - "end": 18006, - "loc": { - "start": { - "line": 453, - "column": 1 - }, - "end": { - "line": 458, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 18437, - "end": 18690, - "loc": { - "start": { - "line": 475, - "column": 1 - }, - "end": { - "line": 481, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 18693, - "end": 18826, - "loc": { - "start": { - "line": 482, - "column": 1 - }, - "end": { - "line": 484, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 18693, - "end": 18705, - "loc": { - "start": { - "line": 482, - "column": 1 - }, - "end": { - "line": 482, - "column": 13 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 18706, - "end": 18714, - "loc": { - "start": { - "line": 482, - "column": 14 - }, - "end": { - "line": 482, - "column": 22 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - { - "type": "AssignmentPattern", - "start": 18716, - "end": 18726, - "loc": { - "start": { - "line": 482, - "column": 24 - }, - "end": { - "line": 482, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 18716, - "end": 18722, - "loc": { - "start": { - "line": 482, - "column": 24 - }, - "end": { - "line": 482, - "column": 30 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "right": { - "type": "NumericLiteral", - "start": 18725, - "end": 18726, - "loc": { - "start": { - "line": 482, - "column": 33 - }, - "end": { - "line": 482, - "column": 34 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 18728, - "end": 18826, - "loc": { - "start": { - "line": 482, - "column": 36 - }, - "end": { - "line": 484, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 18733, - "end": 18822, - "loc": { - "start": { - "line": 483, - "column": 2 - }, - "end": { - "line": 483, - "column": 91 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 18740, - "end": 18821, - "loc": { - "start": { - "line": 483, - "column": 9 - }, - "end": { - "line": 483, - "column": 90 - } - }, - "left": { - "type": "StringLiteral", - "start": 18740, - "end": 18743, - "loc": { - "start": { - "line": 483, - "column": 9 - }, - "end": { - "line": 483, - "column": 12 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 18746, - "end": 18821, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18746, - "end": 18819, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 18746, - "end": 18807, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18746, - "end": 18798, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 18746, - "end": 18792, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18746, - "end": 18788, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 57 - } - }, - "object": { - "type": "BinaryExpression", - "start": 18747, - "end": 18778, - "loc": { - "start": { - "line": 483, - "column": 16 - }, - "end": { - "line": 483, - "column": 47 - } - }, - "left": { - "type": "Identifier", - "start": 18747, - "end": 18755, - "loc": { - "start": { - "line": 483, - "column": 16 - }, - "end": { - "line": 483, - "column": 24 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 18758, - "end": 18778, - "loc": { - "start": { - "line": 483, - "column": 27 - }, - "end": { - "line": 483, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18758, - "end": 18766, - "loc": { - "start": { - "line": 483, - "column": 27 - }, - "end": { - "line": 483, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 18758, - "end": 18762, - "loc": { - "start": { - "line": 483, - "column": 27 - }, - "end": { - "line": 483, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 18763, - "end": 18766, - "loc": { - "start": { - "line": 483, - "column": 32 - }, - "end": { - "line": 483, - "column": 35 - }, - "identifierName": "pow" - }, - "name": "pow" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 18767, - "end": 18769, - "loc": { - "start": { - "line": 483, - "column": 36 - }, - "end": { - "line": 483, - "column": 38 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - }, - { - "type": "Identifier", - "start": 18771, - "end": 18777, - "loc": { - "start": { - "line": 483, - "column": 40 - }, - "end": { - "line": 483, - "column": 46 - }, - "identifierName": "pChars" - }, - "name": "pChars" - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 18746 - } - }, - "property": { - "type": "Identifier", - "start": 18780, - "end": 18788, - "loc": { - "start": { - "line": 483, - "column": 49 - }, - "end": { - "line": 483, - "column": 57 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 18789, - "end": 18791, - "loc": { - "start": { - "line": 483, - "column": 58 - }, - "end": { - "line": 483, - "column": 60 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 18793, - "end": 18798, - "loc": { - "start": { - "line": 483, - "column": 62 - }, - "end": { - "line": 483, - "column": 67 - }, - "identifierName": "slice" - }, - "name": "slice" - }, - "computed": false - }, - "arguments": [ - { - "type": "UnaryExpression", - "start": 18799, - "end": 18806, - "loc": { - "start": { - "line": 483, - "column": 68 - }, - "end": { - "line": 483, - "column": 75 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 18800, - "end": 18806, - "loc": { - "start": { - "line": 483, - "column": 69 - }, - "end": { - "line": 483, - "column": 75 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "extra": { - "parenthesizedArgument": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 18808, - "end": 18819, - "loc": { - "start": { - "line": 483, - "column": 77 - }, - "end": { - "line": 483, - "column": 88 - }, - "identifierName": "toUpperCase" - }, - "name": "toUpperCase" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 18437, - "end": 18690, - "loc": { - "start": { - "line": 475, - "column": 1 - }, - "end": { - "line": 481, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 18829, - "end": 19081, - "loc": { - "start": { - "line": 485, - "column": 1 - }, - "end": { - "line": 491, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19084, - "end": 19634, - "loc": { - "start": { - "line": 492, - "column": 1 - }, - "end": { - "line": 505, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19084, - "end": 19096, - "loc": { - "start": { - "line": 492, - "column": 1 - }, - "end": { - "line": 492, - "column": 13 - }, - "identifierName": "addIntensity" - }, - "name": "addIntensity", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19097, - "end": 19103, - "loc": { - "start": { - "line": 492, - "column": 14 - }, - "end": { - "line": 492, - "column": 20 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - { - "type": "Identifier", - "start": 19105, - "end": 19113, - "loc": { - "start": { - "line": 492, - "column": 22 - }, - "end": { - "line": 492, - "column": 30 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - } - ], - "body": { - "type": "BlockStatement", - "start": 19115, - "end": 19634, - "loc": { - "start": { - "line": 492, - "column": 32 - }, - "end": { - "line": 505, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 19120, - "end": 19164, - "loc": { - "start": { - "line": 493, - "column": 2 - }, - "end": { - "line": 493, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19126, - "end": 19163, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 19126, - "end": 19129, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 11 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": { - "type": "MemberExpression", - "start": 19132, - "end": 19163, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 45 - } - }, - "object": { - "type": "CallExpression", - "start": 19132, - "end": 19154, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19132, - "end": 19146, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 28 - } - }, - "object": { - "type": "ThisExpression", - "start": 19132, - "end": 19136, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 19137, - "end": 19146, - "loc": { - "start": { - "line": 493, - "column": 19 - }, - "end": { - "line": 493, - "column": 28 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19147, - "end": 19153, - "loc": { - "start": { - "line": 493, - "column": 29 - }, - "end": { - "line": 493, - "column": 35 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 19155, - "end": 19163, - "loc": { - "start": { - "line": 493, - "column": 37 - }, - "end": { - "line": 493, - "column": 45 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19168, - "end": 19185, - "loc": { - "start": { - "line": 494, - "column": 2 - }, - "end": { - "line": 494, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19174, - "end": 19184, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 19174, - "end": 19175, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "MemberExpression", - "start": 19178, - "end": 19184, - "loc": { - "start": { - "line": 494, - "column": 12 - }, - "end": { - "line": 494, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 19178, - "end": 19181, - "loc": { - "start": { - "line": 494, - "column": 12 - }, - "end": { - "line": 494, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 19182, - "end": 19183, - "loc": { - "start": { - "line": 494, - "column": 16 - }, - "end": { - "line": 494, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19189, - "end": 19206, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 495, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19195, - "end": 19205, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 19195, - "end": 19196, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "MemberExpression", - "start": 19199, - "end": 19205, - "loc": { - "start": { - "line": 495, - "column": 12 - }, - "end": { - "line": 495, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 19199, - "end": 19202, - "loc": { - "start": { - "line": 495, - "column": 12 - }, - "end": { - "line": 495, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 19203, - "end": 19204, - "loc": { - "start": { - "line": 495, - "column": 16 - }, - "end": { - "line": 495, - "column": 17 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19210, - "end": 19227, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 496, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19216, - "end": 19226, - "loc": { - "start": { - "line": 496, - "column": 8 - }, - "end": { - "line": 496, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 19216, - "end": 19217, - "loc": { - "start": { - "line": 496, - "column": 8 - }, - "end": { - "line": 496, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "MemberExpression", - "start": 19220, - "end": 19226, - "loc": { - "start": { - "line": 496, - "column": 12 - }, - "end": { - "line": 496, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 19220, - "end": 19223, - "loc": { - "start": { - "line": 496, - "column": 12 - }, - "end": { - "line": 496, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 19224, - "end": 19225, - "loc": { - "start": { - "line": 496, - "column": 16 - }, - "end": { - "line": 496, - "column": 17 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19231, - "end": 19242, - "loc": { - "start": { - "line": 497, - "column": 2 - }, - "end": { - "line": 497, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19235, - "end": 19241, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 19235, - "end": 19237, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 8 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "init": { - "type": "NumericLiteral", - "start": 19240, - "end": 19241, - "loc": { - "start": { - "line": 497, - "column": 11 - }, - "end": { - "line": 497, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 19246, - "end": 19257, - "loc": { - "start": { - "line": 498, - "column": 2 - }, - "end": { - "line": 498, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19250, - "end": 19256, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 19250, - "end": 19252, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 8 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "init": { - "type": "NumericLiteral", - "start": 19255, - "end": 19256, - "loc": { - "start": { - "line": 498, - "column": 11 - }, - "end": { - "line": 498, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 19261, - "end": 19272, - "loc": { - "start": { - "line": 499, - "column": 2 - }, - "end": { - "line": 499, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19265, - "end": 19271, - "loc": { - "start": { - "line": 499, - "column": 6 - }, - "end": { - "line": 499, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 19265, - "end": 19267, - "loc": { - "start": { - "line": 499, - "column": 6 - }, - "end": { - "line": 499, - "column": 8 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "init": { - "type": "NumericLiteral", - "start": 19270, - "end": 19271, - "loc": { - "start": { - "line": 499, - "column": 11 - }, - "end": { - "line": 499, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 19276, - "end": 19337, - "loc": { - "start": { - "line": 500, - "column": 2 - }, - "end": { - "line": 500, - "column": 63 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19282, - "end": 19336, - "loc": { - "start": { - "line": 500, - "column": 8 - }, - "end": { - "line": 500, - "column": 62 - } - }, - "id": { - "type": "Identifier", - "start": 19282, - "end": 19287, - "loc": { - "start": { - "line": 500, - "column": 8 - }, - "end": { - "line": 500, - "column": 13 - }, - "identifierName": "black" - }, - "name": "black" - }, - "init": { - "type": "ConditionalExpression", - "start": 19290, - "end": 19336, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 19291, - "end": 19320, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 46 - } - }, - "left": { - "type": "LogicalExpression", - "start": 19291, - "end": 19309, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 35 - } - }, - "left": { - "type": "BinaryExpression", - "start": 19291, - "end": 19298, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 19291, - "end": 19292, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 18 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 19297, - "end": 19298, - "loc": { - "start": { - "line": 500, - "column": 23 - }, - "end": { - "line": 500, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 19302, - "end": 19309, - "loc": { - "start": { - "line": 500, - "column": 28 - }, - "end": { - "line": 500, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 19302, - "end": 19303, - "loc": { - "start": { - "line": 500, - "column": 28 - }, - "end": { - "line": 500, - "column": 29 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 19308, - "end": 19309, - "loc": { - "start": { - "line": 500, - "column": 34 - }, - "end": { - "line": 500, - "column": 35 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 19313, - "end": 19320, - "loc": { - "start": { - "line": 500, - "column": 39 - }, - "end": { - "line": 500, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 19313, - "end": 19314, - "loc": { - "start": { - "line": 500, - "column": 39 - }, - "end": { - "line": 500, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 19319, - "end": 19320, - "loc": { - "start": { - "line": 500, - "column": 45 - }, - "end": { - "line": 500, - "column": 46 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 19290 - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 19324, - "end": 19328, - "loc": { - "start": { - "line": 500, - "column": 50 - }, - "end": { - "line": 500, - "column": 54 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 19331, - "end": 19336, - "loc": { - "start": { - "line": 500, - "column": 57 - }, - "end": { - "line": 500, - "column": 62 - } - }, - "value": false - } - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 19341, - "end": 19401, - "loc": { - "start": { - "line": 501, - "column": 2 - }, - "end": { - "line": 501, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 19345, - "end": 19355, - "loc": { - "start": { - "line": 501, - "column": 6 - }, - "end": { - "line": 501, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 19345, - "end": 19346, - "loc": { - "start": { - "line": 501, - "column": 6 - }, - "end": { - "line": 501, - "column": 7 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 19350, - "end": 19355, - "loc": { - "start": { - "line": 501, - "column": 11 - }, - "end": { - "line": 501, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 19357, - "end": 19401, - "loc": { - "start": { - "line": 501, - "column": 18 - }, - "end": { - "line": 501, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 19357, - "end": 19400, - "loc": { - "start": { - "line": 501, - "column": 18 - }, - "end": { - "line": 501, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 19357, - "end": 19359, - "loc": { - "start": { - "line": 501, - "column": 18 - }, - "end": { - "line": 501, - "column": 20 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "right": { - "type": "BinaryExpression", - "start": 19362, - "end": 19400, - "loc": { - "start": { - "line": 501, - "column": 23 - }, - "end": { - "line": 501, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 19362, - "end": 19363, - "loc": { - "start": { - "line": 501, - "column": 23 - }, - "end": { - "line": 501, - "column": 24 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 19366, - "end": 19400, - "loc": { - "start": { - "line": 501, - "column": 27 - }, - "end": { - "line": 501, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19366, - "end": 19376, - "loc": { - "start": { - "line": 501, - "column": 27 - }, - "end": { - "line": 501, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 19366, - "end": 19370, - "loc": { - "start": { - "line": 501, - "column": 27 - }, - "end": { - "line": 501, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 19371, - "end": 19376, - "loc": { - "start": { - "line": 501, - "column": 32 - }, - "end": { - "line": 501, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 19377, - "end": 19399, - "loc": { - "start": { - "line": 501, - "column": 38 - }, - "end": { - "line": 501, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 19378, - "end": 19392, - "loc": { - "start": { - "line": 501, - "column": 39 - }, - "end": { - "line": 501, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 19378, - "end": 19381, - "loc": { - "start": { - "line": 501, - "column": 39 - }, - "end": { - "line": 501, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 19384, - "end": 19392, - "loc": { - "start": { - "line": 501, - "column": 45 - }, - "end": { - "line": 501, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 19377 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 19396, - "end": 19399, - "loc": { - "start": { - "line": 501, - "column": 57 - }, - "end": { - "line": 501, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 19405, - "end": 19465, - "loc": { - "start": { - "line": 502, - "column": 2 - }, - "end": { - "line": 502, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 19409, - "end": 19419, - "loc": { - "start": { - "line": 502, - "column": 6 - }, - "end": { - "line": 502, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 19409, - "end": 19410, - "loc": { - "start": { - "line": 502, - "column": 6 - }, - "end": { - "line": 502, - "column": 7 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 19414, - "end": 19419, - "loc": { - "start": { - "line": 502, - "column": 11 - }, - "end": { - "line": 502, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 19421, - "end": 19465, - "loc": { - "start": { - "line": 502, - "column": 18 - }, - "end": { - "line": 502, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 19421, - "end": 19464, - "loc": { - "start": { - "line": 502, - "column": 18 - }, - "end": { - "line": 502, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 19421, - "end": 19423, - "loc": { - "start": { - "line": 502, - "column": 18 - }, - "end": { - "line": 502, - "column": 20 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "right": { - "type": "BinaryExpression", - "start": 19426, - "end": 19464, - "loc": { - "start": { - "line": 502, - "column": 23 - }, - "end": { - "line": 502, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 19426, - "end": 19427, - "loc": { - "start": { - "line": 502, - "column": 23 - }, - "end": { - "line": 502, - "column": 24 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 19430, - "end": 19464, - "loc": { - "start": { - "line": 502, - "column": 27 - }, - "end": { - "line": 502, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19430, - "end": 19440, - "loc": { - "start": { - "line": 502, - "column": 27 - }, - "end": { - "line": 502, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 19430, - "end": 19434, - "loc": { - "start": { - "line": 502, - "column": 27 - }, - "end": { - "line": 502, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 19435, - "end": 19440, - "loc": { - "start": { - "line": 502, - "column": 32 - }, - "end": { - "line": 502, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 19441, - "end": 19463, - "loc": { - "start": { - "line": 502, - "column": 38 - }, - "end": { - "line": 502, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 19442, - "end": 19456, - "loc": { - "start": { - "line": 502, - "column": 39 - }, - "end": { - "line": 502, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 19442, - "end": 19445, - "loc": { - "start": { - "line": 502, - "column": 39 - }, - "end": { - "line": 502, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 19448, - "end": 19456, - "loc": { - "start": { - "line": 502, - "column": 45 - }, - "end": { - "line": 502, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 19441 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 19460, - "end": 19463, - "loc": { - "start": { - "line": 502, - "column": 57 - }, - "end": { - "line": 502, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 19469, - "end": 19529, - "loc": { - "start": { - "line": 503, - "column": 2 - }, - "end": { - "line": 503, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 19473, - "end": 19483, - "loc": { - "start": { - "line": 503, - "column": 6 - }, - "end": { - "line": 503, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 19473, - "end": 19474, - "loc": { - "start": { - "line": 503, - "column": 6 - }, - "end": { - "line": 503, - "column": 7 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 19478, - "end": 19483, - "loc": { - "start": { - "line": 503, - "column": 11 - }, - "end": { - "line": 503, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 19485, - "end": 19529, - "loc": { - "start": { - "line": 503, - "column": 18 - }, - "end": { - "line": 503, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 19485, - "end": 19528, - "loc": { - "start": { - "line": 503, - "column": 18 - }, - "end": { - "line": 503, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 19485, - "end": 19487, - "loc": { - "start": { - "line": 503, - "column": 18 - }, - "end": { - "line": 503, - "column": 20 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "right": { - "type": "BinaryExpression", - "start": 19490, - "end": 19528, - "loc": { - "start": { - "line": 503, - "column": 23 - }, - "end": { - "line": 503, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 19490, - "end": 19491, - "loc": { - "start": { - "line": 503, - "column": 23 - }, - "end": { - "line": 503, - "column": 24 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 19494, - "end": 19528, - "loc": { - "start": { - "line": 503, - "column": 27 - }, - "end": { - "line": 503, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19494, - "end": 19504, - "loc": { - "start": { - "line": 503, - "column": 27 - }, - "end": { - "line": 503, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 19494, - "end": 19498, - "loc": { - "start": { - "line": 503, - "column": 27 - }, - "end": { - "line": 503, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 19499, - "end": 19504, - "loc": { - "start": { - "line": 503, - "column": 32 - }, - "end": { - "line": 503, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 19505, - "end": 19527, - "loc": { - "start": { - "line": 503, - "column": 38 - }, - "end": { - "line": 503, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 19506, - "end": 19520, - "loc": { - "start": { - "line": 503, - "column": 39 - }, - "end": { - "line": 503, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 19506, - "end": 19509, - "loc": { - "start": { - "line": 503, - "column": 39 - }, - "end": { - "line": 503, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 19512, - "end": 19520, - "loc": { - "start": { - "line": 503, - "column": 45 - }, - "end": { - "line": 503, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 19505 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 19524, - "end": 19527, - "loc": { - "start": { - "line": 503, - "column": 57 - }, - "end": { - "line": 503, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 19533, - "end": 19630, - "loc": { - "start": { - "line": 504, - "column": 2 - }, - "end": { - "line": 504, - "column": 99 - } - }, - "argument": { - "type": "MemberExpression", - "start": 19540, - "end": 19630, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 99 - } - }, - "object": { - "type": "CallExpression", - "start": 19540, - "end": 19626, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19540, - "end": 19554, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 19540, - "end": 19544, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 19545, - "end": 19554, - "loc": { - "start": { - "line": 504, - "column": 14 - }, - "end": { - "line": 504, - "column": 23 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 19555, - "end": 19577, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19555, - "end": 19565, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 19555, - "end": 19559, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 19560, - "end": 19565, - "loc": { - "start": { - "line": 504, - "column": 29 - }, - "end": { - "line": 504, - "column": 34 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19566, - "end": 19568, - "loc": { - "start": { - "line": 504, - "column": 35 - }, - "end": { - "line": 504, - "column": 37 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - { - "type": "NumericLiteral", - "start": 19570, - "end": 19571, - "loc": { - "start": { - "line": 504, - "column": 39 - }, - "end": { - "line": 504, - "column": 40 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 19573, - "end": 19576, - "loc": { - "start": { - "line": 504, - "column": 42 - }, - "end": { - "line": 504, - "column": 45 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 19579, - "end": 19601, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 70 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19579, - "end": 19589, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 19579, - "end": 19583, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 52 - } - } - }, - "property": { - "type": "Identifier", - "start": 19584, - "end": 19589, - "loc": { - "start": { - "line": 504, - "column": 53 - }, - "end": { - "line": 504, - "column": 58 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19590, - "end": 19592, - "loc": { - "start": { - "line": 504, - "column": 59 - }, - "end": { - "line": 504, - "column": 61 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - { - "type": "NumericLiteral", - "start": 19594, - "end": 19595, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 19597, - "end": 19600, - "loc": { - "start": { - "line": 504, - "column": 66 - }, - "end": { - "line": 504, - "column": 69 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 19603, - "end": 19625, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19603, - "end": 19613, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 82 - } - }, - "object": { - "type": "ThisExpression", - "start": 19603, - "end": 19607, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 76 - } - } - }, - "property": { - "type": "Identifier", - "start": 19608, - "end": 19613, - "loc": { - "start": { - "line": 504, - "column": 77 - }, - "end": { - "line": 504, - "column": 82 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19614, - "end": 19616, - "loc": { - "start": { - "line": 504, - "column": 83 - }, - "end": { - "line": 504, - "column": 85 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - { - "type": "NumericLiteral", - "start": 19618, - "end": 19619, - "loc": { - "start": { - "line": 504, - "column": 87 - }, - "end": { - "line": 504, - "column": 88 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 19621, - "end": 19624, - "loc": { - "start": { - "line": 504, - "column": 90 - }, - "end": { - "line": 504, - "column": 93 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 19627, - "end": 19630, - "loc": { - "start": { - "line": 504, - "column": 96 - }, - "end": { - "line": 504, - "column": 99 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 18829, - "end": 19081, - "loc": { - "start": { - "line": 485, - "column": 1 - }, - "end": { - "line": 491, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 19637, - "end": 19945, - "loc": { - "start": { - "line": 506, - "column": 1 - }, - "end": { - "line": 512, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19948, - "end": 20256, - "loc": { - "start": { - "line": 513, - "column": 1 - }, - "end": { - "line": 522, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19948, - "end": 19956, - "loc": { - "start": { - "line": 513, - "column": 1 - }, - "end": { - "line": 513, - "column": 9 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19957, - "end": 19959, - "loc": { - "start": { - "line": 513, - "column": 10 - }, - "end": { - "line": 513, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 19961, - "end": 19963, - "loc": { - "start": { - "line": 513, - "column": 14 - }, - "end": { - "line": 513, - "column": 16 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 19965, - "end": 19967, - "loc": { - "start": { - "line": 513, - "column": 18 - }, - "end": { - "line": 513, - "column": 20 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 19969, - "end": 20256, - "loc": { - "start": { - "line": 513, - "column": 22 - }, - "end": { - "line": 522, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 19974, - "end": 20007, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19980, - "end": 20006, - "loc": { - "start": { - "line": 514, - "column": 8 - }, - "end": { - "line": 514, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 19980, - "end": 19981, - "loc": { - "start": { - "line": 514, - "column": 8 - }, - "end": { - "line": 514, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 19984, - "end": 20006, - "loc": { - "start": { - "line": 514, - "column": 12 - }, - "end": { - "line": 514, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19984, - "end": 19994, - "loc": { - "start": { - "line": 514, - "column": 12 - }, - "end": { - "line": 514, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 19984, - "end": 19988, - "loc": { - "start": { - "line": 514, - "column": 12 - }, - "end": { - "line": 514, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 19989, - "end": 19994, - "loc": { - "start": { - "line": 514, - "column": 17 - }, - "end": { - "line": 514, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19995, - "end": 19997, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 25 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "NumericLiteral", - "start": 19999, - "end": 20000, - "loc": { - "start": { - "line": 514, - "column": 27 - }, - "end": { - "line": 514, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20002, - "end": 20005, - "loc": { - "start": { - "line": 514, - "column": 30 - }, - "end": { - "line": 514, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20011, - "end": 20044, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20017, - "end": 20043, - "loc": { - "start": { - "line": 515, - "column": 8 - }, - "end": { - "line": 515, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 20017, - "end": 20018, - "loc": { - "start": { - "line": 515, - "column": 8 - }, - "end": { - "line": 515, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 20021, - "end": 20043, - "loc": { - "start": { - "line": 515, - "column": 12 - }, - "end": { - "line": 515, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20021, - "end": 20031, - "loc": { - "start": { - "line": 515, - "column": 12 - }, - "end": { - "line": 515, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20021, - "end": 20025, - "loc": { - "start": { - "line": 515, - "column": 12 - }, - "end": { - "line": 515, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20026, - "end": 20031, - "loc": { - "start": { - "line": 515, - "column": 17 - }, - "end": { - "line": 515, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20032, - "end": 20034, - "loc": { - "start": { - "line": 515, - "column": 23 - }, - "end": { - "line": 515, - "column": 25 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "NumericLiteral", - "start": 20036, - "end": 20037, - "loc": { - "start": { - "line": 515, - "column": 27 - }, - "end": { - "line": 515, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20039, - "end": 20042, - "loc": { - "start": { - "line": 515, - "column": 30 - }, - "end": { - "line": 515, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20048, - "end": 20081, - "loc": { - "start": { - "line": 516, - "column": 2 - }, - "end": { - "line": 516, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20054, - "end": 20080, - "loc": { - "start": { - "line": 516, - "column": 8 - }, - "end": { - "line": 516, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 20054, - "end": 20055, - "loc": { - "start": { - "line": 516, - "column": 8 - }, - "end": { - "line": 516, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 20058, - "end": 20080, - "loc": { - "start": { - "line": 516, - "column": 12 - }, - "end": { - "line": 516, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20058, - "end": 20068, - "loc": { - "start": { - "line": 516, - "column": 12 - }, - "end": { - "line": 516, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20058, - "end": 20062, - "loc": { - "start": { - "line": 516, - "column": 12 - }, - "end": { - "line": 516, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20063, - "end": 20068, - "loc": { - "start": { - "line": 516, - "column": 17 - }, - "end": { - "line": 516, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20069, - "end": 20071, - "loc": { - "start": { - "line": 516, - "column": 23 - }, - "end": { - "line": 516, - "column": 25 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - { - "type": "NumericLiteral", - "start": 20073, - "end": 20074, - "loc": { - "start": { - "line": 516, - "column": 27 - }, - "end": { - "line": 516, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20076, - "end": 20079, - "loc": { - "start": { - "line": 516, - "column": 30 - }, - "end": { - "line": 516, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20085, - "end": 20177, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 519, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20091, - "end": 20177, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 519, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 20091, - "end": 20102, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 517, - "column": 19 - }, - "identifierName": "craftString" - }, - "name": "craftString" - }, - "init": { - "type": "FunctionExpression", - "start": 20105, - "end": 20177, - "loc": { - "start": { - "line": 517, - "column": 22 - }, - "end": { - "line": 519, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 20114, - "end": 20120, - "loc": { - "start": { - "line": 517, - "column": 31 - }, - "end": { - "line": 517, - "column": 37 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ], - "body": { - "type": "BlockStatement", - "start": 20122, - "end": 20177, - "loc": { - "start": { - "line": 517, - "column": 39 - }, - "end": { - "line": 519, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 20128, - "end": 20172, - "loc": { - "start": { - "line": 518, - "column": 3 - }, - "end": { - "line": 518, - "column": 47 - } - }, - "argument": { - "type": "CallExpression", - "start": 20135, - "end": 20171, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20135, - "end": 20163, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 38 - } - }, - "object": { - "type": "CallExpression", - "start": 20135, - "end": 20154, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20135, - "end": 20150, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 20135, - "end": 20141, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 16 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - "property": { - "type": "Identifier", - "start": 20142, - "end": 20150, - "loc": { - "start": { - "line": 518, - "column": 17 - }, - "end": { - "line": 518, - "column": 25 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 20151, - "end": 20153, - "loc": { - "start": { - "line": 518, - "column": 26 - }, - "end": { - "line": 518, - "column": 28 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 20155, - "end": 20163, - "loc": { - "start": { - "line": 518, - "column": 30 - }, - "end": { - "line": 518, - "column": 38 - }, - "identifierName": "padStart" - }, - "name": "padStart" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 20164, - "end": 20165, - "loc": { - "start": { - "line": 518, - "column": 39 - }, - "end": { - "line": 518, - "column": 40 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - { - "type": "StringLiteral", - "start": 20167, - "end": 20170, - "loc": { - "start": { - "line": 518, - "column": 42 - }, - "end": { - "line": 518, - "column": 45 - } - }, - "extra": { - "rawValue": "0", - "raw": "'0'" - }, - "value": "0" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20181, - "end": 20235, - "loc": { - "start": { - "line": 520, - "column": 2 - }, - "end": { - "line": 520, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20187, - "end": 20234, - "loc": { - "start": { - "line": 520, - "column": 8 - }, - "end": { - "line": 520, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 20187, - "end": 20190, - "loc": { - "start": { - "line": 520, - "column": 8 - }, - "end": { - "line": 520, - "column": 11 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": { - "type": "BinaryExpression", - "start": 20193, - "end": 20234, - "loc": { - "start": { - "line": 520, - "column": 14 - }, - "end": { - "line": 520, - "column": 55 - } - }, - "left": { - "type": "StringLiteral", - "start": 20193, - "end": 20196, - "loc": { - "start": { - "line": 520, - "column": 14 - }, - "end": { - "line": 520, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 20199, - "end": 20234, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20199, - "end": 20230, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 51 - } - }, - "object": { - "type": "CallExpression", - "start": 20199, - "end": 20225, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20199, - "end": 20212, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 33 - } - }, - "object": { - "type": "ArrayExpression", - "start": 20199, - "end": 20208, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 29 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 20200, - "end": 20201, - "loc": { - "start": { - "line": 520, - "column": 21 - }, - "end": { - "line": 520, - "column": 22 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 20203, - "end": 20204, - "loc": { - "start": { - "line": 520, - "column": 24 - }, - "end": { - "line": 520, - "column": 25 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 20206, - "end": 20207, - "loc": { - "start": { - "line": 520, - "column": 27 - }, - "end": { - "line": 520, - "column": 28 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - }, - "property": { - "type": "Identifier", - "start": 20209, - "end": 20212, - "loc": { - "start": { - "line": 520, - "column": 30 - }, - "end": { - "line": 520, - "column": 33 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20213, - "end": 20224, - "loc": { - "start": { - "line": 520, - "column": 34 - }, - "end": { - "line": 520, - "column": 45 - }, - "identifierName": "craftString" - }, - "name": "craftString" - } - ] - }, - "property": { - "type": "Identifier", - "start": 20226, - "end": 20230, - "loc": { - "start": { - "line": 520, - "column": 47 - }, - "end": { - "line": 520, - "column": 51 - }, - "identifierName": "join" - }, - "name": "join" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20231, - "end": 20233, - "loc": { - "start": { - "line": 520, - "column": 52 - }, - "end": { - "line": 520, - "column": 54 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 20239, - "end": 20250, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 521, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 20246, - "end": 20249, - "loc": { - "start": { - "line": 521, - "column": 9 - }, - "end": { - "line": 521, - "column": 12 - }, - "identifierName": "hex" - }, - "name": "hex" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 19637, - "end": 19945, - "loc": { - "start": { - "line": 506, - "column": 1 - }, - "end": { - "line": 512, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 20259, - "end": 20533, - "loc": { - "start": { - "line": 523, - "column": 1 - }, - "end": { - "line": 528, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 20536, - "end": 20913, - "loc": { - "start": { - "line": 529, - "column": 1 - }, - "end": { - "line": 539, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20536, - "end": 20544, - "loc": { - "start": { - "line": 529, - "column": 1 - }, - "end": { - "line": 529, - "column": 9 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 20545, - "end": 20549, - "loc": { - "start": { - "line": 529, - "column": 10 - }, - "end": { - "line": 529, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 20551, - "end": 20913, - "loc": { - "start": { - "line": 529, - "column": 16 - }, - "end": { - "line": 539, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 20556, - "end": 20585, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 530, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 20556, - "end": 20584, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 530, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 20556, - "end": 20560, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 530, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 20563, - "end": 20584, - "loc": { - "start": { - "line": 530, - "column": 9 - }, - "end": { - "line": 530, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20563, - "end": 20575, - "loc": { - "start": { - "line": 530, - "column": 9 - }, - "end": { - "line": 530, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 20563, - "end": 20567, - "loc": { - "start": { - "line": 530, - "column": 9 - }, - "end": { - "line": 530, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 20568, - "end": 20575, - "loc": { - "start": { - "line": 530, - "column": 14 - }, - "end": { - "line": 530, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20576, - "end": 20579, - "loc": { - "start": { - "line": 530, - "column": 22 - }, - "end": { - "line": 530, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 20581, - "end": 20583, - "loc": { - "start": { - "line": 530, - "column": 27 - }, - "end": { - "line": 530, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "IfStatement", - "start": 20589, - "end": 20675, - "loc": { - "start": { - "line": 531, - "column": 2 - }, - "end": { - "line": 533, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 20593, - "end": 20610, - "loc": { - "start": { - "line": 531, - "column": 6 - }, - "end": { - "line": 531, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 20593, - "end": 20604, - "loc": { - "start": { - "line": 531, - "column": 6 - }, - "end": { - "line": 531, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 20593, - "end": 20597, - "loc": { - "start": { - "line": 531, - "column": 6 - }, - "end": { - "line": 531, - "column": 10 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 531, - "column": 11 - }, - "end": { - "line": 531, - "column": 17 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 20609, - "end": 20610, - "loc": { - "start": { - "line": 531, - "column": 22 - }, - "end": { - "line": 531, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 20612, - "end": 20675, - "loc": { - "start": { - "line": 531, - "column": 25 - }, - "end": { - "line": 533, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 20618, - "end": 20670, - "loc": { - "start": { - "line": 532, - "column": 3 - }, - "end": { - "line": 532, - "column": 55 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 20618, - "end": 20669, - "loc": { - "start": { - "line": 532, - "column": 3 - }, - "end": { - "line": 532, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 20618, - "end": 20622, - "loc": { - "start": { - "line": 532, - "column": 3 - }, - "end": { - "line": 532, - "column": 7 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 20625, - "end": 20669, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 532, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20625, - "end": 20637, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 532, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 20625, - "end": 20629, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 532, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 20630, - "end": 20637, - "loc": { - "start": { - "line": 532, - "column": 15 - }, - "end": { - "line": 532, - "column": 22 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 20638, - "end": 20660, - "loc": { - "start": { - "line": 532, - "column": 23 - }, - "end": { - "line": 532, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 20642, - "end": 20648, - "loc": { - "start": { - "line": 532, - "column": 27 - }, - "end": { - "line": 532, - "column": 33 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20649, - "end": 20654, - "loc": { - "start": { - "line": 532, - "column": 34 - }, - "end": { - "line": 532, - "column": 39 - } - }, - "extra": { - "rawValue": "(.)", - "raw": "'(.)'" - }, - "value": "(.)" - }, - { - "type": "StringLiteral", - "start": 20656, - "end": 20659, - "loc": { - "start": { - "line": 532, - "column": 41 - }, - "end": { - "line": 532, - "column": 44 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - }, - { - "type": "StringLiteral", - "start": 20662, - "end": 20668, - "loc": { - "start": { - "line": 532, - "column": 47 - }, - "end": { - "line": 532, - "column": 53 - } - }, - "extra": { - "rawValue": "$1$1", - "raw": "'$1$1'" - }, - "value": "$1$1" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 20679, - "end": 20720, - "loc": { - "start": { - "line": 534, - "column": 2 - }, - "end": { - "line": 534, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 20679, - "end": 20719, - "loc": { - "start": { - "line": 534, - "column": 2 - }, - "end": { - "line": 534, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 20679, - "end": 20683, - "loc": { - "start": { - "line": 534, - "column": 2 - }, - "end": { - "line": 534, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 20686, - "end": 20719, - "loc": { - "start": { - "line": 534, - "column": 9 - }, - "end": { - "line": 534, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20686, - "end": 20696, - "loc": { - "start": { - "line": 534, - "column": 9 - }, - "end": { - "line": 534, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 20686, - "end": 20690, - "loc": { - "start": { - "line": 534, - "column": 9 - }, - "end": { - "line": 534, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 20691, - "end": 20696, - "loc": { - "start": { - "line": 534, - "column": 14 - }, - "end": { - "line": 534, - "column": 19 - }, - "identifierName": "match" - }, - "name": "match" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 20697, - "end": 20718, - "loc": { - "start": { - "line": 534, - "column": 20 - }, - "end": { - "line": 534, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 20701, - "end": 20707, - "loc": { - "start": { - "line": 534, - "column": 24 - }, - "end": { - "line": 534, - "column": 30 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20708, - "end": 20712, - "loc": { - "start": { - "line": 534, - "column": 31 - }, - "end": { - "line": 534, - "column": 35 - } - }, - "extra": { - "rawValue": "..", - "raw": "'..'" - }, - "value": ".." - }, - { - "type": "StringLiteral", - "start": 20714, - "end": 20717, - "loc": { - "start": { - "line": 534, - "column": 37 - }, - "end": { - "line": 534, - "column": 40 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 20724, - "end": 20776, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 535, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20730, - "end": 20775, - "loc": { - "start": { - "line": 535, - "column": 8 - }, - "end": { - "line": 535, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 20730, - "end": 20731, - "loc": { - "start": { - "line": 535, - "column": 8 - }, - "end": { - "line": 535, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 20734, - "end": 20775, - "loc": { - "start": { - "line": 535, - "column": 12 - }, - "end": { - "line": 535, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20734, - "end": 20744, - "loc": { - "start": { - "line": 535, - "column": 12 - }, - "end": { - "line": 535, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20734, - "end": 20738, - "loc": { - "start": { - "line": 535, - "column": 12 - }, - "end": { - "line": 535, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20739, - "end": 20744, - "loc": { - "start": { - "line": 535, - "column": 17 - }, - "end": { - "line": 535, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 20745, - "end": 20766, - "loc": { - "start": { - "line": 535, - "column": 23 - }, - "end": { - "line": 535, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 20745, - "end": 20753, - "loc": { - "start": { - "line": 535, - "column": 23 - }, - "end": { - "line": 535, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 20754, - "end": 20761, - "loc": { - "start": { - "line": 535, - "column": 32 - }, - "end": { - "line": 535, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 20754, - "end": 20758, - "loc": { - "start": { - "line": 535, - "column": 32 - }, - "end": { - "line": 535, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 20759, - "end": 20760, - "loc": { - "start": { - "line": 535, - "column": 37 - }, - "end": { - "line": 535, - "column": 38 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 20763, - "end": 20765, - "loc": { - "start": { - "line": 535, - "column": 41 - }, - "end": { - "line": 535, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 20768, - "end": 20769, - "loc": { - "start": { - "line": 535, - "column": 46 - }, - "end": { - "line": 535, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20771, - "end": 20774, - "loc": { - "start": { - "line": 535, - "column": 49 - }, - "end": { - "line": 535, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20780, - "end": 20832, - "loc": { - "start": { - "line": 536, - "column": 2 - }, - "end": { - "line": 536, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20786, - "end": 20831, - "loc": { - "start": { - "line": 536, - "column": 8 - }, - "end": { - "line": 536, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 20786, - "end": 20787, - "loc": { - "start": { - "line": 536, - "column": 8 - }, - "end": { - "line": 536, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 20790, - "end": 20831, - "loc": { - "start": { - "line": 536, - "column": 12 - }, - "end": { - "line": 536, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20790, - "end": 20800, - "loc": { - "start": { - "line": 536, - "column": 12 - }, - "end": { - "line": 536, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20790, - "end": 20794, - "loc": { - "start": { - "line": 536, - "column": 12 - }, - "end": { - "line": 536, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20795, - "end": 20800, - "loc": { - "start": { - "line": 536, - "column": 17 - }, - "end": { - "line": 536, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 20801, - "end": 20822, - "loc": { - "start": { - "line": 536, - "column": 23 - }, - "end": { - "line": 536, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 20801, - "end": 20809, - "loc": { - "start": { - "line": 536, - "column": 23 - }, - "end": { - "line": 536, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 20810, - "end": 20817, - "loc": { - "start": { - "line": 536, - "column": 32 - }, - "end": { - "line": 536, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 20810, - "end": 20814, - "loc": { - "start": { - "line": 536, - "column": 32 - }, - "end": { - "line": 536, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 20815, - "end": 20816, - "loc": { - "start": { - "line": 536, - "column": 37 - }, - "end": { - "line": 536, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 20819, - "end": 20821, - "loc": { - "start": { - "line": 536, - "column": 41 - }, - "end": { - "line": 536, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 20824, - "end": 20825, - "loc": { - "start": { - "line": 536, - "column": 46 - }, - "end": { - "line": 536, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20827, - "end": 20830, - "loc": { - "start": { - "line": 536, - "column": 49 - }, - "end": { - "line": 536, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20836, - "end": 20888, - "loc": { - "start": { - "line": 537, - "column": 2 - }, - "end": { - "line": 537, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20842, - "end": 20887, - "loc": { - "start": { - "line": 537, - "column": 8 - }, - "end": { - "line": 537, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 20842, - "end": 20843, - "loc": { - "start": { - "line": 537, - "column": 8 - }, - "end": { - "line": 537, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 20846, - "end": 20887, - "loc": { - "start": { - "line": 537, - "column": 12 - }, - "end": { - "line": 537, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20846, - "end": 20856, - "loc": { - "start": { - "line": 537, - "column": 12 - }, - "end": { - "line": 537, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20846, - "end": 20850, - "loc": { - "start": { - "line": 537, - "column": 12 - }, - "end": { - "line": 537, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20851, - "end": 20856, - "loc": { - "start": { - "line": 537, - "column": 17 - }, - "end": { - "line": 537, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 20857, - "end": 20878, - "loc": { - "start": { - "line": 537, - "column": 23 - }, - "end": { - "line": 537, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 20857, - "end": 20865, - "loc": { - "start": { - "line": 537, - "column": 23 - }, - "end": { - "line": 537, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 20866, - "end": 20873, - "loc": { - "start": { - "line": 537, - "column": 32 - }, - "end": { - "line": 537, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 20866, - "end": 20870, - "loc": { - "start": { - "line": 537, - "column": 32 - }, - "end": { - "line": 537, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 20871, - "end": 20872, - "loc": { - "start": { - "line": 537, - "column": 37 - }, - "end": { - "line": 537, - "column": 38 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 20875, - "end": 20877, - "loc": { - "start": { - "line": 537, - "column": 41 - }, - "end": { - "line": 537, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 20880, - "end": 20881, - "loc": { - "start": { - "line": 537, - "column": 46 - }, - "end": { - "line": 537, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20883, - "end": 20886, - "loc": { - "start": { - "line": 537, - "column": 49 - }, - "end": { - "line": 537, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 20892, - "end": 20909, - "loc": { - "start": { - "line": 538, - "column": 2 - }, - "end": { - "line": 538, - "column": 19 - } - }, - "argument": { - "type": "ArrayExpression", - "start": 20899, - "end": 20908, - "loc": { - "start": { - "line": 538, - "column": 9 - }, - "end": { - "line": 538, - "column": 18 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 20900, - "end": 20901, - "loc": { - "start": { - "line": 538, - "column": 10 - }, - "end": { - "line": 538, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 20903, - "end": 20904, - "loc": { - "start": { - "line": 538, - "column": 13 - }, - "end": { - "line": 538, - "column": 14 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 20906, - "end": 20907, - "loc": { - "start": { - "line": 538, - "column": 16 - }, - "end": { - "line": 538, - "column": 17 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 20259, - "end": 20533, - "loc": { - "start": { - "line": 523, - "column": 1 - }, - "end": { - "line": 528, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 20916, - "end": 21212, - "loc": { - "start": { - "line": 540, - "column": 1 - }, - "end": { - "line": 546, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21215, - "end": 21282, - "loc": { - "start": { - "line": 547, - "column": 1 - }, - "end": { - "line": 549, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21215, - "end": 21227, - "loc": { - "start": { - "line": 547, - "column": 1 - }, - "end": { - "line": 547, - "column": 13 - }, - "identifierName": "rgbToDecimal" - }, - "name": "rgbToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 21228, - "end": 21230, - "loc": { - "start": { - "line": 547, - "column": 14 - }, - "end": { - "line": 547, - "column": 16 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 21232, - "end": 21234, - "loc": { - "start": { - "line": 547, - "column": 18 - }, - "end": { - "line": 547, - "column": 20 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 21236, - "end": 21238, - "loc": { - "start": { - "line": 547, - "column": 22 - }, - "end": { - "line": 547, - "column": 24 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 21240, - "end": 21282, - "loc": { - "start": { - "line": 547, - "column": 26 - }, - "end": { - "line": 549, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 21245, - "end": 21278, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 35 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 21253, - "end": 21276, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 33 - } - }, - "left": { - "type": "BinaryExpression", - "start": 21253, - "end": 21271, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 21253, - "end": 21261, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 21253, - "end": 21255, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 21259, - "end": 21261, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 18 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - }, - "operator": "|", - "right": { - "type": "BinaryExpression", - "start": 21264, - "end": 21271, - "loc": { - "start": { - "line": 548, - "column": 21 - }, - "end": { - "line": 548, - "column": 28 - } - }, - "left": { - "type": "Identifier", - "start": 21264, - "end": 21266, - "loc": { - "start": { - "line": 548, - "column": 21 - }, - "end": { - "line": 548, - "column": 23 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 21270, - "end": 21271, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 28 - } - }, - "extra": { - "rawValue": 8, - "raw": "8" - }, - "value": 8 - } - } - }, - "operator": "|", - "right": { - "type": "Identifier", - "start": 21274, - "end": 21276, - "loc": { - "start": { - "line": 548, - "column": 31 - }, - "end": { - "line": 548, - "column": 33 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - "extra": { - "parenthesized": true, - "parenStart": 21252 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 20916, - "end": 21212, - "loc": { - "start": { - "line": 540, - "column": 1 - }, - "end": { - "line": 546, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 21285, - "end": 21536, - "loc": { - "start": { - "line": 550, - "column": 1 - }, - "end": { - "line": 555, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21539, - "end": 21626, - "loc": { - "start": { - "line": 556, - "column": 1 - }, - "end": { - "line": 559, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21539, - "end": 21551, - "loc": { - "start": { - "line": 556, - "column": 1 - }, - "end": { - "line": 556, - "column": 13 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 21552, - "end": 21556, - "loc": { - "start": { - "line": 556, - "column": 14 - }, - "end": { - "line": 556, - "column": 18 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 21558, - "end": 21626, - "loc": { - "start": { - "line": 556, - "column": 20 - }, - "end": { - "line": 559, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 21563, - "end": 21592, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 21563, - "end": 21591, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 21563, - "end": 21567, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 21570, - "end": 21591, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21570, - "end": 21582, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 21570, - "end": 21574, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 21575, - "end": 21582, - "loc": { - "start": { - "line": 557, - "column": 14 - }, - "end": { - "line": 557, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 21583, - "end": 21586, - "loc": { - "start": { - "line": 557, - "column": 22 - }, - "end": { - "line": 557, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 21588, - "end": 21590, - "loc": { - "start": { - "line": 557, - "column": 27 - }, - "end": { - "line": 557, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 21596, - "end": 21622, - "loc": { - "start": { - "line": 558, - "column": 2 - }, - "end": { - "line": 558, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 21603, - "end": 21621, - "loc": { - "start": { - "line": 558, - "column": 9 - }, - "end": { - "line": 558, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 21603, - "end": 21611, - "loc": { - "start": { - "line": 558, - "column": 9 - }, - "end": { - "line": 558, - "column": 17 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21612, - "end": 21616, - "loc": { - "start": { - "line": 558, - "column": 18 - }, - "end": { - "line": 558, - "column": 22 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - { - "type": "NumericLiteral", - "start": 21618, - "end": 21620, - "loc": { - "start": { - "line": 558, - "column": 24 - }, - "end": { - "line": 558, - "column": 26 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 21285, - "end": 21536, - "loc": { - "start": { - "line": 550, - "column": 1 - }, - "end": { - "line": 555, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 21629, - "end": 22137, - "loc": { - "start": { - "line": 560, - "column": 1 - }, - "end": { - "line": 569, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 22140, - "end": 22992, - "loc": { - "start": { - "line": 570, - "column": 1 - }, - "end": { - "line": 593, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22140, - "end": 22149, - "loc": { - "start": { - "line": 570, - "column": 1 - }, - "end": { - "line": 570, - "column": 10 - }, - "identifierName": "grabColor" - }, - "name": "grabColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 22150, - "end": 22181, - "loc": { - "start": { - "line": 570, - "column": 11 - }, - "end": { - "line": 570, - "column": 42 - } - }, - "left": { - "type": "Identifier", - "start": 22150, - "end": 22157, - "loc": { - "start": { - "line": 570, - "column": 11 - }, - "end": { - "line": 570, - "column": 18 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 22160, - "end": 22181, - "loc": { - "start": { - "line": 570, - "column": 21 - }, - "end": { - "line": 570, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22160, - "end": 22179, - "loc": { - "start": { - "line": 570, - "column": 21 - }, - "end": { - "line": 570, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 22160, - "end": 22164, - "loc": { - "start": { - "line": 570, - "column": 21 - }, - "end": { - "line": 570, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "start": 22165, - "end": 22179, - "loc": { - "start": { - "line": 570, - "column": 26 - }, - "end": { - "line": 570, - "column": 40 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "Identifier", - "start": 22183, - "end": 22185, - "loc": { - "start": { - "line": 570, - "column": 44 - }, - "end": { - "line": 570, - "column": 46 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 22187, - "end": 22189, - "loc": { - "start": { - "line": 570, - "column": 48 - }, - "end": { - "line": 570, - "column": 50 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 22191, - "end": 22992, - "loc": { - "start": { - "line": 570, - "column": 52 - }, - "end": { - "line": 593, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 22196, - "end": 22209, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 22200, - "end": 22203, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 9 - } - }, - "id": { - "type": "Identifier", - "start": 22200, - "end": 22203, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 9 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "start": 22205, - "end": 22208, - "loc": { - "start": { - "line": 571, - "column": 11 - }, - "end": { - "line": 571, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 22205, - "end": 22208, - "loc": { - "start": { - "line": 571, - "column": 11 - }, - "end": { - "line": 571, - "column": 14 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": null - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 22213, - "end": 22234, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 23 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 22238, - "end": 22580, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 583, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 22242, - "end": 22324, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 88 - } - }, - "left": { - "type": "LogicalExpression", - "start": 22242, - "end": 22297, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 61 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22242, - "end": 22270, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 22242, - "end": 22257, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 22249, - "end": 22256, - "loc": { - "start": { - "line": 573, - "column": 13 - }, - "end": { - "line": 573, - "column": 20 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 22248 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 22262, - "end": 22270, - "loc": { - "start": { - "line": 573, - "column": 26 - }, - "end": { - "line": 573, - "column": 34 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 22274, - "end": 22297, - "loc": { - "start": { - "line": 573, - "column": 38 - }, - "end": { - "line": 573, - "column": 61 - } - }, - "left": { - "type": "UnaryExpression", - "start": 22274, - "end": 22284, - "loc": { - "start": { - "line": 573, - "column": 38 - }, - "end": { - "line": 573, - "column": 48 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 22281, - "end": 22283, - "loc": { - "start": { - "line": 573, - "column": 45 - }, - "end": { - "line": 573, - "column": 47 - }, - "identifierName": "pG" - }, - "name": "pG", - "extra": { - "parenthesized": true, - "parenStart": 22280 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 22289, - "end": 22297, - "loc": { - "start": { - "line": 573, - "column": 53 - }, - "end": { - "line": 573, - "column": 61 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 22301, - "end": 22324, - "loc": { - "start": { - "line": 573, - "column": 65 - }, - "end": { - "line": 573, - "column": 88 - } - }, - "left": { - "type": "UnaryExpression", - "start": 22301, - "end": 22311, - "loc": { - "start": { - "line": 573, - "column": 65 - }, - "end": { - "line": 573, - "column": 75 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 22308, - "end": 22310, - "loc": { - "start": { - "line": 573, - "column": 72 - }, - "end": { - "line": 573, - "column": 74 - }, - "identifierName": "pB" - }, - "name": "pB", - "extra": { - "parenthesized": true, - "parenStart": 22307 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 22316, - "end": 22324, - "loc": { - "start": { - "line": 573, - "column": 80 - }, - "end": { - "line": 573, - "column": 88 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 22326, - "end": 22374, - "loc": { - "start": { - "line": 573, - "column": 90 - }, - "end": { - "line": 575, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22332, - "end": 22369, - "loc": { - "start": { - "line": 574, - "column": 3 - }, - "end": { - "line": 574, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 22332, - "end": 22368, - "loc": { - "start": { - "line": 574, - "column": 3 - }, - "end": { - "line": 574, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 22332, - "end": 22335, - "loc": { - "start": { - "line": 574, - "column": 3 - }, - "end": { - "line": 574, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "CallExpression", - "start": 22338, - "end": 22368, - "loc": { - "start": { - "line": 574, - "column": 9 - }, - "end": { - "line": 574, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22338, - "end": 22351, - "loc": { - "start": { - "line": 574, - "column": 9 - }, - "end": { - "line": 574, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 22338, - "end": 22342, - "loc": { - "start": { - "line": 574, - "column": 9 - }, - "end": { - "line": 574, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 22343, - "end": 22351, - "loc": { - "start": { - "line": 574, - "column": 14 - }, - "end": { - "line": 574, - "column": 22 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 22352, - "end": 22359, - "loc": { - "start": { - "line": 574, - "column": 23 - }, - "end": { - "line": 574, - "column": 30 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - { - "type": "Identifier", - "start": 22361, - "end": 22363, - "loc": { - "start": { - "line": 574, - "column": 32 - }, - "end": { - "line": 574, - "column": 34 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 22365, - "end": 22367, - "loc": { - "start": { - "line": 574, - "column": 36 - }, - "end": { - "line": 574, - "column": 38 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 22380, - "end": 22580, - "loc": { - "start": { - "line": 575, - "column": 9 - }, - "end": { - "line": 583, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 22416, - "end": 22500, - "loc": { - "start": { - "line": 577, - "column": 3 - }, - "end": { - "line": 579, - "column": 4 - } - }, - "test": { - "type": "BinaryExpression", - "start": 22420, - "end": 22448, - "loc": { - "start": { - "line": 577, - "column": 7 - }, - "end": { - "line": 577, - "column": 35 - } - }, - "left": { - "type": "UnaryExpression", - "start": 22420, - "end": 22435, - "loc": { - "start": { - "line": 577, - "column": 7 - }, - "end": { - "line": 577, - "column": 22 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 22427, - "end": 22434, - "loc": { - "start": { - "line": 577, - "column": 14 - }, - "end": { - "line": 577, - "column": 21 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 22426 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 22440, - "end": 22448, - "loc": { - "start": { - "line": 577, - "column": 27 - }, - "end": { - "line": 577, - "column": 35 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 22450, - "end": 22500, - "loc": { - "start": { - "line": 577, - "column": 37 - }, - "end": { - "line": 579, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22457, - "end": 22494, - "loc": { - "start": { - "line": 578, - "column": 4 - }, - "end": { - "line": 578, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 22457, - "end": 22493, - "loc": { - "start": { - "line": 578, - "column": 4 - }, - "end": { - "line": 578, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 22457, - "end": 22464, - "loc": { - "start": { - "line": 578, - "column": 4 - }, - "end": { - "line": 578, - "column": 11 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 22467, - "end": 22493, - "loc": { - "start": { - "line": 578, - "column": 14 - }, - "end": { - "line": 578, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22467, - "end": 22484, - "loc": { - "start": { - "line": 578, - "column": 14 - }, - "end": { - "line": 578, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 22467, - "end": 22471, - "loc": { - "start": { - "line": 578, - "column": 14 - }, - "end": { - "line": 578, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 22472, - "end": 22484, - "loc": { - "start": { - "line": 578, - "column": 19 - }, - "end": { - "line": 578, - "column": 31 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 22485, - "end": 22492, - "loc": { - "start": { - "line": 578, - "column": 32 - }, - "end": { - "line": 578, - "column": 39 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 22386, - "end": 22411, - "loc": { - "start": { - "line": 576, - "column": 3 - }, - "end": { - "line": 576, - "column": 28 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 22505, - "end": 22519, - "loc": { - "start": { - "line": 580, - "column": 3 - }, - "end": { - "line": 580, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 22505, - "end": 22518, - "loc": { - "start": { - "line": 580, - "column": 3 - }, - "end": { - "line": 580, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 22505, - "end": 22508, - "loc": { - "start": { - "line": 580, - "column": 3 - }, - "end": { - "line": 580, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "Identifier", - "start": 22511, - "end": 22518, - "loc": { - "start": { - "line": 580, - "column": 9 - }, - "end": { - "line": 580, - "column": 16 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 22524, - "end": 22545, - "loc": { - "start": { - "line": 581, - "column": 3 - }, - "end": { - "line": 581, - "column": 24 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 22550, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 3 - }, - "end": { - "line": 582, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 22550, - "end": 22574, - "loc": { - "start": { - "line": 582, - "column": 3 - }, - "end": { - "line": 582, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 22550, - "end": 22553, - "loc": { - "start": { - "line": 582, - "column": 3 - }, - "end": { - "line": 582, - "column": 6 - }, - "identifierName": "rgb" - }, - "name": "rgb", - "leadingComments": null - }, - "right": { - "type": "CallExpression", - "start": 22556, - "end": 22574, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22556, - "end": 22569, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 22556, - "end": 22560, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 22561, - "end": 22569, - "loc": { - "start": { - "line": 582, - "column": 14 - }, - "end": { - "line": 582, - "column": 22 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 22570, - "end": 22573, - "loc": { - "start": { - "line": 582, - "column": 23 - }, - "end": { - "line": 582, - "column": 26 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 22524, - "end": 22545, - "loc": { - "start": { - "line": 581, - "column": 3 - }, - "end": { - "line": 581, - "column": 24 - } - } - } - ] - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 22213, - "end": 22234, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 23 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 22584, - "end": 22988, - "loc": { - "start": { - "line": 584, - "column": 2 - }, - "end": { - "line": 592, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 22591, - "end": 22987, - "loc": { - "start": { - "line": 584, - "column": 9 - }, - "end": { - "line": 592, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22598, - "end": 22622, - "loc": { - "start": { - "line": 585, - "column": 3 - }, - "end": { - "line": 585, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22598, - "end": 22603, - "loc": { - "start": { - "line": 585, - "column": 3 - }, - "end": { - "line": 585, - "column": 8 - } - }, - "extra": { - "rawValue": "hex", - "raw": "'hex'" - }, - "value": "hex" - }, - "value": { - "type": "CallExpression", - "start": 22605, - "end": 22622, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22605, - "end": 22620, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 22605, - "end": 22608, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 13 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 22609, - "end": 22620, - "loc": { - "start": { - "line": 585, - "column": 14 - }, - "end": { - "line": 585, - "column": 25 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 22629, - "end": 22677, - "loc": { - "start": { - "line": 586, - "column": 3 - }, - "end": { - "line": 586, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22629, - "end": 22641, - "loc": { - "start": { - "line": 586, - "column": 3 - }, - "end": { - "line": 586, - "column": 15 - } - }, - "extra": { - "rawValue": "hexTagless", - "raw": "'hexTagless'" - }, - "value": "hexTagless" - }, - "value": { - "type": "CallExpression", - "start": 22643, - "end": 22677, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22643, - "end": 22675, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 49 - } - }, - "object": { - "type": "CallExpression", - "start": 22643, - "end": 22663, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22643, - "end": 22654, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 22643, - "end": 22646, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 20 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 22647, - "end": 22654, - "loc": { - "start": { - "line": 586, - "column": 21 - }, - "end": { - "line": 586, - "column": 28 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 22655, - "end": 22658, - "loc": { - "start": { - "line": 586, - "column": 29 - }, - "end": { - "line": 586, - "column": 32 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 22660, - "end": 22662, - "loc": { - "start": { - "line": 586, - "column": 34 - }, - "end": { - "line": 586, - "column": 36 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - }, - "property": { - "type": "Identifier", - "start": 22664, - "end": 22675, - "loc": { - "start": { - "line": 586, - "column": 38 - }, - "end": { - "line": 586, - "column": 49 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 22684, - "end": 22730, - "loc": { - "start": { - "line": 587, - "column": 3 - }, - "end": { - "line": 587, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22684, - "end": 22689, - "loc": { - "start": { - "line": 587, - "column": 3 - }, - "end": { - "line": 587, - "column": 8 - } - }, - "extra": { - "rawValue": "rgb", - "raw": "'rgb'" - }, - "value": "rgb" - }, - "value": { - "type": "BinaryExpression", - "start": 22691, - "end": 22730, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 49 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22726, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 45 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22719, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22715, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 34 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22708, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22704, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 23 - } - }, - "left": { - "type": "StringLiteral", - "start": 22691, - "end": 22697, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 16 - } - }, - "extra": { - "rawValue": "rgb(", - "raw": "'rgb('" - }, - "value": "rgb(" - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 22698, - "end": 22704, - "loc": { - "start": { - "line": 587, - "column": 17 - }, - "end": { - "line": 587, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 22698, - "end": 22701, - "loc": { - "start": { - "line": 587, - "column": 17 - }, - "end": { - "line": 587, - "column": 20 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22702, - "end": 22703, - "loc": { - "start": { - "line": 587, - "column": 21 - }, - "end": { - "line": 587, - "column": 22 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 22705, - "end": 22708, - "loc": { - "start": { - "line": 587, - "column": 24 - }, - "end": { - "line": 587, - "column": 27 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 22709, - "end": 22715, - "loc": { - "start": { - "line": 587, - "column": 28 - }, - "end": { - "line": 587, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 22709, - "end": 22712, - "loc": { - "start": { - "line": 587, - "column": 28 - }, - "end": { - "line": 587, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22713, - "end": 22714, - "loc": { - "start": { - "line": 587, - "column": 32 - }, - "end": { - "line": 587, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 22716, - "end": 22719, - "loc": { - "start": { - "line": 587, - "column": 35 - }, - "end": { - "line": 587, - "column": 38 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 22720, - "end": 22726, - "loc": { - "start": { - "line": 587, - "column": 39 - }, - "end": { - "line": 587, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 22720, - "end": 22723, - "loc": { - "start": { - "line": 587, - "column": 39 - }, - "end": { - "line": 587, - "column": 42 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22724, - "end": 22725, - "loc": { - "start": { - "line": 587, - "column": 43 - }, - "end": { - "line": 587, - "column": 44 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 22727, - "end": 22730, - "loc": { - "start": { - "line": 587, - "column": 46 - }, - "end": { - "line": 587, - "column": 49 - } - }, - "extra": { - "rawValue": ")", - "raw": "')'" - }, - "value": ")" - } - } - }, - { - "type": "ObjectProperty", - "start": 22737, - "end": 22752, - "loc": { - "start": { - "line": 588, - "column": 3 - }, - "end": { - "line": 588, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22737, - "end": 22747, - "loc": { - "start": { - "line": 588, - "column": 3 - }, - "end": { - "line": 588, - "column": 13 - } - }, - "extra": { - "rawValue": "rgbArray", - "raw": "'rgbArray'" - }, - "value": "rgbArray" - }, - "value": { - "type": "Identifier", - "start": 22749, - "end": 22752, - "loc": { - "start": { - "line": 588, - "column": 15 - }, - "end": { - "line": 588, - "column": 18 - }, - "identifierName": "rgb" - }, - "name": "rgb" - } - }, - { - "type": "ObjectProperty", - "start": 22759, - "end": 22813, - "loc": { - "start": { - "line": 589, - "column": 3 - }, - "end": { - "line": 589, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22759, - "end": 22770, - "loc": { - "start": { - "line": 589, - "column": 3 - }, - "end": { - "line": 589, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbObject", - "raw": "'rgbObject'" - }, - "value": "rgbObject" - }, - "value": { - "type": "ObjectExpression", - "start": 22772, - "end": 22813, - "loc": { - "start": { - "line": 589, - "column": 16 - }, - "end": { - "line": 589, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22774, - "end": 22785, - "loc": { - "start": { - "line": 589, - "column": 18 - }, - "end": { - "line": 589, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22774, - "end": 22777, - "loc": { - "start": { - "line": 589, - "column": 18 - }, - "end": { - "line": 589, - "column": 21 - } - }, - "extra": { - "rawValue": "r", - "raw": "'r'" - }, - "value": "r" - }, - "value": { - "type": "MemberExpression", - "start": 22779, - "end": 22785, - "loc": { - "start": { - "line": 589, - "column": 23 - }, - "end": { - "line": 589, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 22779, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 23 - }, - "end": { - "line": 589, - "column": 26 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22783, - "end": 22784, - "loc": { - "start": { - "line": 589, - "column": 27 - }, - "end": { - "line": 589, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 22787, - "end": 22798, - "loc": { - "start": { - "line": 589, - "column": 31 - }, - "end": { - "line": 589, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22787, - "end": 22790, - "loc": { - "start": { - "line": 589, - "column": 31 - }, - "end": { - "line": 589, - "column": 34 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - }, - "value": { - "type": "MemberExpression", - "start": 22792, - "end": 22798, - "loc": { - "start": { - "line": 589, - "column": 36 - }, - "end": { - "line": 589, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 22792, - "end": 22795, - "loc": { - "start": { - "line": 589, - "column": 36 - }, - "end": { - "line": 589, - "column": 39 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22796, - "end": 22797, - "loc": { - "start": { - "line": 589, - "column": 40 - }, - "end": { - "line": 589, - "column": 41 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 22800, - "end": 22811, - "loc": { - "start": { - "line": 589, - "column": 44 - }, - "end": { - "line": 589, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22800, - "end": 22803, - "loc": { - "start": { - "line": 589, - "column": 44 - }, - "end": { - "line": 589, - "column": 47 - } - }, - "extra": { - "rawValue": "b", - "raw": "'b'" - }, - "value": "b" - }, - "value": { - "type": "MemberExpression", - "start": 22805, - "end": 22811, - "loc": { - "start": { - "line": 589, - "column": 49 - }, - "end": { - "line": 589, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 22805, - "end": 22808, - "loc": { - "start": { - "line": 589, - "column": 49 - }, - "end": { - "line": 589, - "column": 52 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22809, - "end": 22810, - "loc": { - "start": { - "line": 589, - "column": 53 - }, - "end": { - "line": 589, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 22820, - "end": 22941, - "loc": { - "start": { - "line": 590, - "column": 3 - }, - "end": { - "line": 590, - "column": 124 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22820, - "end": 22831, - "loc": { - "start": { - "line": 590, - "column": 3 - }, - "end": { - "line": 590, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbNormal", - "raw": "'rgbNormal'" - }, - "value": "rgbNormal" - }, - "value": { - "type": "ArrayExpression", - "start": 22833, - "end": 22941, - "loc": { - "start": { - "line": 590, - "column": 16 - }, - "end": { - "line": 590, - "column": 124 - } - }, - "elements": [ - { - "type": "BinaryExpression", - "start": 22834, - "end": 22868, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 51 - } - }, - "left": { - "type": "CallExpression", - "start": 22834, - "end": 22862, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22834, - "end": 22844, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 22834, - "end": 22838, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 21 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 22839, - "end": 22844, - "loc": { - "start": { - "line": 590, - "column": 22 - }, - "end": { - "line": 590, - "column": 27 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 22845, - "end": 22861, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 44 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22845, - "end": 22855, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 22845, - "end": 22851, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 22845, - "end": 22848, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22849, - "end": 22850, - "loc": { - "start": { - "line": 590, - "column": 32 - }, - "end": { - "line": 590, - "column": 33 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22852, - "end": 22855, - "loc": { - "start": { - "line": 590, - "column": 35 - }, - "end": { - "line": 590, - "column": 38 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 22858, - "end": 22861, - "loc": { - "start": { - "line": 590, - "column": 41 - }, - "end": { - "line": 590, - "column": 44 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22865, - "end": 22868, - "loc": { - "start": { - "line": 590, - "column": 48 - }, - "end": { - "line": 590, - "column": 51 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 22870, - "end": 22904, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 87 - } - }, - "left": { - "type": "CallExpression", - "start": 22870, - "end": 22898, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 81 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22870, - "end": 22880, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 22870, - "end": 22874, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 22875, - "end": 22880, - "loc": { - "start": { - "line": 590, - "column": 58 - }, - "end": { - "line": 590, - "column": 63 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 22881, - "end": 22897, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 80 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22881, - "end": 22891, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 74 - } - }, - "left": { - "type": "MemberExpression", - "start": 22881, - "end": 22887, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 22881, - "end": 22884, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 67 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22885, - "end": 22886, - "loc": { - "start": { - "line": 590, - "column": 68 - }, - "end": { - "line": 590, - "column": 69 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22888, - "end": 22891, - "loc": { - "start": { - "line": 590, - "column": 71 - }, - "end": { - "line": 590, - "column": 74 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 22894, - "end": 22897, - "loc": { - "start": { - "line": 590, - "column": 77 - }, - "end": { - "line": 590, - "column": 80 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22901, - "end": 22904, - "loc": { - "start": { - "line": 590, - "column": 84 - }, - "end": { - "line": 590, - "column": 87 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 22906, - "end": 22940, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 123 - } - }, - "left": { - "type": "CallExpression", - "start": 22906, - "end": 22934, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 117 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22906, - "end": 22916, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 22906, - "end": 22910, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 93 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 22911, - "end": 22916, - "loc": { - "start": { - "line": 590, - "column": 94 - }, - "end": { - "line": 590, - "column": 99 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 22917, - "end": 22933, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 116 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22917, - "end": 22927, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 110 - } - }, - "left": { - "type": "MemberExpression", - "start": 22917, - "end": 22923, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 22917, - "end": 22920, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 103 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22921, - "end": 22922, - "loc": { - "start": { - "line": 590, - "column": 104 - }, - "end": { - "line": 590, - "column": 105 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22924, - "end": 22927, - "loc": { - "start": { - "line": 590, - "column": 107 - }, - "end": { - "line": 590, - "column": 110 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 22930, - "end": 22933, - "loc": { - "start": { - "line": 590, - "column": 113 - }, - "end": { - "line": 590, - "column": 116 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22937, - "end": 22940, - "loc": { - "start": { - "line": 590, - "column": 120 - }, - "end": { - "line": 590, - "column": 123 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 22948, - "end": 22981, - "loc": { - "start": { - "line": 591, - "column": 3 - }, - "end": { - "line": 591, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22948, - "end": 22957, - "loc": { - "start": { - "line": 591, - "column": 3 - }, - "end": { - "line": 591, - "column": 12 - } - }, - "extra": { - "rawValue": "decimal", - "raw": "'decimal'" - }, - "value": "decimal" - }, - "value": { - "type": "CallExpression", - "start": 22959, - "end": 22981, - "loc": { - "start": { - "line": 591, - "column": 14 - }, - "end": { - "line": 591, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22959, - "end": 22976, - "loc": { - "start": { - "line": 591, - "column": 14 - }, - "end": { - "line": 591, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 22959, - "end": 22963, - "loc": { - "start": { - "line": 591, - "column": 14 - }, - "end": { - "line": 591, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 22964, - "end": 22976, - "loc": { - "start": { - "line": 591, - "column": 19 - }, - "end": { - "line": 591, - "column": 31 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 22977, - "end": 22980, - "loc": { - "start": { - "line": 591, - "column": 32 - }, - "end": { - "line": 591, - "column": 35 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 21629, - "end": 22137, - "loc": { - "start": { - "line": 560, - "column": 1 - }, - "end": { - "line": 569, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 22995, - "end": 23091, - "loc": { - "start": { - "line": 594, - "column": 1 - }, - "end": { - "line": 598, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 23094, - "end": 23280, - "loc": { - "start": { - "line": 599, - "column": 1 - }, - "end": { - "line": 606, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 23094, - "end": 23108, - "loc": { - "start": { - "line": 599, - "column": 1 - }, - "end": { - "line": 599, - "column": 15 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 23111, - "end": 23280, - "loc": { - "start": { - "line": 599, - "column": 18 - }, - "end": { - "line": 606, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 23116, - "end": 23149, - "loc": { - "start": { - "line": 600, - "column": 2 - }, - "end": { - "line": 600, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 23122, - "end": 23148, - "loc": { - "start": { - "line": 600, - "column": 8 - }, - "end": { - "line": 600, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 23122, - "end": 23127, - "loc": { - "start": { - "line": 600, - "column": 8 - }, - "end": { - "line": 600, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 23130, - "end": 23148, - "loc": { - "start": { - "line": 600, - "column": 16 - }, - "end": { - "line": 600, - "column": 34 - } - }, - "extra": { - "rawValue": "0123456789ABCDEF", - "raw": "'0123456789ABCDEF'" - }, - "value": "0123456789ABCDEF" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 23153, - "end": 23169, - "loc": { - "start": { - "line": 601, - "column": 2 - }, - "end": { - "line": 601, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 23157, - "end": 23168, - "loc": { - "start": { - "line": 601, - "column": 6 - }, - "end": { - "line": 601, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 23157, - "end": 23162, - "loc": { - "start": { - "line": 601, - "column": 6 - }, - "end": { - "line": 601, - "column": 11 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "StringLiteral", - "start": 23165, - "end": 23168, - "loc": { - "start": { - "line": 601, - "column": 14 - }, - "end": { - "line": 601, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 23173, - "end": 23259, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 604, - "column": 3 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 23178, - "end": 23187, - "loc": { - "start": { - "line": 602, - "column": 7 - }, - "end": { - "line": 602, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 23182, - "end": 23187, - "loc": { - "start": { - "line": 602, - "column": 11 - }, - "end": { - "line": 602, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 23182, - "end": 23183, - "loc": { - "start": { - "line": 602, - "column": 11 - }, - "end": { - "line": 602, - "column": 12 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 23186, - "end": 23187, - "loc": { - "start": { - "line": 602, - "column": 15 - }, - "end": { - "line": 602, - "column": 16 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 23189, - "end": 23194, - "loc": { - "start": { - "line": 602, - "column": 18 - }, - "end": { - "line": 602, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 23189, - "end": 23190, - "loc": { - "start": { - "line": 602, - "column": 18 - }, - "end": { - "line": 602, - "column": 19 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "NumericLiteral", - "start": 23193, - "end": 23194, - "loc": { - "start": { - "line": 602, - "column": 22 - }, - "end": { - "line": 602, - "column": 23 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - }, - "update": { - "type": "UpdateExpression", - "start": 23196, - "end": 23199, - "loc": { - "start": { - "line": 602, - "column": 25 - }, - "end": { - "line": 602, - "column": 28 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 23196, - "end": 23197, - "loc": { - "start": { - "line": 602, - "column": 25 - }, - "end": { - "line": 602, - "column": 26 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 23201, - "end": 23259, - "loc": { - "start": { - "line": 602, - "column": 30 - }, - "end": { - "line": 604, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 23207, - "end": 23254, - "loc": { - "start": { - "line": 603, - "column": 3 - }, - "end": { - "line": 603, - "column": 50 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 23207, - "end": 23253, - "loc": { - "start": { - "line": 603, - "column": 3 - }, - "end": { - "line": 603, - "column": 49 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 23207, - "end": 23212, - "loc": { - "start": { - "line": 603, - "column": 3 - }, - "end": { - "line": 603, - "column": 8 - }, - "identifierName": "color" - }, - "name": "color" - }, - "right": { - "type": "MemberExpression", - "start": 23216, - "end": 23253, - "loc": { - "start": { - "line": 603, - "column": 12 - }, - "end": { - "line": 603, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 23216, - "end": 23221, - "loc": { - "start": { - "line": 603, - "column": 12 - }, - "end": { - "line": 603, - "column": 17 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "CallExpression", - "start": 23222, - "end": 23252, - "loc": { - "start": { - "line": 603, - "column": 18 - }, - "end": { - "line": 603, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23222, - "end": 23232, - "loc": { - "start": { - "line": 603, - "column": 18 - }, - "end": { - "line": 603, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 23222, - "end": 23226, - "loc": { - "start": { - "line": 603, - "column": 18 - }, - "end": { - "line": 603, - "column": 22 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 23227, - "end": 23232, - "loc": { - "start": { - "line": 603, - "column": 23 - }, - "end": { - "line": 603, - "column": 28 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 23233, - "end": 23251, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 47 - } - }, - "left": { - "type": "CallExpression", - "start": 23233, - "end": 23246, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23233, - "end": 23244, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 23233, - "end": 23237, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 33 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 23238, - "end": 23244, - "loc": { - "start": { - "line": 603, - "column": 34 - }, - "end": { - "line": 603, - "column": 40 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 23249, - "end": 23251, - "loc": { - "start": { - "line": 603, - "column": 45 - }, - "end": { - "line": 603, - "column": 47 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - } - ] - }, - "computed": true - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 23263, - "end": 23276, - "loc": { - "start": { - "line": 605, - "column": 2 - }, - "end": { - "line": 605, - "column": 15 - } - }, - "argument": { - "type": "Identifier", - "start": 23270, - "end": 23275, - "loc": { - "start": { - "line": 605, - "column": 9 - }, - "end": { - "line": 605, - "column": 14 - }, - "identifierName": "color" - }, - "name": "color" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 22995, - "end": 23091, - "loc": { - "start": { - "line": 594, - "column": 1 - }, - "end": { - "line": 598, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 23283, - "end": 23739, - "loc": { - "start": { - "line": 607, - "column": 1 - }, - "end": { - "line": 616, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 23742, - "end": 23943, - "loc": { - "start": { - "line": 617, - "column": 1 - }, - "end": { - "line": 620, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 23742, - "end": 23763, - "loc": { - "start": { - "line": 617, - "column": 1 - }, - "end": { - "line": 617, - "column": 22 - }, - "identifierName": "getRandomColorBetween" - }, - "name": "getRandomColorBetween", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 23764, - "end": 23771, - "loc": { - "start": { - "line": 617, - "column": 23 - }, - "end": { - "line": 617, - "column": 30 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - }, - { - "type": "Identifier", - "start": 23773, - "end": 23780, - "loc": { - "start": { - "line": 617, - "column": 32 - }, - "end": { - "line": 617, - "column": 39 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - }, - { - "type": "AssignmentPattern", - "start": 23782, - "end": 23795, - "loc": { - "start": { - "line": 617, - "column": 41 - }, - "end": { - "line": 617, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 23782, - "end": 23789, - "loc": { - "start": { - "line": 617, - "column": 41 - }, - "end": { - "line": 617, - "column": 48 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "right": { - "type": "NumericLiteral", - "start": 23792, - "end": 23795, - "loc": { - "start": { - "line": 617, - "column": 51 - }, - "end": { - "line": 617, - "column": 54 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 23797, - "end": 23943, - "loc": { - "start": { - "line": 617, - "column": 56 - }, - "end": { - "line": 620, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 23840, - "end": 23939, - "loc": { - "start": { - "line": 619, - "column": 2 - }, - "end": { - "line": 619, - "column": 101 - } - }, - "argument": { - "type": "CallExpression", - "start": 23847, - "end": 23938, - "loc": { - "start": { - "line": 619, - "column": 9 - }, - "end": { - "line": 619, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23847, - "end": 23863, - "loc": { - "start": { - "line": 619, - "column": 9 - }, - "end": { - "line": 619, - "column": 25 - } - }, - "object": { - "type": "ThisExpression", - "start": 23847, - "end": 23851, - "loc": { - "start": { - "line": 619, - "column": 9 - }, - "end": { - "line": 619, - "column": 13 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 23852, - "end": 23863, - "loc": { - "start": { - "line": 619, - "column": 14 - }, - "end": { - "line": 619, - "column": 25 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 23864, - "end": 23895, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 57 - } - }, - "object": { - "type": "CallExpression", - "start": 23864, - "end": 23887, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23864, - "end": 23878, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 23864, - "end": 23868, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 30 - } - } - }, - "property": { - "type": "Identifier", - "start": 23869, - "end": 23878, - "loc": { - "start": { - "line": 619, - "column": 31 - }, - "end": { - "line": 619, - "column": 40 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 23879, - "end": 23886, - "loc": { - "start": { - "line": 619, - "column": 41 - }, - "end": { - "line": 619, - "column": 48 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - } - ] - }, - "property": { - "type": "Identifier", - "start": 23888, - "end": 23895, - "loc": { - "start": { - "line": 619, - "column": 50 - }, - "end": { - "line": 619, - "column": 57 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "MemberExpression", - "start": 23897, - "end": 23928, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 90 - } - }, - "object": { - "type": "CallExpression", - "start": 23897, - "end": 23920, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23897, - "end": 23911, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 73 - } - }, - "object": { - "type": "ThisExpression", - "start": 23897, - "end": 23901, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 63 - } - } - }, - "property": { - "type": "Identifier", - "start": 23902, - "end": 23911, - "loc": { - "start": { - "line": 619, - "column": 64 - }, - "end": { - "line": 619, - "column": 73 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 23912, - "end": 23919, - "loc": { - "start": { - "line": 619, - "column": 74 - }, - "end": { - "line": 619, - "column": 81 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - } - ] - }, - "property": { - "type": "Identifier", - "start": 23921, - "end": 23928, - "loc": { - "start": { - "line": 619, - "column": 83 - }, - "end": { - "line": 619, - "column": 90 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "Identifier", - "start": 23930, - "end": 23937, - "loc": { - "start": { - "line": 619, - "column": 92 - }, - "end": { - "line": 619, - "column": 99 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 23802, - "end": 23836, - "loc": { - "start": { - "line": 618, - "column": 2 - }, - "end": { - "line": 618, - "column": 36 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 23283, - "end": 23739, - "loc": { - "start": { - "line": 607, - "column": 1 - }, - "end": { - "line": 616, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 23946, - "end": 24734, - "loc": { - "start": { - "line": 621, - "column": 1 - }, - "end": { - "line": 634, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 24737, - "end": 27768, - "loc": { - "start": { - "line": 635, - "column": 1 - }, - "end": { - "line": 713, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 24737, - "end": 24752, - "loc": { - "start": { - "line": 635, - "column": 1 - }, - "end": { - "line": 635, - "column": 16 - }, - "identifierName": "transitionColor" - }, - "name": "transitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 24753, - "end": 24762, - "loc": { - "start": { - "line": 635, - "column": 17 - }, - "end": { - "line": 635, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "AssignmentPattern", - "start": 24764, - "end": 24782, - "loc": { - "start": { - "line": 635, - "column": 28 - }, - "end": { - "line": 635, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 24764, - "end": 24775, - "loc": { - "start": { - "line": 635, - "column": 28 - }, - "end": { - "line": 635, - "column": 39 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - }, - "right": { - "type": "StringLiteral", - "start": 24776, - "end": 24782, - "loc": { - "start": { - "line": 635, - "column": 40 - }, - "end": { - "line": 635, - "column": 46 - } - }, - "extra": { - "rawValue": "#000", - "raw": "'#000'" - }, - "value": "#000" - } - }, - { - "type": "AssignmentPattern", - "start": 24784, - "end": 24800, - "loc": { - "start": { - "line": 635, - "column": 48 - }, - "end": { - "line": 635, - "column": 64 - } - }, - "left": { - "type": "Identifier", - "start": 24784, - "end": 24793, - "loc": { - "start": { - "line": 635, - "column": 48 - }, - "end": { - "line": 635, - "column": 57 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - }, - "right": { - "type": "StringLiteral", - "start": 24794, - "end": 24800, - "loc": { - "start": { - "line": 635, - "column": 58 - }, - "end": { - "line": 635, - "column": 64 - } - }, - "extra": { - "rawValue": "#fff", - "raw": "'#fff'" - }, - "value": "#fff" - } - }, - { - "type": "AssignmentPattern", - "start": 24802, - "end": 24816, - "loc": { - "start": { - "line": 635, - "column": 66 - }, - "end": { - "line": 635, - "column": 80 - } - }, - "left": { - "type": "Identifier", - "start": 24802, - "end": 24811, - "loc": { - "start": { - "line": 635, - "column": 66 - }, - "end": { - "line": 635, - "column": 75 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - }, - "right": { - "type": "NumericLiteral", - "start": 24812, - "end": 24816, - "loc": { - "start": { - "line": 635, - "column": 76 - }, - "end": { - "line": 635, - "column": 80 - } - }, - "extra": { - "rawValue": 1000, - "raw": "1000" - }, - "value": 1000 - } - }, - { - "type": "Identifier", - "start": 24818, - "end": 24836, - "loc": { - "start": { - "line": 635, - "column": 82 - }, - "end": { - "line": 635, - "column": 100 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - { - "type": "Identifier", - "start": 24838, - "end": 24850, - "loc": { - "start": { - "line": 635, - "column": 102 - }, - "end": { - "line": 635, - "column": 114 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 24852, - "end": 27768, - "loc": { - "start": { - "line": 635, - "column": 116 - }, - "end": { - "line": 713, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 24897, - "end": 24928, - "loc": { - "start": { - "line": 637, - "column": 2 - }, - "end": { - "line": 637, - "column": 33 - } - }, - "test": { - "type": "UnaryExpression", - "start": 24901, - "end": 24919, - "loc": { - "start": { - "line": 637, - "column": 6 - }, - "end": { - "line": 637, - "column": 24 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 24902, - "end": 24919, - "loc": { - "start": { - "line": 637, - "column": 7 - }, - "end": { - "line": 637, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 24902, - "end": 24912, - "loc": { - "start": { - "line": 637, - "column": 7 - }, - "end": { - "line": 637, - "column": 17 - }, - "identifierName": "globalThis" - }, - "name": "globalThis", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 24913, - "end": 24919, - "loc": { - "start": { - "line": 637, - "column": 18 - }, - "end": { - "line": 637, - "column": 24 - }, - "identifierName": "window" - }, - "name": "window" - }, - "computed": false, - "leadingComments": null - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "consequent": { - "type": "ReturnStatement", - "start": 24921, - "end": 24928, - "loc": { - "start": { - "line": 637, - "column": 26 - }, - "end": { - "line": 637, - "column": 33 - } - }, - "argument": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 24857, - "end": 24893, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 636, - "column": 38 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 24932, - "end": 25028, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 638, - "column": 98 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 24938, - "end": 25027, - "loc": { - "start": { - "line": 638, - "column": 8 - }, - "end": { - "line": 638, - "column": 97 - } - }, - "id": { - "type": "Identifier", - "start": 24938, - "end": 24955, - "loc": { - "start": { - "line": 638, - "column": 8 - }, - "end": { - "line": 638, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 24958, - "end": 25027, - "loc": { - "start": { - "line": 638, - "column": 28 - }, - "end": { - "line": 638, - "column": 97 - } - }, - "test": { - "type": "BinaryExpression", - "start": 24958, - "end": 24999, - "loc": { - "start": { - "line": 638, - "column": 28 - }, - "end": { - "line": 638, - "column": 69 - } - }, - "left": { - "type": "UnaryExpression", - "start": 24958, - "end": 24984, - "loc": { - "start": { - "line": 638, - "column": 28 - }, - "end": { - "line": 638, - "column": 54 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 24965, - "end": 24983, - "loc": { - "start": { - "line": 638, - "column": 35 - }, - "end": { - "line": 638, - "column": 53 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback", - "extra": { - "parenthesized": true, - "parenStart": 24964 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 24989, - "end": 24999, - "loc": { - "start": { - "line": 638, - "column": 59 - }, - "end": { - "line": 638, - "column": 69 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 25002, - "end": 25020, - "loc": { - "start": { - "line": 638, - "column": 72 - }, - "end": { - "line": 638, - "column": 90 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 25023, - "end": 25027, - "loc": { - "start": { - "line": 638, - "column": 93 - }, - "end": { - "line": 638, - "column": 97 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25032, - "end": 25110, - "loc": { - "start": { - "line": 639, - "column": 2 - }, - "end": { - "line": 639, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25038, - "end": 25109, - "loc": { - "start": { - "line": 639, - "column": 8 - }, - "end": { - "line": 639, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 25038, - "end": 25049, - "loc": { - "start": { - "line": 639, - "column": 8 - }, - "end": { - "line": 639, - "column": 19 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 25052, - "end": 25109, - "loc": { - "start": { - "line": 639, - "column": 22 - }, - "end": { - "line": 639, - "column": 79 - } - }, - "test": { - "type": "BinaryExpression", - "start": 25052, - "end": 25087, - "loc": { - "start": { - "line": 639, - "column": 22 - }, - "end": { - "line": 639, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 25052, - "end": 25072, - "loc": { - "start": { - "line": 639, - "column": 22 - }, - "end": { - "line": 639, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 25059, - "end": 25071, - "loc": { - "start": { - "line": 639, - "column": 29 - }, - "end": { - "line": 639, - "column": 41 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback", - "extra": { - "parenthesized": true, - "parenStart": 25058 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25077, - "end": 25087, - "loc": { - "start": { - "line": 639, - "column": 47 - }, - "end": { - "line": 639, - "column": 57 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 25090, - "end": 25102, - "loc": { - "start": { - "line": 639, - "column": 60 - }, - "end": { - "line": 639, - "column": 72 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 25105, - "end": 25109, - "loc": { - "start": { - "line": 639, - "column": 75 - }, - "end": { - "line": 639, - "column": 79 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25114, - "end": 25121, - "loc": { - "start": { - "line": 640, - "column": 2 - }, - "end": { - "line": 640, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25118, - "end": 25120, - "loc": { - "start": { - "line": 640, - "column": 6 - }, - "end": { - "line": 640, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 25118, - "end": 25120, - "loc": { - "start": { - "line": 640, - "column": 6 - }, - "end": { - "line": 640, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 25125, - "end": 25140, - "loc": { - "start": { - "line": 641, - "column": 2 - }, - "end": { - "line": 641, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25129, - "end": 25139, - "loc": { - "start": { - "line": 641, - "column": 6 - }, - "end": { - "line": 641, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 25129, - "end": 25139, - "loc": { - "start": { - "line": 641, - "column": 6 - }, - "end": { - "line": 641, - "column": 16 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 25144, - "end": 25161, - "loc": { - "start": { - "line": 642, - "column": 2 - }, - "end": { - "line": 642, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25148, - "end": 25160, - "loc": { - "start": { - "line": 642, - "column": 6 - }, - "end": { - "line": 642, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 25148, - "end": 25160, - "loc": { - "start": { - "line": 642, - "column": 6 - }, - "end": { - "line": 642, - "column": 18 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 25167, - "end": 25523, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 651, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 25171, - "end": 25180, - "loc": { - "start": { - "line": 644, - "column": 6 - }, - "end": { - "line": 644, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 25182, - "end": 25483, - "loc": { - "start": { - "line": 644, - "column": 17 - }, - "end": { - "line": 649, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25188, - "end": 25241, - "loc": { - "start": { - "line": 645, - "column": 3 - }, - "end": { - "line": 645, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25188, - "end": 25240, - "loc": { - "start": { - "line": 645, - "column": 3 - }, - "end": { - "line": 645, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25188, - "end": 25190, - "loc": { - "start": { - "line": 645, - "column": 3 - }, - "end": { - "line": 645, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "ConditionalExpression", - "start": 25193, - "end": 25240, - "loc": { - "start": { - "line": 645, - "column": 8 - }, - "end": { - "line": 645, - "column": 55 - } - }, - "test": { - "type": "MemberExpression", - "start": 25193, - "end": 25205, - "loc": { - "start": { - "line": 645, - "column": 8 - }, - "end": { - "line": 645, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 25193, - "end": 25202, - "loc": { - "start": { - "line": 645, - "column": 8 - }, - "end": { - "line": 645, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25203, - "end": 25205, - "loc": { - "start": { - "line": 645, - "column": 18 - }, - "end": { - "line": 645, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "consequent": { - "type": "MemberExpression", - "start": 25208, - "end": 25220, - "loc": { - "start": { - "line": 645, - "column": 23 - }, - "end": { - "line": 645, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 25208, - "end": 25217, - "loc": { - "start": { - "line": 645, - "column": 23 - }, - "end": { - "line": 645, - "column": 32 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25218, - "end": 25220, - "loc": { - "start": { - "line": 645, - "column": 33 - }, - "end": { - "line": 645, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "alternate": { - "type": "CallExpression", - "start": 25223, - "end": 25240, - "loc": { - "start": { - "line": 645, - "column": 38 - }, - "end": { - "line": 645, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25223, - "end": 25238, - "loc": { - "start": { - "line": 645, - "column": 38 - }, - "end": { - "line": 645, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 25223, - "end": 25227, - "loc": { - "start": { - "line": 645, - "column": 38 - }, - "end": { - "line": 645, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 25228, - "end": 25238, - "loc": { - "start": { - "line": 645, - "column": 43 - }, - "end": { - "line": 645, - "column": 53 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 25246, - "end": 25300, - "loc": { - "start": { - "line": 646, - "column": 3 - }, - "end": { - "line": 646, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25246, - "end": 25299, - "loc": { - "start": { - "line": 646, - "column": 3 - }, - "end": { - "line": 646, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25246, - "end": 25256, - "loc": { - "start": { - "line": 646, - "column": 3 - }, - "end": { - "line": 646, - "column": 13 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "right": { - "type": "BinaryExpression", - "start": 25260, - "end": 25298, - "loc": { - "start": { - "line": 646, - "column": 17 - }, - "end": { - "line": 646, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 25260, - "end": 25274, - "loc": { - "start": { - "line": 646, - "column": 17 - }, - "end": { - "line": 646, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 25260, - "end": 25269, - "loc": { - "start": { - "line": 646, - "column": 17 - }, - "end": { - "line": 646, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25270, - "end": 25274, - "loc": { - "start": { - "line": 646, - "column": 27 - }, - "end": { - "line": 646, - "column": 31 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25279, - "end": 25298, - "loc": { - "start": { - "line": 646, - "column": 36 - }, - "end": { - "line": 646, - "column": 55 - } - }, - "extra": { - "rawValue": "GeneratedParticle", - "raw": "'GeneratedParticle'" - }, - "value": "GeneratedParticle" - }, - "extra": { - "parenthesized": true, - "parenStart": 25259 - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 25305, - "end": 25416, - "loc": { - "start": { - "line": 647, - "column": 3 - }, - "end": { - "line": 647, - "column": 114 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25305, - "end": 25415, - "loc": { - "start": { - "line": 647, - "column": 3 - }, - "end": { - "line": 647, - "column": 113 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25305, - "end": 25317, - "loc": { - "start": { - "line": 647, - "column": 3 - }, - "end": { - "line": 647, - "column": 15 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "right": { - "type": "ConditionalExpression", - "start": 25321, - "end": 25414, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 25321, - "end": 25399, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 97 - } - }, - "left": { - "type": "BinaryExpression", - "start": 25321, - "end": 25357, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 55 - } - }, - "left": { - "type": "UnaryExpression", - "start": 25321, - "end": 25344, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 25328, - "end": 25343, - "loc": { - "start": { - "line": 647, - "column": 26 - }, - "end": { - "line": 647, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 25328, - "end": 25337, - "loc": { - "start": { - "line": 647, - "column": 26 - }, - "end": { - "line": 647, - "column": 35 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25338, - "end": 25343, - "loc": { - "start": { - "line": 647, - "column": 36 - }, - "end": { - "line": 647, - "column": 41 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 25327 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25349, - "end": 25357, - "loc": { - "start": { - "line": 647, - "column": 47 - }, - "end": { - "line": 647, - "column": 55 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 25361, - "end": 25399, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 97 - } - }, - "left": { - "type": "MemberExpression", - "start": 25361, - "end": 25388, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 86 - } - }, - "object": { - "type": "MemberExpression", - "start": 25361, - "end": 25376, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 25361, - "end": 25370, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 68 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25371, - "end": 25376, - "loc": { - "start": { - "line": 647, - "column": 69 - }, - "end": { - "line": 647, - "column": 74 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25377, - "end": 25388, - "loc": { - "start": { - "line": 647, - "column": 75 - }, - "end": { - "line": 647, - "column": 86 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 25393, - "end": 25399, - "loc": { - "start": { - "line": 647, - "column": 91 - }, - "end": { - "line": 647, - "column": 97 - }, - "identifierName": "Object" - }, - "name": "Object" - } - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 25402, - "end": 25406, - "loc": { - "start": { - "line": 647, - "column": 100 - }, - "end": { - "line": 647, - "column": 104 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 25409, - "end": 25414, - "loc": { - "start": { - "line": 647, - "column": 107 - }, - "end": { - "line": 647, - "column": 112 - } - }, - "value": false - }, - "extra": { - "parenthesized": true, - "parenStart": 25320 - } - } - } - }, - { - "type": "IfStatement", - "start": 25421, - "end": 25478, - "loc": { - "start": { - "line": 648, - "column": 3 - }, - "end": { - "line": 648, - "column": 60 - } - }, - "test": { - "type": "MemberExpression", - "start": 25425, - "end": 25445, - "loc": { - "start": { - "line": 648, - "column": 7 - }, - "end": { - "line": 648, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 25425, - "end": 25441, - "loc": { - "start": { - "line": 648, - "column": 7 - }, - "end": { - "line": 648, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 25425, - "end": 25429, - "loc": { - "start": { - "line": 648, - "column": 7 - }, - "end": { - "line": 648, - "column": 11 - } - } - }, - "property": { - "type": "Identifier", - "start": 25430, - "end": 25441, - "loc": { - "start": { - "line": 648, - "column": 12 - }, - "end": { - "line": 648, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25442, - "end": 25444, - "loc": { - "start": { - "line": 648, - "column": 24 - }, - "end": { - "line": 648, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 25447, - "end": 25478, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 25447, - "end": 25477, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25447, - "end": 25473, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 55 - } - }, - "object": { - "type": "ThisExpression", - "start": 25447, - "end": 25451, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 33 - } - } - }, - "property": { - "type": "Identifier", - "start": 25452, - "end": 25473, - "loc": { - "start": { - "line": 648, - "column": 34 - }, - "end": { - "line": 648, - "column": 55 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25474, - "end": 25476, - "loc": { - "start": { - "line": 648, - "column": 56 - }, - "end": { - "line": 648, - "column": 58 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 25489, - "end": 25523, - "loc": { - "start": { - "line": 649, - "column": 9 - }, - "end": { - "line": 651, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25495, - "end": 25518, - "loc": { - "start": { - "line": 650, - "column": 3 - }, - "end": { - "line": 650, - "column": 26 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25495, - "end": 25517, - "loc": { - "start": { - "line": 650, - "column": 3 - }, - "end": { - "line": 650, - "column": 25 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25495, - "end": 25497, - "loc": { - "start": { - "line": 650, - "column": 3 - }, - "end": { - "line": 650, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "CallExpression", - "start": 25500, - "end": 25517, - "loc": { - "start": { - "line": 650, - "column": 8 - }, - "end": { - "line": 650, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25500, - "end": 25515, - "loc": { - "start": { - "line": 650, - "column": 8 - }, - "end": { - "line": 650, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 25500, - "end": 25504, - "loc": { - "start": { - "line": 650, - "column": 8 - }, - "end": { - "line": 650, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 25505, - "end": 25515, - "loc": { - "start": { - "line": 650, - "column": 13 - }, - "end": { - "line": 650, - "column": 23 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 25532, - "end": 25649, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 656, - "column": 4 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25532, - "end": 25648, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 656, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 25532, - "end": 25552, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 653, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 25532, - "end": 25548, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 653, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 25532, - "end": 25536, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 653, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 25537, - "end": 25548, - "loc": { - "start": { - "line": 653, - "column": 7 - }, - "end": { - "line": 653, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25549, - "end": 25551, - "loc": { - "start": { - "line": 653, - "column": 19 - }, - "end": { - "line": 653, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "right": { - "type": "ObjectExpression", - "start": 25555, - "end": 25648, - "loc": { - "start": { - "line": 653, - "column": 25 - }, - "end": { - "line": 656, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25561, - "end": 25582, - "loc": { - "start": { - "line": 654, - "column": 3 - }, - "end": { - "line": 654, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 25561, - "end": 25571, - "loc": { - "start": { - "line": 654, - "column": 3 - }, - "end": { - "line": 654, - "column": 13 - } - }, - "extra": { - "rawValue": "duration", - "raw": "'duration'" - }, - "value": "duration" - }, - "value": { - "type": "Identifier", - "start": 25573, - "end": 25582, - "loc": { - "start": { - "line": 654, - "column": 15 - }, - "end": { - "line": 654, - "column": 24 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - }, - { - "type": "ObjectProperty", - "start": 25588, - "end": 25643, - "loc": { - "start": { - "line": 655, - "column": 3 - }, - "end": { - "line": 655, - "column": 58 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 25588, - "end": 25601, - "loc": { - "start": { - "line": 655, - "column": 3 - }, - "end": { - "line": 655, - "column": 16 - } - }, - "extra": { - "rawValue": "timeTracker", - "raw": "'timeTracker'" - }, - "value": "timeTracker" - }, - "value": { - "type": "ConditionalExpression", - "start": 25603, - "end": 25643, - "loc": { - "start": { - "line": 655, - "column": 18 - }, - "end": { - "line": 655, - "column": 58 - } - }, - "test": { - "type": "Identifier", - "start": 25603, - "end": 25613, - "loc": { - "start": { - "line": 655, - "column": 18 - }, - "end": { - "line": 655, - "column": 28 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "MemberExpression", - "start": 25616, - "end": 25639, - "loc": { - "start": { - "line": 655, - "column": 31 - }, - "end": { - "line": 655, - "column": 54 - } - }, - "object": { - "type": "MemberExpression", - "start": 25616, - "end": 25630, - "loc": { - "start": { - "line": 655, - "column": 31 - }, - "end": { - "line": 655, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 25616, - "end": 25625, - "loc": { - "start": { - "line": 655, - "column": 31 - }, - "end": { - "line": 655, - "column": 40 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25626, - "end": 25630, - "loc": { - "start": { - "line": 655, - "column": 41 - }, - "end": { - "line": 655, - "column": 45 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25631, - "end": 25639, - "loc": { - "start": { - "line": 655, - "column": 46 - }, - "end": { - "line": 655, - "column": 54 - }, - "identifierName": "lifetime" - }, - "name": "lifetime" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 25642, - "end": 25643, - "loc": { - "start": { - "line": 655, - "column": 57 - }, - "end": { - "line": 655, - "column": 58 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 25655, - "end": 25714, - "loc": { - "start": { - "line": 658, - "column": 2 - }, - "end": { - "line": 658, - "column": 61 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25661, - "end": 25713, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 658, - "column": 60 - } - }, - "id": { - "type": "Identifier", - "start": 25661, - "end": 25674, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 658, - "column": 21 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "init": { - "type": "MemberExpression", - "start": 25677, - "end": 25713, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 60 - } - }, - "object": { - "type": "CallExpression", - "start": 25677, - "end": 25704, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25677, - "end": 25691, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 38 - } - }, - "object": { - "type": "ThisExpression", - "start": 25677, - "end": 25681, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 25682, - "end": 25691, - "loc": { - "start": { - "line": 658, - "column": 29 - }, - "end": { - "line": 658, - "column": 38 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25692, - "end": 25703, - "loc": { - "start": { - "line": 658, - "column": 39 - }, - "end": { - "line": 658, - "column": 50 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 25705, - "end": 25713, - "loc": { - "start": { - "line": 658, - "column": 52 - }, - "end": { - "line": 658, - "column": 60 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25718, - "end": 25773, - "loc": { - "start": { - "line": 659, - "column": 2 - }, - "end": { - "line": 659, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25724, - "end": 25772, - "loc": { - "start": { - "line": 659, - "column": 8 - }, - "end": { - "line": 659, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 25724, - "end": 25735, - "loc": { - "start": { - "line": 659, - "column": 8 - }, - "end": { - "line": 659, - "column": 19 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "init": { - "type": "MemberExpression", - "start": 25738, - "end": 25772, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 56 - } - }, - "object": { - "type": "CallExpression", - "start": 25738, - "end": 25763, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25738, - "end": 25752, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 36 - } - }, - "object": { - "type": "ThisExpression", - "start": 25738, - "end": 25742, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "start": 25743, - "end": 25752, - "loc": { - "start": { - "line": 659, - "column": 27 - }, - "end": { - "line": 659, - "column": 36 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25753, - "end": 25762, - "loc": { - "start": { - "line": 659, - "column": 37 - }, - "end": { - "line": 659, - "column": 46 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 25764, - "end": 25772, - "loc": { - "start": { - "line": 659, - "column": 48 - }, - "end": { - "line": 659, - "column": 56 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25779, - "end": 25797, - "loc": { - "start": { - "line": 661, - "column": 2 - }, - "end": { - "line": 661, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25785, - "end": 25796, - "loc": { - "start": { - "line": 661, - "column": 8 - }, - "end": { - "line": 661, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 25785, - "end": 25789, - "loc": { - "start": { - "line": 661, - "column": 8 - }, - "end": { - "line": 661, - "column": 12 - }, - "identifierName": "self" - }, - "name": "self" - }, - "init": { - "type": "ThisExpression", - "start": 25792, - "end": 25796, - "loc": { - "start": { - "line": 661, - "column": 15 - }, - "end": { - "line": 661, - "column": 19 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 25801, - "end": 27657, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 709, - "column": 3 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25801, - "end": 27657, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 709, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 25801, - "end": 25826, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 25801, - "end": 25821, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 25801, - "end": 25817, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 25801, - "end": 25805, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 25806, - "end": 25817, - "loc": { - "start": { - "line": 662, - "column": 7 - }, - "end": { - "line": 662, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25818, - "end": 25820, - "loc": { - "start": { - "line": 662, - "column": 19 - }, - "end": { - "line": 662, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 25822, - "end": 25826, - "loc": { - "start": { - "line": 662, - "column": 23 - }, - "end": { - "line": 662, - "column": 27 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - }, - "right": { - "type": "ArrowFunctionExpression", - "start": 25829, - "end": 27657, - "loc": { - "start": { - "line": 662, - "column": 30 - }, - "end": { - "line": 709, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 25830, - "end": 25840, - "loc": { - "start": { - "line": 662, - "column": 31 - }, - "end": { - "line": 662, - "column": 41 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - ], - "body": { - "type": "BlockStatement", - "start": 25845, - "end": 27657, - "loc": { - "start": { - "line": 662, - "column": 46 - }, - "end": { - "line": 709, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25851, - "end": 27652, - "loc": { - "start": { - "line": 663, - "column": 3 - }, - "end": { - "line": 708, - "column": 4 - } - }, - "test": { - "type": "MemberExpression", - "start": 25855, - "end": 25875, - "loc": { - "start": { - "line": 663, - "column": 7 - }, - "end": { - "line": 663, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 25855, - "end": 25871, - "loc": { - "start": { - "line": 663, - "column": 7 - }, - "end": { - "line": 663, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 25855, - "end": 25859, - "loc": { - "start": { - "line": 663, - "column": 7 - }, - "end": { - "line": 663, - "column": 11 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 25860, - "end": 25871, - "loc": { - "start": { - "line": 663, - "column": 12 - }, - "end": { - "line": 663, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25872, - "end": 25874, - "loc": { - "start": { - "line": 663, - "column": 24 - }, - "end": { - "line": 663, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 25877, - "end": 27652, - "loc": { - "start": { - "line": 663, - "column": 29 - }, - "end": { - "line": 708, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25884, - "end": 26166, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 675, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 25888, - "end": 25898, - "loc": { - "start": { - "line": 664, - "column": 8 - }, - "end": { - "line": 664, - "column": 18 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "BlockStatement", - "start": 25900, - "end": 26166, - "loc": { - "start": { - "line": 664, - "column": 20 - }, - "end": { - "line": 675, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25908, - "end": 26159, - "loc": { - "start": { - "line": 665, - "column": 5 - }, - "end": { - "line": 674, - "column": 6 - } - }, - "test": { - "type": "MemberExpression", - "start": 25912, - "end": 25926, - "loc": { - "start": { - "line": 665, - "column": 9 - }, - "end": { - "line": 665, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 25912, - "end": 25921, - "loc": { - "start": { - "line": 665, - "column": 9 - }, - "end": { - "line": 665, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25922, - "end": 25926, - "loc": { - "start": { - "line": 665, - "column": 19 - }, - "end": { - "line": 665, - "column": 23 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 25928, - "end": 26060, - "loc": { - "start": { - "line": 665, - "column": 25 - }, - "end": { - "line": 671, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25937, - "end": 26052, - "loc": { - "start": { - "line": 666, - "column": 6 - }, - "end": { - "line": 670, - "column": 7 - } - }, - "test": { - "type": "MemberExpression", - "start": 25941, - "end": 25961, - "loc": { - "start": { - "line": 666, - "column": 10 - }, - "end": { - "line": 666, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 25941, - "end": 25955, - "loc": { - "start": { - "line": 666, - "column": 10 - }, - "end": { - "line": 666, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 25941, - "end": 25950, - "loc": { - "start": { - "line": 666, - "column": 10 - }, - "end": { - "line": 666, - "column": 19 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25951, - "end": 25955, - "loc": { - "start": { - "line": 666, - "column": 20 - }, - "end": { - "line": 666, - "column": 24 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25956, - "end": 25961, - "loc": { - "start": { - "line": 666, - "column": 25 - }, - "end": { - "line": 666, - "column": 30 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 25963, - "end": 26052, - "loc": { - "start": { - "line": 666, - "column": 32 - }, - "end": { - "line": 670, - "column": 7 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25973, - "end": 26043, - "loc": { - "start": { - "line": 667, - "column": 7 - }, - "end": { - "line": 669, - "column": 8 - } - }, - "test": { - "type": "MemberExpression", - "start": 25977, - "end": 26013, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 25977, - "end": 26006, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 40 - } - }, - "object": { - "type": "MemberExpression", - "start": 25977, - "end": 25997, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 25977, - "end": 25991, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 25977, - "end": 25986, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 20 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25987, - "end": 25991, - "loc": { - "start": { - "line": 667, - "column": 21 - }, - "end": { - "line": 667, - "column": 25 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25992, - "end": 25997, - "loc": { - "start": { - "line": 667, - "column": 26 - }, - "end": { - "line": 667, - "column": 31 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25998, - "end": 26006, - "loc": { - "start": { - "line": 667, - "column": 32 - }, - "end": { - "line": 667, - "column": 40 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26007, - "end": 26013, - "loc": { - "start": { - "line": 667, - "column": 41 - }, - "end": { - "line": 667, - "column": 47 - }, - "identifierName": "paused" - }, - "name": "paused" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 26015, - "end": 26043, - "loc": { - "start": { - "line": 667, - "column": 49 - }, - "end": { - "line": 669, - "column": 8 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 26026, - "end": 26033, - "loc": { - "start": { - "line": 668, - "column": 8 - }, - "end": { - "line": 668, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 26066, - "end": 26159, - "loc": { - "start": { - "line": 671, - "column": 12 - }, - "end": { - "line": 674, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 26075, - "end": 26132, - "loc": { - "start": { - "line": 672, - "column": 6 - }, - "end": { - "line": 672, - "column": 63 - } - }, - "test": { - "type": "MemberExpression", - "start": 26079, - "end": 26099, - "loc": { - "start": { - "line": 672, - "column": 10 - }, - "end": { - "line": 672, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 26079, - "end": 26095, - "loc": { - "start": { - "line": 672, - "column": 10 - }, - "end": { - "line": 672, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 26079, - "end": 26083, - "loc": { - "start": { - "line": 672, - "column": 10 - }, - "end": { - "line": 672, - "column": 14 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26084, - "end": 26095, - "loc": { - "start": { - "line": 672, - "column": 15 - }, - "end": { - "line": 672, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26096, - "end": 26098, - "loc": { - "start": { - "line": 672, - "column": 27 - }, - "end": { - "line": 672, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 26101, - "end": 26132, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 26101, - "end": 26131, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26101, - "end": 26127, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 26101, - "end": 26105, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 36 - } - } - }, - "property": { - "type": "Identifier", - "start": 26106, - "end": 26127, - "loc": { - "start": { - "line": 672, - "column": 37 - }, - "end": { - "line": 672, - "column": 58 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 26128, - "end": 26130, - "loc": { - "start": { - "line": 672, - "column": 59 - }, - "end": { - "line": 672, - "column": 61 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 26140, - "end": 26147, - "loc": { - "start": { - "line": 673, - "column": 6 - }, - "end": { - "line": 673, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 26174, - "end": 26197, - "loc": { - "start": { - "line": 677, - "column": 4 - }, - "end": { - "line": 677, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26180, - "end": 26196, - "loc": { - "start": { - "line": 677, - "column": 10 - }, - "end": { - "line": 677, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 26180, - "end": 26183, - "loc": { - "start": { - "line": 677, - "column": 10 - }, - "end": { - "line": 677, - "column": 13 - }, - "identifierName": "now" - }, - "name": "now" - }, - "init": { - "type": "Identifier", - "start": 26186, - "end": 26196, - "loc": { - "start": { - "line": 677, - "column": 16 - }, - "end": { - "line": 677, - "column": 26 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 26203, - "end": 26275, - "loc": { - "start": { - "line": 678, - "column": 4 - }, - "end": { - "line": 678, - "column": 76 - } - }, - "test": { - "type": "UnaryExpression", - "start": 26207, - "end": 26237, - "loc": { - "start": { - "line": 678, - "column": 8 - }, - "end": { - "line": 678, - "column": 38 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 26208, - "end": 26237, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 38 - } - }, - "object": { - "type": "MemberExpression", - "start": 26208, - "end": 26228, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 26208, - "end": 26224, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 26208, - "end": 26212, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26213, - "end": 26224, - "loc": { - "start": { - "line": 678, - "column": 14 - }, - "end": { - "line": 678, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26225, - "end": 26227, - "loc": { - "start": { - "line": 678, - "column": 26 - }, - "end": { - "line": 678, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26229, - "end": 26237, - "loc": { - "start": { - "line": 678, - "column": 30 - }, - "end": { - "line": 678, - "column": 38 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 26239, - "end": 26275, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 76 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 26239, - "end": 26274, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 75 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 26239, - "end": 26268, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 69 - } - }, - "object": { - "type": "MemberExpression", - "start": 26239, - "end": 26259, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 26239, - "end": 26255, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 26239, - "end": 26243, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 44 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26244, - "end": 26255, - "loc": { - "start": { - "line": 678, - "column": 45 - }, - "end": { - "line": 678, - "column": 56 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26256, - "end": 26258, - "loc": { - "start": { - "line": 678, - "column": 57 - }, - "end": { - "line": 678, - "column": 59 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26260, - "end": 26268, - "loc": { - "start": { - "line": 678, - "column": 61 - }, - "end": { - "line": 678, - "column": 69 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 26271, - "end": 26274, - "loc": { - "start": { - "line": 678, - "column": 72 - }, - "end": { - "line": 678, - "column": 75 - }, - "identifierName": "now" - }, - "name": "now" - } - } - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 26281, - "end": 26333, - "loc": { - "start": { - "line": 679, - "column": 4 - }, - "end": { - "line": 679, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26287, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 10 - }, - "end": { - "line": 679, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 26287, - "end": 26294, - "loc": { - "start": { - "line": 679, - "column": 10 - }, - "end": { - "line": 679, - "column": 17 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "init": { - "type": "BinaryExpression", - "start": 26297, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 20 - }, - "end": { - "line": 679, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 26297, - "end": 26300, - "loc": { - "start": { - "line": 679, - "column": 20 - }, - "end": { - "line": 679, - "column": 23 - }, - "identifierName": "now" - }, - "name": "now" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 26303, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 55 - } - }, - "object": { - "type": "MemberExpression", - "start": 26303, - "end": 26323, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 26303, - "end": 26319, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 26303, - "end": 26307, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 30 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26308, - "end": 26319, - "loc": { - "start": { - "line": 679, - "column": 31 - }, - "end": { - "line": 679, - "column": 42 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26320, - "end": 26322, - "loc": { - "start": { - "line": 679, - "column": 43 - }, - "end": { - "line": 679, - "column": 45 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26324, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 47 - }, - "end": { - "line": 679, - "column": 55 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 26339, - "end": 26522, - "loc": { - "start": { - "line": 680, - "column": 4 - }, - "end": { - "line": 680, - "column": 187 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 26528, - "end": 26572, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 48 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 26528, - "end": 26571, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 47 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 26528, - "end": 26560, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 26528, - "end": 26548, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 26528, - "end": 26544, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 26528, - "end": 26532, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 26533, - "end": 26544, - "loc": { - "start": { - "line": 681, - "column": 9 - }, - "end": { - "line": 681, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 26545, - "end": 26547, - "loc": { - "start": { - "line": 681, - "column": 21 - }, - "end": { - "line": 681, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 26549, - "end": 26560, - "loc": { - "start": { - "line": 681, - "column": 25 - }, - "end": { - "line": 681, - "column": 36 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 26564, - "end": 26571, - "loc": { - "start": { - "line": 681, - "column": 40 - }, - "end": { - "line": 681, - "column": 47 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 26339, - "end": 26522, - "loc": { - "start": { - "line": 680, - "column": 4 - }, - "end": { - "line": 680, - "column": 187 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 26578, - "end": 26634, - "loc": { - "start": { - "line": 682, - "column": 4 - }, - "end": { - "line": 682, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 26640, - "end": 26737, - "loc": { - "start": { - "line": 683, - "column": 4 - }, - "end": { - "line": 683, - "column": 101 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26646, - "end": 26736, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 100 - } - }, - "id": { - "type": "Identifier", - "start": 26646, - "end": 26656, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 20 - }, - "identifierName": "percentage" - }, - "name": "percentage", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 26659, - "end": 26736, - "loc": { - "start": { - "line": 683, - "column": 23 - }, - "end": { - "line": 683, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26659, - "end": 26667, - "loc": { - "start": { - "line": 683, - "column": 23 - }, - "end": { - "line": 683, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 26659, - "end": 26663, - "loc": { - "start": { - "line": 683, - "column": 23 - }, - "end": { - "line": 683, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 26664, - "end": 26667, - "loc": { - "start": { - "line": 683, - "column": 28 - }, - "end": { - "line": 683, - "column": 31 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 26668, - "end": 26732, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 96 - } - }, - "left": { - "type": "MemberExpression", - "start": 26668, - "end": 26700, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 64 - } - }, - "object": { - "type": "MemberExpression", - "start": 26668, - "end": 26688, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 26668, - "end": 26684, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 26668, - "end": 26672, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 36 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26673, - "end": 26684, - "loc": { - "start": { - "line": 683, - "column": 37 - }, - "end": { - "line": 683, - "column": 48 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26685, - "end": 26687, - "loc": { - "start": { - "line": 683, - "column": 49 - }, - "end": { - "line": 683, - "column": 51 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26689, - "end": 26700, - "loc": { - "start": { - "line": 683, - "column": 53 - }, - "end": { - "line": 683, - "column": 64 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 26703, - "end": 26732, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 96 - } - }, - "object": { - "type": "MemberExpression", - "start": 26703, - "end": 26723, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 26703, - "end": 26719, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 26703, - "end": 26707, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 71 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26708, - "end": 26719, - "loc": { - "start": { - "line": 683, - "column": 72 - }, - "end": { - "line": 683, - "column": 83 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26720, - "end": 26722, - "loc": { - "start": { - "line": 683, - "column": 84 - }, - "end": { - "line": 683, - "column": 86 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26724, - "end": 26732, - "loc": { - "start": { - "line": 683, - "column": 88 - }, - "end": { - "line": 683, - "column": 96 - }, - "identifierName": "duration" - }, - "name": "duration" - }, - "computed": false - } - }, - { - "type": "NumericLiteral", - "start": 26734, - "end": 26735, - "loc": { - "start": { - "line": 683, - "column": 98 - }, - "end": { - "line": 683, - "column": 99 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 26578, - "end": 26634, - "loc": { - "start": { - "line": 682, - "column": 4 - }, - "end": { - "line": 682, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 26749, - "end": 26829, - "loc": { - "start": { - "line": 685, - "column": 4 - }, - "end": { - "line": 685, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26755, - "end": 26828, - "loc": { - "start": { - "line": 685, - "column": 10 - }, - "end": { - "line": 685, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 26755, - "end": 26756, - "loc": { - "start": { - "line": 685, - "column": 10 - }, - "end": { - "line": 685, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 26759, - "end": 26828, - "loc": { - "start": { - "line": 685, - "column": 14 - }, - "end": { - "line": 685, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 26759, - "end": 26767, - "loc": { - "start": { - "line": 685, - "column": 14 - }, - "end": { - "line": 685, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 26768, - "end": 26823, - "loc": { - "start": { - "line": 685, - "column": 23 - }, - "end": { - "line": 685, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26768, - "end": 26777, - "loc": { - "start": { - "line": 685, - "column": 23 - }, - "end": { - "line": 685, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 26768, - "end": 26772, - "loc": { - "start": { - "line": 685, - "column": 23 - }, - "end": { - "line": 685, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26773, - "end": 26777, - "loc": { - "start": { - "line": 685, - "column": 28 - }, - "end": { - "line": 685, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 26778, - "end": 26794, - "loc": { - "start": { - "line": 685, - "column": 33 - }, - "end": { - "line": 685, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 26778, - "end": 26791, - "loc": { - "start": { - "line": 685, - "column": 33 - }, - "end": { - "line": 685, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26792, - "end": 26793, - "loc": { - "start": { - "line": 685, - "column": 47 - }, - "end": { - "line": 685, - "column": 48 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 26796, - "end": 26810, - "loc": { - "start": { - "line": 685, - "column": 51 - }, - "end": { - "line": 685, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 26796, - "end": 26807, - "loc": { - "start": { - "line": 685, - "column": 51 - }, - "end": { - "line": 685, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26808, - "end": 26809, - "loc": { - "start": { - "line": 685, - "column": 63 - }, - "end": { - "line": 685, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 26812, - "end": 26822, - "loc": { - "start": { - "line": 685, - "column": 67 - }, - "end": { - "line": 685, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 26825, - "end": 26827, - "loc": { - "start": { - "line": 685, - "column": 80 - }, - "end": { - "line": 685, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 26835, - "end": 26915, - "loc": { - "start": { - "line": 686, - "column": 4 - }, - "end": { - "line": 686, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26841, - "end": 26914, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 26841, - "end": 26842, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 11 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 26845, - "end": 26914, - "loc": { - "start": { - "line": 686, - "column": 14 - }, - "end": { - "line": 686, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 26845, - "end": 26853, - "loc": { - "start": { - "line": 686, - "column": 14 - }, - "end": { - "line": 686, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 26854, - "end": 26909, - "loc": { - "start": { - "line": 686, - "column": 23 - }, - "end": { - "line": 686, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26854, - "end": 26863, - "loc": { - "start": { - "line": 686, - "column": 23 - }, - "end": { - "line": 686, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 26854, - "end": 26858, - "loc": { - "start": { - "line": 686, - "column": 23 - }, - "end": { - "line": 686, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26859, - "end": 26863, - "loc": { - "start": { - "line": 686, - "column": 28 - }, - "end": { - "line": 686, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 26864, - "end": 26880, - "loc": { - "start": { - "line": 686, - "column": 33 - }, - "end": { - "line": 686, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 26864, - "end": 26877, - "loc": { - "start": { - "line": 686, - "column": 33 - }, - "end": { - "line": 686, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26878, - "end": 26879, - "loc": { - "start": { - "line": 686, - "column": 47 - }, - "end": { - "line": 686, - "column": 48 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 26882, - "end": 26896, - "loc": { - "start": { - "line": 686, - "column": 51 - }, - "end": { - "line": 686, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 26882, - "end": 26893, - "loc": { - "start": { - "line": 686, - "column": 51 - }, - "end": { - "line": 686, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26894, - "end": 26895, - "loc": { - "start": { - "line": 686, - "column": 63 - }, - "end": { - "line": 686, - "column": 64 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 26898, - "end": 26908, - "loc": { - "start": { - "line": 686, - "column": 67 - }, - "end": { - "line": 686, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 26911, - "end": 26913, - "loc": { - "start": { - "line": 686, - "column": 80 - }, - "end": { - "line": 686, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 26921, - "end": 27001, - "loc": { - "start": { - "line": 687, - "column": 4 - }, - "end": { - "line": 687, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26927, - "end": 27000, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 26927, - "end": 26928, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 11 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 26931, - "end": 27000, - "loc": { - "start": { - "line": 687, - "column": 14 - }, - "end": { - "line": 687, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 26931, - "end": 26939, - "loc": { - "start": { - "line": 687, - "column": 14 - }, - "end": { - "line": 687, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 26940, - "end": 26995, - "loc": { - "start": { - "line": 687, - "column": 23 - }, - "end": { - "line": 687, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26940, - "end": 26949, - "loc": { - "start": { - "line": 687, - "column": 23 - }, - "end": { - "line": 687, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 26940, - "end": 26944, - "loc": { - "start": { - "line": 687, - "column": 23 - }, - "end": { - "line": 687, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26945, - "end": 26949, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 26950, - "end": 26966, - "loc": { - "start": { - "line": 687, - "column": 33 - }, - "end": { - "line": 687, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 26950, - "end": 26963, - "loc": { - "start": { - "line": 687, - "column": 33 - }, - "end": { - "line": 687, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26964, - "end": 26965, - "loc": { - "start": { - "line": 687, - "column": 47 - }, - "end": { - "line": 687, - "column": 48 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 26968, - "end": 26982, - "loc": { - "start": { - "line": 687, - "column": 51 - }, - "end": { - "line": 687, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 26968, - "end": 26979, - "loc": { - "start": { - "line": 687, - "column": 51 - }, - "end": { - "line": 687, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26980, - "end": 26981, - "loc": { - "start": { - "line": 687, - "column": 63 - }, - "end": { - "line": 687, - "column": 64 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 26984, - "end": 26994, - "loc": { - "start": { - "line": 687, - "column": 67 - }, - "end": { - "line": 687, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 26997, - "end": 26999, - "loc": { - "start": { - "line": 687, - "column": 80 - }, - "end": { - "line": 687, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 27007, - "end": 27045, - "loc": { - "start": { - "line": 688, - "column": 4 - }, - "end": { - "line": 688, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27013, - "end": 27044, - "loc": { - "start": { - "line": 688, - "column": 10 - }, - "end": { - "line": 688, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 27013, - "end": 27018, - "loc": { - "start": { - "line": 688, - "column": 10 - }, - "end": { - "line": 688, - "column": 15 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "CallExpression", - "start": 27021, - "end": 27044, - "loc": { - "start": { - "line": 688, - "column": 18 - }, - "end": { - "line": 688, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27021, - "end": 27035, - "loc": { - "start": { - "line": 688, - "column": 18 - }, - "end": { - "line": 688, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 27021, - "end": 27025, - "loc": { - "start": { - "line": 688, - "column": 18 - }, - "end": { - "line": 688, - "column": 22 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27026, - "end": 27035, - "loc": { - "start": { - "line": 688, - "column": 23 - }, - "end": { - "line": 688, - "column": 32 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 27036, - "end": 27037, - "loc": { - "start": { - "line": 688, - "column": 33 - }, - "end": { - "line": 688, - "column": 34 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 27039, - "end": 27040, - "loc": { - "start": { - "line": 688, - "column": 36 - }, - "end": { - "line": 688, - "column": 37 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 27042, - "end": 27043, - "loc": { - "start": { - "line": 688, - "column": 39 - }, - "end": { - "line": 688, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 27053, - "end": 27101, - "loc": { - "start": { - "line": 690, - "column": 4 - }, - "end": { - "line": 690, - "column": 52 - } - }, - "test": { - "type": "Identifier", - "start": 27057, - "end": 27074, - "loc": { - "start": { - "line": 690, - "column": 8 - }, - "end": { - "line": 690, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 27076, - "end": 27101, - "loc": { - "start": { - "line": 690, - "column": 27 - }, - "end": { - "line": 690, - "column": 52 - } - }, - "expression": { - "type": "CallExpression", - "start": 27076, - "end": 27100, - "loc": { - "start": { - "line": 690, - "column": 27 - }, - "end": { - "line": 690, - "column": 51 - } - }, - "callee": { - "type": "Identifier", - "start": 27076, - "end": 27093, - "loc": { - "start": { - "line": 690, - "column": 27 - }, - "end": { - "line": 690, - "column": 44 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27094, - "end": 27099, - "loc": { - "start": { - "line": 690, - "column": 45 - }, - "end": { - "line": 690, - "column": 50 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 27109, - "end": 27304, - "loc": { - "start": { - "line": 692, - "column": 4 - }, - "end": { - "line": 699, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 27113, - "end": 27122, - "loc": { - "start": { - "line": 692, - "column": 8 - }, - "end": { - "line": 692, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 27124, - "end": 27304, - "loc": { - "start": { - "line": 692, - "column": 19 - }, - "end": { - "line": 699, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27132, - "end": 27297, - "loc": { - "start": { - "line": 693, - "column": 5 - }, - "end": { - "line": 698, - "column": 6 - } - }, - "test": { - "type": "Identifier", - "start": 27136, - "end": 27148, - "loc": { - "start": { - "line": 693, - "column": 9 - }, - "end": { - "line": 693, - "column": 21 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "consequent": { - "type": "BlockStatement", - "start": 27150, - "end": 27246, - "loc": { - "start": { - "line": 693, - "column": 23 - }, - "end": { - "line": 696, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27159, - "end": 27196, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27159, - "end": 27195, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27159, - "end": 27179, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 27159, - "end": 27174, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 27159, - "end": 27168, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 27169, - "end": 27174, - "loc": { - "start": { - "line": 694, - "column": 16 - }, - "end": { - "line": 694, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27175, - "end": 27179, - "loc": { - "start": { - "line": 694, - "column": 22 - }, - "end": { - "line": 694, - "column": 26 - }, - "identifierName": "tint" - }, - "name": "tint" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 27182, - "end": 27195, - "loc": { - "start": { - "line": 694, - "column": 29 - }, - "end": { - "line": 694, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 27182, - "end": 27187, - "loc": { - "start": { - "line": 694, - "column": 29 - }, - "end": { - "line": 694, - "column": 34 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 27188, - "end": 27195, - "loc": { - "start": { - "line": 694, - "column": 35 - }, - "end": { - "line": 694, - "column": 42 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - } - } - }, - { - "type": "ExpressionStatement", - "start": 27204, - "end": 27238, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27204, - "end": 27237, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27204, - "end": 27219, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 27204, - "end": 27213, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 27214, - "end": 27219, - "loc": { - "start": { - "line": 695, - "column": 16 - }, - "end": { - "line": 695, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 27222, - "end": 27237, - "loc": { - "start": { - "line": 695, - "column": 24 - }, - "end": { - "line": 695, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 27222, - "end": 27231, - "loc": { - "start": { - "line": 695, - "column": 24 - }, - "end": { - "line": 695, - "column": 33 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 27232, - "end": 27237, - "loc": { - "start": { - "line": 695, - "column": 34 - }, - "end": { - "line": 695, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 27252, - "end": 27297, - "loc": { - "start": { - "line": 696, - "column": 12 - }, - "end": { - "line": 698, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27261, - "end": 27289, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 34 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27261, - "end": 27288, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 33 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27261, - "end": 27276, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 27261, - "end": 27270, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 27271, - "end": 27276, - "loc": { - "start": { - "line": 697, - "column": 16 - }, - "end": { - "line": 697, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 27279, - "end": 27288, - "loc": { - "start": { - "line": 697, - "column": 24 - }, - "end": { - "line": 697, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 27279, - "end": 27284, - "loc": { - "start": { - "line": 697, - "column": 24 - }, - "end": { - "line": 697, - "column": 29 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 27285, - "end": 27288, - "loc": { - "start": { - "line": 697, - "column": 30 - }, - "end": { - "line": 697, - "column": 33 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 27312, - "end": 27511, - "loc": { - "start": { - "line": 701, - "column": 4 - }, - "end": { - "line": 705, - "column": 5 - } - }, - "test": { - "type": "LogicalExpression", - "start": 27316, - "end": 27380, - "loc": { - "start": { - "line": 701, - "column": 8 - }, - "end": { - "line": 701, - "column": 72 - } - }, - "left": { - "type": "BinaryExpression", - "start": 27316, - "end": 27331, - "loc": { - "start": { - "line": 701, - "column": 8 - }, - "end": { - "line": 701, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 27316, - "end": 27326, - "loc": { - "start": { - "line": 701, - "column": 8 - }, - "end": { - "line": 701, - "column": 18 - }, - "identifierName": "percentage" - }, - "name": "percentage" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 27330, - "end": 27331, - "loc": { - "start": { - "line": 701, - "column": 22 - }, - "end": { - "line": 701, - "column": 23 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "operator": "||", - "right": { - "type": "BinaryExpression", - "start": 27335, - "end": 27380, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 72 - } - }, - "left": { - "type": "MemberExpression", - "start": 27335, - "end": 27367, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 59 - } - }, - "object": { - "type": "MemberExpression", - "start": 27335, - "end": 27355, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 27335, - "end": 27351, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 27335, - "end": 27339, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 31 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27340, - "end": 27351, - "loc": { - "start": { - "line": 701, - "column": 32 - }, - "end": { - "line": 701, - "column": 43 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27352, - "end": 27354, - "loc": { - "start": { - "line": 701, - "column": 44 - }, - "end": { - "line": 701, - "column": 46 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27356, - "end": 27367, - "loc": { - "start": { - "line": 701, - "column": 48 - }, - "end": { - "line": 701, - "column": 59 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 27371, - "end": 27380, - "loc": { - "start": { - "line": 701, - "column": 63 - }, - "end": { - "line": 701, - "column": 72 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 27382, - "end": 27511, - "loc": { - "start": { - "line": 701, - "column": 74 - }, - "end": { - "line": 705, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27390, - "end": 27447, - "loc": { - "start": { - "line": 702, - "column": 5 - }, - "end": { - "line": 702, - "column": 62 - } - }, - "test": { - "type": "MemberExpression", - "start": 27394, - "end": 27414, - "loc": { - "start": { - "line": 702, - "column": 9 - }, - "end": { - "line": 702, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 27394, - "end": 27410, - "loc": { - "start": { - "line": 702, - "column": 9 - }, - "end": { - "line": 702, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 27394, - "end": 27398, - "loc": { - "start": { - "line": 702, - "column": 9 - }, - "end": { - "line": 702, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27399, - "end": 27410, - "loc": { - "start": { - "line": 702, - "column": 14 - }, - "end": { - "line": 702, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27411, - "end": 27413, - "loc": { - "start": { - "line": 702, - "column": 26 - }, - "end": { - "line": 702, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 27416, - "end": 27447, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 27416, - "end": 27446, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27416, - "end": 27442, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 57 - } - }, - "object": { - "type": "ThisExpression", - "start": 27416, - "end": 27420, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 27421, - "end": 27442, - "loc": { - "start": { - "line": 702, - "column": 36 - }, - "end": { - "line": 702, - "column": 57 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 27443, - "end": 27445, - "loc": { - "start": { - "line": 702, - "column": 58 - }, - "end": { - "line": 702, - "column": 60 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 27454, - "end": 27490, - "loc": { - "start": { - "line": 703, - "column": 5 - }, - "end": { - "line": 703, - "column": 41 - } - }, - "test": { - "type": "Identifier", - "start": 27458, - "end": 27469, - "loc": { - "start": { - "line": 703, - "column": 9 - }, - "end": { - "line": 703, - "column": 20 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 27471, - "end": 27490, - "loc": { - "start": { - "line": 703, - "column": 22 - }, - "end": { - "line": 703, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 27471, - "end": 27489, - "loc": { - "start": { - "line": 703, - "column": 22 - }, - "end": { - "line": 703, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 27471, - "end": 27482, - "loc": { - "start": { - "line": 703, - "column": 22 - }, - "end": { - "line": 703, - "column": 33 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27483, - "end": 27488, - "loc": { - "start": { - "line": 703, - "column": 34 - }, - "end": { - "line": 703, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 27497, - "end": 27504, - "loc": { - "start": { - "line": 704, - "column": 5 - }, - "end": { - "line": 704, - "column": 12 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 27517, - "end": 27604, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 91 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27517, - "end": 27603, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 90 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27517, - "end": 27541, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 28 - } - }, - "object": { - "type": "MemberExpression", - "start": 27517, - "end": 27537, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 27517, - "end": 27533, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 27517, - "end": 27521, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27522, - "end": 27533, - "loc": { - "start": { - "line": 706, - "column": 9 - }, - "end": { - "line": 706, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27534, - "end": 27536, - "loc": { - "start": { - "line": 706, - "column": 21 - }, - "end": { - "line": 706, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27538, - "end": 27541, - "loc": { - "start": { - "line": 706, - "column": 25 - }, - "end": { - "line": 706, - "column": 28 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 27544, - "end": 27603, - "loc": { - "start": { - "line": 706, - "column": 31 - }, - "end": { - "line": 706, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27544, - "end": 27576, - "loc": { - "start": { - "line": 706, - "column": 31 - }, - "end": { - "line": 706, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 27544, - "end": 27554, - "loc": { - "start": { - "line": 706, - "column": 31 - }, - "end": { - "line": 706, - "column": 41 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 27555, - "end": 27576, - "loc": { - "start": { - "line": 706, - "column": 42 - }, - "end": { - "line": 706, - "column": 63 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 27577, - "end": 27602, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 27577, - "end": 27597, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 84 - } - }, - "object": { - "type": "MemberExpression", - "start": 27577, - "end": 27593, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 80 - } - }, - "object": { - "type": "Identifier", - "start": 27577, - "end": 27581, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 68 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27582, - "end": 27593, - "loc": { - "start": { - "line": 706, - "column": 69 - }, - "end": { - "line": 706, - "column": 80 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27594, - "end": 27596, - "loc": { - "start": { - "line": 706, - "column": 81 - }, - "end": { - "line": 706, - "column": 83 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27598, - "end": 27602, - "loc": { - "start": { - "line": 706, - "column": 85 - }, - "end": { - "line": 706, - "column": 89 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 27610, - "end": 27646, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27610, - "end": 27645, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27610, - "end": 27639, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 33 - } - }, - "object": { - "type": "MemberExpression", - "start": 27610, - "end": 27630, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 27610, - "end": 27626, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 27610, - "end": 27614, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27615, - "end": 27626, - "loc": { - "start": { - "line": 707, - "column": 9 - }, - "end": { - "line": 707, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27627, - "end": 27629, - "loc": { - "start": { - "line": 707, - "column": 21 - }, - "end": { - "line": 707, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27631, - "end": 27639, - "loc": { - "start": { - "line": 707, - "column": 25 - }, - "end": { - "line": 707, - "column": 33 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 27642, - "end": 27645, - "loc": { - "start": { - "line": 707, - "column": 36 - }, - "end": { - "line": 707, - "column": 39 - }, - "identifierName": "now" - }, - "name": "now" - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 27663, - "end": 27750, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27663, - "end": 27749, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27663, - "end": 27687, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 27663, - "end": 27683, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 27663, - "end": 27679, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 27663, - "end": 27667, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 27668, - "end": 27679, - "loc": { - "start": { - "line": 711, - "column": 7 - }, - "end": { - "line": 711, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27680, - "end": 27682, - "loc": { - "start": { - "line": 711, - "column": 19 - }, - "end": { - "line": 711, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27684, - "end": 27687, - "loc": { - "start": { - "line": 711, - "column": 23 - }, - "end": { - "line": 711, - "column": 26 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 27690, - "end": 27749, - "loc": { - "start": { - "line": 711, - "column": 29 - }, - "end": { - "line": 711, - "column": 88 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27690, - "end": 27722, - "loc": { - "start": { - "line": 711, - "column": 29 - }, - "end": { - "line": 711, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 27690, - "end": 27700, - "loc": { - "start": { - "line": 711, - "column": 29 - }, - "end": { - "line": 711, - "column": 39 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 27701, - "end": 27722, - "loc": { - "start": { - "line": 711, - "column": 40 - }, - "end": { - "line": 711, - "column": 61 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 27723, - "end": 27748, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 27723, - "end": 27743, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 82 - } - }, - "object": { - "type": "MemberExpression", - "start": 27723, - "end": 27739, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 78 - } - }, - "object": { - "type": "ThisExpression", - "start": 27723, - "end": 27727, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 66 - } - } - }, - "property": { - "type": "Identifier", - "start": 27728, - "end": 27739, - "loc": { - "start": { - "line": 711, - "column": 67 - }, - "end": { - "line": 711, - "column": 78 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27740, - "end": 27742, - "loc": { - "start": { - "line": 711, - "column": 79 - }, - "end": { - "line": 711, - "column": 81 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27744, - "end": 27748, - "loc": { - "start": { - "line": 711, - "column": 83 - }, - "end": { - "line": 711, - "column": 87 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 27754, - "end": 27764, - "loc": { - "start": { - "line": 712, - "column": 2 - }, - "end": { - "line": 712, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 27761, - "end": 27763, - "loc": { - "start": { - "line": 712, - "column": 9 - }, - "end": { - "line": 712, - "column": 11 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 23946, - "end": 24734, - "loc": { - "start": { - "line": 621, - "column": 1 - }, - "end": { - "line": 634, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 27771, - "end": 27891, - "loc": { - "start": { - "line": 714, - "column": 1 - }, - "end": { - "line": 718, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 27894, - "end": 28061, - "loc": { - "start": { - "line": 719, - "column": 1 - }, - "end": { - "line": 724, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27894, - "end": 27915, - "loc": { - "start": { - "line": 719, - "column": 1 - }, - "end": { - "line": 719, - "column": 22 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27916, - "end": 27919, - "loc": { - "start": { - "line": 719, - "column": 23 - }, - "end": { - "line": 719, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - } - ], - "body": { - "type": "BlockStatement", - "start": 27921, - "end": 28061, - "loc": { - "start": { - "line": 719, - "column": 28 - }, - "end": { - "line": 724, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27926, - "end": 28057, - "loc": { - "start": { - "line": 720, - "column": 2 - }, - "end": { - "line": 723, - "column": 3 - } - }, - "test": { - "type": "MemberExpression", - "start": 27930, - "end": 27951, - "loc": { - "start": { - "line": 720, - "column": 6 - }, - "end": { - "line": 720, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 27930, - "end": 27946, - "loc": { - "start": { - "line": 720, - "column": 6 - }, - "end": { - "line": 720, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 27930, - "end": 27934, - "loc": { - "start": { - "line": 720, - "column": 6 - }, - "end": { - "line": 720, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "start": 27935, - "end": 27946, - "loc": { - "start": { - "line": 720, - "column": 11 - }, - "end": { - "line": 720, - "column": 22 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27947, - "end": 27950, - "loc": { - "start": { - "line": 720, - "column": 23 - }, - "end": { - "line": 720, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 27953, - "end": 28057, - "loc": { - "start": { - "line": 720, - "column": 29 - }, - "end": { - "line": 723, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27959, - "end": 28018, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 27959, - "end": 28017, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27959, - "end": 27990, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 27959, - "end": 27969, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 13 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 27970, - "end": 27990, - "loc": { - "start": { - "line": 721, - "column": 14 - }, - "end": { - "line": 721, - "column": 34 - }, - "identifierName": "cancelAnimationFrame" - }, - "name": "cancelAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 27991, - "end": 28016, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 27991, - "end": 28012, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 56 - } - }, - "object": { - "type": "MemberExpression", - "start": 27991, - "end": 28007, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 51 - } - }, - "object": { - "type": "ThisExpression", - "start": 27991, - "end": 27995, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 27996, - "end": 28007, - "loc": { - "start": { - "line": 721, - "column": 40 - }, - "end": { - "line": 721, - "column": 51 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 28008, - "end": 28011, - "loc": { - "start": { - "line": 721, - "column": 52 - }, - "end": { - "line": 721, - "column": 55 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 28013, - "end": 28016, - "loc": { - "start": { - "line": 721, - "column": 57 - }, - "end": { - "line": 721, - "column": 60 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 28023, - "end": 28052, - "loc": { - "start": { - "line": 722, - "column": 3 - }, - "end": { - "line": 722, - "column": 32 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 28023, - "end": 28051, - "loc": { - "start": { - "line": 722, - "column": 3 - }, - "end": { - "line": 722, - "column": 31 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 28030, - "end": 28051, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 28030, - "end": 28046, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 26 - } - }, - "object": { - "type": "ThisExpression", - "start": 28030, - "end": 28034, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 14 - } - } - }, - "property": { - "type": "Identifier", - "start": 28035, - "end": 28046, - "loc": { - "start": { - "line": 722, - "column": 15 - }, - "end": { - "line": 722, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 28047, - "end": 28050, - "loc": { - "start": { - "line": 722, - "column": 27 - }, - "end": { - "line": 722, - "column": 30 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 27771, - "end": 27891, - "loc": { - "start": { - "line": 714, - "column": 1 - }, - "end": { - "line": 718, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 28064, - "end": 28745, - "loc": { - "start": { - "line": 725, - "column": 1 - }, - "end": { - "line": 735, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 28748, - "end": 29541, - "loc": { - "start": { - "line": 736, - "column": 1 - }, - "end": { - "line": 755, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28748, - "end": 28763, - "loc": { - "start": { - "line": 736, - "column": 1 - }, - "end": { - "line": 736, - "column": 16 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28764, - "end": 28769, - "loc": { - "start": { - "line": 736, - "column": 17 - }, - "end": { - "line": 736, - "column": 22 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 28771, - "end": 28777, - "loc": { - "start": { - "line": 736, - "column": 24 - }, - "end": { - "line": 736, - "column": 30 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "Identifier", - "start": 28779, - "end": 28785, - "loc": { - "start": { - "line": 736, - "column": 32 - }, - "end": { - "line": 736, - "column": 38 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 28787, - "end": 29541, - "loc": { - "start": { - "line": 736, - "column": 40 - }, - "end": { - "line": 755, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 28930, - "end": 29042, - "loc": { - "start": { - "line": 740, - "column": 2 - }, - "end": { - "line": 740, - "column": 114 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 28936, - "end": 29041, - "loc": { - "start": { - "line": 740, - "column": 8 - }, - "end": { - "line": 740, - "column": 113 - } - }, - "id": { - "type": "Identifier", - "start": 28936, - "end": 28938, - "loc": { - "start": { - "line": 740, - "column": 8 - }, - "end": { - "line": 740, - "column": 10 - }, - "identifierName": "cx" - }, - "name": "cx", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 28941, - "end": 29041, - "loc": { - "start": { - "line": 740, - "column": 13 - }, - "end": { - "line": 740, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 28941, - "end": 28948, - "loc": { - "start": { - "line": 740, - "column": 13 - }, - "end": { - "line": 740, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 28941, - "end": 28946, - "loc": { - "start": { - "line": 740, - "column": 13 - }, - "end": { - "line": 740, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 28947, - "end": 28948, - "loc": { - "start": { - "line": 740, - "column": 19 - }, - "end": { - "line": 740, - "column": 20 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 28951, - "end": 29041, - "loc": { - "start": { - "line": 740, - "column": 23 - }, - "end": { - "line": 740, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 28951, - "end": 28962, - "loc": { - "start": { - "line": 740, - "column": 23 - }, - "end": { - "line": 740, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 28951, - "end": 28956, - "loc": { - "start": { - "line": 740, - "column": 23 - }, - "end": { - "line": 740, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 28957, - "end": 28962, - "loc": { - "start": { - "line": 740, - "column": 29 - }, - "end": { - "line": 740, - "column": 34 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 28966, - "end": 29040, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 28966, - "end": 29017, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 89 - } - }, - "left": { - "type": "BinaryExpression", - "start": 28966, - "end": 28999, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 71 - } - }, - "left": { - "type": "UnaryExpression", - "start": 28966, - "end": 28986, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 58 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 28973, - "end": 28985, - "loc": { - "start": { - "line": 740, - "column": 45 - }, - "end": { - "line": 740, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 28973, - "end": 28978, - "loc": { - "start": { - "line": 740, - "column": 45 - }, - "end": { - "line": 740, - "column": 50 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 28979, - "end": 28985, - "loc": { - "start": { - "line": 740, - "column": 51 - }, - "end": { - "line": 740, - "column": 57 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 28972 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 28991, - "end": 28999, - "loc": { - "start": { - "line": 740, - "column": 63 - }, - "end": { - "line": 740, - "column": 71 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 29003, - "end": 29017, - "loc": { - "start": { - "line": 740, - "column": 75 - }, - "end": { - "line": 740, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 29003, - "end": 29015, - "loc": { - "start": { - "line": 740, - "column": 75 - }, - "end": { - "line": 740, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 29003, - "end": 29008, - "loc": { - "start": { - "line": 740, - "column": 75 - }, - "end": { - "line": 740, - "column": 80 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29009, - "end": 29015, - "loc": { - "start": { - "line": 740, - "column": 81 - }, - "end": { - "line": 740, - "column": 87 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 29016, - "end": 29017, - "loc": { - "start": { - "line": 740, - "column": 88 - }, - "end": { - "line": 740, - "column": 89 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 29020, - "end": 29034, - "loc": { - "start": { - "line": 740, - "column": 92 - }, - "end": { - "line": 740, - "column": 106 - } - }, - "object": { - "type": "MemberExpression", - "start": 29020, - "end": 29032, - "loc": { - "start": { - "line": 740, - "column": 92 - }, - "end": { - "line": 740, - "column": 104 - } - }, - "object": { - "type": "Identifier", - "start": 29020, - "end": 29025, - "loc": { - "start": { - "line": 740, - "column": 92 - }, - "end": { - "line": 740, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29026, - "end": 29032, - "loc": { - "start": { - "line": 740, - "column": 98 - }, - "end": { - "line": 740, - "column": 104 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 29033, - "end": 29034, - "loc": { - "start": { - "line": 740, - "column": 105 - }, - "end": { - "line": 740, - "column": 106 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 29037, - "end": 29040, - "loc": { - "start": { - "line": 740, - "column": 109 - }, - "end": { - "line": 740, - "column": 112 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 28965 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 28792, - "end": 28832, - "loc": { - "start": { - "line": 737, - "column": 2 - }, - "end": { - "line": 737, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 28836, - "end": 28889, - "loc": { - "start": { - "line": 738, - "column": 2 - }, - "end": { - "line": 738, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 28893, - "end": 28926, - "loc": { - "start": { - "line": 739, - "column": 2 - }, - "end": { - "line": 739, - "column": 35 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29046, - "end": 29159, - "loc": { - "start": { - "line": 741, - "column": 2 - }, - "end": { - "line": 741, - "column": 115 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29052, - "end": 29158, - "loc": { - "start": { - "line": 741, - "column": 8 - }, - "end": { - "line": 741, - "column": 114 - } - }, - "id": { - "type": "Identifier", - "start": 29052, - "end": 29054, - "loc": { - "start": { - "line": 741, - "column": 8 - }, - "end": { - "line": 741, - "column": 10 - }, - "identifierName": "cy" - }, - "name": "cy" - }, - "init": { - "type": "BinaryExpression", - "start": 29057, - "end": 29158, - "loc": { - "start": { - "line": 741, - "column": 13 - }, - "end": { - "line": 741, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 29057, - "end": 29064, - "loc": { - "start": { - "line": 741, - "column": 13 - }, - "end": { - "line": 741, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 29057, - "end": 29062, - "loc": { - "start": { - "line": 741, - "column": 13 - }, - "end": { - "line": 741, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29063, - "end": 29064, - "loc": { - "start": { - "line": 741, - "column": 19 - }, - "end": { - "line": 741, - "column": 20 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 29067, - "end": 29158, - "loc": { - "start": { - "line": 741, - "column": 23 - }, - "end": { - "line": 741, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 29067, - "end": 29079, - "loc": { - "start": { - "line": 741, - "column": 23 - }, - "end": { - "line": 741, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 29067, - "end": 29072, - "loc": { - "start": { - "line": 741, - "column": 23 - }, - "end": { - "line": 741, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29073, - "end": 29079, - "loc": { - "start": { - "line": 741, - "column": 29 - }, - "end": { - "line": 741, - "column": 35 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 29083, - "end": 29157, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 113 - } - }, - "test": { - "type": "LogicalExpression", - "start": 29083, - "end": 29134, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 90 - } - }, - "left": { - "type": "BinaryExpression", - "start": 29083, - "end": 29116, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 72 - } - }, - "left": { - "type": "UnaryExpression", - "start": 29083, - "end": 29103, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 59 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 29090, - "end": 29102, - "loc": { - "start": { - "line": 741, - "column": 46 - }, - "end": { - "line": 741, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 29090, - "end": 29095, - "loc": { - "start": { - "line": 741, - "column": 46 - }, - "end": { - "line": 741, - "column": 51 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29096, - "end": 29102, - "loc": { - "start": { - "line": 741, - "column": 52 - }, - "end": { - "line": 741, - "column": 58 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 29089 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 29108, - "end": 29116, - "loc": { - "start": { - "line": 741, - "column": 64 - }, - "end": { - "line": 741, - "column": 72 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 29120, - "end": 29134, - "loc": { - "start": { - "line": 741, - "column": 76 - }, - "end": { - "line": 741, - "column": 90 - } - }, - "object": { - "type": "MemberExpression", - "start": 29120, - "end": 29132, - "loc": { - "start": { - "line": 741, - "column": 76 - }, - "end": { - "line": 741, - "column": 88 - } - }, - "object": { - "type": "Identifier", - "start": 29120, - "end": 29125, - "loc": { - "start": { - "line": 741, - "column": 76 - }, - "end": { - "line": 741, - "column": 81 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29126, - "end": 29132, - "loc": { - "start": { - "line": 741, - "column": 82 - }, - "end": { - "line": 741, - "column": 88 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 29133, - "end": 29134, - "loc": { - "start": { - "line": 741, - "column": 89 - }, - "end": { - "line": 741, - "column": 90 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 29137, - "end": 29151, - "loc": { - "start": { - "line": 741, - "column": 93 - }, - "end": { - "line": 741, - "column": 107 - } - }, - "object": { - "type": "MemberExpression", - "start": 29137, - "end": 29149, - "loc": { - "start": { - "line": 741, - "column": 93 - }, - "end": { - "line": 741, - "column": 105 - } - }, - "object": { - "type": "Identifier", - "start": 29137, - "end": 29142, - "loc": { - "start": { - "line": 741, - "column": 93 - }, - "end": { - "line": 741, - "column": 98 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29143, - "end": 29149, - "loc": { - "start": { - "line": 741, - "column": 99 - }, - "end": { - "line": 741, - "column": 105 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 29150, - "end": 29151, - "loc": { - "start": { - "line": 741, - "column": 106 - }, - "end": { - "line": 741, - "column": 107 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 29154, - "end": 29157, - "loc": { - "start": { - "line": 741, - "column": 110 - }, - "end": { - "line": 741, - "column": 113 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 29082 - } - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 29165, - "end": 29193, - "loc": { - "start": { - "line": 743, - "column": 2 - }, - "end": { - "line": 743, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29197, - "end": 29225, - "loc": { - "start": { - "line": 744, - "column": 2 - }, - "end": { - "line": 744, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29203, - "end": 29224, - "loc": { - "start": { - "line": 744, - "column": 8 - }, - "end": { - "line": 744, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 29203, - "end": 29208, - "loc": { - "start": { - "line": 744, - "column": 8 - }, - "end": { - "line": 744, - "column": 13 - }, - "identifierName": "tempX" - }, - "name": "tempX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 29211, - "end": 29224, - "loc": { - "start": { - "line": 744, - "column": 16 - }, - "end": { - "line": 744, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 29211, - "end": 29219, - "loc": { - "start": { - "line": 744, - "column": 16 - }, - "end": { - "line": 744, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 29211, - "end": 29217, - "loc": { - "start": { - "line": 744, - "column": 16 - }, - "end": { - "line": 744, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 29218, - "end": 29219, - "loc": { - "start": { - "line": 744, - "column": 23 - }, - "end": { - "line": 744, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 29222, - "end": 29224, - "loc": { - "start": { - "line": 744, - "column": 27 - }, - "end": { - "line": 744, - "column": 29 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 29165, - "end": 29193, - "loc": { - "start": { - "line": 743, - "column": 2 - }, - "end": { - "line": 743, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29229, - "end": 29257, - "loc": { - "start": { - "line": 745, - "column": 2 - }, - "end": { - "line": 745, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29235, - "end": 29256, - "loc": { - "start": { - "line": 745, - "column": 8 - }, - "end": { - "line": 745, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 29235, - "end": 29240, - "loc": { - "start": { - "line": 745, - "column": 8 - }, - "end": { - "line": 745, - "column": 13 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "init": { - "type": "BinaryExpression", - "start": 29243, - "end": 29256, - "loc": { - "start": { - "line": 745, - "column": 16 - }, - "end": { - "line": 745, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 29243, - "end": 29251, - "loc": { - "start": { - "line": 745, - "column": 16 - }, - "end": { - "line": 745, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 29243, - "end": 29249, - "loc": { - "start": { - "line": 745, - "column": 16 - }, - "end": { - "line": 745, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 29250, - "end": 29251, - "loc": { - "start": { - "line": 745, - "column": 23 - }, - "end": { - "line": 745, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 29254, - "end": 29256, - "loc": { - "start": { - "line": 745, - "column": 27 - }, - "end": { - "line": 745, - "column": 29 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 29263, - "end": 29284, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 747, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29288, - "end": 29356, - "loc": { - "start": { - "line": 748, - "column": 2 - }, - "end": { - "line": 748, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29294, - "end": 29355, - "loc": { - "start": { - "line": 748, - "column": 8 - }, - "end": { - "line": 748, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 29294, - "end": 29302, - "loc": { - "start": { - "line": 748, - "column": 8 - }, - "end": { - "line": 748, - "column": 16 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 29305, - "end": 29355, - "loc": { - "start": { - "line": 748, - "column": 19 - }, - "end": { - "line": 748, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 29305, - "end": 29327, - "loc": { - "start": { - "line": 748, - "column": 19 - }, - "end": { - "line": 748, - "column": 41 - } - }, - "left": { - "type": "Identifier", - "start": 29305, - "end": 29310, - "loc": { - "start": { - "line": 748, - "column": 19 - }, - "end": { - "line": 748, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 29311, - "end": 29327, - "loc": { - "start": { - "line": 748, - "column": 25 - }, - "end": { - "line": 748, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29311, - "end": 29319, - "loc": { - "start": { - "line": 748, - "column": 25 - }, - "end": { - "line": 748, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 29311, - "end": 29315, - "loc": { - "start": { - "line": 748, - "column": 25 - }, - "end": { - "line": 748, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 29316, - "end": 29319, - "loc": { - "start": { - "line": 748, - "column": 30 - }, - "end": { - "line": 748, - "column": 33 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29320, - "end": 29326, - "loc": { - "start": { - "line": 748, - "column": 34 - }, - "end": { - "line": 748, - "column": 40 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 29330, - "end": 29355, - "loc": { - "start": { - "line": 748, - "column": 44 - }, - "end": { - "line": 748, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 29330, - "end": 29335, - "loc": { - "start": { - "line": 748, - "column": 44 - }, - "end": { - "line": 748, - "column": 49 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 29337, - "end": 29354, - "loc": { - "start": { - "line": 748, - "column": 51 - }, - "end": { - "line": 748, - "column": 68 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 29338, - "end": 29354, - "loc": { - "start": { - "line": 748, - "column": 52 - }, - "end": { - "line": 748, - "column": 68 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29338, - "end": 29346, - "loc": { - "start": { - "line": 748, - "column": 52 - }, - "end": { - "line": 748, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 29338, - "end": 29342, - "loc": { - "start": { - "line": 748, - "column": 52 - }, - "end": { - "line": 748, - "column": 56 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 29343, - "end": 29346, - "loc": { - "start": { - "line": 748, - "column": 57 - }, - "end": { - "line": 748, - "column": 60 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29347, - "end": 29353, - "loc": { - "start": { - "line": 748, - "column": 61 - }, - "end": { - "line": 748, - "column": 67 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 29336 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 29263, - "end": 29284, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 747, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29360, - "end": 29428, - "loc": { - "start": { - "line": 749, - "column": 2 - }, - "end": { - "line": 749, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29366, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 8 - }, - "end": { - "line": 749, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 29366, - "end": 29374, - "loc": { - "start": { - "line": 749, - "column": 8 - }, - "end": { - "line": 749, - "column": 16 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "init": { - "type": "BinaryExpression", - "start": 29377, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 19 - }, - "end": { - "line": 749, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 29377, - "end": 29402, - "loc": { - "start": { - "line": 749, - "column": 19 - }, - "end": { - "line": 749, - "column": 44 - } - }, - "left": { - "type": "Identifier", - "start": 29377, - "end": 29382, - "loc": { - "start": { - "line": 749, - "column": 19 - }, - "end": { - "line": 749, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 29384, - "end": 29401, - "loc": { - "start": { - "line": 749, - "column": 26 - }, - "end": { - "line": 749, - "column": 43 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 29385, - "end": 29401, - "loc": { - "start": { - "line": 749, - "column": 27 - }, - "end": { - "line": 749, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29385, - "end": 29393, - "loc": { - "start": { - "line": 749, - "column": 27 - }, - "end": { - "line": 749, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 29385, - "end": 29389, - "loc": { - "start": { - "line": 749, - "column": 27 - }, - "end": { - "line": 749, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 29390, - "end": 29393, - "loc": { - "start": { - "line": 749, - "column": 32 - }, - "end": { - "line": 749, - "column": 35 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29394, - "end": 29400, - "loc": { - "start": { - "line": 749, - "column": 36 - }, - "end": { - "line": 749, - "column": 42 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 29383 - } - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 29405, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 47 - }, - "end": { - "line": 749, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 29405, - "end": 29410, - "loc": { - "start": { - "line": 749, - "column": 47 - }, - "end": { - "line": 749, - "column": 52 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 29411, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 53 - }, - "end": { - "line": 749, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29411, - "end": 29419, - "loc": { - "start": { - "line": 749, - "column": 53 - }, - "end": { - "line": 749, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 29411, - "end": 29415, - "loc": { - "start": { - "line": 749, - "column": 53 - }, - "end": { - "line": 749, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 29416, - "end": 29419, - "loc": { - "start": { - "line": 749, - "column": 58 - }, - "end": { - "line": 749, - "column": 61 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29420, - "end": 29426, - "loc": { - "start": { - "line": 749, - "column": 62 - }, - "end": { - "line": 749, - "column": 68 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 29434, - "end": 29451, - "loc": { - "start": { - "line": 751, - "column": 2 - }, - "end": { - "line": 751, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29455, - "end": 29479, - "loc": { - "start": { - "line": 752, - "column": 2 - }, - "end": { - "line": 752, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29461, - "end": 29478, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 752, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 29461, - "end": 29462, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 752, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 29465, - "end": 29478, - "loc": { - "start": { - "line": 752, - "column": 12 - }, - "end": { - "line": 752, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 29465, - "end": 29473, - "loc": { - "start": { - "line": 752, - "column": 12 - }, - "end": { - "line": 752, - "column": 20 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 29476, - "end": 29478, - "loc": { - "start": { - "line": 752, - "column": 23 - }, - "end": { - "line": 752, - "column": 25 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 29434, - "end": 29451, - "loc": { - "start": { - "line": 751, - "column": 2 - }, - "end": { - "line": 751, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29483, - "end": 29507, - "loc": { - "start": { - "line": 753, - "column": 2 - }, - "end": { - "line": 753, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29489, - "end": 29506, - "loc": { - "start": { - "line": 753, - "column": 8 - }, - "end": { - "line": 753, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 29489, - "end": 29490, - "loc": { - "start": { - "line": 753, - "column": 8 - }, - "end": { - "line": 753, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 29493, - "end": 29506, - "loc": { - "start": { - "line": 753, - "column": 12 - }, - "end": { - "line": 753, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 29493, - "end": 29501, - "loc": { - "start": { - "line": 753, - "column": 12 - }, - "end": { - "line": 753, - "column": 20 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 29504, - "end": 29506, - "loc": { - "start": { - "line": 753, - "column": 23 - }, - "end": { - "line": 753, - "column": 25 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 29511, - "end": 29537, - "loc": { - "start": { - "line": 754, - "column": 2 - }, - "end": { - "line": 754, - "column": 28 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 29518, - "end": 29536, - "loc": { - "start": { - "line": 754, - "column": 9 - }, - "end": { - "line": 754, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 29520, - "end": 29526, - "loc": { - "start": { - "line": 754, - "column": 11 - }, - "end": { - "line": 754, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 29520, - "end": 29523, - "loc": { - "start": { - "line": 754, - "column": 11 - }, - "end": { - "line": 754, - "column": 14 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "Identifier", - "start": 29525, - "end": 29526, - "loc": { - "start": { - "line": 754, - "column": 16 - }, - "end": { - "line": 754, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - } - }, - { - "type": "ObjectProperty", - "start": 29528, - "end": 29534, - "loc": { - "start": { - "line": 754, - "column": 19 - }, - "end": { - "line": 754, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 29528, - "end": 29531, - "loc": { - "start": { - "line": 754, - "column": 19 - }, - "end": { - "line": 754, - "column": 22 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "Identifier", - "start": 29533, - "end": 29534, - "loc": { - "start": { - "line": 754, - "column": 24 - }, - "end": { - "line": 754, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 28064, - "end": 28745, - "loc": { - "start": { - "line": 725, - "column": 1 - }, - "end": { - "line": 735, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 29544, - "end": 30039, - "loc": { - "start": { - "line": 756, - "column": 1 - }, - "end": { - "line": 763, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 30042, - "end": 30671, - "loc": { - "start": { - "line": 764, - "column": 1 - }, - "end": { - "line": 771, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30042, - "end": 30064, - "loc": { - "start": { - "line": 764, - "column": 1 - }, - "end": { - "line": 764, - "column": 23 - }, - "identifierName": "getPointsOfRotatedRect" - }, - "name": "getPointsOfRotatedRect", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30065, - "end": 30070, - "loc": { - "start": { - "line": 764, - "column": 24 - }, - "end": { - "line": 764, - "column": 29 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30072, - "end": 30078, - "loc": { - "start": { - "line": 764, - "column": 31 - }, - "end": { - "line": 764, - "column": 37 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ], - "body": { - "type": "BlockStatement", - "start": 30080, - "end": 30671, - "loc": { - "start": { - "line": 764, - "column": 39 - }, - "end": { - "line": 771, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 30085, - "end": 30164, - "loc": { - "start": { - "line": 765, - "column": 2 - }, - "end": { - "line": 765, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30091, - "end": 30163, - "loc": { - "start": { - "line": 765, - "column": 8 - }, - "end": { - "line": 765, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 30091, - "end": 30093, - "loc": { - "start": { - "line": 765, - "column": 8 - }, - "end": { - "line": 765, - "column": 10 - }, - "identifierName": "tl" - }, - "name": "tl" - }, - "init": { - "type": "CallExpression", - "start": 30096, - "end": 30163, - "loc": { - "start": { - "line": 765, - "column": 13 - }, - "end": { - "line": 765, - "column": 80 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30096, - "end": 30116, - "loc": { - "start": { - "line": 765, - "column": 13 - }, - "end": { - "line": 765, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 30096, - "end": 30100, - "loc": { - "start": { - "line": 765, - "column": 13 - }, - "end": { - "line": 765, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 30101, - "end": 30116, - "loc": { - "start": { - "line": 765, - "column": 18 - }, - "end": { - "line": 765, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30117, - "end": 30122, - "loc": { - "start": { - "line": 765, - "column": 34 - }, - "end": { - "line": 765, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30124, - "end": 30130, - "loc": { - "start": { - "line": 765, - "column": 41 - }, - "end": { - "line": 765, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30132, - "end": 30162, - "loc": { - "start": { - "line": 765, - "column": 49 - }, - "end": { - "line": 765, - "column": 79 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30134, - "end": 30146, - "loc": { - "start": { - "line": 765, - "column": 51 - }, - "end": { - "line": 765, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30134, - "end": 30137, - "loc": { - "start": { - "line": 765, - "column": 51 - }, - "end": { - "line": 765, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 30139, - "end": 30146, - "loc": { - "start": { - "line": 765, - "column": 56 - }, - "end": { - "line": 765, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 30139, - "end": 30144, - "loc": { - "start": { - "line": 765, - "column": 56 - }, - "end": { - "line": 765, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30145, - "end": 30146, - "loc": { - "start": { - "line": 765, - "column": 62 - }, - "end": { - "line": 765, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 30148, - "end": 30160, - "loc": { - "start": { - "line": 765, - "column": 65 - }, - "end": { - "line": 765, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30148, - "end": 30151, - "loc": { - "start": { - "line": 765, - "column": 65 - }, - "end": { - "line": 765, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 30153, - "end": 30160, - "loc": { - "start": { - "line": 765, - "column": 70 - }, - "end": { - "line": 765, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 30153, - "end": 30158, - "loc": { - "start": { - "line": 765, - "column": 70 - }, - "end": { - "line": 765, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30159, - "end": 30160, - "loc": { - "start": { - "line": 765, - "column": 76 - }, - "end": { - "line": 765, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30168, - "end": 30261, - "loc": { - "start": { - "line": 766, - "column": 2 - }, - "end": { - "line": 766, - "column": 95 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30174, - "end": 30260, - "loc": { - "start": { - "line": 766, - "column": 8 - }, - "end": { - "line": 766, - "column": 94 - } - }, - "id": { - "type": "Identifier", - "start": 30174, - "end": 30176, - "loc": { - "start": { - "line": 766, - "column": 8 - }, - "end": { - "line": 766, - "column": 10 - }, - "identifierName": "tr" - }, - "name": "tr" - }, - "init": { - "type": "CallExpression", - "start": 30179, - "end": 30260, - "loc": { - "start": { - "line": 766, - "column": 13 - }, - "end": { - "line": 766, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30179, - "end": 30199, - "loc": { - "start": { - "line": 766, - "column": 13 - }, - "end": { - "line": 766, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 30179, - "end": 30183, - "loc": { - "start": { - "line": 766, - "column": 13 - }, - "end": { - "line": 766, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 30184, - "end": 30199, - "loc": { - "start": { - "line": 766, - "column": 18 - }, - "end": { - "line": 766, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30200, - "end": 30205, - "loc": { - "start": { - "line": 766, - "column": 34 - }, - "end": { - "line": 766, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30207, - "end": 30213, - "loc": { - "start": { - "line": 766, - "column": 41 - }, - "end": { - "line": 766, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30215, - "end": 30259, - "loc": { - "start": { - "line": 766, - "column": 49 - }, - "end": { - "line": 766, - "column": 93 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30217, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 51 - }, - "end": { - "line": 766, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30217, - "end": 30220, - "loc": { - "start": { - "line": 766, - "column": 51 - }, - "end": { - "line": 766, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 30222, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 56 - }, - "end": { - "line": 766, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 30222, - "end": 30229, - "loc": { - "start": { - "line": 766, - "column": 56 - }, - "end": { - "line": 766, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 30222, - "end": 30227, - "loc": { - "start": { - "line": 766, - "column": 56 - }, - "end": { - "line": 766, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30228, - "end": 30229, - "loc": { - "start": { - "line": 766, - "column": 62 - }, - "end": { - "line": 766, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 30232, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 66 - }, - "end": { - "line": 766, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 30232, - "end": 30237, - "loc": { - "start": { - "line": 766, - "column": 66 - }, - "end": { - "line": 766, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30238, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 72 - }, - "end": { - "line": 766, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 30245, - "end": 30257, - "loc": { - "start": { - "line": 766, - "column": 79 - }, - "end": { - "line": 766, - "column": 91 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30245, - "end": 30248, - "loc": { - "start": { - "line": 766, - "column": 79 - }, - "end": { - "line": 766, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 30250, - "end": 30257, - "loc": { - "start": { - "line": 766, - "column": 84 - }, - "end": { - "line": 766, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 30250, - "end": 30255, - "loc": { - "start": { - "line": 766, - "column": 84 - }, - "end": { - "line": 766, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30256, - "end": 30257, - "loc": { - "start": { - "line": 766, - "column": 90 - }, - "end": { - "line": 766, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30265, - "end": 30359, - "loc": { - "start": { - "line": 767, - "column": 2 - }, - "end": { - "line": 767, - "column": 96 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30271, - "end": 30358, - "loc": { - "start": { - "line": 767, - "column": 8 - }, - "end": { - "line": 767, - "column": 95 - } - }, - "id": { - "type": "Identifier", - "start": 30271, - "end": 30273, - "loc": { - "start": { - "line": 767, - "column": 8 - }, - "end": { - "line": 767, - "column": 10 - }, - "identifierName": "bl" - }, - "name": "bl" - }, - "init": { - "type": "CallExpression", - "start": 30276, - "end": 30358, - "loc": { - "start": { - "line": 767, - "column": 13 - }, - "end": { - "line": 767, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30276, - "end": 30296, - "loc": { - "start": { - "line": 767, - "column": 13 - }, - "end": { - "line": 767, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 30276, - "end": 30280, - "loc": { - "start": { - "line": 767, - "column": 13 - }, - "end": { - "line": 767, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 30281, - "end": 30296, - "loc": { - "start": { - "line": 767, - "column": 18 - }, - "end": { - "line": 767, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30297, - "end": 30302, - "loc": { - "start": { - "line": 767, - "column": 34 - }, - "end": { - "line": 767, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30304, - "end": 30310, - "loc": { - "start": { - "line": 767, - "column": 41 - }, - "end": { - "line": 767, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30312, - "end": 30357, - "loc": { - "start": { - "line": 767, - "column": 49 - }, - "end": { - "line": 767, - "column": 94 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30314, - "end": 30326, - "loc": { - "start": { - "line": 767, - "column": 51 - }, - "end": { - "line": 767, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30314, - "end": 30317, - "loc": { - "start": { - "line": 767, - "column": 51 - }, - "end": { - "line": 767, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 30319, - "end": 30326, - "loc": { - "start": { - "line": 767, - "column": 56 - }, - "end": { - "line": 767, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 30319, - "end": 30324, - "loc": { - "start": { - "line": 767, - "column": 56 - }, - "end": { - "line": 767, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30325, - "end": 30326, - "loc": { - "start": { - "line": 767, - "column": 62 - }, - "end": { - "line": 767, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 30328, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 65 - }, - "end": { - "line": 767, - "column": 92 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30328, - "end": 30331, - "loc": { - "start": { - "line": 767, - "column": 65 - }, - "end": { - "line": 767, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 30333, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 70 - }, - "end": { - "line": 767, - "column": 92 - } - }, - "left": { - "type": "MemberExpression", - "start": 30333, - "end": 30340, - "loc": { - "start": { - "line": 767, - "column": 70 - }, - "end": { - "line": 767, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 30333, - "end": 30338, - "loc": { - "start": { - "line": 767, - "column": 70 - }, - "end": { - "line": 767, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30339, - "end": 30340, - "loc": { - "start": { - "line": 767, - "column": 76 - }, - "end": { - "line": 767, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 30343, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 80 - }, - "end": { - "line": 767, - "column": 92 - } - }, - "object": { - "type": "Identifier", - "start": 30343, - "end": 30348, - "loc": { - "start": { - "line": 767, - "column": 80 - }, - "end": { - "line": 767, - "column": 85 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30349, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 86 - }, - "end": { - "line": 767, - "column": 92 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30363, - "end": 30471, - "loc": { - "start": { - "line": 768, - "column": 2 - }, - "end": { - "line": 768, - "column": 110 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30369, - "end": 30470, - "loc": { - "start": { - "line": 768, - "column": 8 - }, - "end": { - "line": 768, - "column": 109 - } - }, - "id": { - "type": "Identifier", - "start": 30369, - "end": 30371, - "loc": { - "start": { - "line": 768, - "column": 8 - }, - "end": { - "line": 768, - "column": 10 - }, - "identifierName": "br" - }, - "name": "br" - }, - "init": { - "type": "CallExpression", - "start": 30374, - "end": 30470, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 109 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30374, - "end": 30394, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 30374, - "end": 30378, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 30379, - "end": 30394, - "loc": { - "start": { - "line": 768, - "column": 18 - }, - "end": { - "line": 768, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30395, - "end": 30400, - "loc": { - "start": { - "line": 768, - "column": 34 - }, - "end": { - "line": 768, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30402, - "end": 30408, - "loc": { - "start": { - "line": 768, - "column": 41 - }, - "end": { - "line": 768, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30410, - "end": 30469, - "loc": { - "start": { - "line": 768, - "column": 49 - }, - "end": { - "line": 768, - "column": 108 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30412, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 51 - }, - "end": { - "line": 768, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30412, - "end": 30415, - "loc": { - "start": { - "line": 768, - "column": 51 - }, - "end": { - "line": 768, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 30417, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 56 - }, - "end": { - "line": 768, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 30417, - "end": 30424, - "loc": { - "start": { - "line": 768, - "column": 56 - }, - "end": { - "line": 768, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 30417, - "end": 30422, - "loc": { - "start": { - "line": 768, - "column": 56 - }, - "end": { - "line": 768, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30423, - "end": 30424, - "loc": { - "start": { - "line": 768, - "column": 62 - }, - "end": { - "line": 768, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 30427, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 66 - }, - "end": { - "line": 768, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 30427, - "end": 30432, - "loc": { - "start": { - "line": 768, - "column": 66 - }, - "end": { - "line": 768, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30433, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 72 - }, - "end": { - "line": 768, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 30440, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 79 - }, - "end": { - "line": 768, - "column": 106 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30440, - "end": 30443, - "loc": { - "start": { - "line": 768, - "column": 79 - }, - "end": { - "line": 768, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 30445, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 84 - }, - "end": { - "line": 768, - "column": 106 - } - }, - "left": { - "type": "MemberExpression", - "start": 30445, - "end": 30452, - "loc": { - "start": { - "line": 768, - "column": 84 - }, - "end": { - "line": 768, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 30445, - "end": 30450, - "loc": { - "start": { - "line": 768, - "column": 84 - }, - "end": { - "line": 768, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30451, - "end": 30452, - "loc": { - "start": { - "line": 768, - "column": 90 - }, - "end": { - "line": 768, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 30455, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 94 - }, - "end": { - "line": 768, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 30455, - "end": 30460, - "loc": { - "start": { - "line": 768, - "column": 94 - }, - "end": { - "line": 768, - "column": 99 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30461, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 100 - }, - "end": { - "line": 768, - "column": 106 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30475, - "end": 30595, - "loc": { - "start": { - "line": 769, - "column": 2 - }, - "end": { - "line": 769, - "column": 122 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30481, - "end": 30594, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 121 - } - }, - "id": { - "type": "Identifier", - "start": 30481, - "end": 30487, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 14 - }, - "identifierName": "center" - }, - "name": "center" - }, - "init": { - "type": "CallExpression", - "start": 30490, - "end": 30594, - "loc": { - "start": { - "line": 769, - "column": 17 - }, - "end": { - "line": 769, - "column": 121 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30490, - "end": 30510, - "loc": { - "start": { - "line": 769, - "column": 17 - }, - "end": { - "line": 769, - "column": 37 - } - }, - "object": { - "type": "ThisExpression", - "start": 30490, - "end": 30494, - "loc": { - "start": { - "line": 769, - "column": 17 - }, - "end": { - "line": 769, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "start": 30495, - "end": 30510, - "loc": { - "start": { - "line": 769, - "column": 22 - }, - "end": { - "line": 769, - "column": 37 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30511, - "end": 30516, - "loc": { - "start": { - "line": 769, - "column": 38 - }, - "end": { - "line": 769, - "column": 43 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30518, - "end": 30524, - "loc": { - "start": { - "line": 769, - "column": 45 - }, - "end": { - "line": 769, - "column": 51 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30526, - "end": 30593, - "loc": { - "start": { - "line": 769, - "column": 53 - }, - "end": { - "line": 769, - "column": 120 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30528, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 55 - }, - "end": { - "line": 769, - "column": 85 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30528, - "end": 30531, - "loc": { - "start": { - "line": 769, - "column": 55 - }, - "end": { - "line": 769, - "column": 58 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 30533, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 60 - }, - "end": { - "line": 769, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 30533, - "end": 30540, - "loc": { - "start": { - "line": 769, - "column": 60 - }, - "end": { - "line": 769, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 30533, - "end": 30538, - "loc": { - "start": { - "line": 769, - "column": 60 - }, - "end": { - "line": 769, - "column": 65 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30539, - "end": 30540, - "loc": { - "start": { - "line": 769, - "column": 66 - }, - "end": { - "line": 769, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 30543, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 70 - }, - "end": { - "line": 769, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 30543, - "end": 30554, - "loc": { - "start": { - "line": 769, - "column": 70 - }, - "end": { - "line": 769, - "column": 81 - } - }, - "object": { - "type": "Identifier", - "start": 30543, - "end": 30548, - "loc": { - "start": { - "line": 769, - "column": 70 - }, - "end": { - "line": 769, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30549, - "end": 30554, - "loc": { - "start": { - "line": 769, - "column": 76 - }, - "end": { - "line": 769, - "column": 81 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 30557, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 84 - }, - "end": { - "line": 769, - "column": 85 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 30560, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 87 - }, - "end": { - "line": 769, - "column": 118 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30560, - "end": 30563, - "loc": { - "start": { - "line": 769, - "column": 87 - }, - "end": { - "line": 769, - "column": 90 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 30565, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 92 - }, - "end": { - "line": 769, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 30565, - "end": 30572, - "loc": { - "start": { - "line": 769, - "column": 92 - }, - "end": { - "line": 769, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 30565, - "end": 30570, - "loc": { - "start": { - "line": 769, - "column": 92 - }, - "end": { - "line": 769, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30571, - "end": 30572, - "loc": { - "start": { - "line": 769, - "column": 98 - }, - "end": { - "line": 769, - "column": 99 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 30575, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 102 - }, - "end": { - "line": 769, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 30575, - "end": 30587, - "loc": { - "start": { - "line": 769, - "column": 102 - }, - "end": { - "line": 769, - "column": 114 - } - }, - "object": { - "type": "Identifier", - "start": 30575, - "end": 30580, - "loc": { - "start": { - "line": 769, - "column": 102 - }, - "end": { - "line": 769, - "column": 107 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30581, - "end": 30587, - "loc": { - "start": { - "line": 769, - "column": 108 - }, - "end": { - "line": 769, - "column": 114 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 30590, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 117 - }, - "end": { - "line": 769, - "column": 118 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 30599, - "end": 30667, - "loc": { - "start": { - "line": 770, - "column": 2 - }, - "end": { - "line": 770, - "column": 70 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 30606, - "end": 30666, - "loc": { - "start": { - "line": 770, - "column": 9 - }, - "end": { - "line": 770, - "column": 69 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30608, - "end": 30616, - "loc": { - "start": { - "line": 770, - "column": 11 - }, - "end": { - "line": 770, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30608, - "end": 30612, - "loc": { - "start": { - "line": 770, - "column": 11 - }, - "end": { - "line": 770, - "column": 15 - } - }, - "extra": { - "rawValue": "tl", - "raw": "'tl'" - }, - "value": "tl" - }, - "value": { - "type": "Identifier", - "start": 30614, - "end": 30616, - "loc": { - "start": { - "line": 770, - "column": 17 - }, - "end": { - "line": 770, - "column": 19 - }, - "identifierName": "tl" - }, - "name": "tl" - } - }, - { - "type": "ObjectProperty", - "start": 30618, - "end": 30626, - "loc": { - "start": { - "line": 770, - "column": 21 - }, - "end": { - "line": 770, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30618, - "end": 30622, - "loc": { - "start": { - "line": 770, - "column": 21 - }, - "end": { - "line": 770, - "column": 25 - } - }, - "extra": { - "rawValue": "tr", - "raw": "'tr'" - }, - "value": "tr" - }, - "value": { - "type": "Identifier", - "start": 30624, - "end": 30626, - "loc": { - "start": { - "line": 770, - "column": 27 - }, - "end": { - "line": 770, - "column": 29 - }, - "identifierName": "tr" - }, - "name": "tr" - } - }, - { - "type": "ObjectProperty", - "start": 30628, - "end": 30636, - "loc": { - "start": { - "line": 770, - "column": 31 - }, - "end": { - "line": 770, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30628, - "end": 30632, - "loc": { - "start": { - "line": 770, - "column": 31 - }, - "end": { - "line": 770, - "column": 35 - } - }, - "extra": { - "rawValue": "bl", - "raw": "'bl'" - }, - "value": "bl" - }, - "value": { - "type": "Identifier", - "start": 30634, - "end": 30636, - "loc": { - "start": { - "line": 770, - "column": 37 - }, - "end": { - "line": 770, - "column": 39 - }, - "identifierName": "bl" - }, - "name": "bl" - } - }, - { - "type": "ObjectProperty", - "start": 30638, - "end": 30646, - "loc": { - "start": { - "line": 770, - "column": 41 - }, - "end": { - "line": 770, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30638, - "end": 30642, - "loc": { - "start": { - "line": 770, - "column": 41 - }, - "end": { - "line": 770, - "column": 45 - } - }, - "extra": { - "rawValue": "br", - "raw": "'br'" - }, - "value": "br" - }, - "value": { - "type": "Identifier", - "start": 30644, - "end": 30646, - "loc": { - "start": { - "line": 770, - "column": 47 - }, - "end": { - "line": 770, - "column": 49 - }, - "identifierName": "br" - }, - "name": "br" - } - }, - { - "type": "ObjectProperty", - "start": 30648, - "end": 30664, - "loc": { - "start": { - "line": 770, - "column": 51 - }, - "end": { - "line": 770, - "column": 67 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30648, - "end": 30656, - "loc": { - "start": { - "line": 770, - "column": 51 - }, - "end": { - "line": 770, - "column": 59 - } - }, - "extra": { - "rawValue": "center", - "raw": "'center'" - }, - "value": "center" - }, - "value": { - "type": "Identifier", - "start": 30658, - "end": 30664, - "loc": { - "start": { - "line": 770, - "column": 61 - }, - "end": { - "line": 770, - "column": 67 - }, - "identifierName": "center" - }, - "name": "center" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 29544, - "end": 30039, - "loc": { - "start": { - "line": 756, - "column": 1 - }, - "end": { - "line": 763, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculate the icon offset to compensate for a non-zero anchor.\r\n\t *\r\n\t * @param {Object} [pIconSize] - The size of the icon with properties `.x` and `.y`.\r\n\t * @param {number} [pIconSize.width=32] - The size of the icon's width.\r\n\t * @param {number} [pIconSize.height=32] - The size of the icon's height'.\r\n\t * @param {Object} [pAnchor] - The anchor point with properties `.x` and `.y`.\r\n\t * @param {number} [pAnchor.x=0.5] - The anchor's x value.\r\n\t * @param {number} [pAnchor.y=0.5] - The anchor's y value.\r\n\t * @param {Object} [pScale] - The scale factor applied to the object with properties `.x` and `.y`.\r\n\t * @param {number} [pScale.x=1] - The scale's y value.\r\n\t * @param {number} [pScale.y=1] - The scale's y value.\r\n\t * @returns {Object} - The calculated icon offset with properties `.x` and `.y`.\r\n\t ", - "start": 30674, - "end": 31496, - "loc": { - "start": { - "line": 772, - "column": 1 - }, - "end": { - "line": 785, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 31499, - "end": 31906, - "loc": { - "start": { - "line": 786, - "column": 1 - }, - "end": { - "line": 801, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31499, - "end": 31518, - "loc": { - "start": { - "line": 786, - "column": 1 - }, - "end": { - "line": 786, - "column": 20 - }, - "identifierName": "calculateIconOffset" - }, - "name": "calculateIconOffset", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 31519, - "end": 31556, - "loc": { - "start": { - "line": 786, - "column": 21 - }, - "end": { - "line": 786, - "column": 58 - } - }, - "left": { - "type": "Identifier", - "start": 31519, - "end": 31528, - "loc": { - "start": { - "line": 786, - "column": 21 - }, - "end": { - "line": 786, - "column": 30 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "right": { - "type": "ObjectExpression", - "start": 31531, - "end": 31556, - "loc": { - "start": { - "line": 786, - "column": 33 - }, - "end": { - "line": 786, - "column": 58 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31533, - "end": 31542, - "loc": { - "start": { - "line": 786, - "column": 35 - }, - "end": { - "line": 786, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31533, - "end": 31538, - "loc": { - "start": { - "line": 786, - "column": 35 - }, - "end": { - "line": 786, - "column": 40 - }, - "identifierName": "width" - }, - "name": "width" - }, - "value": { - "type": "NumericLiteral", - "start": 31540, - "end": 31542, - "loc": { - "start": { - "line": 786, - "column": 42 - }, - "end": { - "line": 786, - "column": 44 - } - }, - "extra": { - "rawValue": 32, - "raw": "32" - }, - "value": 32 - } - }, - { - "type": "ObjectProperty", - "start": 31544, - "end": 31554, - "loc": { - "start": { - "line": 786, - "column": 46 - }, - "end": { - "line": 786, - "column": 56 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31544, - "end": 31550, - "loc": { - "start": { - "line": 786, - "column": 46 - }, - "end": { - "line": 786, - "column": 52 - }, - "identifierName": "height" - }, - "name": "height" - }, - "value": { - "type": "NumericLiteral", - "start": 31552, - "end": 31554, - "loc": { - "start": { - "line": 786, - "column": 54 - }, - "end": { - "line": 786, - "column": 56 - } - }, - "extra": { - "rawValue": 32, - "raw": "32" - }, - "value": 32 - } - } - ] - } - }, - { - "type": "AssignmentPattern", - "start": 31558, - "end": 31586, - "loc": { - "start": { - "line": 786, - "column": 60 - }, - "end": { - "line": 786, - "column": 88 - } - }, - "left": { - "type": "Identifier", - "start": 31558, - "end": 31565, - "loc": { - "start": { - "line": 786, - "column": 60 - }, - "end": { - "line": 786, - "column": 67 - }, - "identifierName": "pAnchor" - }, - "name": "pAnchor" - }, - "right": { - "type": "ObjectExpression", - "start": 31568, - "end": 31586, - "loc": { - "start": { - "line": 786, - "column": 70 - }, - "end": { - "line": 786, - "column": 88 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31570, - "end": 31576, - "loc": { - "start": { - "line": 786, - "column": 72 - }, - "end": { - "line": 786, - "column": 78 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31570, - "end": 31571, - "loc": { - "start": { - "line": 786, - "column": 72 - }, - "end": { - "line": 786, - "column": 73 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "NumericLiteral", - "start": 31573, - "end": 31576, - "loc": { - "start": { - "line": 786, - "column": 75 - }, - "end": { - "line": 786, - "column": 78 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - }, - { - "type": "ObjectProperty", - "start": 31578, - "end": 31584, - "loc": { - "start": { - "line": 786, - "column": 80 - }, - "end": { - "line": 786, - "column": 86 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31578, - "end": 31579, - "loc": { - "start": { - "line": 786, - "column": 80 - }, - "end": { - "line": 786, - "column": 81 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "NumericLiteral", - "start": 31581, - "end": 31584, - "loc": { - "start": { - "line": 786, - "column": 83 - }, - "end": { - "line": 786, - "column": 86 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ] - } - }, - { - "type": "AssignmentPattern", - "start": 31588, - "end": 31609, - "loc": { - "start": { - "line": 786, - "column": 90 - }, - "end": { - "line": 786, - "column": 111 - } - }, - "left": { - "type": "Identifier", - "start": 31588, - "end": 31594, - "loc": { - "start": { - "line": 786, - "column": 90 - }, - "end": { - "line": 786, - "column": 96 - }, - "identifierName": "pScale" - }, - "name": "pScale" - }, - "right": { - "type": "ObjectExpression", - "start": 31596, - "end": 31609, - "loc": { - "start": { - "line": 786, - "column": 98 - }, - "end": { - "line": 786, - "column": 111 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31598, - "end": 31602, - "loc": { - "start": { - "line": 786, - "column": 100 - }, - "end": { - "line": 786, - "column": 104 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31598, - "end": 31599, - "loc": { - "start": { - "line": 786, - "column": 100 - }, - "end": { - "line": 786, - "column": 101 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "NumericLiteral", - "start": 31601, - "end": 31602, - "loc": { - "start": { - "line": 786, - "column": 103 - }, - "end": { - "line": 786, - "column": 104 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - { - "type": "ObjectProperty", - "start": 31604, - "end": 31608, - "loc": { - "start": { - "line": 786, - "column": 106 - }, - "end": { - "line": 786, - "column": 110 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31604, - "end": 31605, - "loc": { - "start": { - "line": 786, - "column": 106 - }, - "end": { - "line": 786, - "column": 107 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "NumericLiteral", - "start": 31607, - "end": 31608, - "loc": { - "start": { - "line": 786, - "column": 109 - }, - "end": { - "line": 786, - "column": 110 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 31611, - "end": 31906, - "loc": { - "start": { - "line": 786, - "column": 113 - }, - "end": { - "line": 801, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 31616, - "end": 31713, - "loc": { - "start": { - "line": 787, - "column": 2 - }, - "end": { - "line": 790, - "column": 4 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31622, - "end": 31712, - "loc": { - "start": { - "line": 787, - "column": 8 - }, - "end": { - "line": 790, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 31622, - "end": 31632, - "loc": { - "start": { - "line": 787, - "column": 8 - }, - "end": { - "line": 787, - "column": 18 - }, - "identifierName": "scaledSize" - }, - "name": "scaledSize" - }, - "init": { - "type": "ObjectExpression", - "start": 31635, - "end": 31712, - "loc": { - "start": { - "line": 787, - "column": 21 - }, - "end": { - "line": 790, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31641, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 3 - }, - "end": { - "line": 788, - "column": 32 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31641, - "end": 31642, - "loc": { - "start": { - "line": 788, - "column": 3 - }, - "end": { - "line": 788, - "column": 4 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 31644, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 6 - }, - "end": { - "line": 788, - "column": 32 - } - }, - "left": { - "type": "MemberExpression", - "start": 31644, - "end": 31659, - "loc": { - "start": { - "line": 788, - "column": 6 - }, - "end": { - "line": 788, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 31644, - "end": 31653, - "loc": { - "start": { - "line": 788, - "column": 6 - }, - "end": { - "line": 788, - "column": 15 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "property": { - "type": "Identifier", - "start": 31654, - "end": 31659, - "loc": { - "start": { - "line": 788, - "column": 16 - }, - "end": { - "line": 788, - "column": 21 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 31662, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 24 - }, - "end": { - "line": 788, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 31662, - "end": 31668, - "loc": { - "start": { - "line": 788, - "column": 24 - }, - "end": { - "line": 788, - "column": 30 - }, - "identifierName": "pScale" - }, - "name": "pScale" - }, - "property": { - "type": "Identifier", - "start": 31669, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 31 - }, - "end": { - "line": 788, - "column": 32 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 31676, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 3 - }, - "end": { - "line": 789, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31676, - "end": 31677, - "loc": { - "start": { - "line": 789, - "column": 3 - }, - "end": { - "line": 789, - "column": 4 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 31679, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 6 - }, - "end": { - "line": 789, - "column": 33 - } - }, - "left": { - "type": "MemberExpression", - "start": 31679, - "end": 31695, - "loc": { - "start": { - "line": 789, - "column": 6 - }, - "end": { - "line": 789, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 31679, - "end": 31688, - "loc": { - "start": { - "line": 789, - "column": 6 - }, - "end": { - "line": 789, - "column": 15 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "property": { - "type": "Identifier", - "start": 31689, - "end": 31695, - "loc": { - "start": { - "line": 789, - "column": 16 - }, - "end": { - "line": 789, - "column": 22 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 31698, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 25 - }, - "end": { - "line": 789, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 31698, - "end": 31704, - "loc": { - "start": { - "line": 789, - "column": 25 - }, - "end": { - "line": 789, - "column": 31 - }, - "identifierName": "pScale" - }, - "name": "pScale" - }, - "property": { - "type": "Identifier", - "start": 31705, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 32 - }, - "end": { - "line": 789, - "column": 33 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 31719, - "end": 31848, - "loc": { - "start": { - "line": 792, - "column": 2 - }, - "end": { - "line": 795, - "column": 4 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31725, - "end": 31847, - "loc": { - "start": { - "line": 792, - "column": 8 - }, - "end": { - "line": 795, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 31725, - "end": 31731, - "loc": { - "start": { - "line": 792, - "column": 8 - }, - "end": { - "line": 792, - "column": 14 - }, - "identifierName": "offset" - }, - "name": "offset" - }, - "init": { - "type": "ObjectExpression", - "start": 31734, - "end": 31847, - "loc": { - "start": { - "line": 792, - "column": 17 - }, - "end": { - "line": 795, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31740, - "end": 31787, - "loc": { - "start": { - "line": 793, - "column": 3 - }, - "end": { - "line": 793, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31740, - "end": 31741, - "loc": { - "start": { - "line": 793, - "column": 3 - }, - "end": { - "line": 793, - "column": 4 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 31743, - "end": 31787, - "loc": { - "start": { - "line": 793, - "column": 6 - }, - "end": { - "line": 793, - "column": 50 - } - }, - "left": { - "type": "MemberExpression", - "start": 31743, - "end": 31752, - "loc": { - "start": { - "line": 793, - "column": 6 - }, - "end": { - "line": 793, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 31743, - "end": 31750, - "loc": { - "start": { - "line": 793, - "column": 6 - }, - "end": { - "line": 793, - "column": 13 - }, - "identifierName": "pAnchor" - }, - "name": "pAnchor" - }, - "property": { - "type": "Identifier", - "start": 31751, - "end": 31752, - "loc": { - "start": { - "line": 793, - "column": 14 - }, - "end": { - "line": 793, - "column": 15 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 31756, - "end": 31786, - "loc": { - "start": { - "line": 793, - "column": 19 - }, - "end": { - "line": 793, - "column": 49 - } - }, - "left": { - "type": "MemberExpression", - "start": 31756, - "end": 31768, - "loc": { - "start": { - "line": 793, - "column": 19 - }, - "end": { - "line": 793, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 31756, - "end": 31766, - "loc": { - "start": { - "line": 793, - "column": 19 - }, - "end": { - "line": 793, - "column": 29 - }, - "identifierName": "scaledSize" - }, - "name": "scaledSize" - }, - "property": { - "type": "Identifier", - "start": 31767, - "end": 31768, - "loc": { - "start": { - "line": 793, - "column": 30 - }, - "end": { - "line": 793, - "column": 31 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 31771, - "end": 31786, - "loc": { - "start": { - "line": 793, - "column": 34 - }, - "end": { - "line": 793, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 31771, - "end": 31780, - "loc": { - "start": { - "line": 793, - "column": 34 - }, - "end": { - "line": 793, - "column": 43 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "property": { - "type": "Identifier", - "start": 31781, - "end": 31786, - "loc": { - "start": { - "line": 793, - "column": 44 - }, - "end": { - "line": 793, - "column": 49 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 31755 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 31793, - "end": 31841, - "loc": { - "start": { - "line": 794, - "column": 3 - }, - "end": { - "line": 794, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31793, - "end": 31794, - "loc": { - "start": { - "line": 794, - "column": 3 - }, - "end": { - "line": 794, - "column": 4 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 31796, - "end": 31841, - "loc": { - "start": { - "line": 794, - "column": 6 - }, - "end": { - "line": 794, - "column": 51 - } - }, - "left": { - "type": "MemberExpression", - "start": 31796, - "end": 31805, - "loc": { - "start": { - "line": 794, - "column": 6 - }, - "end": { - "line": 794, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 31796, - "end": 31803, - "loc": { - "start": { - "line": 794, - "column": 6 - }, - "end": { - "line": 794, - "column": 13 - }, - "identifierName": "pAnchor" - }, - "name": "pAnchor" - }, - "property": { - "type": "Identifier", - "start": 31804, - "end": 31805, - "loc": { - "start": { - "line": 794, - "column": 14 - }, - "end": { - "line": 794, - "column": 15 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 31809, - "end": 31840, - "loc": { - "start": { - "line": 794, - "column": 19 - }, - "end": { - "line": 794, - "column": 50 - } - }, - "left": { - "type": "MemberExpression", - "start": 31809, - "end": 31821, - "loc": { - "start": { - "line": 794, - "column": 19 - }, - "end": { - "line": 794, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 31809, - "end": 31819, - "loc": { - "start": { - "line": 794, - "column": 19 - }, - "end": { - "line": 794, - "column": 29 - }, - "identifierName": "scaledSize" - }, - "name": "scaledSize" - }, - "property": { - "type": "Identifier", - "start": 31820, - "end": 31821, - "loc": { - "start": { - "line": 794, - "column": 30 - }, - "end": { - "line": 794, - "column": 31 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 31824, - "end": 31840, - "loc": { - "start": { - "line": 794, - "column": 34 - }, - "end": { - "line": 794, - "column": 50 - } - }, - "object": { - "type": "Identifier", - "start": 31824, - "end": 31833, - "loc": { - "start": { - "line": 794, - "column": 34 - }, - "end": { - "line": 794, - "column": 43 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "property": { - "type": "Identifier", - "start": 31834, - "end": 31840, - "loc": { - "start": { - "line": 794, - "column": 44 - }, - "end": { - "line": 794, - "column": 50 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 31808 - } - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 31854, - "end": 31902, - "loc": { - "start": { - "line": 797, - "column": 2 - }, - "end": { - "line": 800, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 31861, - "end": 31901, - "loc": { - "start": { - "line": 797, - "column": 9 - }, - "end": { - "line": 800, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31867, - "end": 31878, - "loc": { - "start": { - "line": 798, - "column": 3 - }, - "end": { - "line": 798, - "column": 14 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31867, - "end": 31868, - "loc": { - "start": { - "line": 798, - "column": 3 - }, - "end": { - "line": 798, - "column": 4 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "MemberExpression", - "start": 31870, - "end": 31878, - "loc": { - "start": { - "line": 798, - "column": 6 - }, - "end": { - "line": 798, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 31870, - "end": 31876, - "loc": { - "start": { - "line": 798, - "column": 6 - }, - "end": { - "line": 798, - "column": 12 - }, - "identifierName": "offset" - }, - "name": "offset" - }, - "property": { - "type": "Identifier", - "start": 31877, - "end": 31878, - "loc": { - "start": { - "line": 798, - "column": 13 - }, - "end": { - "line": 798, - "column": 14 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 31884, - "end": 31895, - "loc": { - "start": { - "line": 799, - "column": 3 - }, - "end": { - "line": 799, - "column": 14 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31884, - "end": 31885, - "loc": { - "start": { - "line": 799, - "column": 3 - }, - "end": { - "line": 799, - "column": 4 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "MemberExpression", - "start": 31887, - "end": 31895, - "loc": { - "start": { - "line": 799, - "column": 6 - }, - "end": { - "line": 799, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 31887, - "end": 31893, - "loc": { - "start": { - "line": 799, - "column": 6 - }, - "end": { - "line": 799, - "column": 12 - }, - "identifierName": "offset" - }, - "name": "offset" - }, - "property": { - "type": "Identifier", - "start": 31894, - "end": 31895, - "loc": { - "start": { - "line": 799, - "column": 13 - }, - "end": { - "line": 799, - "column": 14 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculate the icon offset to compensate for a non-zero anchor.\r\n\t *\r\n\t * @param {Object} [pIconSize] - The size of the icon with properties `.x` and `.y`.\r\n\t * @param {number} [pIconSize.width=32] - The size of the icon's width.\r\n\t * @param {number} [pIconSize.height=32] - The size of the icon's height'.\r\n\t * @param {Object} [pAnchor] - The anchor point with properties `.x` and `.y`.\r\n\t * @param {number} [pAnchor.x=0.5] - The anchor's x value.\r\n\t * @param {number} [pAnchor.y=0.5] - The anchor's y value.\r\n\t * @param {Object} [pScale] - The scale factor applied to the object with properties `.x` and `.y`.\r\n\t * @param {number} [pScale.x=1] - The scale's y value.\r\n\t * @param {number} [pScale.y=1] - The scale's y value.\r\n\t * @returns {Object} - The calculated icon offset with properties `.x` and `.y`.\r\n\t ", - "start": 30674, - "end": 31496, - "loc": { - "start": { - "line": 772, - "column": 1 - }, - "end": { - "line": 785, - "column": 4 - } - } - } - ] - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "ExportNamedDeclaration", - "start": 31911, - "end": 31953, - "loc": { - "start": { - "line": 803, - "column": 0 - }, - "end": { - "line": 803, - "column": 42 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "VariableDeclaration", - "start": 31918, - "end": 31953, - "loc": { - "start": { - "line": 803, - "column": 7 - }, - "end": { - "line": 803, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31924, - "end": 31952, - "loc": { - "start": { - "line": 803, - "column": 13 - }, - "end": { - "line": 803, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 31924, - "end": 31929, - "loc": { - "start": { - "line": 803, - "column": 13 - }, - "end": { - "line": 803, - "column": 18 - }, - "identifierName": "Utils" - }, - "name": "Utils" - }, - "init": { - "type": "NewExpression", - "start": 31932, - "end": 31952, - "loc": { - "start": { - "line": 803, - "column": 21 - }, - "end": { - "line": 803, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 31936, - "end": 31950, - "loc": { - "start": { - "line": 803, - "column": 25 - }, - "end": { - "line": 803, - "column": 39 - }, - "identifierName": "UtilsSingleton" - }, - "name": "UtilsSingleton" - }, - "arguments": [] - } - } - ], - "kind": "const", - "leadingComments": [], - "trailingComments": [] - } - }, - { - "type": "ExportNamedDeclaration", - "start": 31911, - "end": 31953, - "loc": { - "start": { - "line": 803, - "column": 0 - }, - "end": { - "line": 803, - "column": 42 - } - }, - "specifiers": [], - "source": null, - "declaration": { - "type": "ClassDeclaration", - "start": 236, - "end": 31909, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 802, - "column": 1 - } - }, - "id": { - "type": "Identifier", - "start": 242, - "end": 256, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 20 - }, - "identifierName": "UtilsSingleton" - }, - "name": "UtilsSingleton", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 257, - "end": 31909, - "loc": { - "start": { - "line": 9, - "column": 21 - }, - "end": { - "line": 802, - "column": 1 - } - }, - "body": [ - { - "type": "ClassProperty", - "start": 378, - "end": 395, - "loc": { - "start": { - "line": 15, - "column": 1 - }, - "end": { - "line": 15, - "column": 18 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 378, - "end": 389, - "loc": { - "start": { - "line": 15, - "column": 1 - }, - "end": { - "line": 15, - "column": 12 - }, - "identifierName": "transitions" - }, - "name": "transitions", - "leadingComments": null - }, - "value": { - "type": "ObjectExpression", - "start": 392, - "end": 394, - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 17 - } - }, - "properties": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Object storing all color objects being transitioned at the moment\r\n\t * @private\r\n\t * @type {Object}\r\n\t ", - "start": 261, - "end": 375, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 14, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * An array storing all the reserved unique IDS\r\n\t * @private\r\n\t * @type {Array}\r\n\t ", - "start": 398, - "end": 490, - "loc": { - "start": { - "line": 16, - "column": 1 - }, - "end": { - "line": 20, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 493, - "end": 508, - "loc": { - "start": { - "line": 21, - "column": 1 - }, - "end": { - "line": 21, - "column": 16 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 493, - "end": 502, - "loc": { - "start": { - "line": 21, - "column": 1 - }, - "end": { - "line": 21, - "column": 10 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs", - "leadingComments": null - }, - "value": { - "type": "ArrayExpression", - "start": 505, - "end": 507, - "loc": { - "start": { - "line": 21, - "column": 13 - }, - "end": { - "line": 21, - "column": 15 - } - }, - "elements": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * An array storing all the reserved unique IDS\r\n\t * @private\r\n\t * @type {Array}\r\n\t ", - "start": 398, - "end": 490, - "loc": { - "start": { - "line": 16, - "column": 1 - }, - "end": { - "line": 20, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 511, - "end": 552, - "loc": { - "start": { - "line": 22, - "column": 1 - }, - "end": { - "line": 24, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassProperty", - "start": 555, - "end": 586, - "loc": { - "start": { - "line": 25, - "column": 1 - }, - "end": { - "line": 25, - "column": 32 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 555, - "end": 562, - "loc": { - "start": { - "line": 25, - "column": 1 - }, - "end": { - "line": 25, - "column": 8 - }, - "identifierName": "version" - }, - "name": "version", - "leadingComments": null - }, - "value": { - "type": "StringLiteral", - "start": 565, - "end": 585, - "loc": { - "start": { - "line": 25, - "column": 11 - }, - "end": { - "line": 25, - "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": 511, - "end": 552, - "loc": { - "start": { - "line": 22, - "column": 1 - }, - "end": { - "line": 24, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 589, - "end": 865, - "loc": { - "start": { - "line": 26, - "column": 1 - }, - "end": { - "line": 34, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 589, - "end": 600, - "loc": { - "start": { - "line": 26, - "column": 1 - }, - "end": { - "line": 26, - "column": 12 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 603, - "end": 865, - "loc": { - "start": { - "line": 26, - "column": 15 - }, - "end": { - "line": 34, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 772, - "end": 799, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 35 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 772, - "end": 798, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 34 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 772, - "end": 783, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 772, - "end": 776, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 12 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 777, - "end": 783, - "loc": { - "start": { - "line": 32, - "column": 13 - }, - "end": { - "line": 32, - "column": 19 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "NewExpression", - "start": 786, - "end": 798, - "loc": { - "start": { - "line": 32, - "column": 22 - }, - "end": { - "line": 32, - "column": 34 - } - }, - "callee": { - "type": "Identifier", - "start": 790, - "end": 796, - "loc": { - "start": { - "line": 32, - "column": 26 - }, - "end": { - "line": 32, - "column": 32 - }, - "identifierName": "Logger" - }, - "name": "Logger" - }, - "arguments": [] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Create a logger", - "start": 614, - "end": 632, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 26 - } - } - }, - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 642, - "end": 762, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 31, - "column": 11 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 809, - "end": 861, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 809, - "end": 860, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 809, - "end": 833, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 32 - } - }, - "object": { - "type": "MemberExpression", - "start": 809, - "end": 820, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 809, - "end": 813, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 814, - "end": 820, - "loc": { - "start": { - "line": 33, - "column": 13 - }, - "end": { - "line": 33, - "column": 19 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 821, - "end": 833, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 32 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 834, - "end": 848, - "loc": { - "start": { - "line": 33, - "column": 33 - }, - "end": { - "line": 33, - "column": 47 - } - }, - "extra": { - "rawValue": "Utils-Module", - "raw": "'Utils-Module'" - }, - "value": "Utils-Module" - }, - { - "type": "StringLiteral", - "start": 850, - "end": 859, - "loc": { - "start": { - "line": 33, - "column": 49 - }, - "end": { - "line": 33, - "column": 58 - } - }, - "extra": { - "rawValue": "#ff6600", - "raw": "'#ff6600'" - }, - "value": "#ff6600" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 868, - "end": 1438, - "loc": { - "start": { - "line": 35, - "column": 1 - }, - "end": { - "line": 42, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 1441, - "end": 1626, - "loc": { - "start": { - "line": 43, - "column": 1 - }, - "end": { - "line": 46, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1441, - "end": 1452, - "loc": { - "start": { - "line": 43, - "column": 1 - }, - "end": { - "line": 43, - "column": 12 - }, - "identifierName": "decimalRand" - }, - "name": "decimalRand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1453, - "end": 1458, - "loc": { - "start": { - "line": 43, - "column": 13 - }, - "end": { - "line": 43, - "column": 18 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 1460, - "end": 1465, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 25 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - { - "type": "AssignmentPattern", - "start": 1467, - "end": 1478, - "loc": { - "start": { - "line": 43, - "column": 27 - }, - "end": { - "line": 43, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 1467, - "end": 1474, - "loc": { - "start": { - "line": 43, - "column": 27 - }, - "end": { - "line": 43, - "column": 34 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - }, - "right": { - "type": "NumericLiteral", - "start": 1477, - "end": 1478, - "loc": { - "start": { - "line": 43, - "column": 37 - }, - "end": { - "line": 43, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1480, - "end": 1626, - "loc": { - "start": { - "line": 43, - "column": 40 - }, - "end": { - "line": 46, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1485, - "end": 1567, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 44, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1491, - "end": 1566, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 1491, - "end": 1497, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 1500, - "end": 1566, - "loc": { - "start": { - "line": 44, - "column": 17 - }, - "end": { - "line": 44, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 1500, - "end": 1506, - "loc": { - "start": { - "line": 44, - "column": 17 - }, - "end": { - "line": 44, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1507, - "end": 1565, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1507, - "end": 1556, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "end": { - "line": 44, - "column": 73 - } - }, - "object": { - "type": "BinaryExpression", - "start": 1508, - "end": 1547, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1508, - "end": 1539, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 1508, - "end": 1521, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1508, - "end": 1519, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 1508, - "end": 1512, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1513, - "end": 1519, - "loc": { - "start": { - "line": 44, - "column": 30 - }, - "end": { - "line": 44, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 1525, - "end": 1538, - "loc": { - "start": { - "line": 44, - "column": 42 - }, - "end": { - "line": 44, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 1525, - "end": 1530, - "loc": { - "start": { - "line": 44, - "column": 42 - }, - "end": { - "line": 44, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 1533, - "end": 1538, - "loc": { - "start": { - "line": 44, - "column": 50 - }, - "end": { - "line": 44, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1524 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1542, - "end": 1547, - "loc": { - "start": { - "line": 44, - "column": 59 - }, - "end": { - "line": 44, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 1507 - } - }, - "property": { - "type": "Identifier", - "start": 1549, - "end": 1556, - "loc": { - "start": { - "line": 44, - "column": 66 - }, - "end": { - "line": 44, - "column": 73 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1557, - "end": 1564, - "loc": { - "start": { - "line": 44, - "column": 74 - }, - "end": { - "line": 44, - "column": 81 - }, - "identifierName": "pPlaces" - }, - "name": "pPlaces" - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 1571, - "end": 1622, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 45, - "column": 53 - } - }, - "argument": { - "type": "ConditionalExpression", - "start": 1579, - "end": 1620, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 51 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1579, - "end": 1590, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 1579, - "end": 1585, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 16 - }, - "identifierName": "result" - }, - "name": "result" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 1589, - "end": 1590, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 21 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "consequent": { - "type": "CallExpression", - "start": 1593, - "end": 1611, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1593, - "end": 1603, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 1593, - "end": 1597, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1598, - "end": 1603, - "loc": { - "start": { - "line": 45, - "column": 29 - }, - "end": { - "line": 45, - "column": 34 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1604, - "end": 1610, - "loc": { - "start": { - "line": 45, - "column": 35 - }, - "end": { - "line": 45, - "column": 41 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - }, - "alternate": { - "type": "Identifier", - "start": 1614, - "end": 1620, - "loc": { - "start": { - "line": 45, - "column": 45 - }, - "end": { - "line": 45, - "column": 51 - }, - "identifierName": "result" - }, - "name": "result" - }, - "extra": { - "parenthesized": true, - "parenStart": 1578 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 868, - "end": 1438, - "loc": { - "start": { - "line": 35, - "column": 1 - }, - "end": { - "line": 42, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1629, - "end": 2053, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 53, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2056, - "end": 2179, - "loc": { - "start": { - "line": 54, - "column": 1 - }, - "end": { - "line": 57, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2056, - "end": 2060, - "loc": { - "start": { - "line": 54, - "column": 1 - }, - "end": { - "line": 54, - "column": 5 - }, - "identifierName": "rand" - }, - "name": "rand", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2061, - "end": 2066, - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 54, - "column": 11 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - { - "type": "Identifier", - "start": 2068, - "end": 2073, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 18 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - } - ], - "body": { - "type": "BlockStatement", - "start": 2075, - "end": 2179, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 57, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 2080, - "end": 2145, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 67 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2086, - "end": 2144, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 66 - } - }, - "id": { - "type": "Identifier", - "start": 2086, - "end": 2092, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 14 - }, - "identifierName": "result" - }, - "name": "result" - }, - "init": { - "type": "CallExpression", - "start": 2095, - "end": 2144, - "loc": { - "start": { - "line": 55, - "column": 17 - }, - "end": { - "line": 55, - "column": 66 - } - }, - "callee": { - "type": "Identifier", - "start": 2095, - "end": 2101, - "loc": { - "start": { - "line": 55, - "column": 17 - }, - "end": { - "line": 55, - "column": 23 - }, - "identifierName": "Number" - }, - "name": "Number" - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 2103, - "end": 2142, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2103, - "end": 2134, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 56 - } - }, - "left": { - "type": "CallExpression", - "start": 2103, - "end": 2116, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2103, - "end": 2114, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 2103, - "end": 2107, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2108, - "end": 2114, - "loc": { - "start": { - "line": 55, - "column": 30 - }, - "end": { - "line": 55, - "column": 36 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 2120, - "end": 2133, - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 2120, - "end": 2125, - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 47 - }, - "identifierName": "pNum1" - }, - "name": "pNum1" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 2128, - "end": 2133, - "loc": { - "start": { - "line": 55, - "column": 50 - }, - "end": { - "line": 55, - "column": 55 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 2119 - } - } - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 2137, - "end": 2142, - "loc": { - "start": { - "line": 55, - "column": 59 - }, - "end": { - "line": 55, - "column": 64 - }, - "identifierName": "pNum2" - }, - "name": "pNum2" - }, - "extra": { - "parenthesized": true, - "parenStart": 2102 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 2149, - "end": 2175, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 2156, - "end": 2174, - "loc": { - "start": { - "line": 56, - "column": 9 - }, - "end": { - "line": 56, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2156, - "end": 2166, - "loc": { - "start": { - "line": 56, - "column": 9 - }, - "end": { - "line": 56, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 2156, - "end": 2160, - "loc": { - "start": { - "line": 56, - "column": 9 - }, - "end": { - "line": 56, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 2161, - "end": 2166, - "loc": { - "start": { - "line": 56, - "column": 14 - }, - "end": { - "line": 56, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2167, - "end": 2173, - "loc": { - "start": { - "line": 56, - "column": 20 - }, - "end": { - "line": 56, - "column": 26 - }, - "identifierName": "result" - }, - "name": "result" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1629, - "end": 2053, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 53, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 2182, - "end": 2510, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 64, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 2513, - "end": 2593, - "loc": { - "start": { - "line": 65, - "column": 1 - }, - "end": { - "line": 67, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2513, - "end": 2526, - "loc": { - "start": { - "line": 65, - "column": 1 - }, - "end": { - "line": 65, - "column": 14 - }, - "identifierName": "getPercentage" - }, - "name": "getPercentage", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2527, - "end": 2533, - "loc": { - "start": { - "line": 65, - "column": 15 - }, - "end": { - "line": 65, - "column": 21 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - { - "type": "Identifier", - "start": 2535, - "end": 2546, - "loc": { - "start": { - "line": 65, - "column": 23 - }, - "end": { - "line": 65, - "column": 34 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - ], - "body": { - "type": "BlockStatement", - "start": 2548, - "end": 2593, - "loc": { - "start": { - "line": 65, - "column": 36 - }, - "end": { - "line": 67, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 2553, - "end": 2589, - "loc": { - "start": { - "line": 66, - "column": 2 - }, - "end": { - "line": 66, - "column": 38 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 2560, - "end": 2588, - "loc": { - "start": { - "line": 66, - "column": 9 - }, - "end": { - "line": 66, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2561, - "end": 2573, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 22 - } - }, - "left": { - "type": "NumericLiteral", - "start": 2561, - "end": 2564, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 13 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 2567, - "end": 2573, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 22 - }, - "identifierName": "pValue" - }, - "name": "pValue" - }, - "extra": { - "parenthesized": true, - "parenStart": 2560 - } - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 2577, - "end": 2588, - "loc": { - "start": { - "line": 66, - "column": 26 - }, - "end": { - "line": 66, - "column": 37 - }, - "identifierName": "pTotalValue" - }, - "name": "pTotalValue" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 2182, - "end": 2510, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 64, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2596, - "end": 3013, - "loc": { - "start": { - "line": 68, - "column": 1 - }, - "end": { - "line": 75, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3016, - "end": 3107, - "loc": { - "start": { - "line": 76, - "column": 1 - }, - "end": { - "line": 78, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3016, - "end": 3021, - "loc": { - "start": { - "line": 76, - "column": 1 - }, - "end": { - "line": 76, - "column": 6 - }, - "identifierName": "clamp" - }, - "name": "clamp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3022, - "end": 3029, - "loc": { - "start": { - "line": 76, - "column": 7 - }, - "end": { - "line": 76, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 3031, - "end": 3039, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 3031, - "end": 3035, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 20 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "right": { - "type": "NumericLiteral", - "start": 3038, - "end": 3039, - "loc": { - "start": { - "line": 76, - "column": 23 - }, - "end": { - "line": 76, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "AssignmentPattern", - "start": 3041, - "end": 3049, - "loc": { - "start": { - "line": 76, - "column": 26 - }, - "end": { - "line": 76, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 3041, - "end": 3045, - "loc": { - "start": { - "line": 76, - "column": 26 - }, - "end": { - "line": 76, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "right": { - "type": "NumericLiteral", - "start": 3048, - "end": 3049, - "loc": { - "start": { - "line": 76, - "column": 33 - }, - "end": { - "line": 76, - "column": 34 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 3051, - "end": 3107, - "loc": { - "start": { - "line": 76, - "column": 36 - }, - "end": { - "line": 78, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3056, - "end": 3103, - "loc": { - "start": { - "line": 77, - "column": 2 - }, - "end": { - "line": 77, - "column": 49 - } - }, - "argument": { - "type": "CallExpression", - "start": 3063, - "end": 3102, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3063, - "end": 3071, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 3063, - "end": 3067, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 3068, - "end": 3071, - "loc": { - "start": { - "line": 77, - "column": 14 - }, - "end": { - "line": 77, - "column": 17 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3072, - "end": 3076, - "loc": { - "start": { - "line": 77, - "column": 18 - }, - "end": { - "line": 77, - "column": 22 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "CallExpression", - "start": 3078, - "end": 3101, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 3078, - "end": 3086, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 3078, - "end": 3082, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 28 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 3083, - "end": 3086, - "loc": { - "start": { - "line": 77, - "column": 29 - }, - "end": { - "line": 77, - "column": 32 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 3087, - "end": 3094, - "loc": { - "start": { - "line": 77, - "column": 33 - }, - "end": { - "line": 77, - "column": 40 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "Identifier", - "start": 3096, - "end": 3100, - "loc": { - "start": { - "line": 77, - "column": 42 - }, - "end": { - "line": 77, - "column": 46 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2596, - "end": 3013, - "loc": { - "start": { - "line": 68, - "column": 1 - }, - "end": { - "line": 75, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 3110, - "end": 3523, - "loc": { - "start": { - "line": 79, - "column": 1 - }, - "end": { - "line": 86, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 3526, - "end": 3602, - "loc": { - "start": { - "line": 87, - "column": 1 - }, - "end": { - "line": 89, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3526, - "end": 3530, - "loc": { - "start": { - "line": 87, - "column": 1 - }, - "end": { - "line": 87, - "column": 5 - }, - "identifierName": "lerp" - }, - "name": "lerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 3531, - "end": 3537, - "loc": { - "start": { - "line": 87, - "column": 6 - }, - "end": { - "line": 87, - "column": 12 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 3539, - "end": 3543, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 18 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 3545, - "end": 3552, - "loc": { - "start": { - "line": 87, - "column": 20 - }, - "end": { - "line": 87, - "column": 27 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 3554, - "end": 3602, - "loc": { - "start": { - "line": 87, - "column": 29 - }, - "end": { - "line": 89, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 3559, - "end": 3598, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 88, - "column": 41 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 3566, - "end": 3597, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 40 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3566, - "end": 3584, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 3567, - "end": 3576, - "loc": { - "start": { - "line": 88, - "column": 10 - }, - "end": { - "line": 88, - "column": 19 - } - }, - "left": { - "type": "NumericLiteral", - "start": 3567, - "end": 3568, - "loc": { - "start": { - "line": 88, - "column": 10 - }, - "end": { - "line": 88, - "column": 11 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 3569, - "end": 3576, - "loc": { - "start": { - "line": 88, - "column": 12 - }, - "end": { - "line": 88, - "column": 19 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "extra": { - "parenthesized": true, - "parenStart": 3566 - } - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3578, - "end": 3584, - "loc": { - "start": { - "line": 88, - "column": 21 - }, - "end": { - "line": 88, - "column": 27 - }, - "identifierName": "pStart" - }, - "name": "pStart" - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 3585, - "end": 3597, - "loc": { - "start": { - "line": 88, - "column": 28 - }, - "end": { - "line": 88, - "column": 40 - } - }, - "left": { - "type": "Identifier", - "start": 3585, - "end": 3592, - "loc": { - "start": { - "line": 88, - "column": 28 - }, - "end": { - "line": 88, - "column": 35 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 3593, - "end": 3597, - "loc": { - "start": { - "line": 88, - "column": 36 - }, - "end": { - "line": 88, - "column": 40 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 3110, - "end": 3523, - "loc": { - "start": { - "line": 79, - "column": 1 - }, - "end": { - "line": 86, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3605, - "end": 4099, - "loc": { - "start": { - "line": 90, - "column": 1 - }, - "end": { - "line": 97, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4102, - "end": 4198, - "loc": { - "start": { - "line": 98, - "column": 1 - }, - "end": { - "line": 100, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4102, - "end": 4113, - "loc": { - "start": { - "line": 98, - "column": 1 - }, - "end": { - "line": 98, - "column": 12 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4114, - "end": 4120, - "loc": { - "start": { - "line": 98, - "column": 13 - }, - "end": { - "line": 98, - "column": 19 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 4122, - "end": 4126, - "loc": { - "start": { - "line": 98, - "column": 21 - }, - "end": { - "line": 98, - "column": 25 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 4128, - "end": 4135, - "loc": { - "start": { - "line": 98, - "column": 27 - }, - "end": { - "line": 98, - "column": 34 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "body": { - "type": "BlockStatement", - "start": 4137, - "end": 4198, - "loc": { - "start": { - "line": 98, - "column": 36 - }, - "end": { - "line": 100, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 4142, - "end": 4194, - "loc": { - "start": { - "line": 99, - "column": 2 - }, - "end": { - "line": 99, - "column": 54 - } - }, - "argument": { - "type": "CallExpression", - "start": 4149, - "end": 4193, - "loc": { - "start": { - "line": 99, - "column": 9 - }, - "end": { - "line": 99, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4149, - "end": 4159, - "loc": { - "start": { - "line": 99, - "column": 9 - }, - "end": { - "line": 99, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4149, - "end": 4153, - "loc": { - "start": { - "line": 99, - "column": 9 - }, - "end": { - "line": 99, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 4154, - "end": 4159, - "loc": { - "start": { - "line": 99, - "column": 14 - }, - "end": { - "line": 99, - "column": 19 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 4160, - "end": 4192, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 52 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4160, - "end": 4169, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 29 - } - }, - "object": { - "type": "ThisExpression", - "start": 4160, - "end": 4164, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "start": 4165, - "end": 4169, - "loc": { - "start": { - "line": 99, - "column": 25 - }, - "end": { - "line": 99, - "column": 29 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 4170, - "end": 4176, - "loc": { - "start": { - "line": 99, - "column": 30 - }, - "end": { - "line": 99, - "column": 36 - }, - "identifierName": "pStart" - }, - "name": "pStart" - }, - { - "type": "Identifier", - "start": 4178, - "end": 4182, - "loc": { - "start": { - "line": 99, - "column": 38 - }, - "end": { - "line": 99, - "column": 42 - }, - "identifierName": "pEnd" - }, - "name": "pEnd" - }, - { - "type": "Identifier", - "start": 4184, - "end": 4191, - "loc": { - "start": { - "line": 99, - "column": 44 - }, - "end": { - "line": 99, - "column": 51 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ] - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3605, - "end": 4099, - "loc": { - "start": { - "line": 90, - "column": 1 - }, - "end": { - "line": 97, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 4201, - "end": 4522, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 107, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 4525, - "end": 4604, - "loc": { - "start": { - "line": 108, - "column": 1 - }, - "end": { - "line": 110, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 4525, - "end": 4530, - "loc": { - "start": { - "line": 108, - "column": 1 - }, - "end": { - "line": 108, - "column": 6 - }, - "identifierName": "round" - }, - "name": "round", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 4531, - "end": 4538, - "loc": { - "start": { - "line": 108, - "column": 7 - }, - "end": { - "line": 108, - "column": 14 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - }, - { - "type": "AssignmentPattern", - "start": 4540, - "end": 4548, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 4540, - "end": 4546, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 22 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "right": { - "type": "NumericLiteral", - "start": 4547, - "end": 4548, - "loc": { - "start": { - "line": 108, - "column": 23 - }, - "end": { - "line": 108, - "column": 24 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 4550, - "end": 4604, - "loc": { - "start": { - "line": 108, - "column": 26 - }, - "end": { - "line": 110, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 4555, - "end": 4600, - "loc": { - "start": { - "line": 109, - "column": 2 - }, - "end": { - "line": 109, - "column": 47 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 4562, - "end": 4599, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 46 - } - }, - "left": { - "type": "CallExpression", - "start": 4562, - "end": 4590, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 4562, - "end": 4572, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 4562, - "end": 4566, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 4567, - "end": 4572, - "loc": { - "start": { - "line": 109, - "column": 14 - }, - "end": { - "line": 109, - "column": 19 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 4573, - "end": 4589, - "loc": { - "start": { - "line": 109, - "column": 20 - }, - "end": { - "line": 109, - "column": 36 - } - }, - "left": { - "type": "Identifier", - "start": 4573, - "end": 4579, - "loc": { - "start": { - "line": 109, - "column": 20 - }, - "end": { - "line": 109, - "column": 26 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 4582, - "end": 4589, - "loc": { - "start": { - "line": 109, - "column": 29 - }, - "end": { - "line": 109, - "column": 36 - }, - "identifierName": "pNumber" - }, - "name": "pNumber" - } - } - ] - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 4593, - "end": 4599, - "loc": { - "start": { - "line": 109, - "column": 40 - }, - "end": { - "line": 109, - "column": 46 - }, - "identifierName": "pPlace" - }, - "name": "pPlace" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 4201, - "end": 4522, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 107, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4607, - "end": 5089, - "loc": { - "start": { - "line": 111, - "column": 1 - }, - "end": { - "line": 119, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5092, - "end": 5202, - "loc": { - "start": { - "line": 120, - "column": 1 - }, - "end": { - "line": 123, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5092, - "end": 5101, - "loc": { - "start": { - "line": 120, - "column": 1 - }, - "end": { - "line": 120, - "column": 10 - }, - "identifierName": "normalize" - }, - "name": "normalize", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5102, - "end": 5106, - "loc": { - "start": { - "line": 120, - "column": 11 - }, - "end": { - "line": 120, - "column": 15 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5108, - "end": 5112, - "loc": { - "start": { - "line": 120, - "column": 17 - }, - "end": { - "line": 120, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5114, - "end": 5118, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 27 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 5120, - "end": 5202, - "loc": { - "start": { - "line": 120, - "column": 29 - }, - "end": { - "line": 123, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5125, - "end": 5157, - "loc": { - "start": { - "line": 121, - "column": 2 - }, - "end": { - "line": 121, - "column": 34 - } - }, - "test": { - "type": "BinaryExpression", - "start": 5129, - "end": 5146, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 23 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5129, - "end": 5140, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 5129, - "end": 5133, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 10 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5136, - "end": 5140, - "loc": { - "start": { - "line": 121, - "column": 13 - }, - "end": { - "line": 121, - "column": 17 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 5145, - "end": 5146, - "loc": { - "start": { - "line": 121, - "column": 22 - }, - "end": { - "line": 121, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 5148, - "end": 5157, - "loc": { - "start": { - "line": 121, - "column": 25 - }, - "end": { - "line": 121, - "column": 34 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 5155, - "end": 5156, - "loc": { - "start": { - "line": 121, - "column": 32 - }, - "end": { - "line": 121, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 5161, - "end": 5198, - "loc": { - "start": { - "line": 122, - "column": 2 - }, - "end": { - "line": 122, - "column": 39 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 5168, - "end": 5197, - "loc": { - "start": { - "line": 122, - "column": 9 - }, - "end": { - "line": 122, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5169, - "end": 5180, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 5169, - "end": 5173, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 14 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5176, - "end": 5180, - "loc": { - "start": { - "line": 122, - "column": 17 - }, - "end": { - "line": 122, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 5168 - } - }, - "operator": "/", - "right": { - "type": "BinaryExpression", - "start": 5185, - "end": 5196, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 5185, - "end": 5189, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 30 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5192, - "end": 5196, - "loc": { - "start": { - "line": 122, - "column": 33 - }, - "end": { - "line": 122, - "column": 37 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - "extra": { - "parenthesized": true, - "parenStart": 5184 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4607, - "end": 5089, - "loc": { - "start": { - "line": 111, - "column": 1 - }, - "end": { - "line": 119, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.\r\n\t *\r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized and clamped value between -1 and 1 based on the input value's\r\n\t * position between the minimum and maximum values. If the difference between pMax and pMin is 0,\r\n\t * returns 1 to avoid dividing by zero.\r\n\t ", - "start": 5205, - "end": 5737, - "loc": { - "start": { - "line": 124, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 5740, - "end": 5992, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 139, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 5740, - "end": 5755, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 16 - }, - "identifierName": "normalizeRanged" - }, - "name": "normalizeRanged", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 5756, - "end": 5760, - "loc": { - "start": { - "line": 134, - "column": 17 - }, - "end": { - "line": 134, - "column": 21 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5762, - "end": 5766, - "loc": { - "start": { - "line": 134, - "column": 23 - }, - "end": { - "line": 134, - "column": 27 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5768, - "end": 5772, - "loc": { - "start": { - "line": 134, - "column": 29 - }, - "end": { - "line": 134, - "column": 33 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 5774, - "end": 5992, - "loc": { - "start": { - "line": 134, - "column": 35 - }, - "end": { - "line": 139, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 5779, - "end": 5811, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 34 - } - }, - "test": { - "type": "BinaryExpression", - "start": 5783, - "end": 5800, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 23 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5783, - "end": 5794, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 17 - } - }, - "left": { - "type": "Identifier", - "start": 5783, - "end": 5787, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 10 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 5790, - "end": 5794, - "loc": { - "start": { - "line": 135, - "column": 13 - }, - "end": { - "line": 135, - "column": 17 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 5799, - "end": 5800, - "loc": { - "start": { - "line": 135, - "column": 22 - }, - "end": { - "line": 135, - "column": 23 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "ReturnStatement", - "start": 5802, - "end": 5811, - "loc": { - "start": { - "line": 135, - "column": 25 - }, - "end": { - "line": 135, - "column": 34 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 5809, - "end": 5810, - "loc": { - "start": { - "line": 135, - "column": 32 - }, - "end": { - "line": 135, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 5815, - "end": 5885, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 136, - "column": 72 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 5821, - "end": 5884, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 71 - } - }, - "id": { - "type": "Identifier", - "start": 5821, - "end": 5836, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "end": { - "line": 136, - "column": 23 - }, - "identifierName": "normalizedValue" - }, - "name": "normalizedValue" - }, - "init": { - "type": "UnaryExpression", - "start": 5839, - "end": 5884, - "loc": { - "start": { - "line": 136, - "column": 26 - }, - "end": { - "line": 136, - "column": 71 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "BinaryExpression", - "start": 5841, - "end": 5883, - "loc": { - "start": { - "line": 136, - "column": 28 - }, - "end": { - "line": 136, - "column": 70 - } - }, - "left": { - "type": "BinaryExpression", - "start": 5842, - "end": 5878, - "loc": { - "start": { - "line": 136, - "column": 29 - }, - "end": { - "line": 136, - "column": 65 - } - }, - "left": { - "type": "NumericLiteral", - "start": 5842, - "end": 5843, - "loc": { - "start": { - "line": 136, - "column": 29 - }, - "end": { - "line": 136, - "column": 30 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 5846, - "end": 5878, - "loc": { - "start": { - "line": 136, - "column": 33 - }, - "end": { - "line": 136, - "column": 65 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5846, - "end": 5860, - "loc": { - "start": { - "line": 136, - "column": 33 - }, - "end": { - "line": 136, - "column": 47 - } - }, - "object": { - "type": "ThisExpression", - "start": 5846, - "end": 5850, - "loc": { - "start": { - "line": 136, - "column": 33 - }, - "end": { - "line": 136, - "column": 37 - } - } - }, - "property": { - "type": "Identifier", - "start": 5851, - "end": 5860, - "loc": { - "start": { - "line": 136, - "column": 38 - }, - "end": { - "line": 136, - "column": 47 - }, - "identifierName": "normalize" - }, - "name": "normalize" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 5861, - "end": 5865, - "loc": { - "start": { - "line": 136, - "column": 48 - }, - "end": { - "line": 136, - "column": 52 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 5867, - "end": 5871, - "loc": { - "start": { - "line": 136, - "column": 54 - }, - "end": { - "line": 136, - "column": 58 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 5873, - "end": 5877, - "loc": { - "start": { - "line": 136, - "column": 60 - }, - "end": { - "line": 136, - "column": 64 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 5841 - } - }, - "operator": "-", - "right": { - "type": "NumericLiteral", - "start": 5882, - "end": 5883, - "loc": { - "start": { - "line": 136, - "column": 69 - }, - "end": { - "line": 136, - "column": 70 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesized": true, - "parenStart": 5840 - } - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Clamp the normalized value to the range of -1 to 1", - "start": 5889, - "end": 5942, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 137, - "column": 55 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 5946, - "end": 5988, - "loc": { - "start": { - "line": 138, - "column": 2 - }, - "end": { - "line": 138, - "column": 44 - } - }, - "argument": { - "type": "CallExpression", - "start": 5953, - "end": 5987, - "loc": { - "start": { - "line": 138, - "column": 9 - }, - "end": { - "line": 138, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 5953, - "end": 5963, - "loc": { - "start": { - "line": 138, - "column": 9 - }, - "end": { - "line": 138, - "column": 19 - } - }, - "object": { - "type": "ThisExpression", - "start": 5953, - "end": 5957, - "loc": { - "start": { - "line": 138, - "column": 9 - }, - "end": { - "line": 138, - "column": 13 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 5958, - "end": 5963, - "loc": { - "start": { - "line": 138, - "column": 14 - }, - "end": { - "line": 138, - "column": 19 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 5964, - "end": 5979, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 35 - }, - "identifierName": "normalizedValue" - }, - "name": "normalizedValue" - }, - { - "type": "UnaryExpression", - "start": 5981, - "end": 5983, - "loc": { - "start": { - "line": 138, - "column": 37 - }, - "end": { - "line": 138, - "column": 39 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 5982, - "end": 5983, - "loc": { - "start": { - "line": 138, - "column": 38 - }, - "end": { - "line": 138, - "column": 39 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesizedArgument": false - } - }, - { - "type": "NumericLiteral", - "start": 5985, - "end": 5986, - "loc": { - "start": { - "line": 138, - "column": 41 - }, - "end": { - "line": 138, - "column": 42 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Clamp the normalized value to the range of -1 to 1", - "start": 5889, - "end": 5942, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 137, - "column": 55 - } - } - } - ] - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.\r\n\t *\r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized and clamped value between -1 and 1 based on the input value's\r\n\t * position between the minimum and maximum values. If the difference between pMax and pMin is 0,\r\n\t * returns 1 to avoid dividing by zero.\r\n\t ", - "start": 5205, - "end": 5737, - "loc": { - "start": { - "line": 124, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6392, - "end": 6462, - "loc": { - "start": { - "line": 148, - "column": 1 - }, - "end": { - "line": 150, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6392, - "end": 6398, - "loc": { - "start": { - "line": 148, - "column": 1 - }, - "end": { - "line": 148, - "column": 7 - }, - "identifierName": "within" - }, - "name": "within", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6399, - "end": 6403, - "loc": { - "start": { - "line": 148, - "column": 8 - }, - "end": { - "line": 148, - "column": 12 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - { - "type": "Identifier", - "start": 6405, - "end": 6409, - "loc": { - "start": { - "line": 148, - "column": 14 - }, - "end": { - "line": 148, - "column": 18 - }, - "identifierName": "pMin" - }, - "name": "pMin" - }, - { - "type": "Identifier", - "start": 6411, - "end": 6415, - "loc": { - "start": { - "line": 148, - "column": 20 - }, - "end": { - "line": 148, - "column": 24 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - ], - "body": { - "type": "BlockStatement", - "start": 6417, - "end": 6462, - "loc": { - "start": { - "line": 148, - "column": 26 - }, - "end": { - "line": 150, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 6422, - "end": 6458, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 149, - "column": 38 - } - }, - "argument": { - "type": "LogicalExpression", - "start": 6429, - "end": 6457, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 37 - } - }, - "left": { - "type": "BinaryExpression", - "start": 6429, - "end": 6441, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 21 - } - }, - "left": { - "type": "Identifier", - "start": 6429, - "end": 6433, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 13 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 149, - "column": 17 - }, - "end": { - "line": 149, - "column": 21 - }, - "identifierName": "pMin" - }, - "name": "pMin" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 6445, - "end": 6457, - "loc": { - "start": { - "line": 149, - "column": 25 - }, - "end": { - "line": 149, - "column": 37 - } - }, - "left": { - "type": "Identifier", - "start": 6445, - "end": 6449, - "loc": { - "start": { - "line": 149, - "column": 25 - }, - "end": { - "line": 149, - "column": 29 - }, - "identifierName": "pVal" - }, - "name": "pVal" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 6453, - "end": 6457, - "loc": { - "start": { - "line": 149, - "column": 33 - }, - "end": { - "line": 149, - "column": 37 - }, - "identifierName": "pMax" - }, - "name": "pMax" - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 5996, - "end": 6389, - "loc": { - "start": { - "line": 140, - "column": 1 - }, - "end": { - "line": 147, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 6465, - "end": 6710, - "loc": { - "start": { - "line": 151, - "column": 1 - }, - "end": { - "line": 156, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6713, - "end": 6827, - "loc": { - "start": { - "line": 157, - "column": 1 - }, - "end": { - "line": 159, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6713, - "end": 6736, - "loc": { - "start": { - "line": 157, - "column": 1 - }, - "end": { - "line": 157, - "column": 24 - }, - "identifierName": "formatIntegerWithCommas" - }, - "name": "formatIntegerWithCommas", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6737, - "end": 6741, - "loc": { - "start": { - "line": 157, - "column": 25 - }, - "end": { - "line": 157, - "column": 29 - }, - "identifierName": "pNum" - }, - "name": "pNum" - } - ], - "body": { - "type": "BlockStatement", - "start": 6743, - "end": 6827, - "loc": { - "start": { - "line": 157, - "column": 31 - }, - "end": { - "line": 159, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 6748, - "end": 6823, - "loc": { - "start": { - "line": 158, - "column": 2 - }, - "end": { - "line": 158, - "column": 77 - } - }, - "argument": { - "type": "CallExpression", - "start": 6755, - "end": 6822, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6755, - "end": 6788, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 42 - } - }, - "object": { - "type": "CallExpression", - "start": 6755, - "end": 6780, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6755, - "end": 6778, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 32 - } - }, - "object": { - "type": "CallExpression", - "start": 6755, - "end": 6769, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 23 - } - }, - "callee": { - "type": "MemberExpression", - "start": 6755, - "end": 6767, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 6755, - "end": 6759, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 13 - }, - "identifierName": "pNum" - }, - "name": "pNum" - }, - "property": { - "type": "Identifier", - "start": 6760, - "end": 6767, - "loc": { - "start": { - "line": 158, - "column": 14 - }, - "end": { - "line": 158, - "column": 21 - }, - "identifierName": "toFixed" - }, - "name": "toFixed" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 6770, - "end": 6778, - "loc": { - "start": { - "line": 158, - "column": 24 - }, - "end": { - "line": 158, - "column": 32 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [] - }, - "property": { - "type": "Identifier", - "start": 6781, - "end": 6788, - "loc": { - "start": { - "line": 158, - "column": 35 - }, - "end": { - "line": 158, - "column": 42 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "RegExpLiteral", - "start": 6789, - "end": 6814, - "loc": { - "start": { - "line": 158, - "column": 43 - }, - "end": { - "line": 158, - "column": 68 - } - }, - "extra": { - "raw": "/(\\d)(?=(\\d{3})+(?!\\d))/g" - }, - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - { - "type": "StringLiteral", - "start": 6816, - "end": 6821, - "loc": { - "start": { - "line": 158, - "column": 70 - }, - "end": { - "line": 158, - "column": 75 - } - }, - "extra": { - "rawValue": "$1,", - "raw": "'$1,'" - }, - "value": "$1," - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 6465, - "end": 6710, - "loc": { - "start": { - "line": 151, - "column": 1 - }, - "end": { - "line": 156, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 6830, - "end": 6978, - "loc": { - "start": { - "line": 160, - "column": 1 - }, - "end": { - "line": 165, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 6981, - "end": 7044, - "loc": { - "start": { - "line": 166, - "column": 1 - }, - "end": { - "line": 168, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6981, - "end": 6990, - "loc": { - "start": { - "line": 166, - "column": 1 - }, - "end": { - "line": 166, - "column": 10 - }, - "identifierName": "toRadians" - }, - "name": "toRadians", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 6991, - "end": 6999, - "loc": { - "start": { - "line": 166, - "column": 11 - }, - "end": { - "line": 166, - "column": 19 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - } - ], - "body": { - "type": "BlockStatement", - "start": 7001, - "end": 7044, - "loc": { - "start": { - "line": 166, - "column": 21 - }, - "end": { - "line": 168, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7006, - "end": 7040, - "loc": { - "start": { - "line": 167, - "column": 2 - }, - "end": { - "line": 167, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 7013, - "end": 7039, - "loc": { - "start": { - "line": 167, - "column": 9 - }, - "end": { - "line": 167, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 7013, - "end": 7021, - "loc": { - "start": { - "line": 167, - "column": 9 - }, - "end": { - "line": 167, - "column": 17 - }, - "identifierName": "pDegrees" - }, - "name": "pDegrees" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 7025, - "end": 7038, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 34 - } - }, - "left": { - "type": "MemberExpression", - "start": 7025, - "end": 7032, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 7025, - "end": 7029, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 25 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7030, - "end": 7032, - "loc": { - "start": { - "line": 167, - "column": 26 - }, - "end": { - "line": 167, - "column": 28 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 7035, - "end": 7038, - "loc": { - "start": { - "line": 167, - "column": 31 - }, - "end": { - "line": 167, - "column": 34 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "extra": { - "parenthesized": true, - "parenStart": 7024 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 6830, - "end": 6978, - "loc": { - "start": { - "line": 160, - "column": 1 - }, - "end": { - "line": 165, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 7047, - "end": 7195, - "loc": { - "start": { - "line": 169, - "column": 1 - }, - "end": { - "line": 174, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7198, - "end": 7261, - "loc": { - "start": { - "line": 175, - "column": 1 - }, - "end": { - "line": 177, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7198, - "end": 7207, - "loc": { - "start": { - "line": 175, - "column": 1 - }, - "end": { - "line": 175, - "column": 10 - }, - "identifierName": "toDegrees" - }, - "name": "toDegrees", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7208, - "end": 7216, - "loc": { - "start": { - "line": 175, - "column": 11 - }, - "end": { - "line": 175, - "column": 19 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - } - ], - "body": { - "type": "BlockStatement", - "start": 7218, - "end": 7261, - "loc": { - "start": { - "line": 175, - "column": 21 - }, - "end": { - "line": 177, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 7223, - "end": 7257, - "loc": { - "start": { - "line": 176, - "column": 2 - }, - "end": { - "line": 176, - "column": 36 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 7230, - "end": 7256, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 7230, - "end": 7238, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 17 - }, - "identifierName": "pRadians" - }, - "name": "pRadians" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 7242, - "end": 7255, - "loc": { - "start": { - "line": 176, - "column": 21 - }, - "end": { - "line": 176, - "column": 34 - } - }, - "left": { - "type": "NumericLiteral", - "start": 7242, - "end": 7245, - "loc": { - "start": { - "line": 176, - "column": 21 - }, - "end": { - "line": 176, - "column": 24 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 7248, - "end": 7255, - "loc": { - "start": { - "line": 176, - "column": 27 - }, - "end": { - "line": 176, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 7248, - "end": 7252, - "loc": { - "start": { - "line": 176, - "column": 27 - }, - "end": { - "line": 176, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7253, - "end": 7255, - "loc": { - "start": { - "line": 176, - "column": 32 - }, - "end": { - "line": 176, - "column": 34 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 7241 - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 7047, - "end": 7195, - "loc": { - "start": { - "line": 169, - "column": 1 - }, - "end": { - "line": 174, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 7264, - "end": 7428, - "loc": { - "start": { - "line": 178, - "column": 1 - }, - "end": { - "line": 183, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7431, - "end": 7546, - "loc": { - "start": { - "line": 184, - "column": 1 - }, - "end": { - "line": 187, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7431, - "end": 7435, - "loc": { - "start": { - "line": 184, - "column": 1 - }, - "end": { - "line": 184, - "column": 5 - }, - "identifierName": "pick" - }, - "name": "pick", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7436, - "end": 7442, - "loc": { - "start": { - "line": 184, - "column": 6 - }, - "end": { - "line": 184, - "column": 12 - }, - "identifierName": "pArray" - }, - "name": "pArray" - } - ], - "body": { - "type": "BlockStatement", - "start": 7444, - "end": 7546, - "loc": { - "start": { - "line": 184, - "column": 14 - }, - "end": { - "line": 187, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 7449, - "end": 7511, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 185, - "column": 64 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7455, - "end": 7510, - "loc": { - "start": { - "line": 185, - "column": 8 - }, - "end": { - "line": 185, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 7455, - "end": 7466, - "loc": { - "start": { - "line": 185, - "column": 8 - }, - "end": { - "line": 185, - "column": 19 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "init": { - "type": "CallExpression", - "start": 7469, - "end": 7510, - "loc": { - "start": { - "line": 185, - "column": 22 - }, - "end": { - "line": 185, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7469, - "end": 7479, - "loc": { - "start": { - "line": 185, - "column": 22 - }, - "end": { - "line": 185, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 7469, - "end": 7473, - "loc": { - "start": { - "line": 185, - "column": 22 - }, - "end": { - "line": 185, - "column": 26 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7474, - "end": 7479, - "loc": { - "start": { - "line": 185, - "column": 27 - }, - "end": { - "line": 185, - "column": 32 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 7480, - "end": 7509, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 7480, - "end": 7493, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7480, - "end": 7491, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 44 - } - }, - "object": { - "type": "Identifier", - "start": 7480, - "end": 7484, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 37 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 7485, - "end": 7491, - "loc": { - "start": { - "line": 185, - "column": 38 - }, - "end": { - "line": 185, - "column": 44 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 7496, - "end": 7509, - "loc": { - "start": { - "line": 185, - "column": 49 - }, - "end": { - "line": 185, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 7496, - "end": 7502, - "loc": { - "start": { - "line": 185, - "column": 49 - }, - "end": { - "line": 185, - "column": 55 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 7503, - "end": 7509, - "loc": { - "start": { - "line": 185, - "column": 56 - }, - "end": { - "line": 185, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 7515, - "end": 7542, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 186, - "column": 29 - } - }, - "argument": { - "type": "MemberExpression", - "start": 7522, - "end": 7541, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 7522, - "end": 7528, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 15 - }, - "identifierName": "pArray" - }, - "name": "pArray" - }, - "property": { - "type": "Identifier", - "start": 7529, - "end": 7540, - "loc": { - "start": { - "line": 186, - "column": 16 - }, - "end": { - "line": 186, - "column": 27 - }, - "identifierName": "randomIndex" - }, - "name": "randomIndex" - }, - "computed": true - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 7264, - "end": 7428, - "loc": { - "start": { - "line": 178, - "column": 1 - }, - "end": { - "line": 183, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 7549, - "end": 7797, - "loc": { - "start": { - "line": 188, - "column": 1 - }, - "end": { - "line": 193, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 7800, - "end": 8112, - "loc": { - "start": { - "line": 194, - "column": 1 - }, - "end": { - "line": 204, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7800, - "end": 7816, - "loc": { - "start": { - "line": 194, - "column": 1 - }, - "end": { - "line": 194, - "column": 17 - }, - "identifierName": "removeProperties" - }, - "name": "removeProperties", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 7817, - "end": 7824, - "loc": { - "start": { - "line": 194, - "column": 18 - }, - "end": { - "line": 194, - "column": 25 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - { - "type": "Identifier", - "start": 7826, - "end": 7834, - "loc": { - "start": { - "line": 194, - "column": 27 - }, - "end": { - "line": 194, - "column": 35 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "body": { - "type": "BlockStatement", - "start": 7836, - "end": 8112, - "loc": { - "start": { - "line": 194, - "column": 37 - }, - "end": { - "line": 204, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7841, - "end": 8107, - "loc": { - "start": { - "line": 195, - "column": 2 - }, - "end": { - "line": 203, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 7845, - "end": 7873, - "loc": { - "start": { - "line": 195, - "column": 6 - }, - "end": { - "line": 195, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 7845, - "end": 7860, - "loc": { - "start": { - "line": 195, - "column": 6 - }, - "end": { - "line": 195, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 7852, - "end": 7859, - "loc": { - "start": { - "line": 195, - "column": 13 - }, - "end": { - "line": 195, - "column": 20 - }, - "identifierName": "pObject" - }, - "name": "pObject", - "extra": { - "parenthesized": true, - "parenStart": 7851 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7865, - "end": 7873, - "loc": { - "start": { - "line": 195, - "column": 26 - }, - "end": { - "line": 195, - "column": 34 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7875, - "end": 8107, - "loc": { - "start": { - "line": 195, - "column": 36 - }, - "end": { - "line": 203, - "column": 3 - } - }, - "body": [ - { - "type": "ForInStatement", - "start": 7881, - "end": 8102, - "loc": { - "start": { - "line": 196, - "column": 3 - }, - "end": { - "line": 202, - "column": 4 - } - }, - "left": { - "type": "VariableDeclaration", - "start": 7886, - "end": 7896, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 7892, - "end": 7896, - "loc": { - "start": { - "line": 196, - "column": 14 - }, - "end": { - "line": 196, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 7892, - "end": 7896, - "loc": { - "start": { - "line": 196, - "column": 14 - }, - "end": { - "line": 196, - "column": 18 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "init": null - } - ], - "kind": "const" - }, - "right": { - "type": "Identifier", - "start": 7900, - "end": 7907, - "loc": { - "start": { - "line": 196, - "column": 22 - }, - "end": { - "line": 196, - "column": 29 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "body": { - "type": "BlockStatement", - "start": 7909, - "end": 8102, - "loc": { - "start": { - "line": 196, - "column": 31 - }, - "end": { - "line": 202, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 7955, - "end": 8020, - "loc": { - "start": { - "line": 198, - "column": 4 - }, - "end": { - "line": 198, - "column": 69 - } - }, - "test": { - "type": "LogicalExpression", - "start": 7959, - "end": 8009, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 7959, - "end": 7982, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 31 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7959, - "end": 7972, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 7959, - "end": 7964, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 13 - }, - "identifierName": "Array" - }, - "name": "Array", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 7965, - "end": 7972, - "loc": { - "start": { - "line": 198, - "column": 14 - }, - "end": { - "line": 198, - "column": 21 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "Identifier", - "start": 7973, - "end": 7981, - "loc": { - "start": { - "line": 198, - "column": 22 - }, - "end": { - "line": 198, - "column": 30 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - } - ], - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 7986, - "end": 8009, - "loc": { - "start": { - "line": 198, - "column": 35 - }, - "end": { - "line": 198, - "column": 58 - } - }, - "callee": { - "type": "MemberExpression", - "start": 7986, - "end": 8003, - "loc": { - "start": { - "line": 198, - "column": 35 - }, - "end": { - "line": 198, - "column": 52 - } - }, - "object": { - "type": "Identifier", - "start": 7986, - "end": 7994, - "loc": { - "start": { - "line": 198, - "column": 35 - }, - "end": { - "line": 198, - "column": 43 - }, - "identifierName": "pExclude" - }, - "name": "pExclude" - }, - "property": { - "type": "Identifier", - "start": 7995, - "end": 8003, - "loc": { - "start": { - "line": 198, - "column": 44 - }, - "end": { - "line": 198, - "column": 52 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 8004, - "end": 8008, - "loc": { - "start": { - "line": 198, - "column": 53 - }, - "end": { - "line": 198, - "column": 57 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "leadingComments": null - }, - "consequent": { - "type": "ContinueStatement", - "start": 8011, - "end": 8020, - "loc": { - "start": { - "line": 198, - "column": 60 - }, - "end": { - "line": 198, - "column": 69 - } - }, - "label": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 7916, - "end": 7949, - "loc": { - "start": { - "line": 197, - "column": 4 - }, - "end": { - "line": 197, - "column": 37 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 8026, - "end": 8096, - "loc": { - "start": { - "line": 199, - "column": 4 - }, - "end": { - "line": 201, - "column": 5 - } - }, - "test": { - "type": "CallExpression", - "start": 8030, - "end": 8058, - "loc": { - "start": { - "line": 199, - "column": 8 - }, - "end": { - "line": 199, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8030, - "end": 8052, - "loc": { - "start": { - "line": 199, - "column": 8 - }, - "end": { - "line": 199, - "column": 30 - } - }, - "object": { - "type": "Identifier", - "start": 8030, - "end": 8037, - "loc": { - "start": { - "line": 199, - "column": 8 - }, - "end": { - "line": 199, - "column": 15 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 8038, - "end": 8052, - "loc": { - "start": { - "line": 199, - "column": 16 - }, - "end": { - "line": 199, - "column": 30 - }, - "identifierName": "hasOwnProperty" - }, - "name": "hasOwnProperty" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 8053, - "end": 8057, - "loc": { - "start": { - "line": 199, - "column": 31 - }, - "end": { - "line": 199, - "column": 35 - }, - "identifierName": "prop" - }, - "name": "prop" - } - ] - }, - "consequent": { - "type": "BlockStatement", - "start": 8060, - "end": 8096, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 201, - "column": 5 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 8068, - "end": 8089, - "loc": { - "start": { - "line": 200, - "column": 5 - }, - "end": { - "line": 200, - "column": 26 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 8068, - "end": 8088, - "loc": { - "start": { - "line": 200, - "column": 5 - }, - "end": { - "line": 200, - "column": 25 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 8075, - "end": 8088, - "loc": { - "start": { - "line": 200, - "column": 12 - }, - "end": { - "line": 200, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 8075, - "end": 8082, - "loc": { - "start": { - "line": 200, - "column": 12 - }, - "end": { - "line": 200, - "column": 19 - }, - "identifierName": "pObject" - }, - "name": "pObject" - }, - "property": { - "type": "Identifier", - "start": 8083, - "end": 8087, - "loc": { - "start": { - "line": 200, - "column": 20 - }, - "end": { - "line": 200, - "column": 24 - }, - "identifierName": "prop" - }, - "name": "prop" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 7549, - "end": 7797, - "loc": { - "start": { - "line": 188, - "column": 1 - }, - "end": { - "line": 193, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 8115, - "end": 8434, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 211, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8437, - "end": 8645, - "loc": { - "start": { - "line": 212, - "column": 1 - }, - "end": { - "line": 221, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8437, - "end": 8441, - "loc": { - "start": { - "line": 212, - "column": 1 - }, - "end": { - "line": 212, - "column": 5 - }, - "identifierName": "prob" - }, - "name": "prob", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8442, - "end": 8449, - "loc": { - "start": { - "line": 212, - "column": 6 - }, - "end": { - "line": 212, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - ], - "body": { - "type": "BlockStatement", - "start": 8451, - "end": 8645, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 221, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 8456, - "end": 8498, - "loc": { - "start": { - "line": 213, - "column": 2 - }, - "end": { - "line": 215, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 8460, - "end": 8472, - "loc": { - "start": { - "line": 213, - "column": 6 - }, - "end": { - "line": 213, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 8460, - "end": 8467, - "loc": { - "start": { - "line": 213, - "column": 6 - }, - "end": { - "line": 213, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 8471, - "end": 8472, - "loc": { - "start": { - "line": 213, - "column": 17 - }, - "end": { - "line": 213, - "column": 18 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8474, - "end": 8498, - "loc": { - "start": { - "line": 213, - "column": 20 - }, - "end": { - "line": 215, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 8480, - "end": 8493, - "loc": { - "start": { - "line": 214, - "column": 3 - }, - "end": { - "line": 214, - "column": 16 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 8487, - "end": 8492, - "loc": { - "start": { - "line": 214, - "column": 10 - }, - "end": { - "line": 214, - "column": 15 - } - }, - "value": false - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 8502, - "end": 8545, - "loc": { - "start": { - "line": 216, - "column": 2 - }, - "end": { - "line": 218, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 8506, - "end": 8520, - "loc": { - "start": { - "line": 216, - "column": 6 - }, - "end": { - "line": 216, - "column": 20 - } - }, - "left": { - "type": "Identifier", - "start": 8506, - "end": 8513, - "loc": { - "start": { - "line": 216, - "column": 6 - }, - "end": { - "line": 216, - "column": 13 - }, - "identifierName": "pChance" - }, - "name": "pChance" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 8517, - "end": 8520, - "loc": { - "start": { - "line": 216, - "column": 17 - }, - "end": { - "line": 216, - "column": 20 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 8522, - "end": 8545, - "loc": { - "start": { - "line": 216, - "column": 22 - }, - "end": { - "line": 218, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 8528, - "end": 8540, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 217, - "column": 15 - } - }, - "argument": { - "type": "BooleanLiteral", - "start": 8535, - "end": 8539, - "loc": { - "start": { - "line": 217, - "column": 10 - }, - "end": { - "line": 217, - "column": 14 - } - }, - "value": true - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 8549, - "end": 8606, - "loc": { - "start": { - "line": 219, - "column": 2 - }, - "end": { - "line": 219, - "column": 59 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 8555, - "end": 8605, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 8555, - "end": 8567, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 20 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "init": { - "type": "BinaryExpression", - "start": 8570, - "end": 8605, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 58 - } - }, - "left": { - "type": "CallExpression", - "start": 8570, - "end": 8601, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8570, - "end": 8580, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 8570, - "end": 8574, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8575, - "end": 8580, - "loc": { - "start": { - "line": 219, - "column": 28 - }, - "end": { - "line": 219, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 8581, - "end": 8600, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 53 - } - }, - "left": { - "type": "CallExpression", - "start": 8581, - "end": 8594, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 8581, - "end": 8592, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 8586, - "end": 8592, - "loc": { - "start": { - "line": 219, - "column": 39 - }, - "end": { - "line": 219, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 8597, - "end": 8600, - "loc": { - "start": { - "line": 219, - "column": 50 - }, - "end": { - "line": 219, - "column": 53 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 8604, - "end": 8605, - "loc": { - "start": { - "line": 219, - "column": 57 - }, - "end": { - "line": 219, - "column": 58 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 8610, - "end": 8641, - "loc": { - "start": { - "line": 220, - "column": 2 - }, - "end": { - "line": 220, - "column": 33 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 8617, - "end": 8640, - "loc": { - "start": { - "line": 220, - "column": 9 - }, - "end": { - "line": 220, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 8617, - "end": 8629, - "loc": { - "start": { - "line": 220, - "column": 9 - }, - "end": { - "line": 220, - "column": 21 - }, - "identifierName": "randomNumber" - }, - "name": "randomNumber" - }, - "operator": "<=", - "right": { - "type": "Identifier", - "start": 8633, - "end": 8640, - "loc": { - "start": { - "line": 220, - "column": 25 - }, - "end": { - "line": 220, - "column": 32 - }, - "identifierName": "pChance" - }, - "name": "pChance" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 8115, - "end": 8434, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 211, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDirection - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 8648, - "end": 8835, - "loc": { - "start": { - "line": 222, - "column": 1 - }, - "end": { - "line": 227, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 8838, - "end": 9354, - "loc": { - "start": { - "line": 228, - "column": 1 - }, - "end": { - "line": 249, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 8838, - "end": 8857, - "loc": { - "start": { - "line": 228, - "column": 1 - }, - "end": { - "line": 228, - "column": 20 - }, - "identifierName": "getInverseDirection" - }, - "name": "getInverseDirection", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 8858, - "end": 8868, - "loc": { - "start": { - "line": 228, - "column": 21 - }, - "end": { - "line": 228, - "column": 31 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - } - ], - "body": { - "type": "BlockStatement", - "start": 8870, - "end": 9354, - "loc": { - "start": { - "line": 228, - "column": 33 - }, - "end": { - "line": 249, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 8875, - "end": 9350, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 248, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 8883, - "end": 8893, - "loc": { - "start": { - "line": 229, - "column": 10 - }, - "end": { - "line": 229, - "column": 20 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 8901, - "end": 8935, - "loc": { - "start": { - "line": 230, - "column": 3 - }, - "end": { - "line": 231, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8920, - "end": 8935, - "loc": { - "start": { - "line": 231, - "column": 4 - }, - "end": { - "line": 231, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8927, - "end": 8934, - "loc": { - "start": { - "line": 231, - "column": 11 - }, - "end": { - "line": 231, - "column": 18 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8906, - "end": 8913, - "loc": { - "start": { - "line": 230, - "column": 8 - }, - "end": { - "line": 230, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 8940, - "end": 8974, - "loc": { - "start": { - "line": 232, - "column": 3 - }, - "end": { - "line": 233, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8959, - "end": 8974, - "loc": { - "start": { - "line": 233, - "column": 4 - }, - "end": { - "line": 233, - "column": 19 - } - }, - "argument": { - "type": "StringLiteral", - "start": 8966, - "end": 8973, - "loc": { - "start": { - "line": 233, - "column": 11 - }, - "end": { - "line": 233, - "column": 18 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8945, - "end": 8952, - "loc": { - "start": { - "line": 232, - "column": 8 - }, - "end": { - "line": 232, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - } - }, - { - "type": "SwitchCase", - "start": 8979, - "end": 9011, - "loc": { - "start": { - "line": 234, - "column": 3 - }, - "end": { - "line": 235, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 8997, - "end": 9011, - "loc": { - "start": { - "line": 235, - "column": 4 - }, - "end": { - "line": 235, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9004, - "end": 9010, - "loc": { - "start": { - "line": 235, - "column": 11 - }, - "end": { - "line": 235, - "column": 17 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 8984, - "end": 8990, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 234, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - }, - { - "type": "SwitchCase", - "start": 9016, - "end": 9048, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 237, - "column": 18 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9034, - "end": 9048, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 18 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9041, - "end": 9047, - "loc": { - "start": { - "line": 237, - "column": 11 - }, - "end": { - "line": 237, - "column": 17 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9021, - "end": 9027, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 9053, - "end": 9095, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9076, - "end": 9095, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9083, - "end": 9094, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 22 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9058, - "end": 9069, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 9100, - "end": 9142, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9123, - "end": 9142, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9130, - "end": 9141, - "loc": { - "start": { - "line": 241, - "column": 11 - }, - "end": { - "line": 241, - "column": 22 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9105, - "end": 9116, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 9147, - "end": 9189, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 243, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9170, - "end": 9189, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9177, - "end": 9188, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 22 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9152, - "end": 9163, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 9194, - "end": 9236, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9217, - "end": 9236, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 23 - } - }, - "argument": { - "type": "StringLiteral", - "start": 9224, - "end": 9235, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 22 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9199, - "end": 9210, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 9241, - "end": 9345, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 247, - "column": 94 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 9255, - "end": 9345, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 94 - } - }, - "expression": { - "type": "CallExpression", - "start": 9255, - "end": 9344, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 93 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9255, - "end": 9295, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 44 - } - }, - "object": { - "type": "CallExpression", - "start": 9255, - "end": 9289, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 9255, - "end": 9273, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 9255, - "end": 9266, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 15 - } - }, - "object": { - "type": "ThisExpression", - "start": 9255, - "end": 9259, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 8 - } - } - }, - "property": { - "type": "Identifier", - "start": 9260, - "end": 9266, - "loc": { - "start": { - "line": 247, - "column": 9 - }, - "end": { - "line": 247, - "column": 15 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 9267, - "end": 9273, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 22 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 9274, - "end": 9288, - "loc": { - "start": { - "line": 247, - "column": 23 - }, - "end": { - "line": 247, - "column": 37 - } - }, - "extra": { - "rawValue": "Utils-Module", - "raw": "'Utils-Module'" - }, - "value": "Utils-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 9290, - "end": 9295, - "loc": { - "start": { - "line": 247, - "column": 39 - }, - "end": { - "line": 247, - "column": 44 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 9296, - "end": 9343, - "loc": { - "start": { - "line": 247, - "column": 45 - }, - "end": { - "line": 247, - "column": 92 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 9313, - "end": 9323, - "loc": { - "start": { - "line": 247, - "column": 62 - }, - "end": { - "line": 247, - "column": 72 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 9297, - "end": 9311, - "loc": { - "start": { - "line": 247, - "column": 46 - }, - "end": { - "line": 247, - "column": 60 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 9324, - "end": 9342, - "loc": { - "start": { - "line": 247, - "column": 73 - }, - "end": { - "line": 247, - "column": 91 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDirection - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 8648, - "end": 8835, - "loc": { - "start": { - "line": 222, - "column": 1 - }, - "end": { - "line": 227, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDirection - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 9357, - "end": 9668, - "loc": { - "start": { - "line": 250, - "column": 1 - }, - "end": { - "line": 256, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 9671, - "end": 10256, - "loc": { - "start": { - "line": 257, - "column": 1 - }, - "end": { - "line": 278, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 9671, - "end": 9692, - "loc": { - "start": { - "line": 257, - "column": 1 - }, - "end": { - "line": 257, - "column": 22 - }, - "identifierName": "getAngleFromDirection" - }, - "name": "getAngleFromDirection", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 9693, - "end": 9703, - "loc": { - "start": { - "line": 257, - "column": 23 - }, - "end": { - "line": 257, - "column": 33 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - } - ], - "body": { - "type": "BlockStatement", - "start": 9705, - "end": 10256, - "loc": { - "start": { - "line": 257, - "column": 35 - }, - "end": { - "line": 278, - "column": 2 - } - }, - "body": [ - { - "type": "SwitchStatement", - "start": 9710, - "end": 10252, - "loc": { - "start": { - "line": 258, - "column": 2 - }, - "end": { - "line": 277, - "column": 3 - } - }, - "discriminant": { - "type": "Identifier", - "start": 9718, - "end": 9728, - "loc": { - "start": { - "line": 258, - "column": 10 - }, - "end": { - "line": 258, - "column": 20 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - }, - "cases": [ - { - "type": "SwitchCase", - "start": 9736, - "end": 9774, - "loc": { - "start": { - "line": 259, - "column": 3 - }, - "end": { - "line": 260, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9755, - "end": 9774, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 260, - "column": 23 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9762, - "end": 9773, - "loc": { - "start": { - "line": 260, - "column": 11 - }, - "end": { - "line": 260, - "column": 22 - } - }, - "left": { - "type": "MemberExpression", - "start": 9762, - "end": 9769, - "loc": { - "start": { - "line": 260, - "column": 11 - }, - "end": { - "line": 260, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 9762, - "end": 9766, - "loc": { - "start": { - "line": 260, - "column": 11 - }, - "end": { - "line": 260, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9767, - "end": 9769, - "loc": { - "start": { - "line": 260, - "column": 16 - }, - "end": { - "line": 260, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 9772, - "end": 9773, - "loc": { - "start": { - "line": 260, - "column": 21 - }, - "end": { - "line": 260, - "column": 22 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9741, - "end": 9748, - "loc": { - "start": { - "line": 259, - "column": 8 - }, - "end": { - "line": 259, - "column": 15 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - } - }, - { - "type": "SwitchCase", - "start": 9779, - "end": 9823, - "loc": { - "start": { - "line": 261, - "column": 3 - }, - "end": { - "line": 262, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9798, - "end": 9823, - "loc": { - "start": { - "line": 262, - "column": 4 - }, - "end": { - "line": 262, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9805, - "end": 9822, - "loc": { - "start": { - "line": 262, - "column": 11 - }, - "end": { - "line": 262, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 9806, - "end": 9817, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 9806, - "end": 9813, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 9806, - "end": 9810, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9811, - "end": 9813, - "loc": { - "start": { - "line": 262, - "column": 17 - }, - "end": { - "line": 262, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 9816, - "end": 9817, - "loc": { - "start": { - "line": 262, - "column": 22 - }, - "end": { - "line": 262, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 9805 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 9821, - "end": 9822, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 262, - "column": 28 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - }, - "trailingComments": null - } - ], - "test": { - "type": "StringLiteral", - "start": 9784, - "end": 9791, - "loc": { - "start": { - "line": 261, - "column": 8 - }, - "end": { - "line": 261, - "column": 15 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Corrected to 270 degrees in radians", - "start": 9824, - "end": 9862, - "loc": { - "start": { - "line": 262, - "column": 30 - }, - "end": { - "line": 262, - "column": 68 - } - } - } - ] - }, - { - "type": "SwitchCase", - "start": 9867, - "end": 9894, - "loc": { - "start": { - "line": 263, - "column": 3 - }, - "end": { - "line": 264, - "column": 13 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9885, - "end": 9894, - "loc": { - "start": { - "line": 264, - "column": 4 - }, - "end": { - "line": 264, - "column": 13 - } - }, - "argument": { - "type": "NumericLiteral", - "start": 9892, - "end": 9893, - "loc": { - "start": { - "line": 264, - "column": 11 - }, - "end": { - "line": 264, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9872, - "end": 9878, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 14 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east", - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Corrected to 270 degrees in radians", - "start": 9824, - "end": 9862, - "loc": { - "start": { - "line": 262, - "column": 30 - }, - "end": { - "line": 262, - "column": 68 - } - } - } - ] - }, - { - "type": "SwitchCase", - "start": 9899, - "end": 9932, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 266, - "column": 19 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9917, - "end": 9932, - "loc": { - "start": { - "line": 266, - "column": 4 - }, - "end": { - "line": 266, - "column": 19 - } - }, - "argument": { - "type": "MemberExpression", - "start": 9924, - "end": 9931, - "loc": { - "start": { - "line": 266, - "column": 11 - }, - "end": { - "line": 266, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 9924, - "end": 9928, - "loc": { - "start": { - "line": 266, - "column": 11 - }, - "end": { - "line": 266, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9929, - "end": 9931, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9904, - "end": 9910, - "loc": { - "start": { - "line": 265, - "column": 8 - }, - "end": { - "line": 265, - "column": 14 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - } - }, - { - "type": "SwitchCase", - "start": 9937, - "end": 9985, - "loc": { - "start": { - "line": 267, - "column": 3 - }, - "end": { - "line": 268, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 9960, - "end": 9985, - "loc": { - "start": { - "line": 268, - "column": 4 - }, - "end": { - "line": 268, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 9967, - "end": 9984, - "loc": { - "start": { - "line": 268, - "column": 11 - }, - "end": { - "line": 268, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 9968, - "end": 9979, - "loc": { - "start": { - "line": 268, - "column": 12 - }, - "end": { - "line": 268, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 9968, - "end": 9975, - "loc": { - "start": { - "line": 268, - "column": 12 - }, - "end": { - "line": 268, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 9968, - "end": 9972, - "loc": { - "start": { - "line": 268, - "column": 12 - }, - "end": { - "line": 268, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 9973, - "end": 9975, - "loc": { - "start": { - "line": 268, - "column": 17 - }, - "end": { - "line": 268, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 9978, - "end": 9979, - "loc": { - "start": { - "line": 268, - "column": 22 - }, - "end": { - "line": 268, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - }, - "extra": { - "parenthesized": true, - "parenStart": 9967 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 9983, - "end": 9984, - "loc": { - "start": { - "line": 268, - "column": 27 - }, - "end": { - "line": 268, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9942, - "end": 9953, - "loc": { - "start": { - "line": 267, - "column": 8 - }, - "end": { - "line": 267, - "column": 19 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - } - }, - { - "type": "SwitchCase", - "start": 9990, - "end": 10032, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 270, - "column": 23 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 10013, - "end": 10032, - "loc": { - "start": { - "line": 270, - "column": 4 - }, - "end": { - "line": 270, - "column": 23 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 10020, - "end": 10031, - "loc": { - "start": { - "line": 270, - "column": 11 - }, - "end": { - "line": 270, - "column": 22 - } - }, - "left": { - "type": "MemberExpression", - "start": 10020, - "end": 10027, - "loc": { - "start": { - "line": 270, - "column": 11 - }, - "end": { - "line": 270, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 10020, - "end": 10024, - "loc": { - "start": { - "line": 270, - "column": 11 - }, - "end": { - "line": 270, - "column": 15 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10025, - "end": 10027, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 18 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10030, - "end": 10031, - "loc": { - "start": { - "line": 270, - "column": 21 - }, - "end": { - "line": 270, - "column": 22 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 9995, - "end": 10006, - "loc": { - "start": { - "line": 269, - "column": 8 - }, - "end": { - "line": 269, - "column": 19 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - } - }, - { - "type": "SwitchCase", - "start": 10037, - "end": 10085, - "loc": { - "start": { - "line": 271, - "column": 3 - }, - "end": { - "line": 272, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 10060, - "end": 10085, - "loc": { - "start": { - "line": 272, - "column": 4 - }, - "end": { - "line": 272, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 10067, - "end": 10084, - "loc": { - "start": { - "line": 272, - "column": 11 - }, - "end": { - "line": 272, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10068, - "end": 10079, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 10068, - "end": 10075, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 10068, - "end": 10072, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10073, - "end": 10075, - "loc": { - "start": { - "line": 272, - "column": 17 - }, - "end": { - "line": 272, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 10078, - "end": 10079, - "loc": { - "start": { - "line": 272, - "column": 22 - }, - "end": { - "line": 272, - "column": 23 - } - }, - "extra": { - "rawValue": 5, - "raw": "5" - }, - "value": 5 - }, - "extra": { - "parenthesized": true, - "parenStart": 10067 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10083, - "end": 10084, - "loc": { - "start": { - "line": 272, - "column": 27 - }, - "end": { - "line": 272, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 10042, - "end": 10053, - "loc": { - "start": { - "line": 271, - "column": 8 - }, - "end": { - "line": 271, - "column": 19 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - } - }, - { - "type": "SwitchCase", - "start": 10090, - "end": 10138, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 274, - "column": 29 - } - }, - "consequent": [ - { - "type": "ReturnStatement", - "start": 10113, - "end": 10138, - "loc": { - "start": { - "line": 274, - "column": 4 - }, - "end": { - "line": 274, - "column": 29 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 10120, - "end": 10137, - "loc": { - "start": { - "line": 274, - "column": 11 - }, - "end": { - "line": 274, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 10121, - "end": 10132, - "loc": { - "start": { - "line": 274, - "column": 12 - }, - "end": { - "line": 274, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 10121, - "end": 10128, - "loc": { - "start": { - "line": 274, - "column": 12 - }, - "end": { - "line": 274, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 10121, - "end": 10125, - "loc": { - "start": { - "line": 274, - "column": 12 - }, - "end": { - "line": 274, - "column": 16 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 10126, - "end": 10128, - "loc": { - "start": { - "line": 274, - "column": 17 - }, - "end": { - "line": 274, - "column": 19 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 10131, - "end": 10132, - "loc": { - "start": { - "line": 274, - "column": 22 - }, - "end": { - "line": 274, - "column": 23 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - }, - "extra": { - "parenthesized": true, - "parenStart": 10120 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 10136, - "end": 10137, - "loc": { - "start": { - "line": 274, - "column": 27 - }, - "end": { - "line": 274, - "column": 28 - } - }, - "extra": { - "rawValue": 4, - "raw": "4" - }, - "value": 4 - } - } - } - ], - "test": { - "type": "StringLiteral", - "start": 10095, - "end": 10106, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 19 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - }, - { - "type": "SwitchCase", - "start": 10143, - "end": 10247, - "loc": { - "start": { - "line": 275, - "column": 3 - }, - "end": { - "line": 276, - "column": 94 - } - }, - "consequent": [ - { - "type": "ExpressionStatement", - "start": 10157, - "end": 10247, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 94 - } - }, - "expression": { - "type": "CallExpression", - "start": 10157, - "end": 10246, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 93 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10157, - "end": 10197, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 44 - } - }, - "object": { - "type": "CallExpression", - "start": 10157, - "end": 10191, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 38 - } - }, - "callee": { - "type": "MemberExpression", - "start": 10157, - "end": 10175, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 10157, - "end": 10168, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 15 - } - }, - "object": { - "type": "ThisExpression", - "start": 10157, - "end": 10161, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 8 - } - } - }, - "property": { - "type": "Identifier", - "start": 10162, - "end": 10168, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 15 - }, - "identifierName": "logger" - }, - "name": "logger" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 10169, - "end": 10175, - "loc": { - "start": { - "line": 276, - "column": 16 - }, - "end": { - "line": 276, - "column": 22 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 10176, - "end": 10190, - "loc": { - "start": { - "line": 276, - "column": 23 - }, - "end": { - "line": 276, - "column": 37 - } - }, - "extra": { - "rawValue": "Utils-Module", - "raw": "'Utils-Module'" - }, - "value": "Utils-Module" - } - ] - }, - "property": { - "type": "Identifier", - "start": 10192, - "end": 10197, - "loc": { - "start": { - "line": 276, - "column": 39 - }, - "end": { - "line": 276, - "column": 44 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - }, - "arguments": [ - { - "type": "TemplateLiteral", - "start": 10198, - "end": 10245, - "loc": { - "start": { - "line": 276, - "column": 45 - }, - "end": { - "line": 276, - "column": 92 - } - }, - "expressions": [ - { - "type": "Identifier", - "start": 10215, - "end": 10225, - "loc": { - "start": { - "line": 276, - "column": 62 - }, - "end": { - "line": 276, - "column": 72 - }, - "identifierName": "pDirection" - }, - "name": "pDirection" - } - ], - "quasis": [ - { - "type": "TemplateElement", - "start": 10199, - "end": 10213, - "loc": { - "start": { - "line": 276, - "column": 46 - }, - "end": { - "line": 276, - "column": 60 - } - }, - "value": { - "raw": "The direction ", - "cooked": "The direction " - }, - "tail": false - }, - { - "type": "TemplateElement", - "start": 10226, - "end": 10244, - "loc": { - "start": { - "line": 276, - "column": 73 - }, - "end": { - "line": 276, - "column": 91 - } - }, - "value": { - "raw": " is not supported.", - "cooked": " is not supported." - }, - "tail": true - } - ] - } - ] - } - } - ], - "test": null - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDirection - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 9357, - "end": 9668, - "loc": { - "start": { - "line": 250, - "column": 1 - }, - "end": { - "line": 256, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Centers a rectangle (defined by its dimensions) within a parent rectangle.\r\n\t *\r\n\t * @param {number} pChildWidth - The width of the child rectangle.\r\n\t * @param {number} pChildHeight - The height of the child rectangle.\r\n\t * @param {number} pParentWidth - The width of the parent rectangle.\r\n\t * @param {number} pParentHeight - The height of the parent rectangle.\r\n\t * @param {number} pParentX - The x-coordinate of the parent rectangle.\r\n\t * @param {number} pParentY - The y-coordinate of the parent rectangle.\r\n\t * @returns {Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.\r\n\t *\r\n\t * @example\r\n\t * const childWidth = 50;\r\n\t * const childHeight = 30;\r\n\t * const parentWidth = 100;\r\n\t * const parentHeight = 80;\r\n\t * const parentX = 20;\r\n\t * const parentY = 10;\r\n\t * const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);\r\n\t * // Returns {x: 45, y: 35}\r\n\t ", - "start": 10259, - "end": 11251, - "loc": { - "start": { - "line": 279, - "column": 1 - }, - "end": { - "line": 299, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11254, - "end": 11531, - "loc": { - "start": { - "line": 300, - "column": 1 - }, - "end": { - "line": 304, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11254, - "end": 11277, - "loc": { - "start": { - "line": 300, - "column": 1 - }, - "end": { - "line": 300, - "column": 24 - }, - "identifierName": "centerRectangleOnParent" - }, - "name": "centerRectangleOnParent", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 11278, - "end": 11289, - "loc": { - "start": { - "line": 300, - "column": 25 - }, - "end": { - "line": 300, - "column": 36 - }, - "identifierName": "pChildWidth" - }, - "name": "pChildWidth" - }, - { - "type": "Identifier", - "start": 11291, - "end": 11303, - "loc": { - "start": { - "line": 300, - "column": 38 - }, - "end": { - "line": 300, - "column": 50 - }, - "identifierName": "pChildHeight" - }, - "name": "pChildHeight" - }, - { - "type": "Identifier", - "start": 11305, - "end": 11317, - "loc": { - "start": { - "line": 300, - "column": 52 - }, - "end": { - "line": 300, - "column": 64 - }, - "identifierName": "pParentWidth" - }, - "name": "pParentWidth" - }, - { - "type": "Identifier", - "start": 11319, - "end": 11332, - "loc": { - "start": { - "line": 300, - "column": 66 - }, - "end": { - "line": 300, - "column": 79 - }, - "identifierName": "pParentHeight" - }, - "name": "pParentHeight" - }, - { - "type": "Identifier", - "start": 11334, - "end": 11342, - "loc": { - "start": { - "line": 300, - "column": 81 - }, - "end": { - "line": 300, - "column": 89 - }, - "identifierName": "pParentX" - }, - "name": "pParentX" - }, - { - "type": "Identifier", - "start": 11344, - "end": 11352, - "loc": { - "start": { - "line": 300, - "column": 91 - }, - "end": { - "line": 300, - "column": 99 - }, - "identifierName": "pParentY" - }, - "name": "pParentY" - } - ], - "body": { - "type": "BlockStatement", - "start": 11354, - "end": 11531, - "loc": { - "start": { - "line": 300, - "column": 101 - }, - "end": { - "line": 304, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 11359, - "end": 11421, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 64 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11365, - "end": 11420, - "loc": { - "start": { - "line": 301, - "column": 8 - }, - "end": { - "line": 301, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 11365, - "end": 11372, - "loc": { - "start": { - "line": 301, - "column": 8 - }, - "end": { - "line": 301, - "column": 15 - }, - "identifierName": "centerX" - }, - "name": "centerX" - }, - "init": { - "type": "BinaryExpression", - "start": 11375, - "end": 11420, - "loc": { - "start": { - "line": 301, - "column": 18 - }, - "end": { - "line": 301, - "column": 63 - } - }, - "left": { - "type": "Identifier", - "start": 11375, - "end": 11383, - "loc": { - "start": { - "line": 301, - "column": 18 - }, - "end": { - "line": 301, - "column": 26 - }, - "identifierName": "pParentX" - }, - "name": "pParentX" - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 11387, - "end": 11419, - "loc": { - "start": { - "line": 301, - "column": 30 - }, - "end": { - "line": 301, - "column": 62 - } - }, - "left": { - "type": "BinaryExpression", - "start": 11388, - "end": 11414, - "loc": { - "start": { - "line": 301, - "column": 31 - }, - "end": { - "line": 301, - "column": 57 - } - }, - "left": { - "type": "Identifier", - "start": 11388, - "end": 11400, - "loc": { - "start": { - "line": 301, - "column": 31 - }, - "end": { - "line": 301, - "column": 43 - }, - "identifierName": "pParentWidth" - }, - "name": "pParentWidth" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 11403, - "end": 11414, - "loc": { - "start": { - "line": 301, - "column": 46 - }, - "end": { - "line": 301, - "column": 57 - }, - "identifierName": "pChildWidth" - }, - "name": "pChildWidth" - }, - "extra": { - "parenthesized": true, - "parenStart": 11387 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 11418, - "end": 11419, - "loc": { - "start": { - "line": 301, - "column": 61 - }, - "end": { - "line": 301, - "column": 62 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 11386 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 11425, - "end": 11489, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 66 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 11431, - "end": 11488, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 65 - } - }, - "id": { - "type": "Identifier", - "start": 11431, - "end": 11438, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 15 - }, - "identifierName": "centerY" - }, - "name": "centerY" - }, - "init": { - "type": "BinaryExpression", - "start": 11441, - "end": 11488, - "loc": { - "start": { - "line": 302, - "column": 18 - }, - "end": { - "line": 302, - "column": 65 - } - }, - "left": { - "type": "Identifier", - "start": 11441, - "end": 11449, - "loc": { - "start": { - "line": 302, - "column": 18 - }, - "end": { - "line": 302, - "column": 26 - }, - "identifierName": "pParentY" - }, - "name": "pParentY" - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 11453, - "end": 11487, - "loc": { - "start": { - "line": 302, - "column": 30 - }, - "end": { - "line": 302, - "column": 64 - } - }, - "left": { - "type": "BinaryExpression", - "start": 11454, - "end": 11482, - "loc": { - "start": { - "line": 302, - "column": 31 - }, - "end": { - "line": 302, - "column": 59 - } - }, - "left": { - "type": "Identifier", - "start": 11454, - "end": 11467, - "loc": { - "start": { - "line": 302, - "column": 31 - }, - "end": { - "line": 302, - "column": 44 - }, - "identifierName": "pParentHeight" - }, - "name": "pParentHeight" - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 11470, - "end": 11482, - "loc": { - "start": { - "line": 302, - "column": 47 - }, - "end": { - "line": 302, - "column": 59 - }, - "identifierName": "pChildHeight" - }, - "name": "pChildHeight" - }, - "extra": { - "parenthesized": true, - "parenStart": 11453 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 11486, - "end": 11487, - "loc": { - "start": { - "line": 302, - "column": 63 - }, - "end": { - "line": 302, - "column": 64 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 11452 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 11493, - "end": 11527, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 36 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 11500, - "end": 11526, - "loc": { - "start": { - "line": 303, - "column": 9 - }, - "end": { - "line": 303, - "column": 35 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 11502, - "end": 11512, - "loc": { - "start": { - "line": 303, - "column": 11 - }, - "end": { - "line": 303, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11502, - "end": 11503, - "loc": { - "start": { - "line": 303, - "column": 11 - }, - "end": { - "line": 303, - "column": 12 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "Identifier", - "start": 11505, - "end": 11512, - "loc": { - "start": { - "line": 303, - "column": 14 - }, - "end": { - "line": 303, - "column": 21 - }, - "identifierName": "centerX" - }, - "name": "centerX" - } - }, - { - "type": "ObjectProperty", - "start": 11514, - "end": 11524, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11514, - "end": 11515, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "Identifier", - "start": 11517, - "end": 11524, - "loc": { - "start": { - "line": 303, - "column": 26 - }, - "end": { - "line": 303, - "column": 33 - }, - "identifierName": "centerY" - }, - "name": "centerY" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Centers a rectangle (defined by its dimensions) within a parent rectangle.\r\n\t *\r\n\t * @param {number} pChildWidth - The width of the child rectangle.\r\n\t * @param {number} pChildHeight - The height of the child rectangle.\r\n\t * @param {number} pParentWidth - The width of the parent rectangle.\r\n\t * @param {number} pParentHeight - The height of the parent rectangle.\r\n\t * @param {number} pParentX - The x-coordinate of the parent rectangle.\r\n\t * @param {number} pParentY - The y-coordinate of the parent rectangle.\r\n\t * @returns {Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.\r\n\t *\r\n\t * @example\r\n\t * const childWidth = 50;\r\n\t * const childHeight = 30;\r\n\t * const parentWidth = 100;\r\n\t * const parentHeight = 80;\r\n\t * const parentX = 20;\r\n\t * const parentY = 10;\r\n\t * const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);\r\n\t * // Returns {x: 45, y: 35}\r\n\t ", - "start": 10259, - "end": 11251, - "loc": { - "start": { - "line": 279, - "column": 1 - }, - "end": { - "line": 299, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random angle in radians.\r\n\t * @returns {number} A random angle in radians.\r\n\t ", - "start": 11534, - "end": 11635, - "loc": { - "start": { - "line": 305, - "column": 1 - }, - "end": { - "line": 308, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11638, - "end": 11750, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 311, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11638, - "end": 11652, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 309, - "column": 15 - }, - "identifierName": "getRandomAngle" - }, - "name": "getRandomAngle", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 11655, - "end": 11750, - "loc": { - "start": { - "line": 309, - "column": 18 - }, - "end": { - "line": 311, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 11660, - "end": 11697, - "loc": { - "start": { - "line": 310, - "column": 2 - }, - "end": { - "line": 310, - "column": 39 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 11667, - "end": 11696, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 38 - } - }, - "left": { - "type": "CallExpression", - "start": 11667, - "end": 11680, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 22 - } - }, - "callee": { - "type": "MemberExpression", - "start": 11667, - "end": 11678, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 11667, - "end": 11671, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 11672, - "end": 11678, - "loc": { - "start": { - "line": 310, - "column": 14 - }, - "end": { - "line": 310, - "column": 20 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 11684, - "end": 11695, - "loc": { - "start": { - "line": 310, - "column": 26 - }, - "end": { - "line": 310, - "column": 37 - } - }, - "left": { - "type": "MemberExpression", - "start": 11684, - "end": 11691, - "loc": { - "start": { - "line": 310, - "column": 26 - }, - "end": { - "line": 310, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 11684, - "end": 11688, - "loc": { - "start": { - "line": 310, - "column": 26 - }, - "end": { - "line": 310, - "column": 30 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 11689, - "end": 11691, - "loc": { - "start": { - "line": 310, - "column": 31 - }, - "end": { - "line": 310, - "column": 33 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 11694, - "end": 11695, - "loc": { - "start": { - "line": 310, - "column": 36 - }, - "end": { - "line": 310, - "column": 37 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "extra": { - "parenthesized": true, - "parenStart": 11683 - } - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Random value between 0 and 2*pi (360 degrees)", - "start": 11698, - "end": 11746, - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 88 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random angle in radians.\r\n\t * @returns {number} A random angle in radians.\r\n\t ", - "start": 11534, - "end": 11635, - "loc": { - "start": { - "line": 305, - "column": 1 - }, - "end": { - "line": 308, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 11753, - "end": 11992, - "loc": { - "start": { - "line": 312, - "column": 1 - }, - "end": { - "line": 318, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 11995, - "end": 12145, - "loc": { - "start": { - "line": 319, - "column": 1 - }, - "end": { - "line": 323, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 11995, - "end": 12003, - "loc": { - "start": { - "line": 319, - "column": 1 - }, - "end": { - "line": 319, - "column": 9 - }, - "identifierName": "getAngle" - }, - "name": "getAngle", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12004, - "end": 12015, - "loc": { - "start": { - "line": 319, - "column": 10 - }, - "end": { - "line": 319, - "column": 21 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - { - "type": "Identifier", - "start": 12017, - "end": 12026, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 32 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 12028, - "end": 12145, - "loc": { - "start": { - "line": 319, - "column": 34 - }, - "end": { - "line": 323, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 12033, - "end": 12071, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 320, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12039, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 12039, - "end": 12040, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 12043, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 12 - }, - "end": { - "line": 320, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 12043, - "end": 12056, - "loc": { - "start": { - "line": 320, - "column": 12 - }, - "end": { - "line": 320, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 12043, - "end": 12054, - "loc": { - "start": { - "line": 320, - "column": 12 - }, - "end": { - "line": 320, - "column": 23 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 12055, - "end": 12056, - "loc": { - "start": { - "line": 320, - "column": 24 - }, - "end": { - "line": 320, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12059, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 28 - }, - "end": { - "line": 320, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12059, - "end": 12068, - "loc": { - "start": { - "line": 320, - "column": 28 - }, - "end": { - "line": 320, - "column": 37 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 12069, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 38 - }, - "end": { - "line": 320, - "column": 39 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 12075, - "end": 12113, - "loc": { - "start": { - "line": 321, - "column": 2 - }, - "end": { - "line": 321, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12081, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 8 - }, - "end": { - "line": 321, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 12081, - "end": 12082, - "loc": { - "start": { - "line": 321, - "column": 8 - }, - "end": { - "line": 321, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "BinaryExpression", - "start": 12085, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 12 - }, - "end": { - "line": 321, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 12085, - "end": 12098, - "loc": { - "start": { - "line": 321, - "column": 12 - }, - "end": { - "line": 321, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 12085, - "end": 12096, - "loc": { - "start": { - "line": 321, - "column": 12 - }, - "end": { - "line": 321, - "column": 23 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 12097, - "end": 12098, - "loc": { - "start": { - "line": 321, - "column": 24 - }, - "end": { - "line": 321, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12101, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 28 - }, - "end": { - "line": 321, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12101, - "end": 12110, - "loc": { - "start": { - "line": 321, - "column": 28 - }, - "end": { - "line": 321, - "column": 37 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 12111, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 38 - }, - "end": { - "line": 321, - "column": 39 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 12117, - "end": 12141, - "loc": { - "start": { - "line": 322, - "column": 2 - }, - "end": { - "line": 322, - "column": 26 - } - }, - "argument": { - "type": "CallExpression", - "start": 12124, - "end": 12140, - "loc": { - "start": { - "line": 322, - "column": 9 - }, - "end": { - "line": 322, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12124, - "end": 12134, - "loc": { - "start": { - "line": 322, - "column": 9 - }, - "end": { - "line": 322, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 12124, - "end": 12128, - "loc": { - "start": { - "line": 322, - "column": 9 - }, - "end": { - "line": 322, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 12129, - "end": 12134, - "loc": { - "start": { - "line": 322, - "column": 14 - }, - "end": { - "line": 322, - "column": 19 - }, - "identifierName": "atan2" - }, - "name": "atan2" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 12135, - "end": 12136, - "loc": { - "start": { - "line": 322, - "column": 20 - }, - "end": { - "line": 322, - "column": 21 - }, - "identifierName": "y" - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 12138, - "end": 12139, - "loc": { - "start": { - "line": 322, - "column": 23 - }, - "end": { - "line": 322, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 11753, - "end": 11992, - "loc": { - "start": { - "line": 312, - "column": 1 - }, - "end": { - "line": 318, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 12148, - "end": 12461, - "loc": { - "start": { - "line": 324, - "column": 1 - }, - "end": { - "line": 330, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12464, - "end": 12632, - "loc": { - "start": { - "line": 331, - "column": 1 - }, - "end": { - "line": 335, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12464, - "end": 12473, - "loc": { - "start": { - "line": 331, - "column": 1 - }, - "end": { - "line": 331, - "column": 10 - }, - "identifierName": "getAngle2" - }, - "name": "getAngle2", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12474, - "end": 12485, - "loc": { - "start": { - "line": 331, - "column": 11 - }, - "end": { - "line": 331, - "column": 22 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - { - "type": "Identifier", - "start": 12487, - "end": 12496, - "loc": { - "start": { - "line": 331, - "column": 24 - }, - "end": { - "line": 331, - "column": 33 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 12498, - "end": 12632, - "loc": { - "start": { - "line": 331, - "column": 35 - }, - "end": { - "line": 335, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 12503, - "end": 12541, - "loc": { - "start": { - "line": 332, - "column": 2 - }, - "end": { - "line": 332, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12509, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 8 - }, - "end": { - "line": 332, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 12509, - "end": 12510, - "loc": { - "start": { - "line": 332, - "column": 8 - }, - "end": { - "line": 332, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 12513, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 12 - }, - "end": { - "line": 332, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 12513, - "end": 12526, - "loc": { - "start": { - "line": 332, - "column": 12 - }, - "end": { - "line": 332, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 12513, - "end": 12524, - "loc": { - "start": { - "line": 332, - "column": 12 - }, - "end": { - "line": 332, - "column": 23 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 12525, - "end": 12526, - "loc": { - "start": { - "line": 332, - "column": 24 - }, - "end": { - "line": 332, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12529, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 28 - }, - "end": { - "line": 332, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12529, - "end": 12538, - "loc": { - "start": { - "line": 332, - "column": 28 - }, - "end": { - "line": 332, - "column": 37 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 12539, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 38 - }, - "end": { - "line": 332, - "column": 39 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 12545, - "end": 12583, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 40 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 12551, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 8 - }, - "end": { - "line": 333, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 12551, - "end": 12552, - "loc": { - "start": { - "line": 333, - "column": 8 - }, - "end": { - "line": 333, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "BinaryExpression", - "start": 12555, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 12 - }, - "end": { - "line": 333, - "column": 39 - } - }, - "left": { - "type": "MemberExpression", - "start": 12555, - "end": 12568, - "loc": { - "start": { - "line": 333, - "column": 12 - }, - "end": { - "line": 333, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 12555, - "end": 12566, - "loc": { - "start": { - "line": 333, - "column": 12 - }, - "end": { - "line": 333, - "column": 23 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 12567, - "end": 12568, - "loc": { - "start": { - "line": 333, - "column": 24 - }, - "end": { - "line": 333, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12571, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 28 - }, - "end": { - "line": 333, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 12571, - "end": 12580, - "loc": { - "start": { - "line": 333, - "column": 28 - }, - "end": { - "line": 333, - "column": 37 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 12581, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 38 - }, - "end": { - "line": 333, - "column": 39 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 12587, - "end": 12628, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 334, - "column": 43 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 12594, - "end": 12627, - "loc": { - "start": { - "line": 334, - "column": 9 - }, - "end": { - "line": 334, - "column": 42 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12595, - "end": 12621, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 36 - } - }, - "left": { - "type": "CallExpression", - "start": 12595, - "end": 12611, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 26 - } - }, - "callee": { - "type": "MemberExpression", - "start": 12595, - "end": 12605, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 12595, - "end": 12599, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 14 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 12600, - "end": 12605, - "loc": { - "start": { - "line": 334, - "column": 15 - }, - "end": { - "line": 334, - "column": 20 - }, - "identifierName": "atan2" - }, - "name": "atan2" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 12606, - "end": 12607, - "loc": { - "start": { - "line": 334, - "column": 21 - }, - "end": { - "line": 334, - "column": 22 - }, - "identifierName": "y" - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 12609, - "end": 12610, - "loc": { - "start": { - "line": 334, - "column": 24 - }, - "end": { - "line": 334, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - } - ] - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12614, - "end": 12621, - "loc": { - "start": { - "line": 334, - "column": 29 - }, - "end": { - "line": 334, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 12614, - "end": 12618, - "loc": { - "start": { - "line": 334, - "column": 29 - }, - "end": { - "line": 334, - "column": 33 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 12619, - "end": 12621, - "loc": { - "start": { - "line": 334, - "column": 34 - }, - "end": { - "line": 334, - "column": 36 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 12594 - } - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 12625, - "end": 12627, - "loc": { - "start": { - "line": 334, - "column": 40 - }, - "end": { - "line": 334, - "column": 42 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 12626, - "end": 12627, - "loc": { - "start": { - "line": 334, - "column": 41 - }, - "end": { - "line": 334, - "column": 42 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesizedArgument": false - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 12148, - "end": 12461, - "loc": { - "start": { - "line": 324, - "column": 1 - }, - "end": { - "line": 330, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees\r\n\t * @param {number} pAngle - The angle to convert.\r\n\t * @returns The converted angle\r\n\t ", - "start": 12635, - "end": 12816, - "loc": { - "start": { - "line": 336, - "column": 1 - }, - "end": { - "line": 340, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 12819, - "end": 12895, - "loc": { - "start": { - "line": 341, - "column": 1 - }, - "end": { - "line": 343, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 12819, - "end": 12846, - "loc": { - "start": { - "line": 341, - "column": 1 - }, - "end": { - "line": 341, - "column": 28 - }, - "identifierName": "convertRaWAngleToVyloCoords" - }, - "name": "convertRaWAngleToVyloCoords", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 12847, - "end": 12853, - "loc": { - "start": { - "line": 341, - "column": 29 - }, - "end": { - "line": 341, - "column": 35 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ], - "body": { - "type": "BlockStatement", - "start": 12855, - "end": 12895, - "loc": { - "start": { - "line": 341, - "column": 37 - }, - "end": { - "line": 343, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 12860, - "end": 12891, - "loc": { - "start": { - "line": 342, - "column": 2 - }, - "end": { - "line": 342, - "column": 33 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 12867, - "end": 12890, - "loc": { - "start": { - "line": 342, - "column": 9 - }, - "end": { - "line": 342, - "column": 32 - } - }, - "left": { - "type": "BinaryExpression", - "start": 12868, - "end": 12884, - "loc": { - "start": { - "line": 342, - "column": 10 - }, - "end": { - "line": 342, - "column": 26 - } - }, - "left": { - "type": "Identifier", - "start": 12868, - "end": 12874, - "loc": { - "start": { - "line": 342, - "column": 10 - }, - "end": { - "line": 342, - "column": 16 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 12877, - "end": 12884, - "loc": { - "start": { - "line": 342, - "column": 19 - }, - "end": { - "line": 342, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 12877, - "end": 12881, - "loc": { - "start": { - "line": 342, - "column": 19 - }, - "end": { - "line": 342, - "column": 23 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 12882, - "end": 12884, - "loc": { - "start": { - "line": 342, - "column": 24 - }, - "end": { - "line": 342, - "column": 26 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 12867 - } - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 12888, - "end": 12890, - "loc": { - "start": { - "line": 342, - "column": 30 - }, - "end": { - "line": 342, - "column": 32 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "NumericLiteral", - "start": 12889, - "end": 12890, - "loc": { - "start": { - "line": 342, - "column": 31 - }, - "end": { - "line": 342, - "column": 32 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "extra": { - "parenthesizedArgument": false - } - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees\r\n\t * @param {number} pAngle - The angle to convert.\r\n\t * @returns The converted angle\r\n\t ", - "start": 12635, - "end": 12816, - "loc": { - "start": { - "line": 336, - "column": 1 - }, - "end": { - "line": 340, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the Euclidean distance between two points in a two-dimensional space.\r\n\t *\r\n\t * @param {Object} pStartPoint - The starting point with x and y coordinates.\r\n\t * @param {number} pStartPoint.x - The x-coordinate of the starting point.\r\n\t * @param {number} pStartPoint.y - The y-coordinate of the starting point.\r\n\t * @param {Object} pEndPoint - The ending point with x and y coordinates.\r\n\t * @param {number} pEndPoint.x - The x-coordinate of the ending point.\r\n\t * @param {number} pEndPoint.y - The y-coordinate of the ending point.\r\n\t * @returns {number} The Euclidean distance between the two points.\r\n\t *\r\n\t * @example\r\n\t * const startPoint = { x: 1, y: 2 };\r\n\t * const endPoint = { x: 4, y: 6 };\r\n\t * const distance = getDistance(startPoint, endPoint); // 5\r\n\t * // Returns the Euclidean distance between the points (1, 2) and (4, 6).\r\n\t ", - "start": 12898, - "end": 13760, - "loc": { - "start": { - "line": 344, - "column": 1 - }, - "end": { - "line": 360, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 13763, - "end": 13932, - "loc": { - "start": { - "line": 361, - "column": 1 - }, - "end": { - "line": 365, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13763, - "end": 13774, - "loc": { - "start": { - "line": 361, - "column": 1 - }, - "end": { - "line": 361, - "column": 12 - }, - "identifierName": "getDistance" - }, - "name": "getDistance", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 13775, - "end": 13786, - "loc": { - "start": { - "line": 361, - "column": 13 - }, - "end": { - "line": 361, - "column": 24 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - { - "type": "Identifier", - "start": 13788, - "end": 13797, - "loc": { - "start": { - "line": 361, - "column": 26 - }, - "end": { - "line": 361, - "column": 35 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 13799, - "end": 13932, - "loc": { - "start": { - "line": 361, - "column": 37 - }, - "end": { - "line": 365, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 13804, - "end": 13844, - "loc": { - "start": { - "line": 362, - "column": 2 - }, - "end": { - "line": 362, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13810, - "end": 13843, - "loc": { - "start": { - "line": 362, - "column": 8 - }, - "end": { - "line": 362, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 13810, - "end": 13811, - "loc": { - "start": { - "line": 362, - "column": 8 - }, - "end": { - "line": 362, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 13815, - "end": 13842, - "loc": { - "start": { - "line": 362, - "column": 13 - }, - "end": { - "line": 362, - "column": 40 - } - }, - "left": { - "type": "MemberExpression", - "start": 13815, - "end": 13828, - "loc": { - "start": { - "line": 362, - "column": 13 - }, - "end": { - "line": 362, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 13815, - "end": 13826, - "loc": { - "start": { - "line": 362, - "column": 13 - }, - "end": { - "line": 362, - "column": 24 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 13827, - "end": 13828, - "loc": { - "start": { - "line": 362, - "column": 25 - }, - "end": { - "line": 362, - "column": 26 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 13831, - "end": 13842, - "loc": { - "start": { - "line": 362, - "column": 29 - }, - "end": { - "line": 362, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 13831, - "end": 13840, - "loc": { - "start": { - "line": 362, - "column": 29 - }, - "end": { - "line": 362, - "column": 38 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 13841, - "end": 13842, - "loc": { - "start": { - "line": 362, - "column": 39 - }, - "end": { - "line": 362, - "column": 40 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 13814 - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 13848, - "end": 13888, - "loc": { - "start": { - "line": 363, - "column": 2 - }, - "end": { - "line": 363, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 13854, - "end": 13887, - "loc": { - "start": { - "line": 363, - "column": 8 - }, - "end": { - "line": 363, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 13854, - "end": 13855, - "loc": { - "start": { - "line": 363, - "column": 8 - }, - "end": { - "line": 363, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x" - }, - "init": { - "type": "BinaryExpression", - "start": 13859, - "end": 13886, - "loc": { - "start": { - "line": 363, - "column": 13 - }, - "end": { - "line": 363, - "column": 40 - } - }, - "left": { - "type": "MemberExpression", - "start": 13859, - "end": 13872, - "loc": { - "start": { - "line": 363, - "column": 13 - }, - "end": { - "line": 363, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 13859, - "end": 13870, - "loc": { - "start": { - "line": 363, - "column": 13 - }, - "end": { - "line": 363, - "column": 24 - }, - "identifierName": "pStartPoint" - }, - "name": "pStartPoint" - }, - "property": { - "type": "Identifier", - "start": 13871, - "end": 13872, - "loc": { - "start": { - "line": 363, - "column": 25 - }, - "end": { - "line": 363, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 13875, - "end": 13886, - "loc": { - "start": { - "line": 363, - "column": 29 - }, - "end": { - "line": 363, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 13875, - "end": 13884, - "loc": { - "start": { - "line": 363, - "column": 29 - }, - "end": { - "line": 363, - "column": 38 - }, - "identifierName": "pEndPoint" - }, - "name": "pEndPoint" - }, - "property": { - "type": "Identifier", - "start": 13885, - "end": 13886, - "loc": { - "start": { - "line": 363, - "column": 39 - }, - "end": { - "line": 363, - "column": 40 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 13858 - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 13892, - "end": 13928, - "loc": { - "start": { - "line": 364, - "column": 2 - }, - "end": { - "line": 364, - "column": 38 - } - }, - "argument": { - "type": "CallExpression", - "start": 13899, - "end": 13927, - "loc": { - "start": { - "line": 364, - "column": 9 - }, - "end": { - "line": 364, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 13899, - "end": 13908, - "loc": { - "start": { - "line": 364, - "column": 9 - }, - "end": { - "line": 364, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 13899, - "end": 13903, - "loc": { - "start": { - "line": 364, - "column": 9 - }, - "end": { - "line": 364, - "column": 13 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 13904, - "end": 13908, - "loc": { - "start": { - "line": 364, - "column": 14 - }, - "end": { - "line": 364, - "column": 18 - }, - "identifierName": "sqrt" - }, - "name": "sqrt" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 13909, - "end": 13926, - "loc": { - "start": { - "line": 364, - "column": 19 - }, - "end": { - "line": 364, - "column": 36 - } - }, - "left": { - "type": "BinaryExpression", - "start": 13910, - "end": 13915, - "loc": { - "start": { - "line": 364, - "column": 20 - }, - "end": { - "line": 364, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 13910, - "end": 13911, - "loc": { - "start": { - "line": 364, - "column": 20 - }, - "end": { - "line": 364, - "column": 21 - }, - "identifierName": "x" - }, - "name": "x" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 13914, - "end": 13915, - "loc": { - "start": { - "line": 364, - "column": 24 - }, - "end": { - "line": 364, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "extra": { - "parenthesized": true, - "parenStart": 13909 - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 13920, - "end": 13925, - "loc": { - "start": { - "line": 364, - "column": 30 - }, - "end": { - "line": 364, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 13920, - "end": 13921, - "loc": { - "start": { - "line": 364, - "column": 30 - }, - "end": { - "line": 364, - "column": 31 - }, - "identifierName": "y" - }, - "name": "y" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 13924, - "end": 13925, - "loc": { - "start": { - "line": 364, - "column": 34 - }, - "end": { - "line": 364, - "column": 35 - }, - "identifierName": "y" - }, - "name": "y" - }, - "extra": { - "parenthesized": true, - "parenStart": 13919 - } - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the Euclidean distance between two points in a two-dimensional space.\r\n\t *\r\n\t * @param {Object} pStartPoint - The starting point with x and y coordinates.\r\n\t * @param {number} pStartPoint.x - The x-coordinate of the starting point.\r\n\t * @param {number} pStartPoint.y - The y-coordinate of the starting point.\r\n\t * @param {Object} pEndPoint - The ending point with x and y coordinates.\r\n\t * @param {number} pEndPoint.x - The x-coordinate of the ending point.\r\n\t * @param {number} pEndPoint.y - The y-coordinate of the ending point.\r\n\t * @returns {number} The Euclidean distance between the two points.\r\n\t *\r\n\t * @example\r\n\t * const startPoint = { x: 1, y: 2 };\r\n\t * const endPoint = { x: 4, y: 6 };\r\n\t * const distance = getDistance(startPoint, endPoint); // 5\r\n\t * // Returns the Euclidean distance between the points (1, 2) and (4, 6).\r\n\t ", - "start": 12898, - "end": 13760, - "loc": { - "start": { - "line": 344, - "column": 1 - }, - "end": { - "line": 360, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the new position of a point based on distance and angle.\r\n\t *\r\n\t * @param {Object} pPoint - The initial position of the point with x and y coordinates.\r\n\t * @param {number} pPoint.x - The initial x-coordinate of the point.\r\n\t * @param {number} pPoint.y - The initial y-coordinate of the point.\r\n\t * @param {number} pDistance - The distance by which to move the point.\r\n\t * @param {number} pAngle - The angle (in radians) at which to move the point.\r\n\t * @returns {Object} The new position of the point after moving by the specified distance and angle.\r\n\t *\r\n\t * @example\r\n\t * const initialPosition = { x: 10, y: 20 };\r\n\t * const distance = 5;\r\n\t * const angleInRadians = 0.785398; // 45 degrees\r\n\t * const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);\r\n\t * // Returns the new position of the point after moving by 5 units at a 45-degree angle.\r\n\t ", - "start": 13935, - "end": 14857, - "loc": { - "start": { - "line": 366, - "column": 1 - }, - "end": { - "line": 382, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 14860, - "end": 15115, - "loc": { - "start": { - "line": 383, - "column": 1 - }, - "end": { - "line": 388, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14860, - "end": 14900, - "loc": { - "start": { - "line": 383, - "column": 1 - }, - "end": { - "line": 383, - "column": 41 - }, - "identifierName": "calculateNewPositionFromDistanceAndAngle" - }, - "name": "calculateNewPositionFromDistanceAndAngle", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 14901, - "end": 14907, - "loc": { - "start": { - "line": 383, - "column": 42 - }, - "end": { - "line": 383, - "column": 48 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - { - "type": "Identifier", - "start": 14909, - "end": 14918, - "loc": { - "start": { - "line": 383, - "column": 50 - }, - "end": { - "line": 383, - "column": 59 - }, - "identifierName": "pDistance" - }, - "name": "pDistance" - }, - { - "type": "Identifier", - "start": 14920, - "end": 14926, - "loc": { - "start": { - "line": 383, - "column": 61 - }, - "end": { - "line": 383, - "column": 67 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ], - "body": { - "type": "BlockStatement", - "start": 14928, - "end": 15115, - "loc": { - "start": { - "line": 383, - "column": 69 - }, - "end": { - "line": 388, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 14933, - "end": 14968, - "loc": { - "start": { - "line": 384, - "column": 2 - }, - "end": { - "line": 384, - "column": 37 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 14939, - "end": 14967, - "loc": { - "start": { - "line": 384, - "column": 8 - }, - "end": { - "line": 384, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 14939, - "end": 14950, - "loc": { - "start": { - "line": 384, - "column": 8 - }, - "end": { - "line": 384, - "column": 19 - }, - "identifierName": "newPosition" - }, - "name": "newPosition" - }, - "init": { - "type": "ObjectExpression", - "start": 14953, - "end": 14967, - "loc": { - "start": { - "line": 384, - "column": 22 - }, - "end": { - "line": 384, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 14955, - "end": 14959, - "loc": { - "start": { - "line": 384, - "column": 24 - }, - "end": { - "line": 384, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14955, - "end": 14956, - "loc": { - "start": { - "line": 384, - "column": 24 - }, - "end": { - "line": 384, - "column": 25 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "NumericLiteral", - "start": 14958, - "end": 14959, - "loc": { - "start": { - "line": 384, - "column": 27 - }, - "end": { - "line": 384, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - { - "type": "ObjectProperty", - "start": 14961, - "end": 14965, - "loc": { - "start": { - "line": 384, - "column": 30 - }, - "end": { - "line": 384, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14961, - "end": 14962, - "loc": { - "start": { - "line": 384, - "column": 30 - }, - "end": { - "line": 384, - "column": 31 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "NumericLiteral", - "start": 14964, - "end": 14965, - "loc": { - "start": { - "line": 384, - "column": 33 - }, - "end": { - "line": 384, - "column": 34 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 14972, - "end": 15028, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 58 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 14972, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 57 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 14972, - "end": 14985, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 14972, - "end": 14983, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 13 - }, - "identifierName": "newPosition" - }, - "name": "newPosition" - }, - "property": { - "type": "Identifier", - "start": 14984, - "end": 14985, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 15 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 14988, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 18 - }, - "end": { - "line": 385, - "column": 57 - } - }, - "left": { - "type": "MemberExpression", - "start": 14988, - "end": 14996, - "loc": { - "start": { - "line": 385, - "column": 18 - }, - "end": { - "line": 385, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 14988, - "end": 14994, - "loc": { - "start": { - "line": 385, - "column": 18 - }, - "end": { - "line": 385, - "column": 24 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 14995, - "end": 14996, - "loc": { - "start": { - "line": 385, - "column": 25 - }, - "end": { - "line": 385, - "column": 26 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 14999, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 29 - }, - "end": { - "line": 385, - "column": 57 - } - }, - "left": { - "type": "Identifier", - "start": 14999, - "end": 15008, - "loc": { - "start": { - "line": 385, - "column": 29 - }, - "end": { - "line": 385, - "column": 38 - }, - "identifierName": "pDistance" - }, - "name": "pDistance" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 15011, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 41 - }, - "end": { - "line": 385, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15011, - "end": 15019, - "loc": { - "start": { - "line": 385, - "column": 41 - }, - "end": { - "line": 385, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 15011, - "end": 15015, - "loc": { - "start": { - "line": 385, - "column": 41 - }, - "end": { - "line": 385, - "column": 45 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 15016, - "end": 15019, - "loc": { - "start": { - "line": 385, - "column": 46 - }, - "end": { - "line": 385, - "column": 49 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15020, - "end": 15026, - "loc": { - "start": { - "line": 385, - "column": 50 - }, - "end": { - "line": 385, - "column": 56 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ] - } - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 15032, - "end": 15088, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 58 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 15032, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 57 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 15032, - "end": 15045, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 15032, - "end": 15043, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 13 - }, - "identifierName": "newPosition" - }, - "name": "newPosition" - }, - "property": { - "type": "Identifier", - "start": 15044, - "end": 15045, - "loc": { - "start": { - "line": 386, - "column": 14 - }, - "end": { - "line": 386, - "column": 15 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "right": { - "type": "BinaryExpression", - "start": 15048, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 18 - }, - "end": { - "line": 386, - "column": 57 - } - }, - "left": { - "type": "MemberExpression", - "start": 15048, - "end": 15056, - "loc": { - "start": { - "line": 386, - "column": 18 - }, - "end": { - "line": 386, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 15048, - "end": 15054, - "loc": { - "start": { - "line": 386, - "column": 18 - }, - "end": { - "line": 386, - "column": 24 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 15055, - "end": 15056, - "loc": { - "start": { - "line": 386, - "column": 25 - }, - "end": { - "line": 386, - "column": 26 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 15059, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 29 - }, - "end": { - "line": 386, - "column": 57 - } - }, - "left": { - "type": "Identifier", - "start": 15059, - "end": 15068, - "loc": { - "start": { - "line": 386, - "column": 29 - }, - "end": { - "line": 386, - "column": 38 - }, - "identifierName": "pDistance" - }, - "name": "pDistance" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 15071, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 41 - }, - "end": { - "line": 386, - "column": 57 - } - }, - "callee": { - "type": "MemberExpression", - "start": 15071, - "end": 15079, - "loc": { - "start": { - "line": 386, - "column": 41 - }, - "end": { - "line": 386, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 15071, - "end": 15075, - "loc": { - "start": { - "line": 386, - "column": 41 - }, - "end": { - "line": 386, - "column": 45 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 15076, - "end": 15079, - "loc": { - "start": { - "line": 386, - "column": 46 - }, - "end": { - "line": 386, - "column": 49 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 15080, - "end": 15086, - "loc": { - "start": { - "line": 386, - "column": 50 - }, - "end": { - "line": 386, - "column": 56 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ] - } - } - } - } - }, - { - "type": "ReturnStatement", - "start": 15092, - "end": 15111, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 387, - "column": 21 - } - }, - "argument": { - "type": "Identifier", - "start": 15099, - "end": 15110, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 387, - "column": 20 - }, - "identifierName": "newPosition" - }, - "name": "newPosition" - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the new position of a point based on distance and angle.\r\n\t *\r\n\t * @param {Object} pPoint - The initial position of the point with x and y coordinates.\r\n\t * @param {number} pPoint.x - The initial x-coordinate of the point.\r\n\t * @param {number} pPoint.y - The initial y-coordinate of the point.\r\n\t * @param {number} pDistance - The distance by which to move the point.\r\n\t * @param {number} pAngle - The angle (in radians) at which to move the point.\r\n\t * @returns {Object} The new position of the point after moving by the specified distance and angle.\r\n\t *\r\n\t * @example\r\n\t * const initialPosition = { x: 10, y: 20 };\r\n\t * const distance = 5;\r\n\t * const angleInRadians = 0.785398; // 45 degrees\r\n\t * const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);\r\n\t * // Returns the new position of the point after moving by 5 units at a 45-degree angle.\r\n\t ", - "start": 13935, - "end": 14857, - "loc": { - "start": { - "line": 366, - "column": 1 - }, - "end": { - "line": 382, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 15834, - "end": 15941, - "loc": { - "start": { - "line": 404, - "column": 1 - }, - "end": { - "line": 406, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 15834, - "end": 15861, - "loc": { - "start": { - "line": 404, - "column": 1 - }, - "end": { - "line": 404, - "column": 28 - }, - "identifierName": "calculateProportionalLength" - }, - "name": "calculateProportionalLength", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 15862, - "end": 15870, - "loc": { - "start": { - "line": 404, - "column": 29 - }, - "end": { - "line": 404, - "column": 37 - }, - "identifierName": "pCurrent" - }, - "name": "pCurrent" - }, - { - "type": "Identifier", - "start": 15872, - "end": 15876, - "loc": { - "start": { - "line": 404, - "column": 39 - }, - "end": { - "line": 404, - "column": 43 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - { - "type": "Identifier", - "start": 15878, - "end": 15890, - "loc": { - "start": { - "line": 404, - "column": 45 - }, - "end": { - "line": 404, - "column": 57 - }, - "identifierName": "pTotalLength" - }, - "name": "pTotalLength" - } - ], - "body": { - "type": "BlockStatement", - "start": 15892, - "end": 15941, - "loc": { - "start": { - "line": 404, - "column": 59 - }, - "end": { - "line": 406, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 15897, - "end": 15937, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 405, - "column": 42 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 15904, - "end": 15936, - "loc": { - "start": { - "line": 405, - "column": 9 - }, - "end": { - "line": 405, - "column": 41 - } - }, - "left": { - "type": "BinaryExpression", - "start": 15905, - "end": 15920, - "loc": { - "start": { - "line": 405, - "column": 10 - }, - "end": { - "line": 405, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 15905, - "end": 15913, - "loc": { - "start": { - "line": 405, - "column": 10 - }, - "end": { - "line": 405, - "column": 18 - }, - "identifierName": "pCurrent" - }, - "name": "pCurrent" - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 15916, - "end": 15920, - "loc": { - "start": { - "line": 405, - "column": 21 - }, - "end": { - "line": 405, - "column": 25 - }, - "identifierName": "pMax" - }, - "name": "pMax" - }, - "extra": { - "parenthesized": true, - "parenStart": 15904 - } - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 15924, - "end": 15936, - "loc": { - "start": { - "line": 405, - "column": 29 - }, - "end": { - "line": 405, - "column": 41 - }, - "identifierName": "pTotalLength" - }, - "name": "pTotalLength" - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the proportional length based on a current value, a maximum value, and a specified total length.\r\n\t *\r\n\t * @param {number} pCurrent - The current value to be scaled.\r\n\t * @param {number} pMax - The maximum value for scaling.\r\n\t * @param {number} pTotalLength - The specified total length.\r\n\t * @returns {number} The proportional length based on the current value, maximum value, and total length.\r\n\t *\r\n\t * @example\r\n\t * const current = 25;\r\n\t * const max = 50;\r\n\t * const totalLength = 100;\r\n\t * const proportionalLength = calculateProportionalLength(current, max, totalLength); // 50\r\n\t * // Returns the proportional length based on the current value, maximum value, and total length.\r\n\t ", - "start": 15119, - "end": 15831, - "loc": { - "start": { - "line": 389, - "column": 1 - }, - "end": { - "line": 403, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the compass direction based on the given angle.\r\n\t *\r\n\t * @param {number} pAngle - The angle in radians.\r\n\t * @returns {string} The compass direction (e.g., 'east', 'southeast', 'south', etc.).\r\n\t *\r\n\t * @example\r\n\t * const angle = Math.PI / 4; // 45 degrees in radians\r\n\t * const direction = getDirection(angle); // Returns 'northeast'\r\n\t ", - "start": 15944, - "end": 16306, - "loc": { - "start": { - "line": 407, - "column": 1 - }, - "end": { - "line": 416, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 16309, - "end": 16809, - "loc": { - "start": { - "line": 417, - "column": 1 - }, - "end": { - "line": 429, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 16309, - "end": 16321, - "loc": { - "start": { - "line": 417, - "column": 1 - }, - "end": { - "line": 417, - "column": 13 - }, - "identifierName": "getDirection" - }, - "name": "getDirection", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 16322, - "end": 16328, - "loc": { - "start": { - "line": 417, - "column": 14 - }, - "end": { - "line": 417, - "column": 20 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - } - ], - "body": { - "type": "BlockStatement", - "start": 16330, - "end": 16809, - "loc": { - "start": { - "line": 417, - "column": 22 - }, - "end": { - "line": 429, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 16335, - "end": 16412, - "loc": { - "start": { - "line": 418, - "column": 2 - }, - "end": { - "line": 418, - "column": 79 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16341, - "end": 16411, - "loc": { - "start": { - "line": 418, - "column": 8 - }, - "end": { - "line": 418, - "column": 78 - } - }, - "id": { - "type": "Identifier", - "start": 16341, - "end": 16347, - "loc": { - "start": { - "line": 418, - "column": 8 - }, - "end": { - "line": 418, - "column": 14 - }, - "identifierName": "degree" - }, - "name": "degree" - }, - "init": { - "type": "CallExpression", - "start": 16350, - "end": 16411, - "loc": { - "start": { - "line": 418, - "column": 17 - }, - "end": { - "line": 418, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16350, - "end": 16358, - "loc": { - "start": { - "line": 418, - "column": 17 - }, - "end": { - "line": 418, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 16350, - "end": 16354, - "loc": { - "start": { - "line": 418, - "column": 17 - }, - "end": { - "line": 418, - "column": 21 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 16355, - "end": 16358, - "loc": { - "start": { - "line": 418, - "column": 22 - }, - "end": { - "line": 418, - "column": 25 - }, - "identifierName": "abs" - }, - "name": "abs" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 16359, - "end": 16410, - "loc": { - "start": { - "line": 418, - "column": 26 - }, - "end": { - "line": 418, - "column": 77 - } - }, - "callee": { - "type": "MemberExpression", - "start": 16359, - "end": 16369, - "loc": { - "start": { - "line": 418, - "column": 26 - }, - "end": { - "line": 418, - "column": 36 - } - }, - "object": { - "type": "Identifier", - "start": 16359, - "end": 16363, - "loc": { - "start": { - "line": 418, - "column": 26 - }, - "end": { - "line": 418, - "column": 30 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 16364, - "end": 16369, - "loc": { - "start": { - "line": 418, - "column": 31 - }, - "end": { - "line": 418, - "column": 36 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 16370, - "end": 16409, - "loc": { - "start": { - "line": 418, - "column": 37 - }, - "end": { - "line": 418, - "column": 76 - } - }, - "left": { - "type": "BinaryExpression", - "start": 16371, - "end": 16402, - "loc": { - "start": { - "line": 418, - "column": 38 - }, - "end": { - "line": 418, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 16372, - "end": 16396, - "loc": { - "start": { - "line": 418, - "column": 39 - }, - "end": { - "line": 418, - "column": 63 - } - }, - "left": { - "type": "Identifier", - "start": 16372, - "end": 16378, - "loc": { - "start": { - "line": 418, - "column": 39 - }, - "end": { - "line": 418, - "column": 45 - }, - "identifierName": "pAngle" - }, - "name": "pAngle" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 16382, - "end": 16395, - "loc": { - "start": { - "line": 418, - "column": 49 - }, - "end": { - "line": 418, - "column": 62 - } - }, - "left": { - "type": "NumericLiteral", - "start": 16382, - "end": 16385, - "loc": { - "start": { - "line": 418, - "column": 49 - }, - "end": { - "line": 418, - "column": 52 - } - }, - "extra": { - "rawValue": 180, - "raw": "180" - }, - "value": 180 - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 16388, - "end": 16395, - "loc": { - "start": { - "line": 418, - "column": 55 - }, - "end": { - "line": 418, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 16388, - "end": 16392, - "loc": { - "start": { - "line": 418, - "column": 55 - }, - "end": { - "line": 418, - "column": 59 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 16393, - "end": 16395, - "loc": { - "start": { - "line": 418, - "column": 60 - }, - "end": { - "line": 418, - "column": 62 - }, - "identifierName": "PI" - }, - "name": "PI" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 16381 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 16371 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 16400, - "end": 16402, - "loc": { - "start": { - "line": 418, - "column": 67 - }, - "end": { - "line": 418, - "column": 69 - } - }, - "extra": { - "rawValue": 45, - "raw": "45" - }, - "value": 45 - }, - "extra": { - "parenthesized": true, - "parenStart": 16370 - } - }, - "operator": "+", - "right": { - "type": "NumericLiteral", - "start": 16406, - "end": 16409, - "loc": { - "start": { - "line": 418, - "column": 73 - }, - "end": { - "line": 418, - "column": 76 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ] - } - ] - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " 0 or 360 degrees: 'east'", - "start": 16416, - "end": 16443, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 419, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 45 degrees: 'northeast'", - "start": 16447, - "end": 16473, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 420, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " 90 degrees: 'north'", - "start": 16477, - "end": 16499, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 135 degrees: 'northwest'", - "start": 16503, - "end": 16530, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 180 degrees: 'west'", - "start": 16534, - "end": 16556, - "loc": { - "start": { - "line": 423, - "column": 2 - }, - "end": { - "line": 423, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 225 degrees: 'southwest'", - "start": 16560, - "end": 16587, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 424, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 270 degrees: 'south'", - "start": 16591, - "end": 16614, - "loc": { - "start": { - "line": 425, - "column": 2 - }, - "end": { - "line": 425, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " 315 degrees: 'southeast'", - "start": 16618, - "end": 16645, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 426, - "column": 29 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 16649, - "end": 16762, - "loc": { - "start": { - "line": 427, - "column": 2 - }, - "end": { - "line": 427, - "column": 115 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 16655, - "end": 16761, - "loc": { - "start": { - "line": 427, - "column": 8 - }, - "end": { - "line": 427, - "column": 114 - } - }, - "id": { - "type": "Identifier", - "start": 16655, - "end": 16672, - "loc": { - "start": { - "line": 427, - "column": 8 - }, - "end": { - "line": 427, - "column": 25 - }, - "identifierName": "compassDirections" - }, - "name": "compassDirections", - "leadingComments": null - }, - "init": { - "type": "ArrayExpression", - "start": 16675, - "end": 16761, - "loc": { - "start": { - "line": 427, - "column": 28 - }, - "end": { - "line": 427, - "column": 114 - } - }, - "elements": [ - { - "type": "StringLiteral", - "start": 16676, - "end": 16682, - "loc": { - "start": { - "line": 427, - "column": 29 - }, - "end": { - "line": 427, - "column": 35 - } - }, - "extra": { - "rawValue": "east", - "raw": "'east'" - }, - "value": "east" - }, - { - "type": "StringLiteral", - "start": 16684, - "end": 16695, - "loc": { - "start": { - "line": 427, - "column": 37 - }, - "end": { - "line": 427, - "column": 48 - } - }, - "extra": { - "rawValue": "northeast", - "raw": "'northeast'" - }, - "value": "northeast" - }, - { - "type": "StringLiteral", - "start": 16697, - "end": 16704, - "loc": { - "start": { - "line": 427, - "column": 50 - }, - "end": { - "line": 427, - "column": 57 - } - }, - "extra": { - "rawValue": "north", - "raw": "'north'" - }, - "value": "north" - }, - { - "type": "StringLiteral", - "start": 16706, - "end": 16717, - "loc": { - "start": { - "line": 427, - "column": 59 - }, - "end": { - "line": 427, - "column": 70 - } - }, - "extra": { - "rawValue": "northwest", - "raw": "'northwest'" - }, - "value": "northwest" - }, - { - "type": "StringLiteral", - "start": 16719, - "end": 16725, - "loc": { - "start": { - "line": 427, - "column": 72 - }, - "end": { - "line": 427, - "column": 78 - } - }, - "extra": { - "rawValue": "west", - "raw": "'west'" - }, - "value": "west" - }, - { - "type": "StringLiteral", - "start": 16727, - "end": 16738, - "loc": { - "start": { - "line": 427, - "column": 80 - }, - "end": { - "line": 427, - "column": 91 - } - }, - "extra": { - "rawValue": "southwest", - "raw": "'southwest'" - }, - "value": "southwest" - }, - { - "type": "StringLiteral", - "start": 16740, - "end": 16747, - "loc": { - "start": { - "line": 427, - "column": 93 - }, - "end": { - "line": 427, - "column": 100 - } - }, - "extra": { - "rawValue": "south", - "raw": "'south'" - }, - "value": "south" - }, - { - "type": "StringLiteral", - "start": 16749, - "end": 16760, - "loc": { - "start": { - "line": 427, - "column": 102 - }, - "end": { - "line": 427, - "column": 113 - } - }, - "extra": { - "rawValue": "southeast", - "raw": "'southeast'" - }, - "value": "southeast" - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " 0 or 360 degrees: 'east'", - "start": 16416, - "end": 16443, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 419, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 45 degrees: 'northeast'", - "start": 16447, - "end": 16473, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 420, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " 90 degrees: 'north'", - "start": 16477, - "end": 16499, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 135 degrees: 'northwest'", - "start": 16503, - "end": 16530, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 180 degrees: 'west'", - "start": 16534, - "end": 16556, - "loc": { - "start": { - "line": 423, - "column": 2 - }, - "end": { - "line": 423, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 225 degrees: 'southwest'", - "start": 16560, - "end": 16587, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 424, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 270 degrees: 'south'", - "start": 16591, - "end": 16614, - "loc": { - "start": { - "line": 425, - "column": 2 - }, - "end": { - "line": 425, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " 315 degrees: 'southeast'", - "start": 16618, - "end": 16645, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 426, - "column": 29 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 16766, - "end": 16805, - "loc": { - "start": { - "line": 428, - "column": 2 - }, - "end": { - "line": 428, - "column": 41 - } - }, - "argument": { - "type": "MemberExpression", - "start": 16773, - "end": 16804, - "loc": { - "start": { - "line": 428, - "column": 9 - }, - "end": { - "line": 428, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 16773, - "end": 16790, - "loc": { - "start": { - "line": 428, - "column": 9 - }, - "end": { - "line": 428, - "column": 26 - }, - "identifierName": "compassDirections" - }, - "name": "compassDirections" - }, - "property": { - "type": "BinaryExpression", - "start": 16792, - "end": 16802, - "loc": { - "start": { - "line": 428, - "column": 28 - }, - "end": { - "line": 428, - "column": 38 - } - }, - "left": { - "type": "Identifier", - "start": 16792, - "end": 16798, - "loc": { - "start": { - "line": 428, - "column": 28 - }, - "end": { - "line": 428, - "column": 34 - }, - "identifierName": "degree" - }, - "name": "degree" - }, - "operator": "%", - "right": { - "type": "NumericLiteral", - "start": 16801, - "end": 16802, - "loc": { - "start": { - "line": 428, - "column": 37 - }, - "end": { - "line": 428, - "column": 38 - } - }, - "extra": { - "rawValue": 8, - "raw": "8" - }, - "value": 8 - }, - "extra": { - "parenthesized": true, - "parenStart": 16791 - } - }, - "computed": true - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the compass direction based on the given angle.\r\n\t *\r\n\t * @param {number} pAngle - The angle in radians.\r\n\t * @returns {string} The compass direction (e.g., 'east', 'southeast', 'south', etc.).\r\n\t *\r\n\t * @example\r\n\t * const angle = Math.PI / 4; // 45 degrees in radians\r\n\t * const direction = getDirection(angle); // Returns 'northeast'\r\n\t ", - "start": 15944, - "end": 16306, - "loc": { - "start": { - "line": 407, - "column": 1 - }, - "end": { - "line": 416, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the linear decay of a variable over time.\r\n\t *\r\n\t * @param {number} pInitialValue - The initial value of the variable.\r\n\t * @param {number} pCurrentTime - The current time at which to calculate the variable value.\r\n\t * @param {number} pMaxTime - The maximum time for the decay process.\r\n\t * @param {number} [pDecayRate=0.5] - The decay rate (default is 0.5).\r\n\t * @returns {number} The remaining value of the variable after linear decay.\r\n\t *\r\n\t * @example\r\n\t * const initialValue = 100;\r\n\t * const currentTime = 50;\r\n\t * const maxTime = 1000;\r\n\t * const decayRate = 0.3;\r\n\t * const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);\r\n\t * // Returns the remaining value after linear decay.\r\n\t ", - "start": 16812, - "end": 17553, - "loc": { - "start": { - "line": 430, - "column": 1 - }, - "end": { - "line": 446, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 17556, - "end": 17870, - "loc": { - "start": { - "line": 447, - "column": 1 - }, - "end": { - "line": 452, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17556, - "end": 17567, - "loc": { - "start": { - "line": 447, - "column": 1 - }, - "end": { - "line": 447, - "column": 12 - }, - "identifierName": "linearDecay" - }, - "name": "linearDecay", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 17568, - "end": 17581, - "loc": { - "start": { - "line": 447, - "column": 13 - }, - "end": { - "line": 447, - "column": 26 - }, - "identifierName": "pInitialValue" - }, - "name": "pInitialValue" - }, - { - "type": "Identifier", - "start": 17583, - "end": 17595, - "loc": { - "start": { - "line": 447, - "column": 28 - }, - "end": { - "line": 447, - "column": 40 - }, - "identifierName": "pCurrentTime" - }, - "name": "pCurrentTime" - }, - { - "type": "Identifier", - "start": 17597, - "end": 17605, - "loc": { - "start": { - "line": 447, - "column": 42 - }, - "end": { - "line": 447, - "column": 50 - }, - "identifierName": "pMaxTime" - }, - "name": "pMaxTime" - }, - { - "type": "AssignmentPattern", - "start": 17607, - "end": 17623, - "loc": { - "start": { - "line": 447, - "column": 52 - }, - "end": { - "line": 447, - "column": 68 - } - }, - "left": { - "type": "Identifier", - "start": 17607, - "end": 17617, - "loc": { - "start": { - "line": 447, - "column": 52 - }, - "end": { - "line": 447, - "column": 62 - }, - "identifierName": "pDecayRate" - }, - "name": "pDecayRate" - }, - "right": { - "type": "NumericLiteral", - "start": 17620, - "end": 17623, - "loc": { - "start": { - "line": 447, - "column": 65 - }, - "end": { - "line": 447, - "column": 68 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 17625, - "end": 17870, - "loc": { - "start": { - "line": 447, - "column": 70 - }, - "end": { - "line": 452, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 17685, - "end": 17740, - "loc": { - "start": { - "line": 449, - "column": 2 - }, - "end": { - "line": 449, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17691, - "end": 17739, - "loc": { - "start": { - "line": 449, - "column": 8 - }, - "end": { - "line": 449, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 17691, - "end": 17713, - "loc": { - "start": { - "line": 449, - "column": 8 - }, - "end": { - "line": 449, - "column": 30 - }, - "identifierName": "proportionOfTimePassed" - }, - "name": "proportionOfTimePassed", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 17716, - "end": 17739, - "loc": { - "start": { - "line": 449, - "column": 33 - }, - "end": { - "line": 449, - "column": 56 - } - }, - "left": { - "type": "Identifier", - "start": 17716, - "end": 17728, - "loc": { - "start": { - "line": 449, - "column": 33 - }, - "end": { - "line": 449, - "column": 45 - }, - "identifierName": "pCurrentTime" - }, - "name": "pCurrentTime" - }, - "operator": "/", - "right": { - "type": "Identifier", - "start": 17731, - "end": 17739, - "loc": { - "start": { - "line": 449, - "column": 48 - }, - "end": { - "line": 449, - "column": 56 - }, - "identifierName": "pMaxTime" - }, - "name": "pMaxTime" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " Calculate the variable value at the current time", - "start": 17630, - "end": 17681, - "loc": { - "start": { - "line": 448, - "column": 2 - }, - "end": { - "line": 448, - "column": 53 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 17744, - "end": 17840, - "loc": { - "start": { - "line": 450, - "column": 2 - }, - "end": { - "line": 450, - "column": 98 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 17750, - "end": 17839, - "loc": { - "start": { - "line": 450, - "column": 8 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "id": { - "type": "Identifier", - "start": 17750, - "end": 17764, - "loc": { - "start": { - "line": 450, - "column": 8 - }, - "end": { - "line": 450, - "column": 22 - }, - "identifierName": "remainingValue" - }, - "name": "remainingValue" - }, - "init": { - "type": "CallExpression", - "start": 17767, - "end": 17839, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 97 - } - }, - "callee": { - "type": "MemberExpression", - "start": 17767, - "end": 17775, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 17767, - "end": 17771, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 17772, - "end": 17775, - "loc": { - "start": { - "line": 450, - "column": 30 - }, - "end": { - "line": 450, - "column": 33 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 17776, - "end": 17835, - "loc": { - "start": { - "line": 450, - "column": 34 - }, - "end": { - "line": 450, - "column": 93 - } - }, - "left": { - "type": "Identifier", - "start": 17776, - "end": 17789, - "loc": { - "start": { - "line": 450, - "column": 34 - }, - "end": { - "line": 450, - "column": 47 - }, - "identifierName": "pInitialValue" - }, - "name": "pInitialValue" - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 17793, - "end": 17834, - "loc": { - "start": { - "line": 450, - "column": 51 - }, - "end": { - "line": 450, - "column": 92 - } - }, - "left": { - "type": "NumericLiteral", - "start": 17793, - "end": 17794, - "loc": { - "start": { - "line": 450, - "column": 51 - }, - "end": { - "line": 450, - "column": 52 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 17798, - "end": 17833, - "loc": { - "start": { - "line": 450, - "column": 56 - }, - "end": { - "line": 450, - "column": 91 - } - }, - "left": { - "type": "Identifier", - "start": 17798, - "end": 17820, - "loc": { - "start": { - "line": 450, - "column": 56 - }, - "end": { - "line": 450, - "column": 78 - }, - "identifierName": "proportionOfTimePassed" - }, - "name": "proportionOfTimePassed" - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 17823, - "end": 17833, - "loc": { - "start": { - "line": 450, - "column": 81 - }, - "end": { - "line": 450, - "column": 91 - }, - "identifierName": "pDecayRate" - }, - "name": "pDecayRate" - }, - "extra": { - "parenthesized": true, - "parenStart": 17797 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 17792 - } - } - }, - { - "type": "NumericLiteral", - "start": 17837, - "end": 17838, - "loc": { - "start": { - "line": 450, - "column": 95 - }, - "end": { - "line": 450, - "column": 96 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 17844, - "end": 17866, - "loc": { - "start": { - "line": 451, - "column": 2 - }, - "end": { - "line": 451, - "column": 24 - } - }, - "argument": { - "type": "Identifier", - "start": 17851, - "end": 17865, - "loc": { - "start": { - "line": 451, - "column": 9 - }, - "end": { - "line": 451, - "column": 23 - }, - "identifierName": "remainingValue" - }, - "name": "remainingValue" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the linear decay of a variable over time.\r\n\t *\r\n\t * @param {number} pInitialValue - The initial value of the variable.\r\n\t * @param {number} pCurrentTime - The current time at which to calculate the variable value.\r\n\t * @param {number} pMaxTime - The maximum time for the decay process.\r\n\t * @param {number} [pDecayRate=0.5] - The decay rate (default is 0.5).\r\n\t * @returns {number} The remaining value of the variable after linear decay.\r\n\t *\r\n\t * @example\r\n\t * const initialValue = 100;\r\n\t * const currentTime = 50;\r\n\t * const maxTime = 1000;\r\n\t * const decayRate = 0.3;\r\n\t * const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);\r\n\t * // Returns the remaining value after linear decay.\r\n\t ", - "start": 16812, - "end": 17553, - "loc": { - "start": { - "line": 430, - "column": 1 - }, - "end": { - "line": 446, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 17873, - "end": 18006, - "loc": { - "start": { - "line": 453, - "column": 1 - }, - "end": { - "line": 458, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 18009, - "end": 18434, - "loc": { - "start": { - "line": 459, - "column": 1 - }, - "end": { - "line": 474, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 18009, - "end": 18019, - "loc": { - "start": { - "line": 459, - "column": 1 - }, - "end": { - "line": 459, - "column": 11 - }, - "identifierName": "generateID" - }, - "name": "generateID", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 18020, - "end": 18033, - "loc": { - "start": { - "line": 459, - "column": 12 - }, - "end": { - "line": 459, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 18020, - "end": 18029, - "loc": { - "start": { - "line": 459, - "column": 12 - }, - "end": { - "line": 459, - "column": 21 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - }, - "right": { - "type": "NumericLiteral", - "start": 18032, - "end": 18033, - "loc": { - "start": { - "line": 459, - "column": 24 - }, - "end": { - "line": 459, - "column": 25 - } - }, - "extra": { - "rawValue": 7, - "raw": "7" - }, - "value": 7 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 18035, - "end": 18434, - "loc": { - "start": { - "line": 459, - "column": 27 - }, - "end": { - "line": 474, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 18040, - "end": 18119, - "loc": { - "start": { - "line": 460, - "column": 2 - }, - "end": { - "line": 460, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18046, - "end": 18118, - "loc": { - "start": { - "line": 460, - "column": 8 - }, - "end": { - "line": 460, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 18046, - "end": 18051, - "loc": { - "start": { - "line": 460, - "column": 8 - }, - "end": { - "line": 460, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 18054, - "end": 18118, - "loc": { - "start": { - "line": 460, - "column": 16 - }, - "end": { - "line": 460, - "column": 80 - } - }, - "extra": { - "rawValue": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "raw": "'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'" - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18123, - "end": 18302, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 467, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18129, - "end": 18302, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 467, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 18129, - "end": 18135, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "init": { - "type": "FunctionExpression", - "start": 18138, - "end": 18302, - "loc": { - "start": { - "line": 461, - "column": 17 - }, - "end": { - "line": 467, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 18149, - "end": 18302, - "loc": { - "start": { - "line": 461, - "column": 28 - }, - "end": { - "line": 467, - "column": 3 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 18155, - "end": 18167, - "loc": { - "start": { - "line": 462, - "column": 3 - }, - "end": { - "line": 462, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18159, - "end": 18166, - "loc": { - "start": { - "line": 462, - "column": 7 - }, - "end": { - "line": 462, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 18159, - "end": 18161, - "loc": { - "start": { - "line": 462, - "column": 7 - }, - "end": { - "line": 462, - "column": 9 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "StringLiteral", - "start": 18164, - "end": 18166, - "loc": { - "start": { - "line": 462, - "column": 12 - }, - "end": { - "line": 462, - "column": 14 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 18172, - "end": 18282, - "loc": { - "start": { - "line": 463, - "column": 3 - }, - "end": { - "line": 465, - "column": 4 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 18177, - "end": 18186, - "loc": { - "start": { - "line": 463, - "column": 8 - }, - "end": { - "line": 463, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18181, - "end": 18186, - "loc": { - "start": { - "line": 463, - "column": 12 - }, - "end": { - "line": 463, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 18181, - "end": 18182, - "loc": { - "start": { - "line": 463, - "column": 12 - }, - "end": { - "line": 463, - "column": 13 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 18185, - "end": 18186, - "loc": { - "start": { - "line": 463, - "column": 16 - }, - "end": { - "line": 463, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 18188, - "end": 18201, - "loc": { - "start": { - "line": 463, - "column": 19 - }, - "end": { - "line": 463, - "column": 32 - } - }, - "left": { - "type": "Identifier", - "start": 18188, - "end": 18189, - "loc": { - "start": { - "line": 463, - "column": 19 - }, - "end": { - "line": 463, - "column": 20 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "Identifier", - "start": 18192, - "end": 18201, - "loc": { - "start": { - "line": 463, - "column": 23 - }, - "end": { - "line": 463, - "column": 32 - }, - "identifierName": "pIDLength" - }, - "name": "pIDLength" - } - }, - "update": { - "type": "UpdateExpression", - "start": 18203, - "end": 18206, - "loc": { - "start": { - "line": 463, - "column": 34 - }, - "end": { - "line": 463, - "column": 37 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 18203, - "end": 18204, - "loc": { - "start": { - "line": 463, - "column": 34 - }, - "end": { - "line": 463, - "column": 35 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 18208, - "end": 18282, - "loc": { - "start": { - "line": 463, - "column": 39 - }, - "end": { - "line": 465, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18215, - "end": 18276, - "loc": { - "start": { - "line": 464, - "column": 4 - }, - "end": { - "line": 464, - "column": 65 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18215, - "end": 18275, - "loc": { - "start": { - "line": 464, - "column": 4 - }, - "end": { - "line": 464, - "column": 64 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 18215, - "end": 18217, - "loc": { - "start": { - "line": 464, - "column": 4 - }, - "end": { - "line": 464, - "column": 6 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 18221, - "end": 18275, - "loc": { - "start": { - "line": 464, - "column": 10 - }, - "end": { - "line": 464, - "column": 64 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18221, - "end": 18233, - "loc": { - "start": { - "line": 464, - "column": 10 - }, - "end": { - "line": 464, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 18221, - "end": 18226, - "loc": { - "start": { - "line": 464, - "column": 10 - }, - "end": { - "line": 464, - "column": 15 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 18227, - "end": 18233, - "loc": { - "start": { - "line": 464, - "column": 16 - }, - "end": { - "line": 464, - "column": 22 - }, - "identifierName": "charAt" - }, - "name": "charAt" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 18234, - "end": 18274, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 63 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18234, - "end": 18244, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 18234, - "end": 18238, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 18239, - "end": 18244, - "loc": { - "start": { - "line": 464, - "column": 28 - }, - "end": { - "line": 464, - "column": 33 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 18245, - "end": 18273, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 62 - } - }, - "left": { - "type": "CallExpression", - "start": 18245, - "end": 18258, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18245, - "end": 18256, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 18245, - "end": 18249, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 38 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 18250, - "end": 18256, - "loc": { - "start": { - "line": 464, - "column": 39 - }, - "end": { - "line": 464, - "column": 45 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 18261, - "end": 18273, - "loc": { - "start": { - "line": 464, - "column": 50 - }, - "end": { - "line": 464, - "column": 62 - } - }, - "object": { - "type": "Identifier", - "start": 18261, - "end": 18266, - "loc": { - "start": { - "line": 464, - "column": 50 - }, - "end": { - "line": 464, - "column": 55 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "Identifier", - "start": 18267, - "end": 18273, - "loc": { - "start": { - "line": 464, - "column": 56 - }, - "end": { - "line": 464, - "column": 62 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - } - ] - } - ] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 18287, - "end": 18297, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 466, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 18294, - "end": 18296, - "loc": { - "start": { - "line": 466, - "column": 10 - }, - "end": { - "line": 466, - "column": 12 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 18306, - "end": 18324, - "loc": { - "start": { - "line": 468, - "column": 2 - }, - "end": { - "line": 468, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18310, - "end": 18323, - "loc": { - "start": { - "line": 468, - "column": 6 - }, - "end": { - "line": 468, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 18310, - "end": 18312, - "loc": { - "start": { - "line": 468, - "column": 6 - }, - "end": { - "line": 468, - "column": 8 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "init": { - "type": "CallExpression", - "start": 18315, - "end": 18323, - "loc": { - "start": { - "line": 468, - "column": 11 - }, - "end": { - "line": 468, - "column": 19 - } - }, - "callee": { - "type": "Identifier", - "start": 18315, - "end": 18321, - "loc": { - "start": { - "line": 468, - "column": 11 - }, - "end": { - "line": 468, - "column": 17 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - ], - "kind": "let" - }, - { - "type": "WhileStatement", - "start": 18328, - "end": 18388, - "loc": { - "start": { - "line": 469, - "column": 2 - }, - "end": { - "line": 471, - "column": 3 - } - }, - "test": { - "type": "CallExpression", - "start": 18334, - "end": 18361, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 35 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18334, - "end": 18357, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 18334, - "end": 18348, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 18334, - "end": 18338, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 18339, - "end": 18348, - "loc": { - "start": { - "line": 469, - "column": 13 - }, - "end": { - "line": 469, - "column": 22 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18349, - "end": 18357, - "loc": { - "start": { - "line": 469, - "column": 23 - }, - "end": { - "line": 469, - "column": 31 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18358, - "end": 18360, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 469, - "column": 34 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - }, - "body": { - "type": "BlockStatement", - "start": 18363, - "end": 18388, - "loc": { - "start": { - "line": 469, - "column": 37 - }, - "end": { - "line": 471, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18369, - "end": 18383, - "loc": { - "start": { - "line": 470, - "column": 3 - }, - "end": { - "line": 470, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 18369, - "end": 18382, - "loc": { - "start": { - "line": 470, - "column": 3 - }, - "end": { - "line": 470, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 18369, - "end": 18371, - "loc": { - "start": { - "line": 470, - "column": 3 - }, - "end": { - "line": 470, - "column": 5 - }, - "identifierName": "ID" - }, - "name": "ID" - }, - "right": { - "type": "CallExpression", - "start": 18374, - "end": 18382, - "loc": { - "start": { - "line": 470, - "column": 8 - }, - "end": { - "line": 470, - "column": 16 - } - }, - "callee": { - "type": "Identifier", - "start": 18374, - "end": 18380, - "loc": { - "start": { - "line": 470, - "column": 8 - }, - "end": { - "line": 470, - "column": 14 - }, - "identifierName": "makeID" - }, - "name": "makeID" - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 18392, - "end": 18416, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 26 - } - }, - "expression": { - "type": "CallExpression", - "start": 18392, - "end": 18415, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18392, - "end": 18411, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 21 - } - }, - "object": { - "type": "MemberExpression", - "start": 18392, - "end": 18406, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 16 - } - }, - "object": { - "type": "ThisExpression", - "start": 18392, - "end": 18396, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 18397, - "end": 18406, - "loc": { - "start": { - "line": 472, - "column": 7 - }, - "end": { - "line": 472, - "column": 16 - }, - "identifierName": "storedIDs" - }, - "name": "storedIDs" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 18407, - "end": 18411, - "loc": { - "start": { - "line": 472, - "column": 17 - }, - "end": { - "line": 472, - "column": 21 - }, - "identifierName": "push" - }, - "name": "push" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 18412, - "end": 18414, - "loc": { - "start": { - "line": 472, - "column": 22 - }, - "end": { - "line": 472, - "column": 24 - }, - "identifierName": "ID" - }, - "name": "ID" - } - ] - } - }, - { - "type": "ReturnStatement", - "start": 18420, - "end": 18430, - "loc": { - "start": { - "line": 473, - "column": 2 - }, - "end": { - "line": 473, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 18427, - "end": 18429, - "loc": { - "start": { - "line": 473, - "column": 9 - }, - "end": { - "line": 473, - "column": 11 - }, - "identifierName": "ID" - }, - "name": "ID" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 17873, - "end": 18006, - "loc": { - "start": { - "line": 453, - "column": 1 - }, - "end": { - "line": 458, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 18437, - "end": 18690, - "loc": { - "start": { - "line": 475, - "column": 1 - }, - "end": { - "line": 481, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 18693, - "end": 18826, - "loc": { - "start": { - "line": 482, - "column": 1 - }, - "end": { - "line": 484, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 18693, - "end": 18705, - "loc": { - "start": { - "line": 482, - "column": 1 - }, - "end": { - "line": 482, - "column": 13 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 18706, - "end": 18714, - "loc": { - "start": { - "line": 482, - "column": 14 - }, - "end": { - "line": 482, - "column": 22 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - { - "type": "AssignmentPattern", - "start": 18716, - "end": 18726, - "loc": { - "start": { - "line": 482, - "column": 24 - }, - "end": { - "line": 482, - "column": 34 - } - }, - "left": { - "type": "Identifier", - "start": 18716, - "end": 18722, - "loc": { - "start": { - "line": 482, - "column": 24 - }, - "end": { - "line": 482, - "column": 30 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "right": { - "type": "NumericLiteral", - "start": 18725, - "end": 18726, - "loc": { - "start": { - "line": 482, - "column": 33 - }, - "end": { - "line": 482, - "column": 34 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 18728, - "end": 18826, - "loc": { - "start": { - "line": 482, - "column": 36 - }, - "end": { - "line": 484, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 18733, - "end": 18822, - "loc": { - "start": { - "line": 483, - "column": 2 - }, - "end": { - "line": 483, - "column": 91 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 18740, - "end": 18821, - "loc": { - "start": { - "line": 483, - "column": 9 - }, - "end": { - "line": 483, - "column": 90 - } - }, - "left": { - "type": "StringLiteral", - "start": 18740, - "end": 18743, - "loc": { - "start": { - "line": 483, - "column": 9 - }, - "end": { - "line": 483, - "column": 12 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 18746, - "end": 18821, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18746, - "end": 18819, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 88 - } - }, - "object": { - "type": "CallExpression", - "start": 18746, - "end": 18807, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 76 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18746, - "end": 18798, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 67 - } - }, - "object": { - "type": "CallExpression", - "start": 18746, - "end": 18792, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18746, - "end": 18788, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 57 - } - }, - "object": { - "type": "BinaryExpression", - "start": 18747, - "end": 18778, - "loc": { - "start": { - "line": 483, - "column": 16 - }, - "end": { - "line": 483, - "column": 47 - } - }, - "left": { - "type": "Identifier", - "start": 18747, - "end": 18755, - "loc": { - "start": { - "line": 483, - "column": 16 - }, - "end": { - "line": 483, - "column": 24 - }, - "identifierName": "pDecimal" - }, - "name": "pDecimal" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 18758, - "end": 18778, - "loc": { - "start": { - "line": 483, - "column": 27 - }, - "end": { - "line": 483, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 18758, - "end": 18766, - "loc": { - "start": { - "line": 483, - "column": 27 - }, - "end": { - "line": 483, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 18758, - "end": 18762, - "loc": { - "start": { - "line": 483, - "column": 27 - }, - "end": { - "line": 483, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 18763, - "end": 18766, - "loc": { - "start": { - "line": 483, - "column": 32 - }, - "end": { - "line": 483, - "column": 35 - }, - "identifierName": "pow" - }, - "name": "pow" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 18767, - "end": 18769, - "loc": { - "start": { - "line": 483, - "column": 36 - }, - "end": { - "line": 483, - "column": 38 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - }, - { - "type": "Identifier", - "start": 18771, - "end": 18777, - "loc": { - "start": { - "line": 483, - "column": 40 - }, - "end": { - "line": 483, - "column": 46 - }, - "identifierName": "pChars" - }, - "name": "pChars" - } - ] - }, - "extra": { - "parenthesized": true, - "parenStart": 18746 - } - }, - "property": { - "type": "Identifier", - "start": 18780, - "end": 18788, - "loc": { - "start": { - "line": 483, - "column": 49 - }, - "end": { - "line": 483, - "column": 57 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 18789, - "end": 18791, - "loc": { - "start": { - "line": 483, - "column": 58 - }, - "end": { - "line": 483, - "column": 60 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 18793, - "end": 18798, - "loc": { - "start": { - "line": 483, - "column": 62 - }, - "end": { - "line": 483, - "column": 67 - }, - "identifierName": "slice" - }, - "name": "slice" - }, - "computed": false - }, - "arguments": [ - { - "type": "UnaryExpression", - "start": 18799, - "end": 18806, - "loc": { - "start": { - "line": 483, - "column": 68 - }, - "end": { - "line": 483, - "column": 75 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 18800, - "end": 18806, - "loc": { - "start": { - "line": 483, - "column": 69 - }, - "end": { - "line": 483, - "column": 75 - }, - "identifierName": "pChars" - }, - "name": "pChars" - }, - "extra": { - "parenthesizedArgument": false - } - } - ] - }, - "property": { - "type": "Identifier", - "start": 18808, - "end": 18819, - "loc": { - "start": { - "line": 483, - "column": 77 - }, - "end": { - "line": 483, - "column": 88 - }, - "identifierName": "toUpperCase" - }, - "name": "toUpperCase" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 18437, - "end": 18690, - "loc": { - "start": { - "line": 475, - "column": 1 - }, - "end": { - "line": 481, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 18829, - "end": 19081, - "loc": { - "start": { - "line": 485, - "column": 1 - }, - "end": { - "line": 491, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19084, - "end": 19634, - "loc": { - "start": { - "line": 492, - "column": 1 - }, - "end": { - "line": 505, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19084, - "end": 19096, - "loc": { - "start": { - "line": 492, - "column": 1 - }, - "end": { - "line": 492, - "column": 13 - }, - "identifierName": "addIntensity" - }, - "name": "addIntensity", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19097, - "end": 19103, - "loc": { - "start": { - "line": 492, - "column": 14 - }, - "end": { - "line": 492, - "column": 20 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - { - "type": "Identifier", - "start": 19105, - "end": 19113, - "loc": { - "start": { - "line": 492, - "column": 22 - }, - "end": { - "line": 492, - "column": 30 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - } - ], - "body": { - "type": "BlockStatement", - "start": 19115, - "end": 19634, - "loc": { - "start": { - "line": 492, - "column": 32 - }, - "end": { - "line": 505, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 19120, - "end": 19164, - "loc": { - "start": { - "line": 493, - "column": 2 - }, - "end": { - "line": 493, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19126, - "end": 19163, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 19126, - "end": 19129, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 11 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": { - "type": "MemberExpression", - "start": 19132, - "end": 19163, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 45 - } - }, - "object": { - "type": "CallExpression", - "start": 19132, - "end": 19154, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19132, - "end": 19146, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 28 - } - }, - "object": { - "type": "ThisExpression", - "start": 19132, - "end": 19136, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 19137, - "end": 19146, - "loc": { - "start": { - "line": 493, - "column": 19 - }, - "end": { - "line": 493, - "column": 28 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19147, - "end": 19153, - "loc": { - "start": { - "line": 493, - "column": 29 - }, - "end": { - "line": 493, - "column": 35 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 19155, - "end": 19163, - "loc": { - "start": { - "line": 493, - "column": 37 - }, - "end": { - "line": 493, - "column": 45 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19168, - "end": 19185, - "loc": { - "start": { - "line": 494, - "column": 2 - }, - "end": { - "line": 494, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19174, - "end": 19184, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 19174, - "end": 19175, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "MemberExpression", - "start": 19178, - "end": 19184, - "loc": { - "start": { - "line": 494, - "column": 12 - }, - "end": { - "line": 494, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 19178, - "end": 19181, - "loc": { - "start": { - "line": 494, - "column": 12 - }, - "end": { - "line": 494, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 19182, - "end": 19183, - "loc": { - "start": { - "line": 494, - "column": 16 - }, - "end": { - "line": 494, - "column": 17 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19189, - "end": 19206, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 495, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19195, - "end": 19205, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 19195, - "end": 19196, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "MemberExpression", - "start": 19199, - "end": 19205, - "loc": { - "start": { - "line": 495, - "column": 12 - }, - "end": { - "line": 495, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 19199, - "end": 19202, - "loc": { - "start": { - "line": 495, - "column": 12 - }, - "end": { - "line": 495, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 19203, - "end": 19204, - "loc": { - "start": { - "line": 495, - "column": 16 - }, - "end": { - "line": 495, - "column": 17 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19210, - "end": 19227, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 496, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19216, - "end": 19226, - "loc": { - "start": { - "line": 496, - "column": 8 - }, - "end": { - "line": 496, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 19216, - "end": 19217, - "loc": { - "start": { - "line": 496, - "column": 8 - }, - "end": { - "line": 496, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "MemberExpression", - "start": 19220, - "end": 19226, - "loc": { - "start": { - "line": 496, - "column": 12 - }, - "end": { - "line": 496, - "column": 18 - } - }, - "object": { - "type": "Identifier", - "start": 19220, - "end": 19223, - "loc": { - "start": { - "line": 496, - "column": 12 - }, - "end": { - "line": 496, - "column": 15 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 19224, - "end": 19225, - "loc": { - "start": { - "line": 496, - "column": 16 - }, - "end": { - "line": 496, - "column": 17 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 19231, - "end": 19242, - "loc": { - "start": { - "line": 497, - "column": 2 - }, - "end": { - "line": 497, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19235, - "end": 19241, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 19235, - "end": 19237, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 8 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "init": { - "type": "NumericLiteral", - "start": 19240, - "end": 19241, - "loc": { - "start": { - "line": 497, - "column": 11 - }, - "end": { - "line": 497, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 19246, - "end": 19257, - "loc": { - "start": { - "line": 498, - "column": 2 - }, - "end": { - "line": 498, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19250, - "end": 19256, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 19250, - "end": 19252, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 8 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "init": { - "type": "NumericLiteral", - "start": 19255, - "end": 19256, - "loc": { - "start": { - "line": 498, - "column": 11 - }, - "end": { - "line": 498, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 19261, - "end": 19272, - "loc": { - "start": { - "line": 499, - "column": 2 - }, - "end": { - "line": 499, - "column": 13 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19265, - "end": 19271, - "loc": { - "start": { - "line": 499, - "column": 6 - }, - "end": { - "line": 499, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 19265, - "end": 19267, - "loc": { - "start": { - "line": 499, - "column": 6 - }, - "end": { - "line": 499, - "column": 8 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "init": { - "type": "NumericLiteral", - "start": 19270, - "end": 19271, - "loc": { - "start": { - "line": 499, - "column": 11 - }, - "end": { - "line": 499, - "column": 12 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 19276, - "end": 19337, - "loc": { - "start": { - "line": 500, - "column": 2 - }, - "end": { - "line": 500, - "column": 63 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19282, - "end": 19336, - "loc": { - "start": { - "line": 500, - "column": 8 - }, - "end": { - "line": 500, - "column": 62 - } - }, - "id": { - "type": "Identifier", - "start": 19282, - "end": 19287, - "loc": { - "start": { - "line": 500, - "column": 8 - }, - "end": { - "line": 500, - "column": 13 - }, - "identifierName": "black" - }, - "name": "black" - }, - "init": { - "type": "ConditionalExpression", - "start": 19290, - "end": 19336, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 19291, - "end": 19320, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 46 - } - }, - "left": { - "type": "LogicalExpression", - "start": 19291, - "end": 19309, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 35 - } - }, - "left": { - "type": "BinaryExpression", - "start": 19291, - "end": 19298, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 19291, - "end": 19292, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 18 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 19297, - "end": 19298, - "loc": { - "start": { - "line": 500, - "column": 23 - }, - "end": { - "line": 500, - "column": 24 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 19302, - "end": 19309, - "loc": { - "start": { - "line": 500, - "column": 28 - }, - "end": { - "line": 500, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 19302, - "end": 19303, - "loc": { - "start": { - "line": 500, - "column": 28 - }, - "end": { - "line": 500, - "column": 29 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 19308, - "end": 19309, - "loc": { - "start": { - "line": 500, - "column": 34 - }, - "end": { - "line": 500, - "column": 35 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 19313, - "end": 19320, - "loc": { - "start": { - "line": 500, - "column": 39 - }, - "end": { - "line": 500, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 19313, - "end": 19314, - "loc": { - "start": { - "line": 500, - "column": 39 - }, - "end": { - "line": 500, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 19319, - "end": 19320, - "loc": { - "start": { - "line": 500, - "column": 45 - }, - "end": { - "line": 500, - "column": 46 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - }, - "extra": { - "parenthesized": true, - "parenStart": 19290 - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 19324, - "end": 19328, - "loc": { - "start": { - "line": 500, - "column": 50 - }, - "end": { - "line": 500, - "column": 54 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 19331, - "end": 19336, - "loc": { - "start": { - "line": 500, - "column": 57 - }, - "end": { - "line": 500, - "column": 62 - } - }, - "value": false - } - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 19341, - "end": 19401, - "loc": { - "start": { - "line": 501, - "column": 2 - }, - "end": { - "line": 501, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 19345, - "end": 19355, - "loc": { - "start": { - "line": 501, - "column": 6 - }, - "end": { - "line": 501, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 19345, - "end": 19346, - "loc": { - "start": { - "line": 501, - "column": 6 - }, - "end": { - "line": 501, - "column": 7 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 19350, - "end": 19355, - "loc": { - "start": { - "line": 501, - "column": 11 - }, - "end": { - "line": 501, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 19357, - "end": 19401, - "loc": { - "start": { - "line": 501, - "column": 18 - }, - "end": { - "line": 501, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 19357, - "end": 19400, - "loc": { - "start": { - "line": 501, - "column": 18 - }, - "end": { - "line": 501, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 19357, - "end": 19359, - "loc": { - "start": { - "line": 501, - "column": 18 - }, - "end": { - "line": 501, - "column": 20 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - "right": { - "type": "BinaryExpression", - "start": 19362, - "end": 19400, - "loc": { - "start": { - "line": 501, - "column": 23 - }, - "end": { - "line": 501, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 19362, - "end": 19363, - "loc": { - "start": { - "line": 501, - "column": 23 - }, - "end": { - "line": 501, - "column": 24 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 19366, - "end": 19400, - "loc": { - "start": { - "line": 501, - "column": 27 - }, - "end": { - "line": 501, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19366, - "end": 19376, - "loc": { - "start": { - "line": 501, - "column": 27 - }, - "end": { - "line": 501, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 19366, - "end": 19370, - "loc": { - "start": { - "line": 501, - "column": 27 - }, - "end": { - "line": 501, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 19371, - "end": 19376, - "loc": { - "start": { - "line": 501, - "column": 32 - }, - "end": { - "line": 501, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 19377, - "end": 19399, - "loc": { - "start": { - "line": 501, - "column": 38 - }, - "end": { - "line": 501, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 19378, - "end": 19392, - "loc": { - "start": { - "line": 501, - "column": 39 - }, - "end": { - "line": 501, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 19378, - "end": 19381, - "loc": { - "start": { - "line": 501, - "column": 39 - }, - "end": { - "line": 501, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 19384, - "end": 19392, - "loc": { - "start": { - "line": 501, - "column": 45 - }, - "end": { - "line": 501, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 19377 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 19396, - "end": 19399, - "loc": { - "start": { - "line": 501, - "column": 57 - }, - "end": { - "line": 501, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 19405, - "end": 19465, - "loc": { - "start": { - "line": 502, - "column": 2 - }, - "end": { - "line": 502, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 19409, - "end": 19419, - "loc": { - "start": { - "line": 502, - "column": 6 - }, - "end": { - "line": 502, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 19409, - "end": 19410, - "loc": { - "start": { - "line": 502, - "column": 6 - }, - "end": { - "line": 502, - "column": 7 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 19414, - "end": 19419, - "loc": { - "start": { - "line": 502, - "column": 11 - }, - "end": { - "line": 502, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 19421, - "end": 19465, - "loc": { - "start": { - "line": 502, - "column": 18 - }, - "end": { - "line": 502, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 19421, - "end": 19464, - "loc": { - "start": { - "line": 502, - "column": 18 - }, - "end": { - "line": 502, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 19421, - "end": 19423, - "loc": { - "start": { - "line": 502, - "column": 18 - }, - "end": { - "line": 502, - "column": 20 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - "right": { - "type": "BinaryExpression", - "start": 19426, - "end": 19464, - "loc": { - "start": { - "line": 502, - "column": 23 - }, - "end": { - "line": 502, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 19426, - "end": 19427, - "loc": { - "start": { - "line": 502, - "column": 23 - }, - "end": { - "line": 502, - "column": 24 - }, - "identifierName": "g" - }, - "name": "g" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 19430, - "end": 19464, - "loc": { - "start": { - "line": 502, - "column": 27 - }, - "end": { - "line": 502, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19430, - "end": 19440, - "loc": { - "start": { - "line": 502, - "column": 27 - }, - "end": { - "line": 502, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 19430, - "end": 19434, - "loc": { - "start": { - "line": 502, - "column": 27 - }, - "end": { - "line": 502, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 19435, - "end": 19440, - "loc": { - "start": { - "line": 502, - "column": 32 - }, - "end": { - "line": 502, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 19441, - "end": 19463, - "loc": { - "start": { - "line": 502, - "column": 38 - }, - "end": { - "line": 502, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 19442, - "end": 19456, - "loc": { - "start": { - "line": 502, - "column": 39 - }, - "end": { - "line": 502, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 19442, - "end": 19445, - "loc": { - "start": { - "line": 502, - "column": 39 - }, - "end": { - "line": 502, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 19448, - "end": 19456, - "loc": { - "start": { - "line": 502, - "column": 45 - }, - "end": { - "line": 502, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 19441 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 19460, - "end": 19463, - "loc": { - "start": { - "line": 502, - "column": 57 - }, - "end": { - "line": 502, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 19469, - "end": 19529, - "loc": { - "start": { - "line": 503, - "column": 2 - }, - "end": { - "line": 503, - "column": 62 - } - }, - "test": { - "type": "LogicalExpression", - "start": 19473, - "end": 19483, - "loc": { - "start": { - "line": 503, - "column": 6 - }, - "end": { - "line": 503, - "column": 16 - } - }, - "left": { - "type": "Identifier", - "start": 19473, - "end": 19474, - "loc": { - "start": { - "line": 503, - "column": 6 - }, - "end": { - "line": 503, - "column": 7 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 19478, - "end": 19483, - "loc": { - "start": { - "line": 503, - "column": 11 - }, - "end": { - "line": 503, - "column": 16 - }, - "identifierName": "black" - }, - "name": "black" - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 19485, - "end": 19529, - "loc": { - "start": { - "line": 503, - "column": 18 - }, - "end": { - "line": 503, - "column": 62 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 19485, - "end": 19528, - "loc": { - "start": { - "line": 503, - "column": 18 - }, - "end": { - "line": 503, - "column": 61 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 19485, - "end": 19487, - "loc": { - "start": { - "line": 503, - "column": 18 - }, - "end": { - "line": 503, - "column": 20 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - "right": { - "type": "BinaryExpression", - "start": 19490, - "end": 19528, - "loc": { - "start": { - "line": 503, - "column": 23 - }, - "end": { - "line": 503, - "column": 61 - } - }, - "left": { - "type": "Identifier", - "start": 19490, - "end": 19491, - "loc": { - "start": { - "line": 503, - "column": 23 - }, - "end": { - "line": 503, - "column": 24 - }, - "identifierName": "b" - }, - "name": "b" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 19494, - "end": 19528, - "loc": { - "start": { - "line": 503, - "column": 27 - }, - "end": { - "line": 503, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19494, - "end": 19504, - "loc": { - "start": { - "line": 503, - "column": 27 - }, - "end": { - "line": 503, - "column": 37 - } - }, - "object": { - "type": "Identifier", - "start": 19494, - "end": 19498, - "loc": { - "start": { - "line": 503, - "column": 27 - }, - "end": { - "line": 503, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 19499, - "end": 19504, - "loc": { - "start": { - "line": 503, - "column": 32 - }, - "end": { - "line": 503, - "column": 37 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 19505, - "end": 19527, - "loc": { - "start": { - "line": 503, - "column": 38 - }, - "end": { - "line": 503, - "column": 60 - } - }, - "left": { - "type": "BinaryExpression", - "start": 19506, - "end": 19520, - "loc": { - "start": { - "line": 503, - "column": 39 - }, - "end": { - "line": 503, - "column": 53 - } - }, - "left": { - "type": "NumericLiteral", - "start": 19506, - "end": 19509, - "loc": { - "start": { - "line": 503, - "column": 39 - }, - "end": { - "line": 503, - "column": 42 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - }, - "operator": "*", - "right": { - "type": "Identifier", - "start": 19512, - "end": 19520, - "loc": { - "start": { - "line": 503, - "column": 45 - }, - "end": { - "line": 503, - "column": 53 - }, - "identifierName": "pPercent" - }, - "name": "pPercent" - }, - "extra": { - "parenthesized": true, - "parenStart": 19505 - } - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 19524, - "end": 19527, - "loc": { - "start": { - "line": 503, - "column": 57 - }, - "end": { - "line": 503, - "column": 60 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - } - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 19533, - "end": 19630, - "loc": { - "start": { - "line": 504, - "column": 2 - }, - "end": { - "line": 504, - "column": 99 - } - }, - "argument": { - "type": "MemberExpression", - "start": 19540, - "end": 19630, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 99 - } - }, - "object": { - "type": "CallExpression", - "start": 19540, - "end": 19626, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19540, - "end": 19554, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 19540, - "end": 19544, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 19545, - "end": 19554, - "loc": { - "start": { - "line": 504, - "column": 14 - }, - "end": { - "line": 504, - "column": 23 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 19555, - "end": 19577, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19555, - "end": 19565, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 34 - } - }, - "object": { - "type": "ThisExpression", - "start": 19555, - "end": 19559, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 19560, - "end": 19565, - "loc": { - "start": { - "line": 504, - "column": 29 - }, - "end": { - "line": 504, - "column": 34 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19566, - "end": 19568, - "loc": { - "start": { - "line": 504, - "column": 35 - }, - "end": { - "line": 504, - "column": 37 - }, - "identifierName": "rr" - }, - "name": "rr" - }, - { - "type": "NumericLiteral", - "start": 19570, - "end": 19571, - "loc": { - "start": { - "line": 504, - "column": 39 - }, - "end": { - "line": 504, - "column": 40 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 19573, - "end": 19576, - "loc": { - "start": { - "line": 504, - "column": 42 - }, - "end": { - "line": 504, - "column": 45 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 19579, - "end": 19601, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 70 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19579, - "end": 19589, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 19579, - "end": 19583, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 52 - } - } - }, - "property": { - "type": "Identifier", - "start": 19584, - "end": 19589, - "loc": { - "start": { - "line": 504, - "column": 53 - }, - "end": { - "line": 504, - "column": 58 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19590, - "end": 19592, - "loc": { - "start": { - "line": 504, - "column": 59 - }, - "end": { - "line": 504, - "column": 61 - }, - "identifierName": "rg" - }, - "name": "rg" - }, - { - "type": "NumericLiteral", - "start": 19594, - "end": 19595, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 19597, - "end": 19600, - "loc": { - "start": { - "line": 504, - "column": 66 - }, - "end": { - "line": 504, - "column": 69 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - }, - { - "type": "CallExpression", - "start": 19603, - "end": 19625, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19603, - "end": 19613, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 82 - } - }, - "object": { - "type": "ThisExpression", - "start": 19603, - "end": 19607, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 76 - } - } - }, - "property": { - "type": "Identifier", - "start": 19608, - "end": 19613, - "loc": { - "start": { - "line": 504, - "column": 77 - }, - "end": { - "line": 504, - "column": 82 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19614, - "end": 19616, - "loc": { - "start": { - "line": 504, - "column": 83 - }, - "end": { - "line": 504, - "column": 85 - }, - "identifierName": "rb" - }, - "name": "rb" - }, - { - "type": "NumericLiteral", - "start": 19618, - "end": 19619, - "loc": { - "start": { - "line": 504, - "column": 87 - }, - "end": { - "line": 504, - "column": 88 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 19621, - "end": 19624, - "loc": { - "start": { - "line": 504, - "column": 90 - }, - "end": { - "line": 504, - "column": 93 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - ] - }, - "property": { - "type": "Identifier", - "start": 19627, - "end": 19630, - "loc": { - "start": { - "line": 504, - "column": 96 - }, - "end": { - "line": 504, - "column": 99 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 18829, - "end": 19081, - "loc": { - "start": { - "line": 485, - "column": 1 - }, - "end": { - "line": 491, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 19637, - "end": 19945, - "loc": { - "start": { - "line": 506, - "column": 1 - }, - "end": { - "line": 512, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19948, - "end": 20256, - "loc": { - "start": { - "line": 513, - "column": 1 - }, - "end": { - "line": 522, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19948, - "end": 19956, - "loc": { - "start": { - "line": 513, - "column": 1 - }, - "end": { - "line": 513, - "column": 9 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 19957, - "end": 19959, - "loc": { - "start": { - "line": 513, - "column": 10 - }, - "end": { - "line": 513, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 19961, - "end": 19963, - "loc": { - "start": { - "line": 513, - "column": 14 - }, - "end": { - "line": 513, - "column": 16 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 19965, - "end": 19967, - "loc": { - "start": { - "line": 513, - "column": 18 - }, - "end": { - "line": 513, - "column": 20 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 19969, - "end": 20256, - "loc": { - "start": { - "line": 513, - "column": 22 - }, - "end": { - "line": 522, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 19974, - "end": 20007, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 19980, - "end": 20006, - "loc": { - "start": { - "line": 514, - "column": 8 - }, - "end": { - "line": 514, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 19980, - "end": 19981, - "loc": { - "start": { - "line": 514, - "column": 8 - }, - "end": { - "line": 514, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 19984, - "end": 20006, - "loc": { - "start": { - "line": 514, - "column": 12 - }, - "end": { - "line": 514, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 19984, - "end": 19994, - "loc": { - "start": { - "line": 514, - "column": 12 - }, - "end": { - "line": 514, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 19984, - "end": 19988, - "loc": { - "start": { - "line": 514, - "column": 12 - }, - "end": { - "line": 514, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 19989, - "end": 19994, - "loc": { - "start": { - "line": 514, - "column": 17 - }, - "end": { - "line": 514, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 19995, - "end": 19997, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 25 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "NumericLiteral", - "start": 19999, - "end": 20000, - "loc": { - "start": { - "line": 514, - "column": 27 - }, - "end": { - "line": 514, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20002, - "end": 20005, - "loc": { - "start": { - "line": 514, - "column": 30 - }, - "end": { - "line": 514, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20011, - "end": 20044, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20017, - "end": 20043, - "loc": { - "start": { - "line": 515, - "column": 8 - }, - "end": { - "line": 515, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 20017, - "end": 20018, - "loc": { - "start": { - "line": 515, - "column": 8 - }, - "end": { - "line": 515, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 20021, - "end": 20043, - "loc": { - "start": { - "line": 515, - "column": 12 - }, - "end": { - "line": 515, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20021, - "end": 20031, - "loc": { - "start": { - "line": 515, - "column": 12 - }, - "end": { - "line": 515, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20021, - "end": 20025, - "loc": { - "start": { - "line": 515, - "column": 12 - }, - "end": { - "line": 515, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20026, - "end": 20031, - "loc": { - "start": { - "line": 515, - "column": 17 - }, - "end": { - "line": 515, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20032, - "end": 20034, - "loc": { - "start": { - "line": 515, - "column": 23 - }, - "end": { - "line": 515, - "column": 25 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "NumericLiteral", - "start": 20036, - "end": 20037, - "loc": { - "start": { - "line": 515, - "column": 27 - }, - "end": { - "line": 515, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20039, - "end": 20042, - "loc": { - "start": { - "line": 515, - "column": 30 - }, - "end": { - "line": 515, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20048, - "end": 20081, - "loc": { - "start": { - "line": 516, - "column": 2 - }, - "end": { - "line": 516, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20054, - "end": 20080, - "loc": { - "start": { - "line": 516, - "column": 8 - }, - "end": { - "line": 516, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 20054, - "end": 20055, - "loc": { - "start": { - "line": 516, - "column": 8 - }, - "end": { - "line": 516, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 20058, - "end": 20080, - "loc": { - "start": { - "line": 516, - "column": 12 - }, - "end": { - "line": 516, - "column": 34 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20058, - "end": 20068, - "loc": { - "start": { - "line": 516, - "column": 12 - }, - "end": { - "line": 516, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20058, - "end": 20062, - "loc": { - "start": { - "line": 516, - "column": 12 - }, - "end": { - "line": 516, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20063, - "end": 20068, - "loc": { - "start": { - "line": 516, - "column": 17 - }, - "end": { - "line": 516, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20069, - "end": 20071, - "loc": { - "start": { - "line": 516, - "column": 23 - }, - "end": { - "line": 516, - "column": 25 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - { - "type": "NumericLiteral", - "start": 20073, - "end": 20074, - "loc": { - "start": { - "line": 516, - "column": 27 - }, - "end": { - "line": 516, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20076, - "end": 20079, - "loc": { - "start": { - "line": 516, - "column": 30 - }, - "end": { - "line": 516, - "column": 33 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20085, - "end": 20177, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 519, - "column": 3 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20091, - "end": 20177, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 519, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 20091, - "end": 20102, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 517, - "column": 19 - }, - "identifierName": "craftString" - }, - "name": "craftString" - }, - "init": { - "type": "FunctionExpression", - "start": 20105, - "end": 20177, - "loc": { - "start": { - "line": 517, - "column": 22 - }, - "end": { - "line": 519, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 20114, - "end": 20120, - "loc": { - "start": { - "line": 517, - "column": 31 - }, - "end": { - "line": 517, - "column": 37 - }, - "identifierName": "pColor" - }, - "name": "pColor" - } - ], - "body": { - "type": "BlockStatement", - "start": 20122, - "end": 20177, - "loc": { - "start": { - "line": 517, - "column": 39 - }, - "end": { - "line": 519, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 20128, - "end": 20172, - "loc": { - "start": { - "line": 518, - "column": 3 - }, - "end": { - "line": 518, - "column": 47 - } - }, - "argument": { - "type": "CallExpression", - "start": 20135, - "end": 20171, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20135, - "end": 20163, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 38 - } - }, - "object": { - "type": "CallExpression", - "start": 20135, - "end": 20154, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 29 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20135, - "end": 20150, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 20135, - "end": 20141, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 16 - }, - "identifierName": "pColor" - }, - "name": "pColor" - }, - "property": { - "type": "Identifier", - "start": 20142, - "end": 20150, - "loc": { - "start": { - "line": 518, - "column": 17 - }, - "end": { - "line": 518, - "column": 25 - }, - "identifierName": "toString" - }, - "name": "toString" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 20151, - "end": 20153, - "loc": { - "start": { - "line": 518, - "column": 26 - }, - "end": { - "line": 518, - "column": 28 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - "property": { - "type": "Identifier", - "start": 20155, - "end": 20163, - "loc": { - "start": { - "line": 518, - "column": 30 - }, - "end": { - "line": 518, - "column": 38 - }, - "identifierName": "padStart" - }, - "name": "padStart" - }, - "computed": false - }, - "arguments": [ - { - "type": "NumericLiteral", - "start": 20164, - "end": 20165, - "loc": { - "start": { - "line": 518, - "column": 39 - }, - "end": { - "line": 518, - "column": 40 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - { - "type": "StringLiteral", - "start": 20167, - "end": 20170, - "loc": { - "start": { - "line": 518, - "column": 42 - }, - "end": { - "line": 518, - "column": 45 - } - }, - "extra": { - "rawValue": "0", - "raw": "'0'" - }, - "value": "0" - } - ] - } - } - ], - "directives": [] - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20181, - "end": 20235, - "loc": { - "start": { - "line": 520, - "column": 2 - }, - "end": { - "line": 520, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20187, - "end": 20234, - "loc": { - "start": { - "line": 520, - "column": 8 - }, - "end": { - "line": 520, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 20187, - "end": 20190, - "loc": { - "start": { - "line": 520, - "column": 8 - }, - "end": { - "line": 520, - "column": 11 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": { - "type": "BinaryExpression", - "start": 20193, - "end": 20234, - "loc": { - "start": { - "line": 520, - "column": 14 - }, - "end": { - "line": 520, - "column": 55 - } - }, - "left": { - "type": "StringLiteral", - "start": 20193, - "end": 20196, - "loc": { - "start": { - "line": 520, - "column": 14 - }, - "end": { - "line": 520, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 20199, - "end": 20234, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20199, - "end": 20230, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 51 - } - }, - "object": { - "type": "CallExpression", - "start": 20199, - "end": 20225, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 46 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20199, - "end": 20212, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 33 - } - }, - "object": { - "type": "ArrayExpression", - "start": 20199, - "end": 20208, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 29 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 20200, - "end": 20201, - "loc": { - "start": { - "line": 520, - "column": 21 - }, - "end": { - "line": 520, - "column": 22 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 20203, - "end": 20204, - "loc": { - "start": { - "line": 520, - "column": 24 - }, - "end": { - "line": 520, - "column": 25 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 20206, - "end": 20207, - "loc": { - "start": { - "line": 520, - "column": 27 - }, - "end": { - "line": 520, - "column": 28 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - }, - "property": { - "type": "Identifier", - "start": 20209, - "end": 20212, - "loc": { - "start": { - "line": 520, - "column": 30 - }, - "end": { - "line": 520, - "column": 33 - }, - "identifierName": "map" - }, - "name": "map" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 20213, - "end": 20224, - "loc": { - "start": { - "line": 520, - "column": 34 - }, - "end": { - "line": 520, - "column": 45 - }, - "identifierName": "craftString" - }, - "name": "craftString" - } - ] - }, - "property": { - "type": "Identifier", - "start": 20226, - "end": 20230, - "loc": { - "start": { - "line": 520, - "column": 47 - }, - "end": { - "line": 520, - "column": 51 - }, - "identifierName": "join" - }, - "name": "join" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20231, - "end": 20233, - "loc": { - "start": { - "line": 520, - "column": 52 - }, - "end": { - "line": 520, - "column": 54 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 20239, - "end": 20250, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 521, - "column": 13 - } - }, - "argument": { - "type": "Identifier", - "start": 20246, - "end": 20249, - "loc": { - "start": { - "line": 521, - "column": 9 - }, - "end": { - "line": 521, - "column": 12 - }, - "identifierName": "hex" - }, - "name": "hex" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 19637, - "end": 19945, - "loc": { - "start": { - "line": 506, - "column": 1 - }, - "end": { - "line": 512, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 20259, - "end": 20533, - "loc": { - "start": { - "line": 523, - "column": 1 - }, - "end": { - "line": 528, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 20536, - "end": 20913, - "loc": { - "start": { - "line": 529, - "column": 1 - }, - "end": { - "line": 539, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20536, - "end": 20544, - "loc": { - "start": { - "line": 529, - "column": 1 - }, - "end": { - "line": 529, - "column": 9 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 20545, - "end": 20549, - "loc": { - "start": { - "line": 529, - "column": 10 - }, - "end": { - "line": 529, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 20551, - "end": 20913, - "loc": { - "start": { - "line": 529, - "column": 16 - }, - "end": { - "line": 539, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 20556, - "end": 20585, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 530, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 20556, - "end": 20584, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 530, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 20556, - "end": 20560, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 530, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 20563, - "end": 20584, - "loc": { - "start": { - "line": 530, - "column": 9 - }, - "end": { - "line": 530, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20563, - "end": 20575, - "loc": { - "start": { - "line": 530, - "column": 9 - }, - "end": { - "line": 530, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 20563, - "end": 20567, - "loc": { - "start": { - "line": 530, - "column": 9 - }, - "end": { - "line": 530, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 20568, - "end": 20575, - "loc": { - "start": { - "line": 530, - "column": 14 - }, - "end": { - "line": 530, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20576, - "end": 20579, - "loc": { - "start": { - "line": 530, - "column": 22 - }, - "end": { - "line": 530, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 20581, - "end": 20583, - "loc": { - "start": { - "line": 530, - "column": 27 - }, - "end": { - "line": 530, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "IfStatement", - "start": 20589, - "end": 20675, - "loc": { - "start": { - "line": 531, - "column": 2 - }, - "end": { - "line": 533, - "column": 3 - } - }, - "test": { - "type": "BinaryExpression", - "start": 20593, - "end": 20610, - "loc": { - "start": { - "line": 531, - "column": 6 - }, - "end": { - "line": 531, - "column": 23 - } - }, - "left": { - "type": "MemberExpression", - "start": 20593, - "end": 20604, - "loc": { - "start": { - "line": 531, - "column": 6 - }, - "end": { - "line": 531, - "column": 17 - } - }, - "object": { - "type": "Identifier", - "start": 20593, - "end": 20597, - "loc": { - "start": { - "line": 531, - "column": 6 - }, - "end": { - "line": 531, - "column": 10 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 531, - "column": 11 - }, - "end": { - "line": 531, - "column": 17 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "NumericLiteral", - "start": 20609, - "end": 20610, - "loc": { - "start": { - "line": 531, - "column": 22 - }, - "end": { - "line": 531, - "column": 23 - } - }, - "extra": { - "rawValue": 3, - "raw": "3" - }, - "value": 3 - } - }, - "consequent": { - "type": "BlockStatement", - "start": 20612, - "end": 20675, - "loc": { - "start": { - "line": 531, - "column": 25 - }, - "end": { - "line": 533, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 20618, - "end": 20670, - "loc": { - "start": { - "line": 532, - "column": 3 - }, - "end": { - "line": 532, - "column": 55 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 20618, - "end": 20669, - "loc": { - "start": { - "line": 532, - "column": 3 - }, - "end": { - "line": 532, - "column": 54 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 20618, - "end": 20622, - "loc": { - "start": { - "line": 532, - "column": 3 - }, - "end": { - "line": 532, - "column": 7 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 20625, - "end": 20669, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 532, - "column": 54 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20625, - "end": 20637, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 532, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 20625, - "end": 20629, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 532, - "column": 14 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 20630, - "end": 20637, - "loc": { - "start": { - "line": 532, - "column": 15 - }, - "end": { - "line": 532, - "column": 22 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 20638, - "end": 20660, - "loc": { - "start": { - "line": 532, - "column": 23 - }, - "end": { - "line": 532, - "column": 45 - } - }, - "callee": { - "type": "Identifier", - "start": 20642, - "end": 20648, - "loc": { - "start": { - "line": 532, - "column": 27 - }, - "end": { - "line": 532, - "column": 33 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20649, - "end": 20654, - "loc": { - "start": { - "line": 532, - "column": 34 - }, - "end": { - "line": 532, - "column": 39 - } - }, - "extra": { - "rawValue": "(.)", - "raw": "'(.)'" - }, - "value": "(.)" - }, - { - "type": "StringLiteral", - "start": 20656, - "end": 20659, - "loc": { - "start": { - "line": 532, - "column": 41 - }, - "end": { - "line": 532, - "column": 44 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - }, - { - "type": "StringLiteral", - "start": 20662, - "end": 20668, - "loc": { - "start": { - "line": 532, - "column": 47 - }, - "end": { - "line": 532, - "column": 53 - } - }, - "extra": { - "rawValue": "$1$1", - "raw": "'$1$1'" - }, - "value": "$1$1" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 20679, - "end": 20720, - "loc": { - "start": { - "line": 534, - "column": 2 - }, - "end": { - "line": 534, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 20679, - "end": 20719, - "loc": { - "start": { - "line": 534, - "column": 2 - }, - "end": { - "line": 534, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 20679, - "end": 20683, - "loc": { - "start": { - "line": 534, - "column": 2 - }, - "end": { - "line": 534, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 20686, - "end": 20719, - "loc": { - "start": { - "line": 534, - "column": 9 - }, - "end": { - "line": 534, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20686, - "end": 20696, - "loc": { - "start": { - "line": 534, - "column": 9 - }, - "end": { - "line": 534, - "column": 19 - } - }, - "object": { - "type": "Identifier", - "start": 20686, - "end": 20690, - "loc": { - "start": { - "line": 534, - "column": 9 - }, - "end": { - "line": 534, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 20691, - "end": 20696, - "loc": { - "start": { - "line": 534, - "column": 14 - }, - "end": { - "line": 534, - "column": 19 - }, - "identifierName": "match" - }, - "name": "match" - }, - "computed": false - }, - "arguments": [ - { - "type": "NewExpression", - "start": 20697, - "end": 20718, - "loc": { - "start": { - "line": 534, - "column": 20 - }, - "end": { - "line": 534, - "column": 41 - } - }, - "callee": { - "type": "Identifier", - "start": 20701, - "end": 20707, - "loc": { - "start": { - "line": 534, - "column": 24 - }, - "end": { - "line": 534, - "column": 30 - }, - "identifierName": "RegExp" - }, - "name": "RegExp" - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 20708, - "end": 20712, - "loc": { - "start": { - "line": 534, - "column": 31 - }, - "end": { - "line": 534, - "column": 35 - } - }, - "extra": { - "rawValue": "..", - "raw": "'..'" - }, - "value": ".." - }, - { - "type": "StringLiteral", - "start": 20714, - "end": 20717, - "loc": { - "start": { - "line": 534, - "column": 37 - }, - "end": { - "line": 534, - "column": 40 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - } - ] - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 20724, - "end": 20776, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 535, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20730, - "end": 20775, - "loc": { - "start": { - "line": 535, - "column": 8 - }, - "end": { - "line": 535, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 20730, - "end": 20731, - "loc": { - "start": { - "line": 535, - "column": 8 - }, - "end": { - "line": 535, - "column": 9 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 20734, - "end": 20775, - "loc": { - "start": { - "line": 535, - "column": 12 - }, - "end": { - "line": 535, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20734, - "end": 20744, - "loc": { - "start": { - "line": 535, - "column": 12 - }, - "end": { - "line": 535, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20734, - "end": 20738, - "loc": { - "start": { - "line": 535, - "column": 12 - }, - "end": { - "line": 535, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20739, - "end": 20744, - "loc": { - "start": { - "line": 535, - "column": 17 - }, - "end": { - "line": 535, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 20745, - "end": 20766, - "loc": { - "start": { - "line": 535, - "column": 23 - }, - "end": { - "line": 535, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 20745, - "end": 20753, - "loc": { - "start": { - "line": 535, - "column": 23 - }, - "end": { - "line": 535, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 20754, - "end": 20761, - "loc": { - "start": { - "line": 535, - "column": 32 - }, - "end": { - "line": 535, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 20754, - "end": 20758, - "loc": { - "start": { - "line": 535, - "column": 32 - }, - "end": { - "line": 535, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 20759, - "end": 20760, - "loc": { - "start": { - "line": 535, - "column": 37 - }, - "end": { - "line": 535, - "column": 38 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 20763, - "end": 20765, - "loc": { - "start": { - "line": 535, - "column": 41 - }, - "end": { - "line": 535, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 20768, - "end": 20769, - "loc": { - "start": { - "line": 535, - "column": 46 - }, - "end": { - "line": 535, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20771, - "end": 20774, - "loc": { - "start": { - "line": 535, - "column": 49 - }, - "end": { - "line": 535, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20780, - "end": 20832, - "loc": { - "start": { - "line": 536, - "column": 2 - }, - "end": { - "line": 536, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20786, - "end": 20831, - "loc": { - "start": { - "line": 536, - "column": 8 - }, - "end": { - "line": 536, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 20786, - "end": 20787, - "loc": { - "start": { - "line": 536, - "column": 8 - }, - "end": { - "line": 536, - "column": 9 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 20790, - "end": 20831, - "loc": { - "start": { - "line": 536, - "column": 12 - }, - "end": { - "line": 536, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20790, - "end": 20800, - "loc": { - "start": { - "line": 536, - "column": 12 - }, - "end": { - "line": 536, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20790, - "end": 20794, - "loc": { - "start": { - "line": 536, - "column": 12 - }, - "end": { - "line": 536, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20795, - "end": 20800, - "loc": { - "start": { - "line": 536, - "column": 17 - }, - "end": { - "line": 536, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 20801, - "end": 20822, - "loc": { - "start": { - "line": 536, - "column": 23 - }, - "end": { - "line": 536, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 20801, - "end": 20809, - "loc": { - "start": { - "line": 536, - "column": 23 - }, - "end": { - "line": 536, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 20810, - "end": 20817, - "loc": { - "start": { - "line": 536, - "column": 32 - }, - "end": { - "line": 536, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 20810, - "end": 20814, - "loc": { - "start": { - "line": 536, - "column": 32 - }, - "end": { - "line": 536, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 20815, - "end": 20816, - "loc": { - "start": { - "line": 536, - "column": 37 - }, - "end": { - "line": 536, - "column": 38 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 20819, - "end": 20821, - "loc": { - "start": { - "line": 536, - "column": 41 - }, - "end": { - "line": 536, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 20824, - "end": 20825, - "loc": { - "start": { - "line": 536, - "column": 46 - }, - "end": { - "line": 536, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20827, - "end": 20830, - "loc": { - "start": { - "line": 536, - "column": 49 - }, - "end": { - "line": 536, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 20836, - "end": 20888, - "loc": { - "start": { - "line": 537, - "column": 2 - }, - "end": { - "line": 537, - "column": 54 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20842, - "end": 20887, - "loc": { - "start": { - "line": 537, - "column": 8 - }, - "end": { - "line": 537, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 20842, - "end": 20843, - "loc": { - "start": { - "line": 537, - "column": 8 - }, - "end": { - "line": 537, - "column": 9 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 20846, - "end": 20887, - "loc": { - "start": { - "line": 537, - "column": 12 - }, - "end": { - "line": 537, - "column": 53 - } - }, - "callee": { - "type": "MemberExpression", - "start": 20846, - "end": 20856, - "loc": { - "start": { - "line": 537, - "column": 12 - }, - "end": { - "line": 537, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 20846, - "end": 20850, - "loc": { - "start": { - "line": 537, - "column": 12 - }, - "end": { - "line": 537, - "column": 16 - } - } - }, - "property": { - "type": "Identifier", - "start": 20851, - "end": 20856, - "loc": { - "start": { - "line": 537, - "column": 17 - }, - "end": { - "line": 537, - "column": 22 - }, - "identifierName": "clamp" - }, - "name": "clamp" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 20857, - "end": 20878, - "loc": { - "start": { - "line": 537, - "column": 23 - }, - "end": { - "line": 537, - "column": 44 - } - }, - "callee": { - "type": "Identifier", - "start": 20857, - "end": 20865, - "loc": { - "start": { - "line": 537, - "column": 23 - }, - "end": { - "line": 537, - "column": 31 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 20866, - "end": 20873, - "loc": { - "start": { - "line": 537, - "column": 32 - }, - "end": { - "line": 537, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 20866, - "end": 20870, - "loc": { - "start": { - "line": 537, - "column": 32 - }, - "end": { - "line": 537, - "column": 36 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "NumericLiteral", - "start": 20871, - "end": 20872, - "loc": { - "start": { - "line": 537, - "column": 37 - }, - "end": { - "line": 537, - "column": 38 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "NumericLiteral", - "start": 20875, - "end": 20877, - "loc": { - "start": { - "line": 537, - "column": 41 - }, - "end": { - "line": 537, - "column": 43 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - }, - { - "type": "NumericLiteral", - "start": 20880, - "end": 20881, - "loc": { - "start": { - "line": 537, - "column": 46 - }, - "end": { - "line": 537, - "column": 47 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - { - "type": "NumericLiteral", - "start": 20883, - "end": 20886, - "loc": { - "start": { - "line": 537, - "column": 49 - }, - "end": { - "line": 537, - "column": 52 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 20892, - "end": 20909, - "loc": { - "start": { - "line": 538, - "column": 2 - }, - "end": { - "line": 538, - "column": 19 - } - }, - "argument": { - "type": "ArrayExpression", - "start": 20899, - "end": 20908, - "loc": { - "start": { - "line": 538, - "column": 9 - }, - "end": { - "line": 538, - "column": 18 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 20900, - "end": 20901, - "loc": { - "start": { - "line": 538, - "column": 10 - }, - "end": { - "line": 538, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 20903, - "end": 20904, - "loc": { - "start": { - "line": 538, - "column": 13 - }, - "end": { - "line": 538, - "column": 14 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 20906, - "end": 20907, - "loc": { - "start": { - "line": 538, - "column": 16 - }, - "end": { - "line": 538, - "column": 17 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 20259, - "end": 20533, - "loc": { - "start": { - "line": 523, - "column": 1 - }, - "end": { - "line": 528, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 20916, - "end": 21212, - "loc": { - "start": { - "line": 540, - "column": 1 - }, - "end": { - "line": 546, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21215, - "end": 21282, - "loc": { - "start": { - "line": 547, - "column": 1 - }, - "end": { - "line": 549, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21215, - "end": 21227, - "loc": { - "start": { - "line": 547, - "column": 1 - }, - "end": { - "line": 547, - "column": 13 - }, - "identifierName": "rgbToDecimal" - }, - "name": "rgbToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 21228, - "end": 21230, - "loc": { - "start": { - "line": 547, - "column": 14 - }, - "end": { - "line": 547, - "column": 16 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - { - "type": "Identifier", - "start": 21232, - "end": 21234, - "loc": { - "start": { - "line": 547, - "column": 18 - }, - "end": { - "line": 547, - "column": 20 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 21236, - "end": 21238, - "loc": { - "start": { - "line": 547, - "column": 22 - }, - "end": { - "line": 547, - "column": 24 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 21240, - "end": 21282, - "loc": { - "start": { - "line": 547, - "column": 26 - }, - "end": { - "line": 549, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 21245, - "end": 21278, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 35 - } - }, - "argument": { - "type": "BinaryExpression", - "start": 21253, - "end": 21276, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 33 - } - }, - "left": { - "type": "BinaryExpression", - "start": 21253, - "end": 21271, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 28 - } - }, - "left": { - "type": "BinaryExpression", - "start": 21253, - "end": 21261, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 18 - } - }, - "left": { - "type": "Identifier", - "start": 21253, - "end": 21255, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 12 - }, - "identifierName": "pR" - }, - "name": "pR" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 21259, - "end": 21261, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 18 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - }, - "operator": "|", - "right": { - "type": "BinaryExpression", - "start": 21264, - "end": 21271, - "loc": { - "start": { - "line": 548, - "column": 21 - }, - "end": { - "line": 548, - "column": 28 - } - }, - "left": { - "type": "Identifier", - "start": 21264, - "end": 21266, - "loc": { - "start": { - "line": 548, - "column": 21 - }, - "end": { - "line": 548, - "column": 23 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - "operator": "<<", - "right": { - "type": "NumericLiteral", - "start": 21270, - "end": 21271, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 28 - } - }, - "extra": { - "rawValue": 8, - "raw": "8" - }, - "value": 8 - } - } - }, - "operator": "|", - "right": { - "type": "Identifier", - "start": 21274, - "end": 21276, - "loc": { - "start": { - "line": 548, - "column": 31 - }, - "end": { - "line": 548, - "column": 33 - }, - "identifierName": "pB" - }, - "name": "pB" - }, - "extra": { - "parenthesized": true, - "parenStart": 21252 - } - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 20916, - "end": 21212, - "loc": { - "start": { - "line": 540, - "column": 1 - }, - "end": { - "line": 546, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 21285, - "end": 21536, - "loc": { - "start": { - "line": 550, - "column": 1 - }, - "end": { - "line": 555, - "column": 3 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 21539, - "end": 21626, - "loc": { - "start": { - "line": 556, - "column": 1 - }, - "end": { - "line": 559, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21539, - "end": 21551, - "loc": { - "start": { - "line": 556, - "column": 1 - }, - "end": { - "line": 556, - "column": 13 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 21552, - "end": 21556, - "loc": { - "start": { - "line": 556, - "column": 14 - }, - "end": { - "line": 556, - "column": 18 - }, - "identifierName": "pHex" - }, - "name": "pHex" - } - ], - "body": { - "type": "BlockStatement", - "start": 21558, - "end": 21626, - "loc": { - "start": { - "line": 556, - "column": 20 - }, - "end": { - "line": 559, - "column": 2 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 21563, - "end": 21592, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 31 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 21563, - "end": 21591, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 30 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 21563, - "end": 21567, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 6 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "right": { - "type": "CallExpression", - "start": 21570, - "end": 21591, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 30 - } - }, - "callee": { - "type": "MemberExpression", - "start": 21570, - "end": 21582, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 21570, - "end": 21574, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 13 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - "property": { - "type": "Identifier", - "start": 21575, - "end": 21582, - "loc": { - "start": { - "line": 557, - "column": 14 - }, - "end": { - "line": 557, - "column": 21 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 21583, - "end": 21586, - "loc": { - "start": { - "line": 557, - "column": 22 - }, - "end": { - "line": 557, - "column": 25 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 21588, - "end": 21590, - "loc": { - "start": { - "line": 557, - "column": 27 - }, - "end": { - "line": 557, - "column": 29 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 21596, - "end": 21622, - "loc": { - "start": { - "line": 558, - "column": 2 - }, - "end": { - "line": 558, - "column": 28 - } - }, - "argument": { - "type": "CallExpression", - "start": 21603, - "end": 21621, - "loc": { - "start": { - "line": 558, - "column": 9 - }, - "end": { - "line": 558, - "column": 27 - } - }, - "callee": { - "type": "Identifier", - "start": 21603, - "end": 21611, - "loc": { - "start": { - "line": 558, - "column": 9 - }, - "end": { - "line": 558, - "column": 17 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "Identifier", - "start": 21612, - "end": 21616, - "loc": { - "start": { - "line": 558, - "column": 18 - }, - "end": { - "line": 558, - "column": 22 - }, - "identifierName": "pHex" - }, - "name": "pHex" - }, - { - "type": "NumericLiteral", - "start": 21618, - "end": 21620, - "loc": { - "start": { - "line": 558, - "column": 24 - }, - "end": { - "line": 558, - "column": 26 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 21285, - "end": 21536, - "loc": { - "start": { - "line": 550, - "column": 1 - }, - "end": { - "line": 555, - "column": 3 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 21629, - "end": 22137, - "loc": { - "start": { - "line": 560, - "column": 1 - }, - "end": { - "line": 569, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 22140, - "end": 22992, - "loc": { - "start": { - "line": 570, - "column": 1 - }, - "end": { - "line": 593, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22140, - "end": 22149, - "loc": { - "start": { - "line": 570, - "column": 1 - }, - "end": { - "line": 570, - "column": 10 - }, - "identifierName": "grabColor" - }, - "name": "grabColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 22150, - "end": 22181, - "loc": { - "start": { - "line": 570, - "column": 11 - }, - "end": { - "line": 570, - "column": 42 - } - }, - "left": { - "type": "Identifier", - "start": 22150, - "end": 22157, - "loc": { - "start": { - "line": 570, - "column": 11 - }, - "end": { - "line": 570, - "column": 18 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 22160, - "end": 22181, - "loc": { - "start": { - "line": 570, - "column": 21 - }, - "end": { - "line": 570, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22160, - "end": 22179, - "loc": { - "start": { - "line": 570, - "column": 21 - }, - "end": { - "line": 570, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 22160, - "end": 22164, - "loc": { - "start": { - "line": 570, - "column": 21 - }, - "end": { - "line": 570, - "column": 25 - } - } - }, - "property": { - "type": "Identifier", - "start": 22165, - "end": 22179, - "loc": { - "start": { - "line": 570, - "column": 26 - }, - "end": { - "line": 570, - "column": 40 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "Identifier", - "start": 22183, - "end": 22185, - "loc": { - "start": { - "line": 570, - "column": 44 - }, - "end": { - "line": 570, - "column": 46 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 22187, - "end": 22189, - "loc": { - "start": { - "line": 570, - "column": 48 - }, - "end": { - "line": 570, - "column": 50 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ], - "body": { - "type": "BlockStatement", - "start": 22191, - "end": 22992, - "loc": { - "start": { - "line": 570, - "column": 52 - }, - "end": { - "line": 593, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 22196, - "end": 22209, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 15 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 22200, - "end": 22203, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 9 - } - }, - "id": { - "type": "Identifier", - "start": 22200, - "end": 22203, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 9 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "start": 22205, - "end": 22208, - "loc": { - "start": { - "line": 571, - "column": 11 - }, - "end": { - "line": 571, - "column": 14 - } - }, - "id": { - "type": "Identifier", - "start": 22205, - "end": 22208, - "loc": { - "start": { - "line": 571, - "column": 11 - }, - "end": { - "line": 571, - "column": 14 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "init": null - } - ], - "kind": "let", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 22213, - "end": 22234, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 23 - } - } - } - ] - }, - { - "type": "IfStatement", - "start": 22238, - "end": 22580, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 583, - "column": 3 - } - }, - "test": { - "type": "LogicalExpression", - "start": 22242, - "end": 22324, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 88 - } - }, - "left": { - "type": "LogicalExpression", - "start": 22242, - "end": 22297, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 61 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22242, - "end": 22270, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 34 - } - }, - "left": { - "type": "UnaryExpression", - "start": 22242, - "end": 22257, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 21 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 22249, - "end": 22256, - "loc": { - "start": { - "line": 573, - "column": 13 - }, - "end": { - "line": 573, - "column": 20 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 22248 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 22262, - "end": 22270, - "loc": { - "start": { - "line": 573, - "column": 26 - }, - "end": { - "line": 573, - "column": 34 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 22274, - "end": 22297, - "loc": { - "start": { - "line": 573, - "column": 38 - }, - "end": { - "line": 573, - "column": 61 - } - }, - "left": { - "type": "UnaryExpression", - "start": 22274, - "end": 22284, - "loc": { - "start": { - "line": 573, - "column": 38 - }, - "end": { - "line": 573, - "column": 48 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 22281, - "end": 22283, - "loc": { - "start": { - "line": 573, - "column": 45 - }, - "end": { - "line": 573, - "column": 47 - }, - "identifierName": "pG" - }, - "name": "pG", - "extra": { - "parenthesized": true, - "parenStart": 22280 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 22289, - "end": 22297, - "loc": { - "start": { - "line": 573, - "column": 53 - }, - "end": { - "line": 573, - "column": 61 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 22301, - "end": 22324, - "loc": { - "start": { - "line": 573, - "column": 65 - }, - "end": { - "line": 573, - "column": 88 - } - }, - "left": { - "type": "UnaryExpression", - "start": 22301, - "end": 22311, - "loc": { - "start": { - "line": 573, - "column": 65 - }, - "end": { - "line": 573, - "column": 75 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 22308, - "end": 22310, - "loc": { - "start": { - "line": 573, - "column": 72 - }, - "end": { - "line": 573, - "column": 74 - }, - "identifierName": "pB" - }, - "name": "pB", - "extra": { - "parenthesized": true, - "parenStart": 22307 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 22316, - "end": 22324, - "loc": { - "start": { - "line": 573, - "column": 80 - }, - "end": { - "line": 573, - "column": 88 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - } - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 22326, - "end": 22374, - "loc": { - "start": { - "line": 573, - "column": 90 - }, - "end": { - "line": 575, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22332, - "end": 22369, - "loc": { - "start": { - "line": 574, - "column": 3 - }, - "end": { - "line": 574, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 22332, - "end": 22368, - "loc": { - "start": { - "line": 574, - "column": 3 - }, - "end": { - "line": 574, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 22332, - "end": 22335, - "loc": { - "start": { - "line": 574, - "column": 3 - }, - "end": { - "line": 574, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "CallExpression", - "start": 22338, - "end": 22368, - "loc": { - "start": { - "line": 574, - "column": 9 - }, - "end": { - "line": 574, - "column": 39 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22338, - "end": 22351, - "loc": { - "start": { - "line": 574, - "column": 9 - }, - "end": { - "line": 574, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 22338, - "end": 22342, - "loc": { - "start": { - "line": 574, - "column": 9 - }, - "end": { - "line": 574, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 22343, - "end": 22351, - "loc": { - "start": { - "line": 574, - "column": 14 - }, - "end": { - "line": 574, - "column": 22 - }, - "identifierName": "rgbToHex" - }, - "name": "rgbToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 22352, - "end": 22359, - "loc": { - "start": { - "line": 574, - "column": 23 - }, - "end": { - "line": 574, - "column": 30 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - { - "type": "Identifier", - "start": 22361, - "end": 22363, - "loc": { - "start": { - "line": 574, - "column": 32 - }, - "end": { - "line": 574, - "column": 34 - }, - "identifierName": "pG" - }, - "name": "pG" - }, - { - "type": "Identifier", - "start": 22365, - "end": 22367, - "loc": { - "start": { - "line": 574, - "column": 36 - }, - "end": { - "line": 574, - "column": 38 - }, - "identifierName": "pB" - }, - "name": "pB" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 22380, - "end": 22580, - "loc": { - "start": { - "line": 575, - "column": 9 - }, - "end": { - "line": 583, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 22416, - "end": 22500, - "loc": { - "start": { - "line": 577, - "column": 3 - }, - "end": { - "line": 579, - "column": 4 - } - }, - "test": { - "type": "BinaryExpression", - "start": 22420, - "end": 22448, - "loc": { - "start": { - "line": 577, - "column": 7 - }, - "end": { - "line": 577, - "column": 35 - } - }, - "left": { - "type": "UnaryExpression", - "start": 22420, - "end": 22435, - "loc": { - "start": { - "line": 577, - "column": 7 - }, - "end": { - "line": 577, - "column": 22 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 22427, - "end": 22434, - "loc": { - "start": { - "line": 577, - "column": 14 - }, - "end": { - "line": 577, - "column": 21 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch", - "leadingComments": null, - "extra": { - "parenthesized": true, - "parenStart": 22426 - } - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 22440, - "end": 22448, - "loc": { - "start": { - "line": 577, - "column": 27 - }, - "end": { - "line": 577, - "column": 35 - } - }, - "extra": { - "rawValue": "number", - "raw": "'number'" - }, - "value": "number" - }, - "leadingComments": null - }, - "consequent": { - "type": "BlockStatement", - "start": 22450, - "end": 22500, - "loc": { - "start": { - "line": 577, - "column": 37 - }, - "end": { - "line": 579, - "column": 4 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22457, - "end": 22494, - "loc": { - "start": { - "line": 578, - "column": 4 - }, - "end": { - "line": 578, - "column": 41 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 22457, - "end": 22493, - "loc": { - "start": { - "line": 578, - "column": 4 - }, - "end": { - "line": 578, - "column": 40 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 22457, - "end": 22464, - "loc": { - "start": { - "line": 578, - "column": 4 - }, - "end": { - "line": 578, - "column": 11 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - }, - "right": { - "type": "CallExpression", - "start": 22467, - "end": 22493, - "loc": { - "start": { - "line": 578, - "column": 14 - }, - "end": { - "line": 578, - "column": 40 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22467, - "end": 22484, - "loc": { - "start": { - "line": 578, - "column": 14 - }, - "end": { - "line": 578, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 22467, - "end": 22471, - "loc": { - "start": { - "line": 578, - "column": 14 - }, - "end": { - "line": 578, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 22472, - "end": 22484, - "loc": { - "start": { - "line": 578, - "column": 19 - }, - "end": { - "line": 578, - "column": 31 - }, - "identifierName": "decimalToHex" - }, - "name": "decimalToHex" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 22485, - "end": 22492, - "loc": { - "start": { - "line": 578, - "column": 32 - }, - "end": { - "line": 578, - "column": 39 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - ] - } - } - } - ], - "directives": [] - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 22386, - "end": 22411, - "loc": { - "start": { - "line": 576, - "column": 3 - }, - "end": { - "line": 576, - "column": 28 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 22505, - "end": 22519, - "loc": { - "start": { - "line": 580, - "column": 3 - }, - "end": { - "line": 580, - "column": 17 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 22505, - "end": 22518, - "loc": { - "start": { - "line": 580, - "column": 3 - }, - "end": { - "line": 580, - "column": 16 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 22505, - "end": 22508, - "loc": { - "start": { - "line": 580, - "column": 3 - }, - "end": { - "line": 580, - "column": 6 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "right": { - "type": "Identifier", - "start": 22511, - "end": 22518, - "loc": { - "start": { - "line": 580, - "column": 9 - }, - "end": { - "line": 580, - "column": 16 - }, - "identifierName": "pSwitch" - }, - "name": "pSwitch" - } - }, - "trailingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 22524, - "end": 22545, - "loc": { - "start": { - "line": 581, - "column": 3 - }, - "end": { - "line": 581, - "column": 24 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 22550, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 3 - }, - "end": { - "line": 582, - "column": 28 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 22550, - "end": 22574, - "loc": { - "start": { - "line": 582, - "column": 3 - }, - "end": { - "line": 582, - "column": 27 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 22550, - "end": 22553, - "loc": { - "start": { - "line": 582, - "column": 3 - }, - "end": { - "line": 582, - "column": 6 - }, - "identifierName": "rgb" - }, - "name": "rgb", - "leadingComments": null - }, - "right": { - "type": "CallExpression", - "start": 22556, - "end": 22574, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22556, - "end": 22569, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 22556, - "end": 22560, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 13 - } - } - }, - "property": { - "type": "Identifier", - "start": 22561, - "end": 22569, - "loc": { - "start": { - "line": 582, - "column": 14 - }, - "end": { - "line": 582, - "column": 22 - }, - "identifierName": "hexToRgb" - }, - "name": "hexToRgb" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 22570, - "end": 22573, - "loc": { - "start": { - "line": 582, - "column": 23 - }, - "end": { - "line": 582, - "column": 26 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 22524, - "end": 22545, - "loc": { - "start": { - "line": 581, - "column": 3 - }, - "end": { - "line": 581, - "column": 24 - } - } - } - ] - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 22213, - "end": 22234, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 23 - } - } - } - ] - }, - { - "type": "ReturnStatement", - "start": 22584, - "end": 22988, - "loc": { - "start": { - "line": 584, - "column": 2 - }, - "end": { - "line": 592, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 22591, - "end": 22987, - "loc": { - "start": { - "line": 584, - "column": 9 - }, - "end": { - "line": 592, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22598, - "end": 22622, - "loc": { - "start": { - "line": 585, - "column": 3 - }, - "end": { - "line": 585, - "column": 27 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22598, - "end": 22603, - "loc": { - "start": { - "line": 585, - "column": 3 - }, - "end": { - "line": 585, - "column": 8 - } - }, - "extra": { - "rawValue": "hex", - "raw": "'hex'" - }, - "value": "hex" - }, - "value": { - "type": "CallExpression", - "start": 22605, - "end": 22622, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 27 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22605, - "end": 22620, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 22605, - "end": 22608, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 13 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 22609, - "end": 22620, - "loc": { - "start": { - "line": 585, - "column": 14 - }, - "end": { - "line": 585, - "column": 25 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 22629, - "end": 22677, - "loc": { - "start": { - "line": 586, - "column": 3 - }, - "end": { - "line": 586, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22629, - "end": 22641, - "loc": { - "start": { - "line": 586, - "column": 3 - }, - "end": { - "line": 586, - "column": 15 - } - }, - "extra": { - "rawValue": "hexTagless", - "raw": "'hexTagless'" - }, - "value": "hexTagless" - }, - "value": { - "type": "CallExpression", - "start": 22643, - "end": 22677, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22643, - "end": 22675, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 49 - } - }, - "object": { - "type": "CallExpression", - "start": 22643, - "end": 22663, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 37 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22643, - "end": 22654, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 22643, - "end": 22646, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 20 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "property": { - "type": "Identifier", - "start": 22647, - "end": 22654, - "loc": { - "start": { - "line": 586, - "column": 21 - }, - "end": { - "line": 586, - "column": 28 - }, - "identifierName": "replace" - }, - "name": "replace" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 22655, - "end": 22658, - "loc": { - "start": { - "line": 586, - "column": 29 - }, - "end": { - "line": 586, - "column": 32 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - }, - { - "type": "StringLiteral", - "start": 22660, - "end": 22662, - "loc": { - "start": { - "line": 586, - "column": 34 - }, - "end": { - "line": 586, - "column": 36 - } - }, - "extra": { - "rawValue": "", - "raw": "''" - }, - "value": "" - } - ] - }, - "property": { - "type": "Identifier", - "start": 22664, - "end": 22675, - "loc": { - "start": { - "line": 586, - "column": 38 - }, - "end": { - "line": 586, - "column": 49 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - } - }, - { - "type": "ObjectProperty", - "start": 22684, - "end": 22730, - "loc": { - "start": { - "line": 587, - "column": 3 - }, - "end": { - "line": 587, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22684, - "end": 22689, - "loc": { - "start": { - "line": 587, - "column": 3 - }, - "end": { - "line": 587, - "column": 8 - } - }, - "extra": { - "rawValue": "rgb", - "raw": "'rgb'" - }, - "value": "rgb" - }, - "value": { - "type": "BinaryExpression", - "start": 22691, - "end": 22730, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 49 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22726, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 45 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22719, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 38 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22715, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 34 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22708, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 27 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22691, - "end": 22704, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 23 - } - }, - "left": { - "type": "StringLiteral", - "start": 22691, - "end": 22697, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 16 - } - }, - "extra": { - "rawValue": "rgb(", - "raw": "'rgb('" - }, - "value": "rgb(" - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 22698, - "end": 22704, - "loc": { - "start": { - "line": 587, - "column": 17 - }, - "end": { - "line": 587, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 22698, - "end": 22701, - "loc": { - "start": { - "line": 587, - "column": 17 - }, - "end": { - "line": 587, - "column": 20 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22702, - "end": 22703, - "loc": { - "start": { - "line": 587, - "column": 21 - }, - "end": { - "line": 587, - "column": 22 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 22705, - "end": 22708, - "loc": { - "start": { - "line": 587, - "column": 24 - }, - "end": { - "line": 587, - "column": 27 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 22709, - "end": 22715, - "loc": { - "start": { - "line": 587, - "column": 28 - }, - "end": { - "line": 587, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 22709, - "end": 22712, - "loc": { - "start": { - "line": 587, - "column": 28 - }, - "end": { - "line": 587, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22713, - "end": 22714, - "loc": { - "start": { - "line": 587, - "column": 32 - }, - "end": { - "line": 587, - "column": 33 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 22716, - "end": 22719, - "loc": { - "start": { - "line": 587, - "column": 35 - }, - "end": { - "line": 587, - "column": 38 - } - }, - "extra": { - "rawValue": ",", - "raw": "','" - }, - "value": "," - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 22720, - "end": 22726, - "loc": { - "start": { - "line": 587, - "column": 39 - }, - "end": { - "line": 587, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 22720, - "end": 22723, - "loc": { - "start": { - "line": 587, - "column": 39 - }, - "end": { - "line": 587, - "column": 42 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22724, - "end": 22725, - "loc": { - "start": { - "line": 587, - "column": 43 - }, - "end": { - "line": 587, - "column": 44 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 22727, - "end": 22730, - "loc": { - "start": { - "line": 587, - "column": 46 - }, - "end": { - "line": 587, - "column": 49 - } - }, - "extra": { - "rawValue": ")", - "raw": "')'" - }, - "value": ")" - } - } - }, - { - "type": "ObjectProperty", - "start": 22737, - "end": 22752, - "loc": { - "start": { - "line": 588, - "column": 3 - }, - "end": { - "line": 588, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22737, - "end": 22747, - "loc": { - "start": { - "line": 588, - "column": 3 - }, - "end": { - "line": 588, - "column": 13 - } - }, - "extra": { - "rawValue": "rgbArray", - "raw": "'rgbArray'" - }, - "value": "rgbArray" - }, - "value": { - "type": "Identifier", - "start": 22749, - "end": 22752, - "loc": { - "start": { - "line": 588, - "column": 15 - }, - "end": { - "line": 588, - "column": 18 - }, - "identifierName": "rgb" - }, - "name": "rgb" - } - }, - { - "type": "ObjectProperty", - "start": 22759, - "end": 22813, - "loc": { - "start": { - "line": 589, - "column": 3 - }, - "end": { - "line": 589, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22759, - "end": 22770, - "loc": { - "start": { - "line": 589, - "column": 3 - }, - "end": { - "line": 589, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbObject", - "raw": "'rgbObject'" - }, - "value": "rgbObject" - }, - "value": { - "type": "ObjectExpression", - "start": 22772, - "end": 22813, - "loc": { - "start": { - "line": 589, - "column": 16 - }, - "end": { - "line": 589, - "column": 57 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 22774, - "end": 22785, - "loc": { - "start": { - "line": 589, - "column": 18 - }, - "end": { - "line": 589, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22774, - "end": 22777, - "loc": { - "start": { - "line": 589, - "column": 18 - }, - "end": { - "line": 589, - "column": 21 - } - }, - "extra": { - "rawValue": "r", - "raw": "'r'" - }, - "value": "r" - }, - "value": { - "type": "MemberExpression", - "start": 22779, - "end": 22785, - "loc": { - "start": { - "line": 589, - "column": 23 - }, - "end": { - "line": 589, - "column": 29 - } - }, - "object": { - "type": "Identifier", - "start": 22779, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 23 - }, - "end": { - "line": 589, - "column": 26 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22783, - "end": 22784, - "loc": { - "start": { - "line": 589, - "column": 27 - }, - "end": { - "line": 589, - "column": 28 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 22787, - "end": 22798, - "loc": { - "start": { - "line": 589, - "column": 31 - }, - "end": { - "line": 589, - "column": 42 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22787, - "end": 22790, - "loc": { - "start": { - "line": 589, - "column": 31 - }, - "end": { - "line": 589, - "column": 34 - } - }, - "extra": { - "rawValue": "g", - "raw": "'g'" - }, - "value": "g" - }, - "value": { - "type": "MemberExpression", - "start": 22792, - "end": 22798, - "loc": { - "start": { - "line": 589, - "column": 36 - }, - "end": { - "line": 589, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 22792, - "end": 22795, - "loc": { - "start": { - "line": 589, - "column": 36 - }, - "end": { - "line": 589, - "column": 39 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22796, - "end": 22797, - "loc": { - "start": { - "line": 589, - "column": 40 - }, - "end": { - "line": 589, - "column": 41 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - } - }, - { - "type": "ObjectProperty", - "start": 22800, - "end": 22811, - "loc": { - "start": { - "line": 589, - "column": 44 - }, - "end": { - "line": 589, - "column": 55 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22800, - "end": 22803, - "loc": { - "start": { - "line": 589, - "column": 44 - }, - "end": { - "line": 589, - "column": 47 - } - }, - "extra": { - "rawValue": "b", - "raw": "'b'" - }, - "value": "b" - }, - "value": { - "type": "MemberExpression", - "start": 22805, - "end": 22811, - "loc": { - "start": { - "line": 589, - "column": 49 - }, - "end": { - "line": 589, - "column": 55 - } - }, - "object": { - "type": "Identifier", - "start": 22805, - "end": 22808, - "loc": { - "start": { - "line": 589, - "column": 49 - }, - "end": { - "line": 589, - "column": 52 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22809, - "end": 22810, - "loc": { - "start": { - "line": 589, - "column": 53 - }, - "end": { - "line": 589, - "column": 54 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 22820, - "end": 22941, - "loc": { - "start": { - "line": 590, - "column": 3 - }, - "end": { - "line": 590, - "column": 124 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22820, - "end": 22831, - "loc": { - "start": { - "line": 590, - "column": 3 - }, - "end": { - "line": 590, - "column": 14 - } - }, - "extra": { - "rawValue": "rgbNormal", - "raw": "'rgbNormal'" - }, - "value": "rgbNormal" - }, - "value": { - "type": "ArrayExpression", - "start": 22833, - "end": 22941, - "loc": { - "start": { - "line": 590, - "column": 16 - }, - "end": { - "line": 590, - "column": 124 - } - }, - "elements": [ - { - "type": "BinaryExpression", - "start": 22834, - "end": 22868, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 51 - } - }, - "left": { - "type": "CallExpression", - "start": 22834, - "end": 22862, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 45 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22834, - "end": 22844, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 27 - } - }, - "object": { - "type": "Identifier", - "start": 22834, - "end": 22838, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 21 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 22839, - "end": 22844, - "loc": { - "start": { - "line": 590, - "column": 22 - }, - "end": { - "line": 590, - "column": 27 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 22845, - "end": 22861, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 44 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22845, - "end": 22855, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 38 - } - }, - "left": { - "type": "MemberExpression", - "start": 22845, - "end": 22851, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 22845, - "end": 22848, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 31 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22849, - "end": 22850, - "loc": { - "start": { - "line": 590, - "column": 32 - }, - "end": { - "line": 590, - "column": 33 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22852, - "end": 22855, - "loc": { - "start": { - "line": 590, - "column": 35 - }, - "end": { - "line": 590, - "column": 38 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 22858, - "end": 22861, - "loc": { - "start": { - "line": 590, - "column": 41 - }, - "end": { - "line": 590, - "column": 44 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22865, - "end": 22868, - "loc": { - "start": { - "line": 590, - "column": 48 - }, - "end": { - "line": 590, - "column": 51 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 22870, - "end": 22904, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 87 - } - }, - "left": { - "type": "CallExpression", - "start": 22870, - "end": 22898, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 81 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22870, - "end": 22880, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 22870, - "end": 22874, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 22875, - "end": 22880, - "loc": { - "start": { - "line": 590, - "column": 58 - }, - "end": { - "line": 590, - "column": 63 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 22881, - "end": 22897, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 80 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22881, - "end": 22891, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 74 - } - }, - "left": { - "type": "MemberExpression", - "start": 22881, - "end": 22887, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 22881, - "end": 22884, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 67 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22885, - "end": 22886, - "loc": { - "start": { - "line": 590, - "column": 68 - }, - "end": { - "line": 590, - "column": 69 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22888, - "end": 22891, - "loc": { - "start": { - "line": 590, - "column": 71 - }, - "end": { - "line": 590, - "column": 74 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 22894, - "end": 22897, - "loc": { - "start": { - "line": 590, - "column": 77 - }, - "end": { - "line": 590, - "column": 80 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22901, - "end": 22904, - "loc": { - "start": { - "line": 590, - "column": 84 - }, - "end": { - "line": 590, - "column": 87 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - }, - { - "type": "BinaryExpression", - "start": 22906, - "end": 22940, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 123 - } - }, - "left": { - "type": "CallExpression", - "start": 22906, - "end": 22934, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 117 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22906, - "end": 22916, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 22906, - "end": 22910, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 93 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 22911, - "end": 22916, - "loc": { - "start": { - "line": 590, - "column": 94 - }, - "end": { - "line": 590, - "column": 99 - }, - "identifierName": "round" - }, - "name": "round" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 22917, - "end": 22933, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 116 - } - }, - "left": { - "type": "BinaryExpression", - "start": 22917, - "end": 22927, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 110 - } - }, - "left": { - "type": "MemberExpression", - "start": 22917, - "end": 22923, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 22917, - "end": 22920, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 103 - }, - "identifierName": "rgb" - }, - "name": "rgb" - }, - "property": { - "type": "NumericLiteral", - "start": 22921, - "end": 22922, - "loc": { - "start": { - "line": 590, - "column": 104 - }, - "end": { - "line": 590, - "column": 105 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22924, - "end": 22927, - "loc": { - "start": { - "line": 590, - "column": 107 - }, - "end": { - "line": 590, - "column": 110 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 22930, - "end": 22933, - "loc": { - "start": { - "line": 590, - "column": 113 - }, - "end": { - "line": 590, - "column": 116 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 22937, - "end": 22940, - "loc": { - "start": { - "line": 590, - "column": 120 - }, - "end": { - "line": 590, - "column": 123 - } - }, - "extra": { - "rawValue": 100, - "raw": "100" - }, - "value": 100 - } - } - ] - } - }, - { - "type": "ObjectProperty", - "start": 22948, - "end": 22981, - "loc": { - "start": { - "line": 591, - "column": 3 - }, - "end": { - "line": 591, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22948, - "end": 22957, - "loc": { - "start": { - "line": 591, - "column": 3 - }, - "end": { - "line": 591, - "column": 12 - } - }, - "extra": { - "rawValue": "decimal", - "raw": "'decimal'" - }, - "value": "decimal" - }, - "value": { - "type": "CallExpression", - "start": 22959, - "end": 22981, - "loc": { - "start": { - "line": 591, - "column": 14 - }, - "end": { - "line": 591, - "column": 36 - } - }, - "callee": { - "type": "MemberExpression", - "start": 22959, - "end": 22976, - "loc": { - "start": { - "line": 591, - "column": 14 - }, - "end": { - "line": 591, - "column": 31 - } - }, - "object": { - "type": "ThisExpression", - "start": 22959, - "end": 22963, - "loc": { - "start": { - "line": 591, - "column": 14 - }, - "end": { - "line": 591, - "column": 18 - } - } - }, - "property": { - "type": "Identifier", - "start": 22964, - "end": 22976, - "loc": { - "start": { - "line": 591, - "column": 19 - }, - "end": { - "line": 591, - "column": 31 - }, - "identifierName": "hexToDecimal" - }, - "name": "hexToDecimal" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 22977, - "end": 22980, - "loc": { - "start": { - "line": 591, - "column": 32 - }, - "end": { - "line": 591, - "column": 35 - }, - "identifierName": "hex" - }, - "name": "hex" - } - ] - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 21629, - "end": 22137, - "loc": { - "start": { - "line": 560, - "column": 1 - }, - "end": { - "line": 569, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 22995, - "end": 23091, - "loc": { - "start": { - "line": 594, - "column": 1 - }, - "end": { - "line": 598, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 23094, - "end": 23280, - "loc": { - "start": { - "line": 599, - "column": 1 - }, - "end": { - "line": 606, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 23094, - "end": 23108, - "loc": { - "start": { - "line": 599, - "column": 1 - }, - "end": { - "line": 599, - "column": 15 - }, - "identifierName": "getRandomColor" - }, - "name": "getRandomColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 23111, - "end": 23280, - "loc": { - "start": { - "line": 599, - "column": 18 - }, - "end": { - "line": 606, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 23116, - "end": 23149, - "loc": { - "start": { - "line": 600, - "column": 2 - }, - "end": { - "line": 600, - "column": 35 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 23122, - "end": 23148, - "loc": { - "start": { - "line": 600, - "column": 8 - }, - "end": { - "line": 600, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 23122, - "end": 23127, - "loc": { - "start": { - "line": 600, - "column": 8 - }, - "end": { - "line": 600, - "column": 13 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "init": { - "type": "StringLiteral", - "start": 23130, - "end": 23148, - "loc": { - "start": { - "line": 600, - "column": 16 - }, - "end": { - "line": 600, - "column": 34 - } - }, - "extra": { - "rawValue": "0123456789ABCDEF", - "raw": "'0123456789ABCDEF'" - }, - "value": "0123456789ABCDEF" - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 23153, - "end": 23169, - "loc": { - "start": { - "line": 601, - "column": 2 - }, - "end": { - "line": 601, - "column": 18 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 23157, - "end": 23168, - "loc": { - "start": { - "line": 601, - "column": 6 - }, - "end": { - "line": 601, - "column": 17 - } - }, - "id": { - "type": "Identifier", - "start": 23157, - "end": 23162, - "loc": { - "start": { - "line": 601, - "column": 6 - }, - "end": { - "line": 601, - "column": 11 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "StringLiteral", - "start": 23165, - "end": 23168, - "loc": { - "start": { - "line": 601, - "column": 14 - }, - "end": { - "line": 601, - "column": 17 - } - }, - "extra": { - "rawValue": "#", - "raw": "'#'" - }, - "value": "#" - } - } - ], - "kind": "let" - }, - { - "type": "ForStatement", - "start": 23173, - "end": 23259, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 604, - "column": 3 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 23178, - "end": 23187, - "loc": { - "start": { - "line": 602, - "column": 7 - }, - "end": { - "line": 602, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 23182, - "end": 23187, - "loc": { - "start": { - "line": 602, - "column": 11 - }, - "end": { - "line": 602, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 23182, - "end": 23183, - "loc": { - "start": { - "line": 602, - "column": 11 - }, - "end": { - "line": 602, - "column": 12 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "NumericLiteral", - "start": 23186, - "end": 23187, - "loc": { - "start": { - "line": 602, - "column": 15 - }, - "end": { - "line": 602, - "column": 16 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 23189, - "end": 23194, - "loc": { - "start": { - "line": 602, - "column": 18 - }, - "end": { - "line": 602, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 23189, - "end": 23190, - "loc": { - "start": { - "line": 602, - "column": 18 - }, - "end": { - "line": 602, - "column": 19 - }, - "identifierName": "i" - }, - "name": "i" - }, - "operator": "<", - "right": { - "type": "NumericLiteral", - "start": 23193, - "end": 23194, - "loc": { - "start": { - "line": 602, - "column": 22 - }, - "end": { - "line": 602, - "column": 23 - } - }, - "extra": { - "rawValue": 6, - "raw": "6" - }, - "value": 6 - } - }, - "update": { - "type": "UpdateExpression", - "start": 23196, - "end": 23199, - "loc": { - "start": { - "line": 602, - "column": 25 - }, - "end": { - "line": 602, - "column": 28 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 23196, - "end": 23197, - "loc": { - "start": { - "line": 602, - "column": 25 - }, - "end": { - "line": 602, - "column": 26 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "body": { - "type": "BlockStatement", - "start": 23201, - "end": 23259, - "loc": { - "start": { - "line": 602, - "column": 30 - }, - "end": { - "line": 604, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 23207, - "end": 23254, - "loc": { - "start": { - "line": 603, - "column": 3 - }, - "end": { - "line": 603, - "column": 50 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 23207, - "end": 23253, - "loc": { - "start": { - "line": 603, - "column": 3 - }, - "end": { - "line": 603, - "column": 49 - } - }, - "operator": "+=", - "left": { - "type": "Identifier", - "start": 23207, - "end": 23212, - "loc": { - "start": { - "line": 603, - "column": 3 - }, - "end": { - "line": 603, - "column": 8 - }, - "identifierName": "color" - }, - "name": "color" - }, - "right": { - "type": "MemberExpression", - "start": 23216, - "end": 23253, - "loc": { - "start": { - "line": 603, - "column": 12 - }, - "end": { - "line": 603, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 23216, - "end": 23221, - "loc": { - "start": { - "line": 603, - "column": 12 - }, - "end": { - "line": 603, - "column": 17 - }, - "identifierName": "chars" - }, - "name": "chars" - }, - "property": { - "type": "CallExpression", - "start": 23222, - "end": 23252, - "loc": { - "start": { - "line": 603, - "column": 18 - }, - "end": { - "line": 603, - "column": 48 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23222, - "end": 23232, - "loc": { - "start": { - "line": 603, - "column": 18 - }, - "end": { - "line": 603, - "column": 28 - } - }, - "object": { - "type": "Identifier", - "start": 23222, - "end": 23226, - "loc": { - "start": { - "line": 603, - "column": 18 - }, - "end": { - "line": 603, - "column": 22 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 23227, - "end": 23232, - "loc": { - "start": { - "line": 603, - "column": 23 - }, - "end": { - "line": 603, - "column": 28 - }, - "identifierName": "floor" - }, - "name": "floor" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 23233, - "end": 23251, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 47 - } - }, - "left": { - "type": "CallExpression", - "start": 23233, - "end": 23246, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 42 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23233, - "end": 23244, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 40 - } - }, - "object": { - "type": "Identifier", - "start": 23233, - "end": 23237, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 33 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 23238, - "end": 23244, - "loc": { - "start": { - "line": 603, - "column": 34 - }, - "end": { - "line": 603, - "column": 40 - }, - "identifierName": "random" - }, - "name": "random" - }, - "computed": false - }, - "arguments": [] - }, - "operator": "*", - "right": { - "type": "NumericLiteral", - "start": 23249, - "end": 23251, - "loc": { - "start": { - "line": 603, - "column": 45 - }, - "end": { - "line": 603, - "column": 47 - } - }, - "extra": { - "rawValue": 16, - "raw": "16" - }, - "value": 16 - } - } - ] - }, - "computed": true - } - } - } - ], - "directives": [] - } - }, - { - "type": "ReturnStatement", - "start": 23263, - "end": 23276, - "loc": { - "start": { - "line": 605, - "column": 2 - }, - "end": { - "line": 605, - "column": 15 - } - }, - "argument": { - "type": "Identifier", - "start": 23270, - "end": 23275, - "loc": { - "start": { - "line": 605, - "column": 9 - }, - "end": { - "line": 605, - "column": 14 - }, - "identifierName": "color" - }, - "name": "color" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 22995, - "end": 23091, - "loc": { - "start": { - "line": 594, - "column": 1 - }, - "end": { - "line": 598, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 23283, - "end": 23739, - "loc": { - "start": { - "line": 607, - "column": 1 - }, - "end": { - "line": 616, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 23742, - "end": 23943, - "loc": { - "start": { - "line": 617, - "column": 1 - }, - "end": { - "line": 620, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 23742, - "end": 23763, - "loc": { - "start": { - "line": 617, - "column": 1 - }, - "end": { - "line": 617, - "column": 22 - }, - "identifierName": "getRandomColorBetween" - }, - "name": "getRandomColorBetween", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 23764, - "end": 23771, - "loc": { - "start": { - "line": 617, - "column": 23 - }, - "end": { - "line": 617, - "column": 30 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - }, - { - "type": "Identifier", - "start": 23773, - "end": 23780, - "loc": { - "start": { - "line": 617, - "column": 32 - }, - "end": { - "line": 617, - "column": 39 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - }, - { - "type": "AssignmentPattern", - "start": 23782, - "end": 23795, - "loc": { - "start": { - "line": 617, - "column": 41 - }, - "end": { - "line": 617, - "column": 54 - } - }, - "left": { - "type": "Identifier", - "start": 23782, - "end": 23789, - "loc": { - "start": { - "line": 617, - "column": 41 - }, - "end": { - "line": 617, - "column": 48 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - }, - "right": { - "type": "NumericLiteral", - "start": 23792, - "end": 23795, - "loc": { - "start": { - "line": 617, - "column": 51 - }, - "end": { - "line": 617, - "column": 54 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ], - "body": { - "type": "BlockStatement", - "start": 23797, - "end": 23943, - "loc": { - "start": { - "line": 617, - "column": 56 - }, - "end": { - "line": 620, - "column": 2 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 23840, - "end": 23939, - "loc": { - "start": { - "line": 619, - "column": 2 - }, - "end": { - "line": 619, - "column": 101 - } - }, - "argument": { - "type": "CallExpression", - "start": 23847, - "end": 23938, - "loc": { - "start": { - "line": 619, - "column": 9 - }, - "end": { - "line": 619, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23847, - "end": 23863, - "loc": { - "start": { - "line": 619, - "column": 9 - }, - "end": { - "line": 619, - "column": 25 - } - }, - "object": { - "type": "ThisExpression", - "start": 23847, - "end": 23851, - "loc": { - "start": { - "line": 619, - "column": 9 - }, - "end": { - "line": 619, - "column": 13 - } - }, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 23852, - "end": 23863, - "loc": { - "start": { - "line": 619, - "column": 14 - }, - "end": { - "line": 619, - "column": 25 - }, - "identifierName": "flooredLerp" - }, - "name": "flooredLerp" - }, - "computed": false, - "leadingComments": null - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 23864, - "end": 23895, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 57 - } - }, - "object": { - "type": "CallExpression", - "start": 23864, - "end": 23887, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 49 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23864, - "end": 23878, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 40 - } - }, - "object": { - "type": "ThisExpression", - "start": 23864, - "end": 23868, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 30 - } - } - }, - "property": { - "type": "Identifier", - "start": 23869, - "end": 23878, - "loc": { - "start": { - "line": 619, - "column": 31 - }, - "end": { - "line": 619, - "column": 40 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 23879, - "end": 23886, - "loc": { - "start": { - "line": 619, - "column": 41 - }, - "end": { - "line": 619, - "column": 48 - }, - "identifierName": "pColor1" - }, - "name": "pColor1" - } - ] - }, - "property": { - "type": "Identifier", - "start": 23888, - "end": 23895, - "loc": { - "start": { - "line": 619, - "column": 50 - }, - "end": { - "line": 619, - "column": 57 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "MemberExpression", - "start": 23897, - "end": 23928, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 90 - } - }, - "object": { - "type": "CallExpression", - "start": 23897, - "end": 23920, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 82 - } - }, - "callee": { - "type": "MemberExpression", - "start": 23897, - "end": 23911, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 73 - } - }, - "object": { - "type": "ThisExpression", - "start": 23897, - "end": 23901, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 63 - } - } - }, - "property": { - "type": "Identifier", - "start": 23902, - "end": 23911, - "loc": { - "start": { - "line": 619, - "column": 64 - }, - "end": { - "line": 619, - "column": 73 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 23912, - "end": 23919, - "loc": { - "start": { - "line": 619, - "column": 74 - }, - "end": { - "line": 619, - "column": 81 - }, - "identifierName": "pColor2" - }, - "name": "pColor2" - } - ] - }, - "property": { - "type": "Identifier", - "start": 23921, - "end": 23928, - "loc": { - "start": { - "line": 619, - "column": 83 - }, - "end": { - "line": 619, - "column": 90 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - }, - { - "type": "Identifier", - "start": 23930, - "end": 23937, - "loc": { - "start": { - "line": 619, - "column": 92 - }, - "end": { - "line": 619, - "column": 99 - }, - "identifierName": "pAmount" - }, - "name": "pAmount" - } - ], - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 23802, - "end": 23836, - "loc": { - "start": { - "line": 618, - "column": 2 - }, - "end": { - "line": 618, - "column": 36 - } - } - } - ] - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 23283, - "end": 23739, - "loc": { - "start": { - "line": 607, - "column": 1 - }, - "end": { - "line": 616, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 23946, - "end": 24734, - "loc": { - "start": { - "line": 621, - "column": 1 - }, - "end": { - "line": 634, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 24737, - "end": 27768, - "loc": { - "start": { - "line": 635, - "column": 1 - }, - "end": { - "line": 713, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 24737, - "end": 24752, - "loc": { - "start": { - "line": 635, - "column": 1 - }, - "end": { - "line": 635, - "column": 16 - }, - "identifierName": "transitionColor" - }, - "name": "transitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 24753, - "end": 24762, - "loc": { - "start": { - "line": 635, - "column": 17 - }, - "end": { - "line": 635, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - { - "type": "AssignmentPattern", - "start": 24764, - "end": 24782, - "loc": { - "start": { - "line": 635, - "column": 28 - }, - "end": { - "line": 635, - "column": 46 - } - }, - "left": { - "type": "Identifier", - "start": 24764, - "end": 24775, - "loc": { - "start": { - "line": 635, - "column": 28 - }, - "end": { - "line": 635, - "column": 39 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - }, - "right": { - "type": "StringLiteral", - "start": 24776, - "end": 24782, - "loc": { - "start": { - "line": 635, - "column": 40 - }, - "end": { - "line": 635, - "column": 46 - } - }, - "extra": { - "rawValue": "#000", - "raw": "'#000'" - }, - "value": "#000" - } - }, - { - "type": "AssignmentPattern", - "start": 24784, - "end": 24800, - "loc": { - "start": { - "line": 635, - "column": 48 - }, - "end": { - "line": 635, - "column": 64 - } - }, - "left": { - "type": "Identifier", - "start": 24784, - "end": 24793, - "loc": { - "start": { - "line": 635, - "column": 48 - }, - "end": { - "line": 635, - "column": 57 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - }, - "right": { - "type": "StringLiteral", - "start": 24794, - "end": 24800, - "loc": { - "start": { - "line": 635, - "column": 58 - }, - "end": { - "line": 635, - "column": 64 - } - }, - "extra": { - "rawValue": "#fff", - "raw": "'#fff'" - }, - "value": "#fff" - } - }, - { - "type": "AssignmentPattern", - "start": 24802, - "end": 24816, - "loc": { - "start": { - "line": 635, - "column": 66 - }, - "end": { - "line": 635, - "column": 80 - } - }, - "left": { - "type": "Identifier", - "start": 24802, - "end": 24811, - "loc": { - "start": { - "line": 635, - "column": 66 - }, - "end": { - "line": 635, - "column": 75 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - }, - "right": { - "type": "NumericLiteral", - "start": 24812, - "end": 24816, - "loc": { - "start": { - "line": 635, - "column": 76 - }, - "end": { - "line": 635, - "column": 80 - } - }, - "extra": { - "rawValue": 1000, - "raw": "1000" - }, - "value": 1000 - } - }, - { - "type": "Identifier", - "start": 24818, - "end": 24836, - "loc": { - "start": { - "line": 635, - "column": 82 - }, - "end": { - "line": 635, - "column": 100 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - { - "type": "Identifier", - "start": 24838, - "end": 24850, - "loc": { - "start": { - "line": 635, - "column": 102 - }, - "end": { - "line": 635, - "column": 114 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - } - ], - "body": { - "type": "BlockStatement", - "start": 24852, - "end": 27768, - "loc": { - "start": { - "line": 635, - "column": 116 - }, - "end": { - "line": 713, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 24897, - "end": 24928, - "loc": { - "start": { - "line": 637, - "column": 2 - }, - "end": { - "line": 637, - "column": 33 - } - }, - "test": { - "type": "UnaryExpression", - "start": 24901, - "end": 24919, - "loc": { - "start": { - "line": 637, - "column": 6 - }, - "end": { - "line": 637, - "column": 24 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 24902, - "end": 24919, - "loc": { - "start": { - "line": 637, - "column": 7 - }, - "end": { - "line": 637, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 24902, - "end": 24912, - "loc": { - "start": { - "line": 637, - "column": 7 - }, - "end": { - "line": 637, - "column": 17 - }, - "identifierName": "globalThis" - }, - "name": "globalThis", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 24913, - "end": 24919, - "loc": { - "start": { - "line": 637, - "column": 18 - }, - "end": { - "line": 637, - "column": 24 - }, - "identifierName": "window" - }, - "name": "window" - }, - "computed": false, - "leadingComments": null - }, - "extra": { - "parenthesizedArgument": false - }, - "leadingComments": null - }, - "consequent": { - "type": "ReturnStatement", - "start": 24921, - "end": 24928, - "loc": { - "start": { - "line": 637, - "column": 26 - }, - "end": { - "line": 637, - "column": 33 - } - }, - "argument": null - }, - "alternate": null, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 24857, - "end": 24893, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 636, - "column": 38 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 24932, - "end": 25028, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 638, - "column": 98 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 24938, - "end": 25027, - "loc": { - "start": { - "line": 638, - "column": 8 - }, - "end": { - "line": 638, - "column": 97 - } - }, - "id": { - "type": "Identifier", - "start": 24938, - "end": 24955, - "loc": { - "start": { - "line": 638, - "column": 8 - }, - "end": { - "line": 638, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 24958, - "end": 25027, - "loc": { - "start": { - "line": 638, - "column": 28 - }, - "end": { - "line": 638, - "column": 97 - } - }, - "test": { - "type": "BinaryExpression", - "start": 24958, - "end": 24999, - "loc": { - "start": { - "line": 638, - "column": 28 - }, - "end": { - "line": 638, - "column": 69 - } - }, - "left": { - "type": "UnaryExpression", - "start": 24958, - "end": 24984, - "loc": { - "start": { - "line": 638, - "column": 28 - }, - "end": { - "line": 638, - "column": 54 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 24965, - "end": 24983, - "loc": { - "start": { - "line": 638, - "column": 35 - }, - "end": { - "line": 638, - "column": 53 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback", - "extra": { - "parenthesized": true, - "parenStart": 24964 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 24989, - "end": 24999, - "loc": { - "start": { - "line": 638, - "column": 59 - }, - "end": { - "line": 638, - "column": 69 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 25002, - "end": 25020, - "loc": { - "start": { - "line": 638, - "column": 72 - }, - "end": { - "line": 638, - "column": 90 - }, - "identifierName": "pIterativeCallback" - }, - "name": "pIterativeCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 25023, - "end": 25027, - "loc": { - "start": { - "line": 638, - "column": 93 - }, - "end": { - "line": 638, - "column": 97 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25032, - "end": 25110, - "loc": { - "start": { - "line": 639, - "column": 2 - }, - "end": { - "line": 639, - "column": 80 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25038, - "end": 25109, - "loc": { - "start": { - "line": 639, - "column": 8 - }, - "end": { - "line": 639, - "column": 79 - } - }, - "id": { - "type": "Identifier", - "start": 25038, - "end": 25049, - "loc": { - "start": { - "line": 639, - "column": 8 - }, - "end": { - "line": 639, - "column": 19 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "init": { - "type": "ConditionalExpression", - "start": 25052, - "end": 25109, - "loc": { - "start": { - "line": 639, - "column": 22 - }, - "end": { - "line": 639, - "column": 79 - } - }, - "test": { - "type": "BinaryExpression", - "start": 25052, - "end": 25087, - "loc": { - "start": { - "line": 639, - "column": 22 - }, - "end": { - "line": 639, - "column": 57 - } - }, - "left": { - "type": "UnaryExpression", - "start": 25052, - "end": 25072, - "loc": { - "start": { - "line": 639, - "column": 22 - }, - "end": { - "line": 639, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 25059, - "end": 25071, - "loc": { - "start": { - "line": 639, - "column": 29 - }, - "end": { - "line": 639, - "column": 41 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback", - "extra": { - "parenthesized": true, - "parenStart": 25058 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25077, - "end": 25087, - "loc": { - "start": { - "line": 639, - "column": 47 - }, - "end": { - "line": 639, - "column": 57 - } - }, - "extra": { - "rawValue": "function", - "raw": "'function'" - }, - "value": "function" - } - }, - "consequent": { - "type": "Identifier", - "start": 25090, - "end": 25102, - "loc": { - "start": { - "line": 639, - "column": 60 - }, - "end": { - "line": 639, - "column": 72 - }, - "identifierName": "pEndCallback" - }, - "name": "pEndCallback" - }, - "alternate": { - "type": "NullLiteral", - "start": 25105, - "end": 25109, - "loc": { - "start": { - "line": 639, - "column": 75 - }, - "end": { - "line": 639, - "column": 79 - } - } - } - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25114, - "end": 25121, - "loc": { - "start": { - "line": 640, - "column": 2 - }, - "end": { - "line": 640, - "column": 9 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25118, - "end": 25120, - "loc": { - "start": { - "line": 640, - "column": 6 - }, - "end": { - "line": 640, - "column": 8 - } - }, - "id": { - "type": "Identifier", - "start": 25118, - "end": 25120, - "loc": { - "start": { - "line": 640, - "column": 6 - }, - "end": { - "line": 640, - "column": 8 - }, - "identifierName": "id" - }, - "name": "id" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 25125, - "end": 25140, - "loc": { - "start": { - "line": 641, - "column": 2 - }, - "end": { - "line": 641, - "column": 17 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25129, - "end": 25139, - "loc": { - "start": { - "line": 641, - "column": 6 - }, - "end": { - "line": 641, - "column": 16 - } - }, - "id": { - "type": "Identifier", - "start": 25129, - "end": 25139, - "loc": { - "start": { - "line": 641, - "column": 6 - }, - "end": { - "line": 641, - "column": 16 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 25144, - "end": 25161, - "loc": { - "start": { - "line": 642, - "column": 2 - }, - "end": { - "line": 642, - "column": 19 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25148, - "end": 25160, - "loc": { - "start": { - "line": 642, - "column": 6 - }, - "end": { - "line": 642, - "column": 18 - } - }, - "id": { - "type": "Identifier", - "start": 25148, - "end": 25160, - "loc": { - "start": { - "line": 642, - "column": 6 - }, - "end": { - "line": 642, - "column": 18 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "init": null - } - ], - "kind": "let" - }, - { - "type": "IfStatement", - "start": 25167, - "end": 25523, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 651, - "column": 3 - } - }, - "test": { - "type": "Identifier", - "start": 25171, - "end": 25180, - "loc": { - "start": { - "line": 644, - "column": 6 - }, - "end": { - "line": 644, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 25182, - "end": 25483, - "loc": { - "start": { - "line": 644, - "column": 17 - }, - "end": { - "line": 649, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25188, - "end": 25241, - "loc": { - "start": { - "line": 645, - "column": 3 - }, - "end": { - "line": 645, - "column": 56 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25188, - "end": 25240, - "loc": { - "start": { - "line": 645, - "column": 3 - }, - "end": { - "line": 645, - "column": 55 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25188, - "end": 25190, - "loc": { - "start": { - "line": 645, - "column": 3 - }, - "end": { - "line": 645, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "ConditionalExpression", - "start": 25193, - "end": 25240, - "loc": { - "start": { - "line": 645, - "column": 8 - }, - "end": { - "line": 645, - "column": 55 - } - }, - "test": { - "type": "MemberExpression", - "start": 25193, - "end": 25205, - "loc": { - "start": { - "line": 645, - "column": 8 - }, - "end": { - "line": 645, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 25193, - "end": 25202, - "loc": { - "start": { - "line": 645, - "column": 8 - }, - "end": { - "line": 645, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25203, - "end": 25205, - "loc": { - "start": { - "line": 645, - "column": 18 - }, - "end": { - "line": 645, - "column": 20 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "consequent": { - "type": "MemberExpression", - "start": 25208, - "end": 25220, - "loc": { - "start": { - "line": 645, - "column": 23 - }, - "end": { - "line": 645, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 25208, - "end": 25217, - "loc": { - "start": { - "line": 645, - "column": 23 - }, - "end": { - "line": 645, - "column": 32 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25218, - "end": 25220, - "loc": { - "start": { - "line": 645, - "column": 33 - }, - "end": { - "line": 645, - "column": 35 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": false - }, - "alternate": { - "type": "CallExpression", - "start": 25223, - "end": 25240, - "loc": { - "start": { - "line": 645, - "column": 38 - }, - "end": { - "line": 645, - "column": 55 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25223, - "end": 25238, - "loc": { - "start": { - "line": 645, - "column": 38 - }, - "end": { - "line": 645, - "column": 53 - } - }, - "object": { - "type": "ThisExpression", - "start": 25223, - "end": 25227, - "loc": { - "start": { - "line": 645, - "column": 38 - }, - "end": { - "line": 645, - "column": 42 - } - } - }, - "property": { - "type": "Identifier", - "start": 25228, - "end": 25238, - "loc": { - "start": { - "line": 645, - "column": 43 - }, - "end": { - "line": 645, - "column": 53 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 25246, - "end": 25300, - "loc": { - "start": { - "line": 646, - "column": 3 - }, - "end": { - "line": 646, - "column": 57 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25246, - "end": 25299, - "loc": { - "start": { - "line": 646, - "column": 3 - }, - "end": { - "line": 646, - "column": 56 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25246, - "end": 25256, - "loc": { - "start": { - "line": 646, - "column": 3 - }, - "end": { - "line": 646, - "column": 13 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "right": { - "type": "BinaryExpression", - "start": 25260, - "end": 25298, - "loc": { - "start": { - "line": 646, - "column": 17 - }, - "end": { - "line": 646, - "column": 55 - } - }, - "left": { - "type": "MemberExpression", - "start": 25260, - "end": 25274, - "loc": { - "start": { - "line": 646, - "column": 17 - }, - "end": { - "line": 646, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 25260, - "end": 25269, - "loc": { - "start": { - "line": 646, - "column": 17 - }, - "end": { - "line": 646, - "column": 26 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25270, - "end": 25274, - "loc": { - "start": { - "line": 646, - "column": 27 - }, - "end": { - "line": 646, - "column": 31 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25279, - "end": 25298, - "loc": { - "start": { - "line": 646, - "column": 36 - }, - "end": { - "line": 646, - "column": 55 - } - }, - "extra": { - "rawValue": "GeneratedParticle", - "raw": "'GeneratedParticle'" - }, - "value": "GeneratedParticle" - }, - "extra": { - "parenthesized": true, - "parenStart": 25259 - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 25305, - "end": 25416, - "loc": { - "start": { - "line": 647, - "column": 3 - }, - "end": { - "line": 647, - "column": 114 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25305, - "end": 25415, - "loc": { - "start": { - "line": 647, - "column": 3 - }, - "end": { - "line": 647, - "column": 113 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25305, - "end": 25317, - "loc": { - "start": { - "line": 647, - "column": 3 - }, - "end": { - "line": 647, - "column": 15 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "right": { - "type": "ConditionalExpression", - "start": 25321, - "end": 25414, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 25321, - "end": 25399, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 97 - } - }, - "left": { - "type": "BinaryExpression", - "start": 25321, - "end": 25357, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 55 - } - }, - "left": { - "type": "UnaryExpression", - "start": 25321, - "end": 25344, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 42 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 25328, - "end": 25343, - "loc": { - "start": { - "line": 647, - "column": 26 - }, - "end": { - "line": 647, - "column": 41 - } - }, - "object": { - "type": "Identifier", - "start": 25328, - "end": 25337, - "loc": { - "start": { - "line": 647, - "column": 26 - }, - "end": { - "line": 647, - "column": 35 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25338, - "end": 25343, - "loc": { - "start": { - "line": 647, - "column": 36 - }, - "end": { - "line": 647, - "column": 41 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 25327 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 25349, - "end": 25357, - "loc": { - "start": { - "line": 647, - "column": 47 - }, - "end": { - "line": 647, - "column": 55 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 25361, - "end": 25399, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 97 - } - }, - "left": { - "type": "MemberExpression", - "start": 25361, - "end": 25388, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 86 - } - }, - "object": { - "type": "MemberExpression", - "start": 25361, - "end": 25376, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 74 - } - }, - "object": { - "type": "Identifier", - "start": 25361, - "end": 25370, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 68 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25371, - "end": 25376, - "loc": { - "start": { - "line": 647, - "column": 69 - }, - "end": { - "line": 647, - "column": 74 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25377, - "end": 25388, - "loc": { - "start": { - "line": 647, - "column": 75 - }, - "end": { - "line": 647, - "column": 86 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 25393, - "end": 25399, - "loc": { - "start": { - "line": 647, - "column": 91 - }, - "end": { - "line": 647, - "column": 97 - }, - "identifierName": "Object" - }, - "name": "Object" - } - } - }, - "consequent": { - "type": "BooleanLiteral", - "start": 25402, - "end": 25406, - "loc": { - "start": { - "line": 647, - "column": 100 - }, - "end": { - "line": 647, - "column": 104 - } - }, - "value": true - }, - "alternate": { - "type": "BooleanLiteral", - "start": 25409, - "end": 25414, - "loc": { - "start": { - "line": 647, - "column": 107 - }, - "end": { - "line": 647, - "column": 112 - } - }, - "value": false - }, - "extra": { - "parenthesized": true, - "parenStart": 25320 - } - } - } - }, - { - "type": "IfStatement", - "start": 25421, - "end": 25478, - "loc": { - "start": { - "line": 648, - "column": 3 - }, - "end": { - "line": 648, - "column": 60 - } - }, - "test": { - "type": "MemberExpression", - "start": 25425, - "end": 25445, - "loc": { - "start": { - "line": 648, - "column": 7 - }, - "end": { - "line": 648, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 25425, - "end": 25441, - "loc": { - "start": { - "line": 648, - "column": 7 - }, - "end": { - "line": 648, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 25425, - "end": 25429, - "loc": { - "start": { - "line": 648, - "column": 7 - }, - "end": { - "line": 648, - "column": 11 - } - } - }, - "property": { - "type": "Identifier", - "start": 25430, - "end": 25441, - "loc": { - "start": { - "line": 648, - "column": 12 - }, - "end": { - "line": 648, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25442, - "end": 25444, - "loc": { - "start": { - "line": 648, - "column": 24 - }, - "end": { - "line": 648, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 25447, - "end": 25478, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 25447, - "end": 25477, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 59 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25447, - "end": 25473, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 55 - } - }, - "object": { - "type": "ThisExpression", - "start": 25447, - "end": 25451, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 33 - } - } - }, - "property": { - "type": "Identifier", - "start": 25452, - "end": 25473, - "loc": { - "start": { - "line": 648, - "column": 34 - }, - "end": { - "line": 648, - "column": 55 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25474, - "end": 25476, - "loc": { - "start": { - "line": 648, - "column": 56 - }, - "end": { - "line": 648, - "column": 58 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 25489, - "end": 25523, - "loc": { - "start": { - "line": 649, - "column": 9 - }, - "end": { - "line": 651, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25495, - "end": 25518, - "loc": { - "start": { - "line": 650, - "column": 3 - }, - "end": { - "line": 650, - "column": 26 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25495, - "end": 25517, - "loc": { - "start": { - "line": 650, - "column": 3 - }, - "end": { - "line": 650, - "column": 25 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 25495, - "end": 25497, - "loc": { - "start": { - "line": 650, - "column": 3 - }, - "end": { - "line": 650, - "column": 5 - }, - "identifierName": "id" - }, - "name": "id" - }, - "right": { - "type": "CallExpression", - "start": 25500, - "end": 25517, - "loc": { - "start": { - "line": 650, - "column": 8 - }, - "end": { - "line": 650, - "column": 25 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25500, - "end": 25515, - "loc": { - "start": { - "line": 650, - "column": 8 - }, - "end": { - "line": 650, - "column": 23 - } - }, - "object": { - "type": "ThisExpression", - "start": 25500, - "end": 25504, - "loc": { - "start": { - "line": 650, - "column": 8 - }, - "end": { - "line": 650, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "start": 25505, - "end": 25515, - "loc": { - "start": { - "line": 650, - "column": 13 - }, - "end": { - "line": 650, - "column": 23 - }, - "identifierName": "generateID" - }, - "name": "generateID" - }, - "computed": false - }, - "arguments": [] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 25532, - "end": 25649, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 656, - "column": 4 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25532, - "end": 25648, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 656, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 25532, - "end": 25552, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 653, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 25532, - "end": 25548, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 653, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 25532, - "end": 25536, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 653, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 25537, - "end": 25548, - "loc": { - "start": { - "line": 653, - "column": 7 - }, - "end": { - "line": 653, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25549, - "end": 25551, - "loc": { - "start": { - "line": 653, - "column": 19 - }, - "end": { - "line": 653, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "right": { - "type": "ObjectExpression", - "start": 25555, - "end": 25648, - "loc": { - "start": { - "line": 653, - "column": 25 - }, - "end": { - "line": 656, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 25561, - "end": 25582, - "loc": { - "start": { - "line": 654, - "column": 3 - }, - "end": { - "line": 654, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 25561, - "end": 25571, - "loc": { - "start": { - "line": 654, - "column": 3 - }, - "end": { - "line": 654, - "column": 13 - } - }, - "extra": { - "rawValue": "duration", - "raw": "'duration'" - }, - "value": "duration" - }, - "value": { - "type": "Identifier", - "start": 25573, - "end": 25582, - "loc": { - "start": { - "line": 654, - "column": 15 - }, - "end": { - "line": 654, - "column": 24 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - }, - { - "type": "ObjectProperty", - "start": 25588, - "end": 25643, - "loc": { - "start": { - "line": 655, - "column": 3 - }, - "end": { - "line": 655, - "column": 58 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 25588, - "end": 25601, - "loc": { - "start": { - "line": 655, - "column": 3 - }, - "end": { - "line": 655, - "column": 16 - } - }, - "extra": { - "rawValue": "timeTracker", - "raw": "'timeTracker'" - }, - "value": "timeTracker" - }, - "value": { - "type": "ConditionalExpression", - "start": 25603, - "end": 25643, - "loc": { - "start": { - "line": 655, - "column": 18 - }, - "end": { - "line": 655, - "column": 58 - } - }, - "test": { - "type": "Identifier", - "start": 25603, - "end": 25613, - "loc": { - "start": { - "line": 655, - "column": 18 - }, - "end": { - "line": 655, - "column": 28 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "MemberExpression", - "start": 25616, - "end": 25639, - "loc": { - "start": { - "line": 655, - "column": 31 - }, - "end": { - "line": 655, - "column": 54 - } - }, - "object": { - "type": "MemberExpression", - "start": 25616, - "end": 25630, - "loc": { - "start": { - "line": 655, - "column": 31 - }, - "end": { - "line": 655, - "column": 45 - } - }, - "object": { - "type": "Identifier", - "start": 25616, - "end": 25625, - "loc": { - "start": { - "line": 655, - "column": 31 - }, - "end": { - "line": 655, - "column": 40 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25626, - "end": 25630, - "loc": { - "start": { - "line": 655, - "column": 41 - }, - "end": { - "line": 655, - "column": 45 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25631, - "end": 25639, - "loc": { - "start": { - "line": 655, - "column": 46 - }, - "end": { - "line": 655, - "column": 54 - }, - "identifierName": "lifetime" - }, - "name": "lifetime" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 25642, - "end": 25643, - "loc": { - "start": { - "line": 655, - "column": 57 - }, - "end": { - "line": 655, - "column": 58 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - } - ] - } - } - }, - { - "type": "VariableDeclaration", - "start": 25655, - "end": 25714, - "loc": { - "start": { - "line": 658, - "column": 2 - }, - "end": { - "line": 658, - "column": 61 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25661, - "end": 25713, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 658, - "column": 60 - } - }, - "id": { - "type": "Identifier", - "start": 25661, - "end": 25674, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 658, - "column": 21 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "init": { - "type": "MemberExpression", - "start": 25677, - "end": 25713, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 60 - } - }, - "object": { - "type": "CallExpression", - "start": 25677, - "end": 25704, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 51 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25677, - "end": 25691, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 38 - } - }, - "object": { - "type": "ThisExpression", - "start": 25677, - "end": 25681, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "start": 25682, - "end": 25691, - "loc": { - "start": { - "line": 658, - "column": 29 - }, - "end": { - "line": 658, - "column": 38 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25692, - "end": 25703, - "loc": { - "start": { - "line": 658, - "column": 39 - }, - "end": { - "line": 658, - "column": 50 - }, - "identifierName": "pStartColor" - }, - "name": "pStartColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 25705, - "end": 25713, - "loc": { - "start": { - "line": 658, - "column": 52 - }, - "end": { - "line": 658, - "column": 60 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25718, - "end": 25773, - "loc": { - "start": { - "line": 659, - "column": 2 - }, - "end": { - "line": 659, - "column": 57 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25724, - "end": 25772, - "loc": { - "start": { - "line": 659, - "column": 8 - }, - "end": { - "line": 659, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 25724, - "end": 25735, - "loc": { - "start": { - "line": 659, - "column": 8 - }, - "end": { - "line": 659, - "column": 19 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "init": { - "type": "MemberExpression", - "start": 25738, - "end": 25772, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 56 - } - }, - "object": { - "type": "CallExpression", - "start": 25738, - "end": 25763, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 47 - } - }, - "callee": { - "type": "MemberExpression", - "start": 25738, - "end": 25752, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 36 - } - }, - "object": { - "type": "ThisExpression", - "start": 25738, - "end": 25742, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 26 - } - } - }, - "property": { - "type": "Identifier", - "start": 25743, - "end": 25752, - "loc": { - "start": { - "line": 659, - "column": 27 - }, - "end": { - "line": 659, - "column": 36 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 25753, - "end": 25762, - "loc": { - "start": { - "line": 659, - "column": 37 - }, - "end": { - "line": 659, - "column": 46 - }, - "identifierName": "pEndColor" - }, - "name": "pEndColor" - } - ] - }, - "property": { - "type": "Identifier", - "start": 25764, - "end": 25772, - "loc": { - "start": { - "line": 659, - "column": 48 - }, - "end": { - "line": 659, - "column": 56 - }, - "identifierName": "rgbArray" - }, - "name": "rgbArray" - }, - "computed": false - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 25779, - "end": 25797, - "loc": { - "start": { - "line": 661, - "column": 2 - }, - "end": { - "line": 661, - "column": 20 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 25785, - "end": 25796, - "loc": { - "start": { - "line": 661, - "column": 8 - }, - "end": { - "line": 661, - "column": 19 - } - }, - "id": { - "type": "Identifier", - "start": 25785, - "end": 25789, - "loc": { - "start": { - "line": 661, - "column": 8 - }, - "end": { - "line": 661, - "column": 12 - }, - "identifierName": "self" - }, - "name": "self" - }, - "init": { - "type": "ThisExpression", - "start": 25792, - "end": 25796, - "loc": { - "start": { - "line": 661, - "column": 15 - }, - "end": { - "line": 661, - "column": 19 - } - } - } - } - ], - "kind": "const" - }, - { - "type": "ExpressionStatement", - "start": 25801, - "end": 27657, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 709, - "column": 3 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 25801, - "end": 27657, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 709, - "column": 3 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 25801, - "end": 25826, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 25801, - "end": 25821, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 25801, - "end": 25817, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 25801, - "end": 25805, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 25806, - "end": 25817, - "loc": { - "start": { - "line": 662, - "column": 7 - }, - "end": { - "line": 662, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25818, - "end": 25820, - "loc": { - "start": { - "line": 662, - "column": 19 - }, - "end": { - "line": 662, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 25822, - "end": 25826, - "loc": { - "start": { - "line": 662, - "column": 23 - }, - "end": { - "line": 662, - "column": 27 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - }, - "right": { - "type": "ArrowFunctionExpression", - "start": 25829, - "end": 27657, - "loc": { - "start": { - "line": 662, - "column": 30 - }, - "end": { - "line": 709, - "column": 3 - } - }, - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 25830, - "end": 25840, - "loc": { - "start": { - "line": 662, - "column": 31 - }, - "end": { - "line": 662, - "column": 41 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - ], - "body": { - "type": "BlockStatement", - "start": 25845, - "end": 27657, - "loc": { - "start": { - "line": 662, - "column": 46 - }, - "end": { - "line": 709, - "column": 3 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25851, - "end": 27652, - "loc": { - "start": { - "line": 663, - "column": 3 - }, - "end": { - "line": 708, - "column": 4 - } - }, - "test": { - "type": "MemberExpression", - "start": 25855, - "end": 25875, - "loc": { - "start": { - "line": 663, - "column": 7 - }, - "end": { - "line": 663, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 25855, - "end": 25871, - "loc": { - "start": { - "line": 663, - "column": 7 - }, - "end": { - "line": 663, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 25855, - "end": 25859, - "loc": { - "start": { - "line": 663, - "column": 7 - }, - "end": { - "line": 663, - "column": 11 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 25860, - "end": 25871, - "loc": { - "start": { - "line": 663, - "column": 12 - }, - "end": { - "line": 663, - "column": 23 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25872, - "end": 25874, - "loc": { - "start": { - "line": 663, - "column": 24 - }, - "end": { - "line": 663, - "column": 26 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 25877, - "end": 27652, - "loc": { - "start": { - "line": 663, - "column": 29 - }, - "end": { - "line": 708, - "column": 4 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25884, - "end": 26166, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 675, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 25888, - "end": 25898, - "loc": { - "start": { - "line": 664, - "column": 8 - }, - "end": { - "line": 664, - "column": 18 - }, - "identifierName": "isParticle" - }, - "name": "isParticle" - }, - "consequent": { - "type": "BlockStatement", - "start": 25900, - "end": 26166, - "loc": { - "start": { - "line": 664, - "column": 20 - }, - "end": { - "line": 675, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25908, - "end": 26159, - "loc": { - "start": { - "line": 665, - "column": 5 - }, - "end": { - "line": 674, - "column": 6 - } - }, - "test": { - "type": "MemberExpression", - "start": 25912, - "end": 25926, - "loc": { - "start": { - "line": 665, - "column": 9 - }, - "end": { - "line": 665, - "column": 23 - } - }, - "object": { - "type": "Identifier", - "start": 25912, - "end": 25921, - "loc": { - "start": { - "line": 665, - "column": 9 - }, - "end": { - "line": 665, - "column": 18 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25922, - "end": 25926, - "loc": { - "start": { - "line": 665, - "column": 19 - }, - "end": { - "line": 665, - "column": 23 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 25928, - "end": 26060, - "loc": { - "start": { - "line": 665, - "column": 25 - }, - "end": { - "line": 671, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25937, - "end": 26052, - "loc": { - "start": { - "line": 666, - "column": 6 - }, - "end": { - "line": 670, - "column": 7 - } - }, - "test": { - "type": "MemberExpression", - "start": 25941, - "end": 25961, - "loc": { - "start": { - "line": 666, - "column": 10 - }, - "end": { - "line": 666, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 25941, - "end": 25955, - "loc": { - "start": { - "line": 666, - "column": 10 - }, - "end": { - "line": 666, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 25941, - "end": 25950, - "loc": { - "start": { - "line": 666, - "column": 10 - }, - "end": { - "line": 666, - "column": 19 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25951, - "end": 25955, - "loc": { - "start": { - "line": 666, - "column": 20 - }, - "end": { - "line": 666, - "column": 24 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25956, - "end": 25961, - "loc": { - "start": { - "line": 666, - "column": 25 - }, - "end": { - "line": 666, - "column": 30 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 25963, - "end": 26052, - "loc": { - "start": { - "line": 666, - "column": 32 - }, - "end": { - "line": 670, - "column": 7 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 25973, - "end": 26043, - "loc": { - "start": { - "line": 667, - "column": 7 - }, - "end": { - "line": 669, - "column": 8 - } - }, - "test": { - "type": "MemberExpression", - "start": 25977, - "end": 26013, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 25977, - "end": 26006, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 40 - } - }, - "object": { - "type": "MemberExpression", - "start": 25977, - "end": 25997, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 25977, - "end": 25991, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 25977, - "end": 25986, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 20 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 25987, - "end": 25991, - "loc": { - "start": { - "line": 667, - "column": 21 - }, - "end": { - "line": 667, - "column": 25 - }, - "identifierName": "info" - }, - "name": "info" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25992, - "end": 25997, - "loc": { - "start": { - "line": 667, - "column": 26 - }, - "end": { - "line": 667, - "column": 31 - }, - "identifierName": "owner" - }, - "name": "owner" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 25998, - "end": 26006, - "loc": { - "start": { - "line": 667, - "column": 32 - }, - "end": { - "line": 667, - "column": 40 - }, - "identifierName": "settings" - }, - "name": "settings" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26007, - "end": 26013, - "loc": { - "start": { - "line": 667, - "column": 41 - }, - "end": { - "line": 667, - "column": 47 - }, - "identifierName": "paused" - }, - "name": "paused" - }, - "computed": false - }, - "consequent": { - "type": "BlockStatement", - "start": 26015, - "end": 26043, - "loc": { - "start": { - "line": 667, - "column": 49 - }, - "end": { - "line": 669, - "column": 8 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 26026, - "end": 26033, - "loc": { - "start": { - "line": 668, - "column": 8 - }, - "end": { - "line": 668, - "column": 15 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 26066, - "end": 26159, - "loc": { - "start": { - "line": 671, - "column": 12 - }, - "end": { - "line": 674, - "column": 6 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 26075, - "end": 26132, - "loc": { - "start": { - "line": 672, - "column": 6 - }, - "end": { - "line": 672, - "column": 63 - } - }, - "test": { - "type": "MemberExpression", - "start": 26079, - "end": 26099, - "loc": { - "start": { - "line": 672, - "column": 10 - }, - "end": { - "line": 672, - "column": 30 - } - }, - "object": { - "type": "MemberExpression", - "start": 26079, - "end": 26095, - "loc": { - "start": { - "line": 672, - "column": 10 - }, - "end": { - "line": 672, - "column": 26 - } - }, - "object": { - "type": "Identifier", - "start": 26079, - "end": 26083, - "loc": { - "start": { - "line": 672, - "column": 10 - }, - "end": { - "line": 672, - "column": 14 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26084, - "end": 26095, - "loc": { - "start": { - "line": 672, - "column": 15 - }, - "end": { - "line": 672, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26096, - "end": 26098, - "loc": { - "start": { - "line": 672, - "column": 27 - }, - "end": { - "line": 672, - "column": 29 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 26101, - "end": 26132, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 63 - } - }, - "expression": { - "type": "CallExpression", - "start": 26101, - "end": 26131, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 62 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26101, - "end": 26127, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 58 - } - }, - "object": { - "type": "ThisExpression", - "start": 26101, - "end": 26105, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 36 - } - } - }, - "property": { - "type": "Identifier", - "start": 26106, - "end": 26127, - "loc": { - "start": { - "line": 672, - "column": 37 - }, - "end": { - "line": 672, - "column": 58 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 26128, - "end": 26130, - "loc": { - "start": { - "line": 672, - "column": 59 - }, - "end": { - "line": 672, - "column": 61 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 26140, - "end": 26147, - "loc": { - "start": { - "line": 673, - "column": 6 - }, - "end": { - "line": 673, - "column": 13 - } - }, - "argument": null - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 26174, - "end": 26197, - "loc": { - "start": { - "line": 677, - "column": 4 - }, - "end": { - "line": 677, - "column": 27 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26180, - "end": 26196, - "loc": { - "start": { - "line": 677, - "column": 10 - }, - "end": { - "line": 677, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 26180, - "end": 26183, - "loc": { - "start": { - "line": 677, - "column": 10 - }, - "end": { - "line": 677, - "column": 13 - }, - "identifierName": "now" - }, - "name": "now" - }, - "init": { - "type": "Identifier", - "start": 26186, - "end": 26196, - "loc": { - "start": { - "line": 677, - "column": 16 - }, - "end": { - "line": 677, - "column": 26 - }, - "identifierName": "pTimeStamp" - }, - "name": "pTimeStamp" - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 26203, - "end": 26275, - "loc": { - "start": { - "line": 678, - "column": 4 - }, - "end": { - "line": 678, - "column": 76 - } - }, - "test": { - "type": "UnaryExpression", - "start": 26207, - "end": 26237, - "loc": { - "start": { - "line": 678, - "column": 8 - }, - "end": { - "line": 678, - "column": 38 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 26208, - "end": 26237, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 38 - } - }, - "object": { - "type": "MemberExpression", - "start": 26208, - "end": 26228, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 26208, - "end": 26224, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 26208, - "end": 26212, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26213, - "end": 26224, - "loc": { - "start": { - "line": 678, - "column": 14 - }, - "end": { - "line": 678, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26225, - "end": 26227, - "loc": { - "start": { - "line": 678, - "column": 26 - }, - "end": { - "line": 678, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26229, - "end": 26237, - "loc": { - "start": { - "line": 678, - "column": 30 - }, - "end": { - "line": 678, - "column": 38 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 26239, - "end": 26275, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 76 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 26239, - "end": 26274, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 75 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 26239, - "end": 26268, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 69 - } - }, - "object": { - "type": "MemberExpression", - "start": 26239, - "end": 26259, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 26239, - "end": 26255, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 56 - } - }, - "object": { - "type": "Identifier", - "start": 26239, - "end": 26243, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 44 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26244, - "end": 26255, - "loc": { - "start": { - "line": 678, - "column": 45 - }, - "end": { - "line": 678, - "column": 56 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26256, - "end": 26258, - "loc": { - "start": { - "line": 678, - "column": 57 - }, - "end": { - "line": 678, - "column": 59 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26260, - "end": 26268, - "loc": { - "start": { - "line": 678, - "column": 61 - }, - "end": { - "line": 678, - "column": 69 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 26271, - "end": 26274, - "loc": { - "start": { - "line": 678, - "column": 72 - }, - "end": { - "line": 678, - "column": 75 - }, - "identifierName": "now" - }, - "name": "now" - } - } - }, - "alternate": null - }, - { - "type": "VariableDeclaration", - "start": 26281, - "end": 26333, - "loc": { - "start": { - "line": 679, - "column": 4 - }, - "end": { - "line": 679, - "column": 56 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26287, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 10 - }, - "end": { - "line": 679, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 26287, - "end": 26294, - "loc": { - "start": { - "line": 679, - "column": 10 - }, - "end": { - "line": 679, - "column": 17 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "init": { - "type": "BinaryExpression", - "start": 26297, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 20 - }, - "end": { - "line": 679, - "column": 55 - } - }, - "left": { - "type": "Identifier", - "start": 26297, - "end": 26300, - "loc": { - "start": { - "line": 679, - "column": 20 - }, - "end": { - "line": 679, - "column": 23 - }, - "identifierName": "now" - }, - "name": "now" - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 26303, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 55 - } - }, - "object": { - "type": "MemberExpression", - "start": 26303, - "end": 26323, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 46 - } - }, - "object": { - "type": "MemberExpression", - "start": 26303, - "end": 26319, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 26303, - "end": 26307, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 30 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26308, - "end": 26319, - "loc": { - "start": { - "line": 679, - "column": 31 - }, - "end": { - "line": 679, - "column": 42 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26320, - "end": 26322, - "loc": { - "start": { - "line": 679, - "column": 43 - }, - "end": { - "line": 679, - "column": 45 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26324, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 47 - }, - "end": { - "line": 679, - "column": 55 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 26339, - "end": 26522, - "loc": { - "start": { - "line": 680, - "column": 4 - }, - "end": { - "line": 680, - "column": 187 - } - } - } - ] - }, - { - "type": "ExpressionStatement", - "start": 26528, - "end": 26572, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 48 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 26528, - "end": 26571, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 47 - } - }, - "operator": "+=", - "left": { - "type": "MemberExpression", - "start": 26528, - "end": 26560, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 36 - } - }, - "object": { - "type": "MemberExpression", - "start": 26528, - "end": 26548, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 26528, - "end": 26544, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 26528, - "end": 26532, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self", - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 26533, - "end": 26544, - "loc": { - "start": { - "line": 681, - "column": 9 - }, - "end": { - "line": 681, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 26545, - "end": 26547, - "loc": { - "start": { - "line": 681, - "column": 21 - }, - "end": { - "line": 681, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true, - "leadingComments": null - }, - "property": { - "type": "Identifier", - "start": 26549, - "end": 26560, - "loc": { - "start": { - "line": 681, - "column": 25 - }, - "end": { - "line": 681, - "column": 36 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false, - "leadingComments": null - }, - "right": { - "type": "Identifier", - "start": 26564, - "end": 26571, - "loc": { - "start": { - "line": 681, - "column": 40 - }, - "end": { - "line": 681, - "column": 47 - }, - "identifierName": "elapsed" - }, - "name": "elapsed" - }, - "leadingComments": null - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 26339, - "end": 26522, - "loc": { - "start": { - "line": 680, - "column": 4 - }, - "end": { - "line": 680, - "column": 187 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 26578, - "end": 26634, - "loc": { - "start": { - "line": 682, - "column": 4 - }, - "end": { - "line": 682, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 26640, - "end": 26737, - "loc": { - "start": { - "line": 683, - "column": 4 - }, - "end": { - "line": 683, - "column": 101 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26646, - "end": 26736, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 100 - } - }, - "id": { - "type": "Identifier", - "start": 26646, - "end": 26656, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 20 - }, - "identifierName": "percentage" - }, - "name": "percentage", - "leadingComments": null - }, - "init": { - "type": "CallExpression", - "start": 26659, - "end": 26736, - "loc": { - "start": { - "line": 683, - "column": 23 - }, - "end": { - "line": 683, - "column": 100 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26659, - "end": 26667, - "loc": { - "start": { - "line": 683, - "column": 23 - }, - "end": { - "line": 683, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 26659, - "end": 26663, - "loc": { - "start": { - "line": 683, - "column": 23 - }, - "end": { - "line": 683, - "column": 27 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 26664, - "end": 26667, - "loc": { - "start": { - "line": 683, - "column": 28 - }, - "end": { - "line": 683, - "column": 31 - }, - "identifierName": "min" - }, - "name": "min" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 26668, - "end": 26732, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 96 - } - }, - "left": { - "type": "MemberExpression", - "start": 26668, - "end": 26700, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 64 - } - }, - "object": { - "type": "MemberExpression", - "start": 26668, - "end": 26688, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 52 - } - }, - "object": { - "type": "MemberExpression", - "start": 26668, - "end": 26684, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 48 - } - }, - "object": { - "type": "Identifier", - "start": 26668, - "end": 26672, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 36 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26673, - "end": 26684, - "loc": { - "start": { - "line": 683, - "column": 37 - }, - "end": { - "line": 683, - "column": 48 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26685, - "end": 26687, - "loc": { - "start": { - "line": 683, - "column": 49 - }, - "end": { - "line": 683, - "column": 51 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26689, - "end": 26700, - "loc": { - "start": { - "line": 683, - "column": 53 - }, - "end": { - "line": 683, - "column": 64 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "MemberExpression", - "start": 26703, - "end": 26732, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 96 - } - }, - "object": { - "type": "MemberExpression", - "start": 26703, - "end": 26723, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 26703, - "end": 26719, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 83 - } - }, - "object": { - "type": "Identifier", - "start": 26703, - "end": 26707, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 71 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26708, - "end": 26719, - "loc": { - "start": { - "line": 683, - "column": 72 - }, - "end": { - "line": 683, - "column": 83 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 26720, - "end": 26722, - "loc": { - "start": { - "line": 683, - "column": 84 - }, - "end": { - "line": 683, - "column": 86 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 26724, - "end": 26732, - "loc": { - "start": { - "line": 683, - "column": 88 - }, - "end": { - "line": 683, - "column": 96 - }, - "identifierName": "duration" - }, - "name": "duration" - }, - "computed": false - } - }, - { - "type": "NumericLiteral", - "start": 26734, - "end": 26735, - "loc": { - "start": { - "line": 683, - "column": 98 - }, - "end": { - "line": 683, - "column": 99 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 26578, - "end": 26634, - "loc": { - "start": { - "line": 682, - "column": 4 - }, - "end": { - "line": 682, - "column": 60 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 26749, - "end": 26829, - "loc": { - "start": { - "line": 685, - "column": 4 - }, - "end": { - "line": 685, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26755, - "end": 26828, - "loc": { - "start": { - "line": 685, - "column": 10 - }, - "end": { - "line": 685, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 26755, - "end": 26756, - "loc": { - "start": { - "line": 685, - "column": 10 - }, - "end": { - "line": 685, - "column": 11 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 26759, - "end": 26828, - "loc": { - "start": { - "line": 685, - "column": 14 - }, - "end": { - "line": 685, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 26759, - "end": 26767, - "loc": { - "start": { - "line": 685, - "column": 14 - }, - "end": { - "line": 685, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 26768, - "end": 26823, - "loc": { - "start": { - "line": 685, - "column": 23 - }, - "end": { - "line": 685, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26768, - "end": 26777, - "loc": { - "start": { - "line": 685, - "column": 23 - }, - "end": { - "line": 685, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 26768, - "end": 26772, - "loc": { - "start": { - "line": 685, - "column": 23 - }, - "end": { - "line": 685, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26773, - "end": 26777, - "loc": { - "start": { - "line": 685, - "column": 28 - }, - "end": { - "line": 685, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 26778, - "end": 26794, - "loc": { - "start": { - "line": 685, - "column": 33 - }, - "end": { - "line": 685, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 26778, - "end": 26791, - "loc": { - "start": { - "line": 685, - "column": 33 - }, - "end": { - "line": 685, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26792, - "end": 26793, - "loc": { - "start": { - "line": 685, - "column": 47 - }, - "end": { - "line": 685, - "column": 48 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 26796, - "end": 26810, - "loc": { - "start": { - "line": 685, - "column": 51 - }, - "end": { - "line": 685, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 26796, - "end": 26807, - "loc": { - "start": { - "line": 685, - "column": 51 - }, - "end": { - "line": 685, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26808, - "end": 26809, - "loc": { - "start": { - "line": 685, - "column": 63 - }, - "end": { - "line": 685, - "column": 64 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 26812, - "end": 26822, - "loc": { - "start": { - "line": 685, - "column": 67 - }, - "end": { - "line": 685, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 26825, - "end": 26827, - "loc": { - "start": { - "line": 685, - "column": 80 - }, - "end": { - "line": 685, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 26835, - "end": 26915, - "loc": { - "start": { - "line": 686, - "column": 4 - }, - "end": { - "line": 686, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26841, - "end": 26914, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 26841, - "end": 26842, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 11 - }, - "identifierName": "g" - }, - "name": "g" - }, - "init": { - "type": "CallExpression", - "start": 26845, - "end": 26914, - "loc": { - "start": { - "line": 686, - "column": 14 - }, - "end": { - "line": 686, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 26845, - "end": 26853, - "loc": { - "start": { - "line": 686, - "column": 14 - }, - "end": { - "line": 686, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 26854, - "end": 26909, - "loc": { - "start": { - "line": 686, - "column": 23 - }, - "end": { - "line": 686, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26854, - "end": 26863, - "loc": { - "start": { - "line": 686, - "column": 23 - }, - "end": { - "line": 686, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 26854, - "end": 26858, - "loc": { - "start": { - "line": 686, - "column": 23 - }, - "end": { - "line": 686, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26859, - "end": 26863, - "loc": { - "start": { - "line": 686, - "column": 28 - }, - "end": { - "line": 686, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 26864, - "end": 26880, - "loc": { - "start": { - "line": 686, - "column": 33 - }, - "end": { - "line": 686, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 26864, - "end": 26877, - "loc": { - "start": { - "line": 686, - "column": 33 - }, - "end": { - "line": 686, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26878, - "end": 26879, - "loc": { - "start": { - "line": 686, - "column": 47 - }, - "end": { - "line": 686, - "column": 48 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 26882, - "end": 26896, - "loc": { - "start": { - "line": 686, - "column": 51 - }, - "end": { - "line": 686, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 26882, - "end": 26893, - "loc": { - "start": { - "line": 686, - "column": 51 - }, - "end": { - "line": 686, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26894, - "end": 26895, - "loc": { - "start": { - "line": 686, - "column": 63 - }, - "end": { - "line": 686, - "column": 64 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 26898, - "end": 26908, - "loc": { - "start": { - "line": 686, - "column": 67 - }, - "end": { - "line": 686, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 26911, - "end": 26913, - "loc": { - "start": { - "line": 686, - "column": 80 - }, - "end": { - "line": 686, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 26921, - "end": 27001, - "loc": { - "start": { - "line": 687, - "column": 4 - }, - "end": { - "line": 687, - "column": 84 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 26927, - "end": 27000, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 83 - } - }, - "id": { - "type": "Identifier", - "start": 26927, - "end": 26928, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 11 - }, - "identifierName": "b" - }, - "name": "b" - }, - "init": { - "type": "CallExpression", - "start": 26931, - "end": 27000, - "loc": { - "start": { - "line": 687, - "column": 14 - }, - "end": { - "line": 687, - "column": 83 - } - }, - "callee": { - "type": "Identifier", - "start": 26931, - "end": 26939, - "loc": { - "start": { - "line": 687, - "column": 14 - }, - "end": { - "line": 687, - "column": 22 - }, - "identifierName": "parseInt" - }, - "name": "parseInt" - }, - "arguments": [ - { - "type": "CallExpression", - "start": 26940, - "end": 26995, - "loc": { - "start": { - "line": 687, - "column": 23 - }, - "end": { - "line": 687, - "column": 78 - } - }, - "callee": { - "type": "MemberExpression", - "start": 26940, - "end": 26949, - "loc": { - "start": { - "line": 687, - "column": 23 - }, - "end": { - "line": 687, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 26940, - "end": 26944, - "loc": { - "start": { - "line": 687, - "column": 23 - }, - "end": { - "line": 687, - "column": 27 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 26945, - "end": 26949, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 32 - }, - "identifierName": "lerp" - }, - "name": "lerp" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 26950, - "end": 26966, - "loc": { - "start": { - "line": 687, - "column": 33 - }, - "end": { - "line": 687, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 26950, - "end": 26963, - "loc": { - "start": { - "line": 687, - "column": 33 - }, - "end": { - "line": 687, - "column": 46 - }, - "identifierName": "rgbStartColor" - }, - "name": "rgbStartColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26964, - "end": 26965, - "loc": { - "start": { - "line": 687, - "column": 47 - }, - "end": { - "line": 687, - "column": 48 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "MemberExpression", - "start": 26968, - "end": 26982, - "loc": { - "start": { - "line": 687, - "column": 51 - }, - "end": { - "line": 687, - "column": 65 - } - }, - "object": { - "type": "Identifier", - "start": 26968, - "end": 26979, - "loc": { - "start": { - "line": 687, - "column": 51 - }, - "end": { - "line": 687, - "column": 62 - }, - "identifierName": "rgbEndColor" - }, - "name": "rgbEndColor" - }, - "property": { - "type": "NumericLiteral", - "start": 26980, - "end": 26981, - "loc": { - "start": { - "line": 687, - "column": 63 - }, - "end": { - "line": 687, - "column": 64 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - }, - "computed": true - }, - { - "type": "Identifier", - "start": 26984, - "end": 26994, - "loc": { - "start": { - "line": 687, - "column": 67 - }, - "end": { - "line": 687, - "column": 77 - }, - "identifierName": "percentage" - }, - "name": "percentage" - } - ] - }, - { - "type": "NumericLiteral", - "start": 26997, - "end": 26999, - "loc": { - "start": { - "line": 687, - "column": 80 - }, - "end": { - "line": 687, - "column": 82 - } - }, - "extra": { - "rawValue": 10, - "raw": "10" - }, - "value": 10 - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 27007, - "end": 27045, - "loc": { - "start": { - "line": 688, - "column": 4 - }, - "end": { - "line": 688, - "column": 42 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 27013, - "end": 27044, - "loc": { - "start": { - "line": 688, - "column": 10 - }, - "end": { - "line": 688, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 27013, - "end": 27018, - "loc": { - "start": { - "line": 688, - "column": 10 - }, - "end": { - "line": 688, - "column": 15 - }, - "identifierName": "color" - }, - "name": "color" - }, - "init": { - "type": "CallExpression", - "start": 27021, - "end": 27044, - "loc": { - "start": { - "line": 688, - "column": 18 - }, - "end": { - "line": 688, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27021, - "end": 27035, - "loc": { - "start": { - "line": 688, - "column": 18 - }, - "end": { - "line": 688, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 27021, - "end": 27025, - "loc": { - "start": { - "line": 688, - "column": 18 - }, - "end": { - "line": 688, - "column": 22 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27026, - "end": 27035, - "loc": { - "start": { - "line": 688, - "column": 23 - }, - "end": { - "line": 688, - "column": 32 - }, - "identifierName": "grabColor" - }, - "name": "grabColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 27036, - "end": 27037, - "loc": { - "start": { - "line": 688, - "column": 33 - }, - "end": { - "line": 688, - "column": 34 - }, - "identifierName": "r" - }, - "name": "r" - }, - { - "type": "Identifier", - "start": 27039, - "end": 27040, - "loc": { - "start": { - "line": 688, - "column": 36 - }, - "end": { - "line": 688, - "column": 37 - }, - "identifierName": "g" - }, - "name": "g" - }, - { - "type": "Identifier", - "start": 27042, - "end": 27043, - "loc": { - "start": { - "line": 688, - "column": 39 - }, - "end": { - "line": 688, - "column": 40 - }, - "identifierName": "b" - }, - "name": "b" - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "IfStatement", - "start": 27053, - "end": 27101, - "loc": { - "start": { - "line": 690, - "column": 4 - }, - "end": { - "line": 690, - "column": 52 - } - }, - "test": { - "type": "Identifier", - "start": 27057, - "end": 27074, - "loc": { - "start": { - "line": 690, - "column": 8 - }, - "end": { - "line": 690, - "column": 25 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 27076, - "end": 27101, - "loc": { - "start": { - "line": 690, - "column": 27 - }, - "end": { - "line": 690, - "column": 52 - } - }, - "expression": { - "type": "CallExpression", - "start": 27076, - "end": 27100, - "loc": { - "start": { - "line": 690, - "column": 27 - }, - "end": { - "line": 690, - "column": 51 - } - }, - "callee": { - "type": "Identifier", - "start": 27076, - "end": 27093, - "loc": { - "start": { - "line": 690, - "column": 27 - }, - "end": { - "line": 690, - "column": 44 - }, - "identifierName": "iterativeCallback" - }, - "name": "iterativeCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27094, - "end": 27099, - "loc": { - "start": { - "line": 690, - "column": 45 - }, - "end": { - "line": 690, - "column": 50 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 27109, - "end": 27304, - "loc": { - "start": { - "line": 692, - "column": 4 - }, - "end": { - "line": 699, - "column": 5 - } - }, - "test": { - "type": "Identifier", - "start": 27113, - "end": 27122, - "loc": { - "start": { - "line": 692, - "column": 8 - }, - "end": { - "line": 692, - "column": 17 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "consequent": { - "type": "BlockStatement", - "start": 27124, - "end": 27304, - "loc": { - "start": { - "line": 692, - "column": 19 - }, - "end": { - "line": 699, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27132, - "end": 27297, - "loc": { - "start": { - "line": 693, - "column": 5 - }, - "end": { - "line": 698, - "column": 6 - } - }, - "test": { - "type": "Identifier", - "start": 27136, - "end": 27148, - "loc": { - "start": { - "line": 693, - "column": 9 - }, - "end": { - "line": 693, - "column": 21 - }, - "identifierName": "isTintObject" - }, - "name": "isTintObject" - }, - "consequent": { - "type": "BlockStatement", - "start": 27150, - "end": 27246, - "loc": { - "start": { - "line": 693, - "column": 23 - }, - "end": { - "line": 696, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27159, - "end": 27196, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 43 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27159, - "end": 27195, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 42 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27159, - "end": 27179, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 27159, - "end": 27174, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 27159, - "end": 27168, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 27169, - "end": 27174, - "loc": { - "start": { - "line": 694, - "column": 16 - }, - "end": { - "line": 694, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27175, - "end": 27179, - "loc": { - "start": { - "line": 694, - "column": 22 - }, - "end": { - "line": 694, - "column": 26 - }, - "identifierName": "tint" - }, - "name": "tint" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 27182, - "end": 27195, - "loc": { - "start": { - "line": 694, - "column": 29 - }, - "end": { - "line": 694, - "column": 42 - } - }, - "object": { - "type": "Identifier", - "start": 27182, - "end": 27187, - "loc": { - "start": { - "line": 694, - "column": 29 - }, - "end": { - "line": 694, - "column": 34 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 27188, - "end": 27195, - "loc": { - "start": { - "line": 694, - "column": 35 - }, - "end": { - "line": 694, - "column": 42 - }, - "identifierName": "decimal" - }, - "name": "decimal" - }, - "computed": false - } - } - }, - { - "type": "ExpressionStatement", - "start": 27204, - "end": 27238, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27204, - "end": 27237, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27204, - "end": 27219, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 27204, - "end": 27213, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 27214, - "end": 27219, - "loc": { - "start": { - "line": 695, - "column": 16 - }, - "end": { - "line": 695, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 27222, - "end": 27237, - "loc": { - "start": { - "line": 695, - "column": 24 - }, - "end": { - "line": 695, - "column": 39 - } - }, - "object": { - "type": "Identifier", - "start": 27222, - "end": 27231, - "loc": { - "start": { - "line": 695, - "column": 24 - }, - "end": { - "line": 695, - "column": 33 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 27232, - "end": 27237, - "loc": { - "start": { - "line": 695, - "column": 34 - }, - "end": { - "line": 695, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - } - } - } - ], - "directives": [] - }, - "alternate": { - "type": "BlockStatement", - "start": 27252, - "end": 27297, - "loc": { - "start": { - "line": 696, - "column": 12 - }, - "end": { - "line": 698, - "column": 6 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27261, - "end": 27289, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 34 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27261, - "end": 27288, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 33 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27261, - "end": 27276, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 27261, - "end": 27270, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 15 - }, - "identifierName": "pInstance" - }, - "name": "pInstance" - }, - "property": { - "type": "Identifier", - "start": 27271, - "end": 27276, - "loc": { - "start": { - "line": 697, - "column": 16 - }, - "end": { - "line": 697, - "column": 21 - }, - "identifierName": "color" - }, - "name": "color" - }, - "computed": false - }, - "right": { - "type": "MemberExpression", - "start": 27279, - "end": 27288, - "loc": { - "start": { - "line": 697, - "column": 24 - }, - "end": { - "line": 697, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 27279, - "end": 27284, - "loc": { - "start": { - "line": 697, - "column": 24 - }, - "end": { - "line": 697, - "column": 29 - }, - "identifierName": "color" - }, - "name": "color" - }, - "property": { - "type": "Identifier", - "start": 27285, - "end": 27288, - "loc": { - "start": { - "line": 697, - "column": 30 - }, - "end": { - "line": 697, - "column": 33 - }, - "identifierName": "hex" - }, - "name": "hex" - }, - "computed": false - } - } - } - ], - "directives": [] - } - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 27312, - "end": 27511, - "loc": { - "start": { - "line": 701, - "column": 4 - }, - "end": { - "line": 705, - "column": 5 - } - }, - "test": { - "type": "LogicalExpression", - "start": 27316, - "end": 27380, - "loc": { - "start": { - "line": 701, - "column": 8 - }, - "end": { - "line": 701, - "column": 72 - } - }, - "left": { - "type": "BinaryExpression", - "start": 27316, - "end": 27331, - "loc": { - "start": { - "line": 701, - "column": 8 - }, - "end": { - "line": 701, - "column": 23 - } - }, - "left": { - "type": "Identifier", - "start": 27316, - "end": 27326, - "loc": { - "start": { - "line": 701, - "column": 8 - }, - "end": { - "line": 701, - "column": 18 - }, - "identifierName": "percentage" - }, - "name": "percentage" - }, - "operator": ">=", - "right": { - "type": "NumericLiteral", - "start": 27330, - "end": 27331, - "loc": { - "start": { - "line": 701, - "column": 22 - }, - "end": { - "line": 701, - "column": 23 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - "operator": "||", - "right": { - "type": "BinaryExpression", - "start": 27335, - "end": 27380, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 72 - } - }, - "left": { - "type": "MemberExpression", - "start": 27335, - "end": 27367, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 59 - } - }, - "object": { - "type": "MemberExpression", - "start": 27335, - "end": 27355, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 47 - } - }, - "object": { - "type": "MemberExpression", - "start": 27335, - "end": 27351, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 43 - } - }, - "object": { - "type": "Identifier", - "start": 27335, - "end": 27339, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 31 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27340, - "end": 27351, - "loc": { - "start": { - "line": 701, - "column": 32 - }, - "end": { - "line": 701, - "column": 43 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27352, - "end": 27354, - "loc": { - "start": { - "line": 701, - "column": 44 - }, - "end": { - "line": 701, - "column": 46 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27356, - "end": 27367, - "loc": { - "start": { - "line": 701, - "column": 48 - }, - "end": { - "line": 701, - "column": 59 - }, - "identifierName": "timeTracker" - }, - "name": "timeTracker" - }, - "computed": false - }, - "operator": ">=", - "right": { - "type": "Identifier", - "start": 27371, - "end": 27380, - "loc": { - "start": { - "line": 701, - "column": 63 - }, - "end": { - "line": 701, - "column": 72 - }, - "identifierName": "pDuration" - }, - "name": "pDuration" - } - } - }, - "consequent": { - "type": "BlockStatement", - "start": 27382, - "end": 27511, - "loc": { - "start": { - "line": 701, - "column": 74 - }, - "end": { - "line": 705, - "column": 5 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27390, - "end": 27447, - "loc": { - "start": { - "line": 702, - "column": 5 - }, - "end": { - "line": 702, - "column": 62 - } - }, - "test": { - "type": "MemberExpression", - "start": 27394, - "end": 27414, - "loc": { - "start": { - "line": 702, - "column": 9 - }, - "end": { - "line": 702, - "column": 29 - } - }, - "object": { - "type": "MemberExpression", - "start": 27394, - "end": 27410, - "loc": { - "start": { - "line": 702, - "column": 9 - }, - "end": { - "line": 702, - "column": 25 - } - }, - "object": { - "type": "Identifier", - "start": 27394, - "end": 27398, - "loc": { - "start": { - "line": 702, - "column": 9 - }, - "end": { - "line": 702, - "column": 13 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27399, - "end": 27410, - "loc": { - "start": { - "line": 702, - "column": 14 - }, - "end": { - "line": 702, - "column": 25 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27411, - "end": 27413, - "loc": { - "start": { - "line": 702, - "column": 26 - }, - "end": { - "line": 702, - "column": 28 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "consequent": { - "type": "ExpressionStatement", - "start": 27416, - "end": 27447, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 27416, - "end": 27446, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27416, - "end": 27442, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 57 - } - }, - "object": { - "type": "ThisExpression", - "start": 27416, - "end": 27420, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 35 - } - } - }, - "property": { - "type": "Identifier", - "start": 27421, - "end": 27442, - "loc": { - "start": { - "line": 702, - "column": 36 - }, - "end": { - "line": 702, - "column": 57 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 27443, - "end": 27445, - "loc": { - "start": { - "line": 702, - "column": 58 - }, - "end": { - "line": 702, - "column": 60 - }, - "identifierName": "id" - }, - "name": "id" - } - ] - } - }, - "alternate": null - }, - { - "type": "IfStatement", - "start": 27454, - "end": 27490, - "loc": { - "start": { - "line": 703, - "column": 5 - }, - "end": { - "line": 703, - "column": 41 - } - }, - "test": { - "type": "Identifier", - "start": 27458, - "end": 27469, - "loc": { - "start": { - "line": 703, - "column": 9 - }, - "end": { - "line": 703, - "column": 20 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "consequent": { - "type": "ExpressionStatement", - "start": 27471, - "end": 27490, - "loc": { - "start": { - "line": 703, - "column": 22 - }, - "end": { - "line": 703, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 27471, - "end": 27489, - "loc": { - "start": { - "line": 703, - "column": 22 - }, - "end": { - "line": 703, - "column": 40 - } - }, - "callee": { - "type": "Identifier", - "start": 27471, - "end": 27482, - "loc": { - "start": { - "line": 703, - "column": 22 - }, - "end": { - "line": 703, - "column": 33 - }, - "identifierName": "endCallback" - }, - "name": "endCallback" - }, - "arguments": [ - { - "type": "Identifier", - "start": 27483, - "end": 27488, - "loc": { - "start": { - "line": 703, - "column": 34 - }, - "end": { - "line": 703, - "column": 39 - }, - "identifierName": "color" - }, - "name": "color" - } - ] - } - }, - "alternate": null - }, - { - "type": "ReturnStatement", - "start": 27497, - "end": 27504, - "loc": { - "start": { - "line": 704, - "column": 5 - }, - "end": { - "line": 704, - "column": 12 - } - }, - "argument": null - } - ], - "directives": [] - }, - "alternate": null - }, - { - "type": "ExpressionStatement", - "start": 27517, - "end": 27604, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 91 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27517, - "end": 27603, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 90 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27517, - "end": 27541, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 28 - } - }, - "object": { - "type": "MemberExpression", - "start": 27517, - "end": 27537, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 27517, - "end": 27533, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 27517, - "end": 27521, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27522, - "end": 27533, - "loc": { - "start": { - "line": 706, - "column": 9 - }, - "end": { - "line": 706, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27534, - "end": 27536, - "loc": { - "start": { - "line": 706, - "column": 21 - }, - "end": { - "line": 706, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27538, - "end": 27541, - "loc": { - "start": { - "line": 706, - "column": 25 - }, - "end": { - "line": 706, - "column": 28 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 27544, - "end": 27603, - "loc": { - "start": { - "line": 706, - "column": 31 - }, - "end": { - "line": 706, - "column": 90 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27544, - "end": 27576, - "loc": { - "start": { - "line": 706, - "column": 31 - }, - "end": { - "line": 706, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 27544, - "end": 27554, - "loc": { - "start": { - "line": 706, - "column": 31 - }, - "end": { - "line": 706, - "column": 41 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 27555, - "end": 27576, - "loc": { - "start": { - "line": 706, - "column": 42 - }, - "end": { - "line": 706, - "column": 63 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 27577, - "end": 27602, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 27577, - "end": 27597, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 84 - } - }, - "object": { - "type": "MemberExpression", - "start": 27577, - "end": 27593, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 80 - } - }, - "object": { - "type": "Identifier", - "start": 27577, - "end": 27581, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 68 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27582, - "end": 27593, - "loc": { - "start": { - "line": 706, - "column": 69 - }, - "end": { - "line": 706, - "column": 80 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27594, - "end": 27596, - "loc": { - "start": { - "line": 706, - "column": 81 - }, - "end": { - "line": 706, - "column": 83 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27598, - "end": 27602, - "loc": { - "start": { - "line": 706, - "column": 85 - }, - "end": { - "line": 706, - "column": 89 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ExpressionStatement", - "start": 27610, - "end": 27646, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 40 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27610, - "end": 27645, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 39 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27610, - "end": 27639, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 33 - } - }, - "object": { - "type": "MemberExpression", - "start": 27610, - "end": 27630, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 24 - } - }, - "object": { - "type": "MemberExpression", - "start": 27610, - "end": 27626, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 27610, - "end": 27614, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 8 - }, - "identifierName": "self" - }, - "name": "self" - }, - "property": { - "type": "Identifier", - "start": 27615, - "end": 27626, - "loc": { - "start": { - "line": 707, - "column": 9 - }, - "end": { - "line": 707, - "column": 20 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27627, - "end": 27629, - "loc": { - "start": { - "line": 707, - "column": 21 - }, - "end": { - "line": 707, - "column": 23 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27631, - "end": 27639, - "loc": { - "start": { - "line": 707, - "column": 25 - }, - "end": { - "line": 707, - "column": 33 - }, - "identifierName": "lastTime" - }, - "name": "lastTime" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 27642, - "end": 27645, - "loc": { - "start": { - "line": 707, - "column": 36 - }, - "end": { - "line": 707, - "column": 39 - }, - "identifierName": "now" - }, - "name": "now" - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [] - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 27663, - "end": 27750, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 89 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 27663, - "end": 27749, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 88 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 27663, - "end": 27687, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 26 - } - }, - "object": { - "type": "MemberExpression", - "start": 27663, - "end": 27683, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 22 - } - }, - "object": { - "type": "MemberExpression", - "start": 27663, - "end": 27679, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 18 - } - }, - "object": { - "type": "ThisExpression", - "start": 27663, - "end": 27667, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 6 - } - } - }, - "property": { - "type": "Identifier", - "start": 27668, - "end": 27679, - "loc": { - "start": { - "line": 711, - "column": 7 - }, - "end": { - "line": 711, - "column": 18 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27680, - "end": 27682, - "loc": { - "start": { - "line": 711, - "column": 19 - }, - "end": { - "line": 711, - "column": 21 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27684, - "end": 27687, - "loc": { - "start": { - "line": 711, - "column": 23 - }, - "end": { - "line": 711, - "column": 26 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - }, - "right": { - "type": "CallExpression", - "start": 27690, - "end": 27749, - "loc": { - "start": { - "line": 711, - "column": 29 - }, - "end": { - "line": 711, - "column": 88 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27690, - "end": 27722, - "loc": { - "start": { - "line": 711, - "column": 29 - }, - "end": { - "line": 711, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 27690, - "end": 27700, - "loc": { - "start": { - "line": 711, - "column": 29 - }, - "end": { - "line": 711, - "column": 39 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 27701, - "end": 27722, - "loc": { - "start": { - "line": 711, - "column": 40 - }, - "end": { - "line": 711, - "column": 61 - }, - "identifierName": "requestAnimationFrame" - }, - "name": "requestAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 27723, - "end": 27748, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 87 - } - }, - "object": { - "type": "MemberExpression", - "start": 27723, - "end": 27743, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 82 - } - }, - "object": { - "type": "MemberExpression", - "start": 27723, - "end": 27739, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 78 - } - }, - "object": { - "type": "ThisExpression", - "start": 27723, - "end": 27727, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 66 - } - } - }, - "property": { - "type": "Identifier", - "start": 27728, - "end": 27739, - "loc": { - "start": { - "line": 711, - "column": 67 - }, - "end": { - "line": 711, - "column": 78 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27740, - "end": 27742, - "loc": { - "start": { - "line": 711, - "column": 79 - }, - "end": { - "line": 711, - "column": 81 - }, - "identifierName": "id" - }, - "name": "id" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 27744, - "end": 27748, - "loc": { - "start": { - "line": 711, - "column": 83 - }, - "end": { - "line": 711, - "column": 87 - }, - "identifierName": "step" - }, - "name": "step" - }, - "computed": false - } - ] - } - } - }, - { - "type": "ReturnStatement", - "start": 27754, - "end": 27764, - "loc": { - "start": { - "line": 712, - "column": 2 - }, - "end": { - "line": 712, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 27761, - "end": 27763, - "loc": { - "start": { - "line": 712, - "column": 9 - }, - "end": { - "line": 712, - "column": 11 - }, - "identifierName": "id" - }, - "name": "id" - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 23946, - "end": 24734, - "loc": { - "start": { - "line": 621, - "column": 1 - }, - "end": { - "line": 634, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 27771, - "end": 27891, - "loc": { - "start": { - "line": 714, - "column": 1 - }, - "end": { - "line": 718, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 27894, - "end": 28061, - "loc": { - "start": { - "line": 719, - "column": 1 - }, - "end": { - "line": 724, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27894, - "end": 27915, - "loc": { - "start": { - "line": 719, - "column": 1 - }, - "end": { - "line": 719, - "column": 22 - }, - "identifierName": "cancelTransitionColor" - }, - "name": "cancelTransitionColor", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 27916, - "end": 27919, - "loc": { - "start": { - "line": 719, - "column": 23 - }, - "end": { - "line": 719, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - } - ], - "body": { - "type": "BlockStatement", - "start": 27921, - "end": 28061, - "loc": { - "start": { - "line": 719, - "column": 28 - }, - "end": { - "line": 724, - "column": 2 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 27926, - "end": 28057, - "loc": { - "start": { - "line": 720, - "column": 2 - }, - "end": { - "line": 723, - "column": 3 - } - }, - "test": { - "type": "MemberExpression", - "start": 27930, - "end": 27951, - "loc": { - "start": { - "line": 720, - "column": 6 - }, - "end": { - "line": 720, - "column": 27 - } - }, - "object": { - "type": "MemberExpression", - "start": 27930, - "end": 27946, - "loc": { - "start": { - "line": 720, - "column": 6 - }, - "end": { - "line": 720, - "column": 22 - } - }, - "object": { - "type": "ThisExpression", - "start": 27930, - "end": 27934, - "loc": { - "start": { - "line": 720, - "column": 6 - }, - "end": { - "line": 720, - "column": 10 - } - } - }, - "property": { - "type": "Identifier", - "start": 27935, - "end": 27946, - "loc": { - "start": { - "line": 720, - "column": 11 - }, - "end": { - "line": 720, - "column": 22 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 27947, - "end": 27950, - "loc": { - "start": { - "line": 720, - "column": 23 - }, - "end": { - "line": 720, - "column": 26 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "consequent": { - "type": "BlockStatement", - "start": 27953, - "end": 28057, - "loc": { - "start": { - "line": 720, - "column": 29 - }, - "end": { - "line": 723, - "column": 3 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27959, - "end": 28018, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 62 - } - }, - "expression": { - "type": "CallExpression", - "start": 27959, - "end": 28017, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 61 - } - }, - "callee": { - "type": "MemberExpression", - "start": 27959, - "end": 27990, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 27959, - "end": 27969, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 13 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 27970, - "end": 27990, - "loc": { - "start": { - "line": 721, - "column": 14 - }, - "end": { - "line": 721, - "column": 34 - }, - "identifierName": "cancelAnimationFrame" - }, - "name": "cancelAnimationFrame" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 27991, - "end": 28016, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 60 - } - }, - "object": { - "type": "MemberExpression", - "start": 27991, - "end": 28012, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 56 - } - }, - "object": { - "type": "MemberExpression", - "start": 27991, - "end": 28007, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 51 - } - }, - "object": { - "type": "ThisExpression", - "start": 27991, - "end": 27995, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 39 - } - } - }, - "property": { - "type": "Identifier", - "start": 27996, - "end": 28007, - "loc": { - "start": { - "line": 721, - "column": 40 - }, - "end": { - "line": 721, - "column": 51 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 28008, - "end": 28011, - "loc": { - "start": { - "line": 721, - "column": 52 - }, - "end": { - "line": 721, - "column": 55 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 28013, - "end": 28016, - "loc": { - "start": { - "line": 721, - "column": 57 - }, - "end": { - "line": 721, - "column": 60 - }, - "identifierName": "req" - }, - "name": "req" - }, - "computed": false - } - ] - } - }, - { - "type": "ExpressionStatement", - "start": 28023, - "end": 28052, - "loc": { - "start": { - "line": 722, - "column": 3 - }, - "end": { - "line": 722, - "column": 32 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 28023, - "end": 28051, - "loc": { - "start": { - "line": 722, - "column": 3 - }, - "end": { - "line": 722, - "column": 31 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 28030, - "end": 28051, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 31 - } - }, - "object": { - "type": "MemberExpression", - "start": 28030, - "end": 28046, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 26 - } - }, - "object": { - "type": "ThisExpression", - "start": 28030, - "end": 28034, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 14 - } - } - }, - "property": { - "type": "Identifier", - "start": 28035, - "end": 28046, - "loc": { - "start": { - "line": 722, - "column": 15 - }, - "end": { - "line": 722, - "column": 26 - }, - "identifierName": "transitions" - }, - "name": "transitions" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 28047, - "end": 28050, - "loc": { - "start": { - "line": 722, - "column": 27 - }, - "end": { - "line": 722, - "column": 30 - }, - "identifierName": "pID" - }, - "name": "pID" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - ], - "directives": [] - }, - "alternate": null - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 27771, - "end": 27891, - "loc": { - "start": { - "line": 714, - "column": 1 - }, - "end": { - "line": 718, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 28064, - "end": 28745, - "loc": { - "start": { - "line": 725, - "column": 1 - }, - "end": { - "line": 735, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 28748, - "end": 29541, - "loc": { - "start": { - "line": 736, - "column": 1 - }, - "end": { - "line": 755, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 28748, - "end": 28763, - "loc": { - "start": { - "line": 736, - "column": 1 - }, - "end": { - "line": 736, - "column": 16 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 28764, - "end": 28769, - "loc": { - "start": { - "line": 736, - "column": 17 - }, - "end": { - "line": 736, - "column": 22 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 28771, - "end": 28777, - "loc": { - "start": { - "line": 736, - "column": 24 - }, - "end": { - "line": 736, - "column": 30 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "Identifier", - "start": 28779, - "end": 28785, - "loc": { - "start": { - "line": 736, - "column": 32 - }, - "end": { - "line": 736, - "column": 38 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - } - ], - "body": { - "type": "BlockStatement", - "start": 28787, - "end": 29541, - "loc": { - "start": { - "line": 736, - "column": 40 - }, - "end": { - "line": 755, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 28930, - "end": 29042, - "loc": { - "start": { - "line": 740, - "column": 2 - }, - "end": { - "line": 740, - "column": 114 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 28936, - "end": 29041, - "loc": { - "start": { - "line": 740, - "column": 8 - }, - "end": { - "line": 740, - "column": 113 - } - }, - "id": { - "type": "Identifier", - "start": 28936, - "end": 28938, - "loc": { - "start": { - "line": 740, - "column": 8 - }, - "end": { - "line": 740, - "column": 10 - }, - "identifierName": "cx" - }, - "name": "cx", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 28941, - "end": 29041, - "loc": { - "start": { - "line": 740, - "column": 13 - }, - "end": { - "line": 740, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 28941, - "end": 28948, - "loc": { - "start": { - "line": 740, - "column": 13 - }, - "end": { - "line": 740, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 28941, - "end": 28946, - "loc": { - "start": { - "line": 740, - "column": 13 - }, - "end": { - "line": 740, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 28947, - "end": 28948, - "loc": { - "start": { - "line": 740, - "column": 19 - }, - "end": { - "line": 740, - "column": 20 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 28951, - "end": 29041, - "loc": { - "start": { - "line": 740, - "column": 23 - }, - "end": { - "line": 740, - "column": 113 - } - }, - "left": { - "type": "MemberExpression", - "start": 28951, - "end": 28962, - "loc": { - "start": { - "line": 740, - "column": 23 - }, - "end": { - "line": 740, - "column": 34 - } - }, - "object": { - "type": "Identifier", - "start": 28951, - "end": 28956, - "loc": { - "start": { - "line": 740, - "column": 23 - }, - "end": { - "line": 740, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 28957, - "end": 28962, - "loc": { - "start": { - "line": 740, - "column": 29 - }, - "end": { - "line": 740, - "column": 34 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 28966, - "end": 29040, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 112 - } - }, - "test": { - "type": "LogicalExpression", - "start": 28966, - "end": 29017, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 89 - } - }, - "left": { - "type": "BinaryExpression", - "start": 28966, - "end": 28999, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 71 - } - }, - "left": { - "type": "UnaryExpression", - "start": 28966, - "end": 28986, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 58 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 28973, - "end": 28985, - "loc": { - "start": { - "line": 740, - "column": 45 - }, - "end": { - "line": 740, - "column": 57 - } - }, - "object": { - "type": "Identifier", - "start": 28973, - "end": 28978, - "loc": { - "start": { - "line": 740, - "column": 45 - }, - "end": { - "line": 740, - "column": 50 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 28979, - "end": 28985, - "loc": { - "start": { - "line": 740, - "column": 51 - }, - "end": { - "line": 740, - "column": 57 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 28972 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 28991, - "end": 28999, - "loc": { - "start": { - "line": 740, - "column": 63 - }, - "end": { - "line": 740, - "column": 71 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 29003, - "end": 29017, - "loc": { - "start": { - "line": 740, - "column": 75 - }, - "end": { - "line": 740, - "column": 89 - } - }, - "object": { - "type": "MemberExpression", - "start": 29003, - "end": 29015, - "loc": { - "start": { - "line": 740, - "column": 75 - }, - "end": { - "line": 740, - "column": 87 - } - }, - "object": { - "type": "Identifier", - "start": 29003, - "end": 29008, - "loc": { - "start": { - "line": 740, - "column": 75 - }, - "end": { - "line": 740, - "column": 80 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29009, - "end": 29015, - "loc": { - "start": { - "line": 740, - "column": 81 - }, - "end": { - "line": 740, - "column": 87 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 29016, - "end": 29017, - "loc": { - "start": { - "line": 740, - "column": 88 - }, - "end": { - "line": 740, - "column": 89 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 29020, - "end": 29034, - "loc": { - "start": { - "line": 740, - "column": 92 - }, - "end": { - "line": 740, - "column": 106 - } - }, - "object": { - "type": "MemberExpression", - "start": 29020, - "end": 29032, - "loc": { - "start": { - "line": 740, - "column": 92 - }, - "end": { - "line": 740, - "column": 104 - } - }, - "object": { - "type": "Identifier", - "start": 29020, - "end": 29025, - "loc": { - "start": { - "line": 740, - "column": 92 - }, - "end": { - "line": 740, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29026, - "end": 29032, - "loc": { - "start": { - "line": 740, - "column": 98 - }, - "end": { - "line": 740, - "column": 104 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 29033, - "end": 29034, - "loc": { - "start": { - "line": 740, - "column": 105 - }, - "end": { - "line": 740, - "column": 106 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 29037, - "end": 29040, - "loc": { - "start": { - "line": 740, - "column": 109 - }, - "end": { - "line": 740, - "column": 112 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 28965 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 28792, - "end": 28832, - "loc": { - "start": { - "line": 737, - "column": 2 - }, - "end": { - "line": 737, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 28836, - "end": 28889, - "loc": { - "start": { - "line": 738, - "column": 2 - }, - "end": { - "line": 738, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 28893, - "end": 28926, - "loc": { - "start": { - "line": 739, - "column": 2 - }, - "end": { - "line": 739, - "column": 35 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29046, - "end": 29159, - "loc": { - "start": { - "line": 741, - "column": 2 - }, - "end": { - "line": 741, - "column": 115 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29052, - "end": 29158, - "loc": { - "start": { - "line": 741, - "column": 8 - }, - "end": { - "line": 741, - "column": 114 - } - }, - "id": { - "type": "Identifier", - "start": 29052, - "end": 29054, - "loc": { - "start": { - "line": 741, - "column": 8 - }, - "end": { - "line": 741, - "column": 10 - }, - "identifierName": "cy" - }, - "name": "cy" - }, - "init": { - "type": "BinaryExpression", - "start": 29057, - "end": 29158, - "loc": { - "start": { - "line": 741, - "column": 13 - }, - "end": { - "line": 741, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 29057, - "end": 29064, - "loc": { - "start": { - "line": 741, - "column": 13 - }, - "end": { - "line": 741, - "column": 20 - } - }, - "object": { - "type": "Identifier", - "start": 29057, - "end": 29062, - "loc": { - "start": { - "line": 741, - "column": 13 - }, - "end": { - "line": 741, - "column": 18 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29063, - "end": 29064, - "loc": { - "start": { - "line": 741, - "column": 19 - }, - "end": { - "line": 741, - "column": 20 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 29067, - "end": 29158, - "loc": { - "start": { - "line": 741, - "column": 23 - }, - "end": { - "line": 741, - "column": 114 - } - }, - "left": { - "type": "MemberExpression", - "start": 29067, - "end": 29079, - "loc": { - "start": { - "line": 741, - "column": 23 - }, - "end": { - "line": 741, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 29067, - "end": 29072, - "loc": { - "start": { - "line": 741, - "column": 23 - }, - "end": { - "line": 741, - "column": 28 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29073, - "end": 29079, - "loc": { - "start": { - "line": 741, - "column": 29 - }, - "end": { - "line": 741, - "column": 35 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "ConditionalExpression", - "start": 29083, - "end": 29157, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 113 - } - }, - "test": { - "type": "LogicalExpression", - "start": 29083, - "end": 29134, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 90 - } - }, - "left": { - "type": "BinaryExpression", - "start": 29083, - "end": 29116, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 72 - } - }, - "left": { - "type": "UnaryExpression", - "start": 29083, - "end": 29103, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 59 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 29090, - "end": 29102, - "loc": { - "start": { - "line": 741, - "column": 46 - }, - "end": { - "line": 741, - "column": 58 - } - }, - "object": { - "type": "Identifier", - "start": 29090, - "end": 29095, - "loc": { - "start": { - "line": 741, - "column": 46 - }, - "end": { - "line": 741, - "column": 51 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29096, - "end": 29102, - "loc": { - "start": { - "line": 741, - "column": 52 - }, - "end": { - "line": 741, - "column": 58 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false, - "extra": { - "parenthesized": true, - "parenStart": 29089 - } - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 29108, - "end": 29116, - "loc": { - "start": { - "line": 741, - "column": 64 - }, - "end": { - "line": 741, - "column": 72 - } - }, - "extra": { - "rawValue": "object", - "raw": "'object'" - }, - "value": "object" - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 29120, - "end": 29134, - "loc": { - "start": { - "line": 741, - "column": 76 - }, - "end": { - "line": 741, - "column": 90 - } - }, - "object": { - "type": "MemberExpression", - "start": 29120, - "end": 29132, - "loc": { - "start": { - "line": 741, - "column": 76 - }, - "end": { - "line": 741, - "column": 88 - } - }, - "object": { - "type": "Identifier", - "start": 29120, - "end": 29125, - "loc": { - "start": { - "line": 741, - "column": 76 - }, - "end": { - "line": 741, - "column": 81 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29126, - "end": 29132, - "loc": { - "start": { - "line": 741, - "column": 82 - }, - "end": { - "line": 741, - "column": 88 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 29133, - "end": 29134, - "loc": { - "start": { - "line": 741, - "column": 89 - }, - "end": { - "line": 741, - "column": 90 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - }, - "consequent": { - "type": "MemberExpression", - "start": 29137, - "end": 29151, - "loc": { - "start": { - "line": 741, - "column": 93 - }, - "end": { - "line": 741, - "column": 107 - } - }, - "object": { - "type": "MemberExpression", - "start": 29137, - "end": 29149, - "loc": { - "start": { - "line": 741, - "column": 93 - }, - "end": { - "line": 741, - "column": 105 - } - }, - "object": { - "type": "Identifier", - "start": 29137, - "end": 29142, - "loc": { - "start": { - "line": 741, - "column": 93 - }, - "end": { - "line": 741, - "column": 98 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 29143, - "end": 29149, - "loc": { - "start": { - "line": 741, - "column": 99 - }, - "end": { - "line": 741, - "column": 105 - }, - "identifierName": "anchor" - }, - "name": "anchor" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 29150, - "end": 29151, - "loc": { - "start": { - "line": 741, - "column": 106 - }, - "end": { - "line": 741, - "column": 107 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "alternate": { - "type": "NumericLiteral", - "start": 29154, - "end": 29157, - "loc": { - "start": { - "line": 741, - "column": 110 - }, - "end": { - "line": 741, - "column": 113 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - }, - "extra": { - "parenthesized": true, - "parenStart": 29082 - } - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 29165, - "end": 29193, - "loc": { - "start": { - "line": 743, - "column": 2 - }, - "end": { - "line": 743, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29197, - "end": 29225, - "loc": { - "start": { - "line": 744, - "column": 2 - }, - "end": { - "line": 744, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29203, - "end": 29224, - "loc": { - "start": { - "line": 744, - "column": 8 - }, - "end": { - "line": 744, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 29203, - "end": 29208, - "loc": { - "start": { - "line": 744, - "column": 8 - }, - "end": { - "line": 744, - "column": 13 - }, - "identifierName": "tempX" - }, - "name": "tempX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 29211, - "end": 29224, - "loc": { - "start": { - "line": 744, - "column": 16 - }, - "end": { - "line": 744, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 29211, - "end": 29219, - "loc": { - "start": { - "line": 744, - "column": 16 - }, - "end": { - "line": 744, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 29211, - "end": 29217, - "loc": { - "start": { - "line": 744, - "column": 16 - }, - "end": { - "line": 744, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 29218, - "end": 29219, - "loc": { - "start": { - "line": 744, - "column": 23 - }, - "end": { - "line": 744, - "column": 24 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 29222, - "end": 29224, - "loc": { - "start": { - "line": 744, - "column": 27 - }, - "end": { - "line": 744, - "column": 29 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 29165, - "end": 29193, - "loc": { - "start": { - "line": 743, - "column": 2 - }, - "end": { - "line": 743, - "column": 30 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29229, - "end": 29257, - "loc": { - "start": { - "line": 745, - "column": 2 - }, - "end": { - "line": 745, - "column": 30 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29235, - "end": 29256, - "loc": { - "start": { - "line": 745, - "column": 8 - }, - "end": { - "line": 745, - "column": 29 - } - }, - "id": { - "type": "Identifier", - "start": 29235, - "end": 29240, - "loc": { - "start": { - "line": 745, - "column": 8 - }, - "end": { - "line": 745, - "column": 13 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "init": { - "type": "BinaryExpression", - "start": 29243, - "end": 29256, - "loc": { - "start": { - "line": 745, - "column": 16 - }, - "end": { - "line": 745, - "column": 29 - } - }, - "left": { - "type": "MemberExpression", - "start": 29243, - "end": 29251, - "loc": { - "start": { - "line": 745, - "column": 16 - }, - "end": { - "line": 745, - "column": 24 - } - }, - "object": { - "type": "Identifier", - "start": 29243, - "end": 29249, - "loc": { - "start": { - "line": 745, - "column": 16 - }, - "end": { - "line": 745, - "column": 22 - }, - "identifierName": "pPoint" - }, - "name": "pPoint" - }, - "property": { - "type": "Identifier", - "start": 29250, - "end": 29251, - "loc": { - "start": { - "line": 745, - "column": 23 - }, - "end": { - "line": 745, - "column": 24 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "Identifier", - "start": 29254, - "end": 29256, - "loc": { - "start": { - "line": 745, - "column": 27 - }, - "end": { - "line": 745, - "column": 29 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 29263, - "end": 29284, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 747, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29288, - "end": 29356, - "loc": { - "start": { - "line": 748, - "column": 2 - }, - "end": { - "line": 748, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29294, - "end": 29355, - "loc": { - "start": { - "line": 748, - "column": 8 - }, - "end": { - "line": 748, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 29294, - "end": 29302, - "loc": { - "start": { - "line": 748, - "column": 8 - }, - "end": { - "line": 748, - "column": 16 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 29305, - "end": 29355, - "loc": { - "start": { - "line": 748, - "column": 19 - }, - "end": { - "line": 748, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 29305, - "end": 29327, - "loc": { - "start": { - "line": 748, - "column": 19 - }, - "end": { - "line": 748, - "column": 41 - } - }, - "left": { - "type": "Identifier", - "start": 29305, - "end": 29310, - "loc": { - "start": { - "line": 748, - "column": 19 - }, - "end": { - "line": 748, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 29311, - "end": 29327, - "loc": { - "start": { - "line": 748, - "column": 25 - }, - "end": { - "line": 748, - "column": 41 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29311, - "end": 29319, - "loc": { - "start": { - "line": 748, - "column": 25 - }, - "end": { - "line": 748, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 29311, - "end": 29315, - "loc": { - "start": { - "line": 748, - "column": 25 - }, - "end": { - "line": 748, - "column": 29 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 29316, - "end": 29319, - "loc": { - "start": { - "line": 748, - "column": 30 - }, - "end": { - "line": 748, - "column": 33 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29320, - "end": 29326, - "loc": { - "start": { - "line": 748, - "column": 34 - }, - "end": { - "line": 748, - "column": 40 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - }, - "operator": "-", - "right": { - "type": "BinaryExpression", - "start": 29330, - "end": 29355, - "loc": { - "start": { - "line": 748, - "column": 44 - }, - "end": { - "line": 748, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 29330, - "end": 29335, - "loc": { - "start": { - "line": 748, - "column": 44 - }, - "end": { - "line": 748, - "column": 49 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 29337, - "end": 29354, - "loc": { - "start": { - "line": 748, - "column": 51 - }, - "end": { - "line": 748, - "column": 68 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 29338, - "end": 29354, - "loc": { - "start": { - "line": 748, - "column": 52 - }, - "end": { - "line": 748, - "column": 68 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29338, - "end": 29346, - "loc": { - "start": { - "line": 748, - "column": 52 - }, - "end": { - "line": 748, - "column": 60 - } - }, - "object": { - "type": "Identifier", - "start": 29338, - "end": 29342, - "loc": { - "start": { - "line": 748, - "column": 52 - }, - "end": { - "line": 748, - "column": 56 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 29343, - "end": 29346, - "loc": { - "start": { - "line": 748, - "column": 57 - }, - "end": { - "line": 748, - "column": 60 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29347, - "end": 29353, - "loc": { - "start": { - "line": 748, - "column": 61 - }, - "end": { - "line": 748, - "column": 67 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 29336 - } - } - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 29263, - "end": 29284, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 747, - "column": 23 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29360, - "end": 29428, - "loc": { - "start": { - "line": 749, - "column": 2 - }, - "end": { - "line": 749, - "column": 70 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29366, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 8 - }, - "end": { - "line": 749, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 29366, - "end": 29374, - "loc": { - "start": { - "line": 749, - "column": 8 - }, - "end": { - "line": 749, - "column": 16 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "init": { - "type": "BinaryExpression", - "start": 29377, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 19 - }, - "end": { - "line": 749, - "column": 69 - } - }, - "left": { - "type": "BinaryExpression", - "start": 29377, - "end": 29402, - "loc": { - "start": { - "line": 749, - "column": 19 - }, - "end": { - "line": 749, - "column": 44 - } - }, - "left": { - "type": "Identifier", - "start": 29377, - "end": 29382, - "loc": { - "start": { - "line": 749, - "column": 19 - }, - "end": { - "line": 749, - "column": 24 - }, - "identifierName": "tempX" - }, - "name": "tempX" - }, - "operator": "*", - "right": { - "type": "UnaryExpression", - "start": 29384, - "end": 29401, - "loc": { - "start": { - "line": 749, - "column": 26 - }, - "end": { - "line": 749, - "column": 43 - } - }, - "operator": "-", - "prefix": true, - "argument": { - "type": "CallExpression", - "start": 29385, - "end": 29401, - "loc": { - "start": { - "line": 749, - "column": 27 - }, - "end": { - "line": 749, - "column": 43 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29385, - "end": 29393, - "loc": { - "start": { - "line": 749, - "column": 27 - }, - "end": { - "line": 749, - "column": 35 - } - }, - "object": { - "type": "Identifier", - "start": 29385, - "end": 29389, - "loc": { - "start": { - "line": 749, - "column": 27 - }, - "end": { - "line": 749, - "column": 31 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 29390, - "end": 29393, - "loc": { - "start": { - "line": 749, - "column": 32 - }, - "end": { - "line": 749, - "column": 35 - }, - "identifierName": "sin" - }, - "name": "sin" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29394, - "end": 29400, - "loc": { - "start": { - "line": 749, - "column": 36 - }, - "end": { - "line": 749, - "column": 42 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - }, - "extra": { - "parenthesizedArgument": false, - "parenthesized": true, - "parenStart": 29383 - } - } - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 29405, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 47 - }, - "end": { - "line": 749, - "column": 69 - } - }, - "left": { - "type": "Identifier", - "start": 29405, - "end": 29410, - "loc": { - "start": { - "line": 749, - "column": 47 - }, - "end": { - "line": 749, - "column": 52 - }, - "identifierName": "tempY" - }, - "name": "tempY" - }, - "operator": "*", - "right": { - "type": "CallExpression", - "start": 29411, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 53 - }, - "end": { - "line": 749, - "column": 69 - } - }, - "callee": { - "type": "MemberExpression", - "start": 29411, - "end": 29419, - "loc": { - "start": { - "line": 749, - "column": 53 - }, - "end": { - "line": 749, - "column": 61 - } - }, - "object": { - "type": "Identifier", - "start": 29411, - "end": 29415, - "loc": { - "start": { - "line": 749, - "column": 53 - }, - "end": { - "line": 749, - "column": 57 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 29416, - "end": 29419, - "loc": { - "start": { - "line": 749, - "column": 58 - }, - "end": { - "line": 749, - "column": 61 - }, - "identifierName": "cos" - }, - "name": "cos" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 29420, - "end": 29426, - "loc": { - "start": { - "line": 749, - "column": 62 - }, - "end": { - "line": 749, - "column": 68 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ] - } - } - } - } - ], - "kind": "const", - "trailingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 29434, - "end": 29451, - "loc": { - "start": { - "line": 751, - "column": 2 - }, - "end": { - "line": 751, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29455, - "end": 29479, - "loc": { - "start": { - "line": 752, - "column": 2 - }, - "end": { - "line": 752, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29461, - "end": 29478, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 752, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 29461, - "end": 29462, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 752, - "column": 9 - }, - "identifierName": "x" - }, - "name": "x", - "leadingComments": null - }, - "init": { - "type": "BinaryExpression", - "start": 29465, - "end": 29478, - "loc": { - "start": { - "line": 752, - "column": 12 - }, - "end": { - "line": 752, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 29465, - "end": 29473, - "loc": { - "start": { - "line": 752, - "column": 12 - }, - "end": { - "line": 752, - "column": 20 - }, - "identifierName": "rotatedX" - }, - "name": "rotatedX" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 29476, - "end": 29478, - "loc": { - "start": { - "line": 752, - "column": 23 - }, - "end": { - "line": 752, - "column": 25 - }, - "identifierName": "cx" - }, - "name": "cx" - } - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " translate back", - "start": 29434, - "end": 29451, - "loc": { - "start": { - "line": 751, - "column": 2 - }, - "end": { - "line": 751, - "column": 19 - } - } - } - ] - }, - { - "type": "VariableDeclaration", - "start": 29483, - "end": 29507, - "loc": { - "start": { - "line": 753, - "column": 2 - }, - "end": { - "line": 753, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 29489, - "end": 29506, - "loc": { - "start": { - "line": 753, - "column": 8 - }, - "end": { - "line": 753, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 29489, - "end": 29490, - "loc": { - "start": { - "line": 753, - "column": 8 - }, - "end": { - "line": 753, - "column": 9 - }, - "identifierName": "y" - }, - "name": "y" - }, - "init": { - "type": "BinaryExpression", - "start": 29493, - "end": 29506, - "loc": { - "start": { - "line": 753, - "column": 12 - }, - "end": { - "line": 753, - "column": 25 - } - }, - "left": { - "type": "Identifier", - "start": 29493, - "end": 29501, - "loc": { - "start": { - "line": 753, - "column": 12 - }, - "end": { - "line": 753, - "column": 20 - }, - "identifierName": "rotatedY" - }, - "name": "rotatedY" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 29504, - "end": 29506, - "loc": { - "start": { - "line": 753, - "column": 23 - }, - "end": { - "line": 753, - "column": 25 - }, - "identifierName": "cy" - }, - "name": "cy" - } - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 29511, - "end": 29537, - "loc": { - "start": { - "line": 754, - "column": 2 - }, - "end": { - "line": 754, - "column": 28 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 29518, - "end": 29536, - "loc": { - "start": { - "line": 754, - "column": 9 - }, - "end": { - "line": 754, - "column": 27 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 29520, - "end": 29526, - "loc": { - "start": { - "line": 754, - "column": 11 - }, - "end": { - "line": 754, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 29520, - "end": 29523, - "loc": { - "start": { - "line": 754, - "column": 11 - }, - "end": { - "line": 754, - "column": 14 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "Identifier", - "start": 29525, - "end": 29526, - "loc": { - "start": { - "line": 754, - "column": 16 - }, - "end": { - "line": 754, - "column": 17 - }, - "identifierName": "x" - }, - "name": "x" - } - }, - { - "type": "ObjectProperty", - "start": 29528, - "end": 29534, - "loc": { - "start": { - "line": 754, - "column": 19 - }, - "end": { - "line": 754, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 29528, - "end": 29531, - "loc": { - "start": { - "line": 754, - "column": 19 - }, - "end": { - "line": 754, - "column": 22 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "Identifier", - "start": 29533, - "end": 29534, - "loc": { - "start": { - "line": 754, - "column": 24 - }, - "end": { - "line": 754, - "column": 25 - }, - "identifierName": "y" - }, - "name": "y" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 28064, - "end": 28745, - "loc": { - "start": { - "line": 725, - "column": 1 - }, - "end": { - "line": 735, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 29544, - "end": 30039, - "loc": { - "start": { - "line": 756, - "column": 1 - }, - "end": { - "line": 763, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 30042, - "end": 30671, - "loc": { - "start": { - "line": 764, - "column": 1 - }, - "end": { - "line": 771, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 30042, - "end": 30064, - "loc": { - "start": { - "line": 764, - "column": 1 - }, - "end": { - "line": 764, - "column": 23 - }, - "identifierName": "getPointsOfRotatedRect" - }, - "name": "getPointsOfRotatedRect", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 30065, - "end": 30070, - "loc": { - "start": { - "line": 764, - "column": 24 - }, - "end": { - "line": 764, - "column": 29 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30072, - "end": 30078, - "loc": { - "start": { - "line": 764, - "column": 31 - }, - "end": { - "line": 764, - "column": 37 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - } - ], - "body": { - "type": "BlockStatement", - "start": 30080, - "end": 30671, - "loc": { - "start": { - "line": 764, - "column": 39 - }, - "end": { - "line": 771, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 30085, - "end": 30164, - "loc": { - "start": { - "line": 765, - "column": 2 - }, - "end": { - "line": 765, - "column": 81 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30091, - "end": 30163, - "loc": { - "start": { - "line": 765, - "column": 8 - }, - "end": { - "line": 765, - "column": 80 - } - }, - "id": { - "type": "Identifier", - "start": 30091, - "end": 30093, - "loc": { - "start": { - "line": 765, - "column": 8 - }, - "end": { - "line": 765, - "column": 10 - }, - "identifierName": "tl" - }, - "name": "tl" - }, - "init": { - "type": "CallExpression", - "start": 30096, - "end": 30163, - "loc": { - "start": { - "line": 765, - "column": 13 - }, - "end": { - "line": 765, - "column": 80 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30096, - "end": 30116, - "loc": { - "start": { - "line": 765, - "column": 13 - }, - "end": { - "line": 765, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 30096, - "end": 30100, - "loc": { - "start": { - "line": 765, - "column": 13 - }, - "end": { - "line": 765, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 30101, - "end": 30116, - "loc": { - "start": { - "line": 765, - "column": 18 - }, - "end": { - "line": 765, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30117, - "end": 30122, - "loc": { - "start": { - "line": 765, - "column": 34 - }, - "end": { - "line": 765, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30124, - "end": 30130, - "loc": { - "start": { - "line": 765, - "column": 41 - }, - "end": { - "line": 765, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30132, - "end": 30162, - "loc": { - "start": { - "line": 765, - "column": 49 - }, - "end": { - "line": 765, - "column": 79 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30134, - "end": 30146, - "loc": { - "start": { - "line": 765, - "column": 51 - }, - "end": { - "line": 765, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30134, - "end": 30137, - "loc": { - "start": { - "line": 765, - "column": 51 - }, - "end": { - "line": 765, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 30139, - "end": 30146, - "loc": { - "start": { - "line": 765, - "column": 56 - }, - "end": { - "line": 765, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 30139, - "end": 30144, - "loc": { - "start": { - "line": 765, - "column": 56 - }, - "end": { - "line": 765, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30145, - "end": 30146, - "loc": { - "start": { - "line": 765, - "column": 62 - }, - "end": { - "line": 765, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 30148, - "end": 30160, - "loc": { - "start": { - "line": 765, - "column": 65 - }, - "end": { - "line": 765, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30148, - "end": 30151, - "loc": { - "start": { - "line": 765, - "column": 65 - }, - "end": { - "line": 765, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 30153, - "end": 30160, - "loc": { - "start": { - "line": 765, - "column": 70 - }, - "end": { - "line": 765, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 30153, - "end": 30158, - "loc": { - "start": { - "line": 765, - "column": 70 - }, - "end": { - "line": 765, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30159, - "end": 30160, - "loc": { - "start": { - "line": 765, - "column": 76 - }, - "end": { - "line": 765, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30168, - "end": 30261, - "loc": { - "start": { - "line": 766, - "column": 2 - }, - "end": { - "line": 766, - "column": 95 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30174, - "end": 30260, - "loc": { - "start": { - "line": 766, - "column": 8 - }, - "end": { - "line": 766, - "column": 94 - } - }, - "id": { - "type": "Identifier", - "start": 30174, - "end": 30176, - "loc": { - "start": { - "line": 766, - "column": 8 - }, - "end": { - "line": 766, - "column": 10 - }, - "identifierName": "tr" - }, - "name": "tr" - }, - "init": { - "type": "CallExpression", - "start": 30179, - "end": 30260, - "loc": { - "start": { - "line": 766, - "column": 13 - }, - "end": { - "line": 766, - "column": 94 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30179, - "end": 30199, - "loc": { - "start": { - "line": 766, - "column": 13 - }, - "end": { - "line": 766, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 30179, - "end": 30183, - "loc": { - "start": { - "line": 766, - "column": 13 - }, - "end": { - "line": 766, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 30184, - "end": 30199, - "loc": { - "start": { - "line": 766, - "column": 18 - }, - "end": { - "line": 766, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30200, - "end": 30205, - "loc": { - "start": { - "line": 766, - "column": 34 - }, - "end": { - "line": 766, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30207, - "end": 30213, - "loc": { - "start": { - "line": 766, - "column": 41 - }, - "end": { - "line": 766, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30215, - "end": 30259, - "loc": { - "start": { - "line": 766, - "column": 49 - }, - "end": { - "line": 766, - "column": 93 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30217, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 51 - }, - "end": { - "line": 766, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30217, - "end": 30220, - "loc": { - "start": { - "line": 766, - "column": 51 - }, - "end": { - "line": 766, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 30222, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 56 - }, - "end": { - "line": 766, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 30222, - "end": 30229, - "loc": { - "start": { - "line": 766, - "column": 56 - }, - "end": { - "line": 766, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 30222, - "end": 30227, - "loc": { - "start": { - "line": 766, - "column": 56 - }, - "end": { - "line": 766, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30228, - "end": 30229, - "loc": { - "start": { - "line": 766, - "column": 62 - }, - "end": { - "line": 766, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 30232, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 66 - }, - "end": { - "line": 766, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 30232, - "end": 30237, - "loc": { - "start": { - "line": 766, - "column": 66 - }, - "end": { - "line": 766, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30238, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 72 - }, - "end": { - "line": 766, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 30245, - "end": 30257, - "loc": { - "start": { - "line": 766, - "column": 79 - }, - "end": { - "line": 766, - "column": 91 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30245, - "end": 30248, - "loc": { - "start": { - "line": 766, - "column": 79 - }, - "end": { - "line": 766, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "MemberExpression", - "start": 30250, - "end": 30257, - "loc": { - "start": { - "line": 766, - "column": 84 - }, - "end": { - "line": 766, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 30250, - "end": 30255, - "loc": { - "start": { - "line": 766, - "column": 84 - }, - "end": { - "line": 766, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30256, - "end": 30257, - "loc": { - "start": { - "line": 766, - "column": 90 - }, - "end": { - "line": 766, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30265, - "end": 30359, - "loc": { - "start": { - "line": 767, - "column": 2 - }, - "end": { - "line": 767, - "column": 96 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30271, - "end": 30358, - "loc": { - "start": { - "line": 767, - "column": 8 - }, - "end": { - "line": 767, - "column": 95 - } - }, - "id": { - "type": "Identifier", - "start": 30271, - "end": 30273, - "loc": { - "start": { - "line": 767, - "column": 8 - }, - "end": { - "line": 767, - "column": 10 - }, - "identifierName": "bl" - }, - "name": "bl" - }, - "init": { - "type": "CallExpression", - "start": 30276, - "end": 30358, - "loc": { - "start": { - "line": 767, - "column": 13 - }, - "end": { - "line": 767, - "column": 95 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30276, - "end": 30296, - "loc": { - "start": { - "line": 767, - "column": 13 - }, - "end": { - "line": 767, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 30276, - "end": 30280, - "loc": { - "start": { - "line": 767, - "column": 13 - }, - "end": { - "line": 767, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 30281, - "end": 30296, - "loc": { - "start": { - "line": 767, - "column": 18 - }, - "end": { - "line": 767, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30297, - "end": 30302, - "loc": { - "start": { - "line": 767, - "column": 34 - }, - "end": { - "line": 767, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30304, - "end": 30310, - "loc": { - "start": { - "line": 767, - "column": 41 - }, - "end": { - "line": 767, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30312, - "end": 30357, - "loc": { - "start": { - "line": 767, - "column": 49 - }, - "end": { - "line": 767, - "column": 94 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30314, - "end": 30326, - "loc": { - "start": { - "line": 767, - "column": 51 - }, - "end": { - "line": 767, - "column": 63 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30314, - "end": 30317, - "loc": { - "start": { - "line": 767, - "column": 51 - }, - "end": { - "line": 767, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "MemberExpression", - "start": 30319, - "end": 30326, - "loc": { - "start": { - "line": 767, - "column": 56 - }, - "end": { - "line": 767, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 30319, - "end": 30324, - "loc": { - "start": { - "line": 767, - "column": 56 - }, - "end": { - "line": 767, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30325, - "end": 30326, - "loc": { - "start": { - "line": 767, - "column": 62 - }, - "end": { - "line": 767, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 30328, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 65 - }, - "end": { - "line": 767, - "column": 92 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30328, - "end": 30331, - "loc": { - "start": { - "line": 767, - "column": 65 - }, - "end": { - "line": 767, - "column": 68 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 30333, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 70 - }, - "end": { - "line": 767, - "column": 92 - } - }, - "left": { - "type": "MemberExpression", - "start": 30333, - "end": 30340, - "loc": { - "start": { - "line": 767, - "column": 70 - }, - "end": { - "line": 767, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 30333, - "end": 30338, - "loc": { - "start": { - "line": 767, - "column": 70 - }, - "end": { - "line": 767, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30339, - "end": 30340, - "loc": { - "start": { - "line": 767, - "column": 76 - }, - "end": { - "line": 767, - "column": 77 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 30343, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 80 - }, - "end": { - "line": 767, - "column": 92 - } - }, - "object": { - "type": "Identifier", - "start": 30343, - "end": 30348, - "loc": { - "start": { - "line": 767, - "column": 80 - }, - "end": { - "line": 767, - "column": 85 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30349, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 86 - }, - "end": { - "line": 767, - "column": 92 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30363, - "end": 30471, - "loc": { - "start": { - "line": 768, - "column": 2 - }, - "end": { - "line": 768, - "column": 110 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30369, - "end": 30470, - "loc": { - "start": { - "line": 768, - "column": 8 - }, - "end": { - "line": 768, - "column": 109 - } - }, - "id": { - "type": "Identifier", - "start": 30369, - "end": 30371, - "loc": { - "start": { - "line": 768, - "column": 8 - }, - "end": { - "line": 768, - "column": 10 - }, - "identifierName": "br" - }, - "name": "br" - }, - "init": { - "type": "CallExpression", - "start": 30374, - "end": 30470, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 109 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30374, - "end": 30394, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 33 - } - }, - "object": { - "type": "ThisExpression", - "start": 30374, - "end": 30378, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 17 - } - } - }, - "property": { - "type": "Identifier", - "start": 30379, - "end": 30394, - "loc": { - "start": { - "line": 768, - "column": 18 - }, - "end": { - "line": 768, - "column": 33 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30395, - "end": 30400, - "loc": { - "start": { - "line": 768, - "column": 34 - }, - "end": { - "line": 768, - "column": 39 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30402, - "end": 30408, - "loc": { - "start": { - "line": 768, - "column": 41 - }, - "end": { - "line": 768, - "column": 47 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30410, - "end": 30469, - "loc": { - "start": { - "line": 768, - "column": 49 - }, - "end": { - "line": 768, - "column": 108 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30412, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 51 - }, - "end": { - "line": 768, - "column": 77 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30412, - "end": 30415, - "loc": { - "start": { - "line": 768, - "column": 51 - }, - "end": { - "line": 768, - "column": 54 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 30417, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 56 - }, - "end": { - "line": 768, - "column": 77 - } - }, - "left": { - "type": "MemberExpression", - "start": 30417, - "end": 30424, - "loc": { - "start": { - "line": 768, - "column": 56 - }, - "end": { - "line": 768, - "column": 63 - } - }, - "object": { - "type": "Identifier", - "start": 30417, - "end": 30422, - "loc": { - "start": { - "line": 768, - "column": 56 - }, - "end": { - "line": 768, - "column": 61 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30423, - "end": 30424, - "loc": { - "start": { - "line": 768, - "column": 62 - }, - "end": { - "line": 768, - "column": 63 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 30427, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 66 - }, - "end": { - "line": 768, - "column": 77 - } - }, - "object": { - "type": "Identifier", - "start": 30427, - "end": 30432, - "loc": { - "start": { - "line": 768, - "column": 66 - }, - "end": { - "line": 768, - "column": 71 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30433, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 72 - }, - "end": { - "line": 768, - "column": 77 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 30440, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 79 - }, - "end": { - "line": 768, - "column": 106 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30440, - "end": 30443, - "loc": { - "start": { - "line": 768, - "column": 79 - }, - "end": { - "line": 768, - "column": 82 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 30445, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 84 - }, - "end": { - "line": 768, - "column": 106 - } - }, - "left": { - "type": "MemberExpression", - "start": 30445, - "end": 30452, - "loc": { - "start": { - "line": 768, - "column": 84 - }, - "end": { - "line": 768, - "column": 91 - } - }, - "object": { - "type": "Identifier", - "start": 30445, - "end": 30450, - "loc": { - "start": { - "line": 768, - "column": 84 - }, - "end": { - "line": 768, - "column": 89 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30451, - "end": 30452, - "loc": { - "start": { - "line": 768, - "column": 90 - }, - "end": { - "line": 768, - "column": 91 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 30455, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 94 - }, - "end": { - "line": 768, - "column": 106 - } - }, - "object": { - "type": "Identifier", - "start": 30455, - "end": 30460, - "loc": { - "start": { - "line": 768, - "column": 94 - }, - "end": { - "line": 768, - "column": 99 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30461, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 100 - }, - "end": { - "line": 768, - "column": 106 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 30475, - "end": 30595, - "loc": { - "start": { - "line": 769, - "column": 2 - }, - "end": { - "line": 769, - "column": 122 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 30481, - "end": 30594, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 121 - } - }, - "id": { - "type": "Identifier", - "start": 30481, - "end": 30487, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 14 - }, - "identifierName": "center" - }, - "name": "center" - }, - "init": { - "type": "CallExpression", - "start": 30490, - "end": 30594, - "loc": { - "start": { - "line": 769, - "column": 17 - }, - "end": { - "line": 769, - "column": 121 - } - }, - "callee": { - "type": "MemberExpression", - "start": 30490, - "end": 30510, - "loc": { - "start": { - "line": 769, - "column": 17 - }, - "end": { - "line": 769, - "column": 37 - } - }, - "object": { - "type": "ThisExpression", - "start": 30490, - "end": 30494, - "loc": { - "start": { - "line": 769, - "column": 17 - }, - "end": { - "line": 769, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "start": 30495, - "end": 30510, - "loc": { - "start": { - "line": 769, - "column": 22 - }, - "end": { - "line": 769, - "column": 37 - }, - "identifierName": "getPointRotated" - }, - "name": "getPointRotated" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 30511, - "end": 30516, - "loc": { - "start": { - "line": 769, - "column": 38 - }, - "end": { - "line": 769, - "column": 43 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - { - "type": "Identifier", - "start": 30518, - "end": 30524, - "loc": { - "start": { - "line": 769, - "column": 45 - }, - "end": { - "line": 769, - "column": 51 - }, - "identifierName": "pTheta" - }, - "name": "pTheta" - }, - { - "type": "ObjectExpression", - "start": 30526, - "end": 30593, - "loc": { - "start": { - "line": 769, - "column": 53 - }, - "end": { - "line": 769, - "column": 120 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30528, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 55 - }, - "end": { - "line": 769, - "column": 85 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30528, - "end": 30531, - "loc": { - "start": { - "line": 769, - "column": 55 - }, - "end": { - "line": 769, - "column": 58 - } - }, - "extra": { - "rawValue": "x", - "raw": "'x'" - }, - "value": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 30533, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 60 - }, - "end": { - "line": 769, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 30533, - "end": 30540, - "loc": { - "start": { - "line": 769, - "column": 60 - }, - "end": { - "line": 769, - "column": 67 - } - }, - "object": { - "type": "Identifier", - "start": 30533, - "end": 30538, - "loc": { - "start": { - "line": 769, - "column": 60 - }, - "end": { - "line": 769, - "column": 65 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30539, - "end": 30540, - "loc": { - "start": { - "line": 769, - "column": 66 - }, - "end": { - "line": 769, - "column": 67 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 30543, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 70 - }, - "end": { - "line": 769, - "column": 85 - } - }, - "left": { - "type": "MemberExpression", - "start": 30543, - "end": 30554, - "loc": { - "start": { - "line": 769, - "column": 70 - }, - "end": { - "line": 769, - "column": 81 - } - }, - "object": { - "type": "Identifier", - "start": 30543, - "end": 30548, - "loc": { - "start": { - "line": 769, - "column": 70 - }, - "end": { - "line": 769, - "column": 75 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30549, - "end": 30554, - "loc": { - "start": { - "line": 769, - "column": 76 - }, - "end": { - "line": 769, - "column": 81 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 30557, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 84 - }, - "end": { - "line": 769, - "column": 85 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 30560, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 87 - }, - "end": { - "line": 769, - "column": 118 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30560, - "end": 30563, - "loc": { - "start": { - "line": 769, - "column": 87 - }, - "end": { - "line": 769, - "column": 90 - } - }, - "extra": { - "rawValue": "y", - "raw": "'y'" - }, - "value": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 30565, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 92 - }, - "end": { - "line": 769, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 30565, - "end": 30572, - "loc": { - "start": { - "line": 769, - "column": 92 - }, - "end": { - "line": 769, - "column": 99 - } - }, - "object": { - "type": "Identifier", - "start": 30565, - "end": 30570, - "loc": { - "start": { - "line": 769, - "column": 92 - }, - "end": { - "line": 769, - "column": 97 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30571, - "end": 30572, - "loc": { - "start": { - "line": 769, - "column": 98 - }, - "end": { - "line": 769, - "column": 99 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "+", - "right": { - "type": "BinaryExpression", - "start": 30575, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 102 - }, - "end": { - "line": 769, - "column": 118 - } - }, - "left": { - "type": "MemberExpression", - "start": 30575, - "end": 30587, - "loc": { - "start": { - "line": 769, - "column": 102 - }, - "end": { - "line": 769, - "column": 114 - } - }, - "object": { - "type": "Identifier", - "start": 30575, - "end": 30580, - "loc": { - "start": { - "line": 769, - "column": 102 - }, - "end": { - "line": 769, - "column": 107 - }, - "identifierName": "pRect" - }, - "name": "pRect" - }, - "property": { - "type": "Identifier", - "start": 30581, - "end": 30587, - "loc": { - "start": { - "line": 769, - "column": 108 - }, - "end": { - "line": 769, - "column": 114 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "/", - "right": { - "type": "NumericLiteral", - "start": 30590, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 117 - }, - "end": { - "line": 769, - "column": 118 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - } - } - ] - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 30599, - "end": 30667, - "loc": { - "start": { - "line": 770, - "column": 2 - }, - "end": { - "line": 770, - "column": 70 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 30606, - "end": 30666, - "loc": { - "start": { - "line": 770, - "column": 9 - }, - "end": { - "line": 770, - "column": 69 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 30608, - "end": 30616, - "loc": { - "start": { - "line": 770, - "column": 11 - }, - "end": { - "line": 770, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30608, - "end": 30612, - "loc": { - "start": { - "line": 770, - "column": 11 - }, - "end": { - "line": 770, - "column": 15 - } - }, - "extra": { - "rawValue": "tl", - "raw": "'tl'" - }, - "value": "tl" - }, - "value": { - "type": "Identifier", - "start": 30614, - "end": 30616, - "loc": { - "start": { - "line": 770, - "column": 17 - }, - "end": { - "line": 770, - "column": 19 - }, - "identifierName": "tl" - }, - "name": "tl" - } - }, - { - "type": "ObjectProperty", - "start": 30618, - "end": 30626, - "loc": { - "start": { - "line": 770, - "column": 21 - }, - "end": { - "line": 770, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30618, - "end": 30622, - "loc": { - "start": { - "line": 770, - "column": 21 - }, - "end": { - "line": 770, - "column": 25 - } - }, - "extra": { - "rawValue": "tr", - "raw": "'tr'" - }, - "value": "tr" - }, - "value": { - "type": "Identifier", - "start": 30624, - "end": 30626, - "loc": { - "start": { - "line": 770, - "column": 27 - }, - "end": { - "line": 770, - "column": 29 - }, - "identifierName": "tr" - }, - "name": "tr" - } - }, - { - "type": "ObjectProperty", - "start": 30628, - "end": 30636, - "loc": { - "start": { - "line": 770, - "column": 31 - }, - "end": { - "line": 770, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30628, - "end": 30632, - "loc": { - "start": { - "line": 770, - "column": 31 - }, - "end": { - "line": 770, - "column": 35 - } - }, - "extra": { - "rawValue": "bl", - "raw": "'bl'" - }, - "value": "bl" - }, - "value": { - "type": "Identifier", - "start": 30634, - "end": 30636, - "loc": { - "start": { - "line": 770, - "column": 37 - }, - "end": { - "line": 770, - "column": 39 - }, - "identifierName": "bl" - }, - "name": "bl" - } - }, - { - "type": "ObjectProperty", - "start": 30638, - "end": 30646, - "loc": { - "start": { - "line": 770, - "column": 41 - }, - "end": { - "line": 770, - "column": 49 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30638, - "end": 30642, - "loc": { - "start": { - "line": 770, - "column": 41 - }, - "end": { - "line": 770, - "column": 45 - } - }, - "extra": { - "rawValue": "br", - "raw": "'br'" - }, - "value": "br" - }, - "value": { - "type": "Identifier", - "start": 30644, - "end": 30646, - "loc": { - "start": { - "line": 770, - "column": 47 - }, - "end": { - "line": 770, - "column": 49 - }, - "identifierName": "br" - }, - "name": "br" - } - }, - { - "type": "ObjectProperty", - "start": 30648, - "end": 30664, - "loc": { - "start": { - "line": 770, - "column": 51 - }, - "end": { - "line": 770, - "column": 67 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 30648, - "end": 30656, - "loc": { - "start": { - "line": 770, - "column": 51 - }, - "end": { - "line": 770, - "column": 59 - } - }, - "extra": { - "rawValue": "center", - "raw": "'center'" - }, - "value": "center" - }, - "value": { - "type": "Identifier", - "start": 30658, - "end": 30664, - "loc": { - "start": { - "line": 770, - "column": 61 - }, - "end": { - "line": 770, - "column": 67 - }, - "identifierName": "center" - }, - "name": "center" - } - } - ] - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 29544, - "end": 30039, - "loc": { - "start": { - "line": 756, - "column": 1 - }, - "end": { - "line": 763, - "column": 4 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculate the icon offset to compensate for a non-zero anchor.\r\n\t *\r\n\t * @param {Object} [pIconSize] - The size of the icon with properties `.x` and `.y`.\r\n\t * @param {number} [pIconSize.width=32] - The size of the icon's width.\r\n\t * @param {number} [pIconSize.height=32] - The size of the icon's height'.\r\n\t * @param {Object} [pAnchor] - The anchor point with properties `.x` and `.y`.\r\n\t * @param {number} [pAnchor.x=0.5] - The anchor's x value.\r\n\t * @param {number} [pAnchor.y=0.5] - The anchor's y value.\r\n\t * @param {Object} [pScale] - The scale factor applied to the object with properties `.x` and `.y`.\r\n\t * @param {number} [pScale.x=1] - The scale's y value.\r\n\t * @param {number} [pScale.y=1] - The scale's y value.\r\n\t * @returns {Object} - The calculated icon offset with properties `.x` and `.y`.\r\n\t ", - "start": 30674, - "end": 31496, - "loc": { - "start": { - "line": 772, - "column": 1 - }, - "end": { - "line": 785, - "column": 4 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 31499, - "end": 31906, - "loc": { - "start": { - "line": 786, - "column": 1 - }, - "end": { - "line": 801, - "column": 2 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31499, - "end": 31518, - "loc": { - "start": { - "line": 786, - "column": 1 - }, - "end": { - "line": 786, - "column": 20 - }, - "identifierName": "calculateIconOffset" - }, - "name": "calculateIconOffset", - "leadingComments": null - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 31519, - "end": 31556, - "loc": { - "start": { - "line": 786, - "column": 21 - }, - "end": { - "line": 786, - "column": 58 - } - }, - "left": { - "type": "Identifier", - "start": 31519, - "end": 31528, - "loc": { - "start": { - "line": 786, - "column": 21 - }, - "end": { - "line": 786, - "column": 30 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "right": { - "type": "ObjectExpression", - "start": 31531, - "end": 31556, - "loc": { - "start": { - "line": 786, - "column": 33 - }, - "end": { - "line": 786, - "column": 58 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31533, - "end": 31542, - "loc": { - "start": { - "line": 786, - "column": 35 - }, - "end": { - "line": 786, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31533, - "end": 31538, - "loc": { - "start": { - "line": 786, - "column": 35 - }, - "end": { - "line": 786, - "column": 40 - }, - "identifierName": "width" - }, - "name": "width" - }, - "value": { - "type": "NumericLiteral", - "start": 31540, - "end": 31542, - "loc": { - "start": { - "line": 786, - "column": 42 - }, - "end": { - "line": 786, - "column": 44 - } - }, - "extra": { - "rawValue": 32, - "raw": "32" - }, - "value": 32 - } - }, - { - "type": "ObjectProperty", - "start": 31544, - "end": 31554, - "loc": { - "start": { - "line": 786, - "column": 46 - }, - "end": { - "line": 786, - "column": 56 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31544, - "end": 31550, - "loc": { - "start": { - "line": 786, - "column": 46 - }, - "end": { - "line": 786, - "column": 52 - }, - "identifierName": "height" - }, - "name": "height" - }, - "value": { - "type": "NumericLiteral", - "start": 31552, - "end": 31554, - "loc": { - "start": { - "line": 786, - "column": 54 - }, - "end": { - "line": 786, - "column": 56 - } - }, - "extra": { - "rawValue": 32, - "raw": "32" - }, - "value": 32 - } - } - ] - } - }, - { - "type": "AssignmentPattern", - "start": 31558, - "end": 31586, - "loc": { - "start": { - "line": 786, - "column": 60 - }, - "end": { - "line": 786, - "column": 88 - } - }, - "left": { - "type": "Identifier", - "start": 31558, - "end": 31565, - "loc": { - "start": { - "line": 786, - "column": 60 - }, - "end": { - "line": 786, - "column": 67 - }, - "identifierName": "pAnchor" - }, - "name": "pAnchor" - }, - "right": { - "type": "ObjectExpression", - "start": 31568, - "end": 31586, - "loc": { - "start": { - "line": 786, - "column": 70 - }, - "end": { - "line": 786, - "column": 88 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31570, - "end": 31576, - "loc": { - "start": { - "line": 786, - "column": 72 - }, - "end": { - "line": 786, - "column": 78 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31570, - "end": 31571, - "loc": { - "start": { - "line": 786, - "column": 72 - }, - "end": { - "line": 786, - "column": 73 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "NumericLiteral", - "start": 31573, - "end": 31576, - "loc": { - "start": { - "line": 786, - "column": 75 - }, - "end": { - "line": 786, - "column": 78 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - }, - { - "type": "ObjectProperty", - "start": 31578, - "end": 31584, - "loc": { - "start": { - "line": 786, - "column": 80 - }, - "end": { - "line": 786, - "column": 86 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31578, - "end": 31579, - "loc": { - "start": { - "line": 786, - "column": 80 - }, - "end": { - "line": 786, - "column": 81 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "NumericLiteral", - "start": 31581, - "end": 31584, - "loc": { - "start": { - "line": 786, - "column": 83 - }, - "end": { - "line": 786, - "column": 86 - } - }, - "extra": { - "rawValue": 0.5, - "raw": "0.5" - }, - "value": 0.5 - } - } - ] - } - }, - { - "type": "AssignmentPattern", - "start": 31588, - "end": 31609, - "loc": { - "start": { - "line": 786, - "column": 90 - }, - "end": { - "line": 786, - "column": 111 - } - }, - "left": { - "type": "Identifier", - "start": 31588, - "end": 31594, - "loc": { - "start": { - "line": 786, - "column": 90 - }, - "end": { - "line": 786, - "column": 96 - }, - "identifierName": "pScale" - }, - "name": "pScale" - }, - "right": { - "type": "ObjectExpression", - "start": 31596, - "end": 31609, - "loc": { - "start": { - "line": 786, - "column": 98 - }, - "end": { - "line": 786, - "column": 111 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31598, - "end": 31602, - "loc": { - "start": { - "line": 786, - "column": 100 - }, - "end": { - "line": 786, - "column": 104 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31598, - "end": 31599, - "loc": { - "start": { - "line": 786, - "column": 100 - }, - "end": { - "line": 786, - "column": 101 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "NumericLiteral", - "start": 31601, - "end": 31602, - "loc": { - "start": { - "line": 786, - "column": 103 - }, - "end": { - "line": 786, - "column": 104 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - { - "type": "ObjectProperty", - "start": 31604, - "end": 31608, - "loc": { - "start": { - "line": 786, - "column": 106 - }, - "end": { - "line": 786, - "column": 110 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31604, - "end": 31605, - "loc": { - "start": { - "line": 786, - "column": 106 - }, - "end": { - "line": 786, - "column": 107 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "NumericLiteral", - "start": 31607, - "end": 31608, - "loc": { - "start": { - "line": 786, - "column": 109 - }, - "end": { - "line": 786, - "column": 110 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 31611, - "end": 31906, - "loc": { - "start": { - "line": 786, - "column": 113 - }, - "end": { - "line": 801, - "column": 2 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 31616, - "end": 31713, - "loc": { - "start": { - "line": 787, - "column": 2 - }, - "end": { - "line": 790, - "column": 4 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31622, - "end": 31712, - "loc": { - "start": { - "line": 787, - "column": 8 - }, - "end": { - "line": 790, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 31622, - "end": 31632, - "loc": { - "start": { - "line": 787, - "column": 8 - }, - "end": { - "line": 787, - "column": 18 - }, - "identifierName": "scaledSize" - }, - "name": "scaledSize" - }, - "init": { - "type": "ObjectExpression", - "start": 31635, - "end": 31712, - "loc": { - "start": { - "line": 787, - "column": 21 - }, - "end": { - "line": 790, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31641, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 3 - }, - "end": { - "line": 788, - "column": 32 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31641, - "end": 31642, - "loc": { - "start": { - "line": 788, - "column": 3 - }, - "end": { - "line": 788, - "column": 4 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 31644, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 6 - }, - "end": { - "line": 788, - "column": 32 - } - }, - "left": { - "type": "MemberExpression", - "start": 31644, - "end": 31659, - "loc": { - "start": { - "line": 788, - "column": 6 - }, - "end": { - "line": 788, - "column": 21 - } - }, - "object": { - "type": "Identifier", - "start": 31644, - "end": 31653, - "loc": { - "start": { - "line": 788, - "column": 6 - }, - "end": { - "line": 788, - "column": 15 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "property": { - "type": "Identifier", - "start": 31654, - "end": 31659, - "loc": { - "start": { - "line": 788, - "column": 16 - }, - "end": { - "line": 788, - "column": 21 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 31662, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 24 - }, - "end": { - "line": 788, - "column": 32 - } - }, - "object": { - "type": "Identifier", - "start": 31662, - "end": 31668, - "loc": { - "start": { - "line": 788, - "column": 24 - }, - "end": { - "line": 788, - "column": 30 - }, - "identifierName": "pScale" - }, - "name": "pScale" - }, - "property": { - "type": "Identifier", - "start": 31669, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 31 - }, - "end": { - "line": 788, - "column": 32 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - } - }, - { - "type": "ObjectProperty", - "start": 31676, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 3 - }, - "end": { - "line": 789, - "column": 33 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31676, - "end": 31677, - "loc": { - "start": { - "line": 789, - "column": 3 - }, - "end": { - "line": 789, - "column": 4 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 31679, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 6 - }, - "end": { - "line": 789, - "column": 33 - } - }, - "left": { - "type": "MemberExpression", - "start": 31679, - "end": 31695, - "loc": { - "start": { - "line": 789, - "column": 6 - }, - "end": { - "line": 789, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 31679, - "end": 31688, - "loc": { - "start": { - "line": 789, - "column": 6 - }, - "end": { - "line": 789, - "column": 15 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "property": { - "type": "Identifier", - "start": 31689, - "end": 31695, - "loc": { - "start": { - "line": 789, - "column": 16 - }, - "end": { - "line": 789, - "column": 22 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "MemberExpression", - "start": 31698, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 25 - }, - "end": { - "line": 789, - "column": 33 - } - }, - "object": { - "type": "Identifier", - "start": 31698, - "end": 31704, - "loc": { - "start": { - "line": 789, - "column": 25 - }, - "end": { - "line": 789, - "column": 31 - }, - "identifierName": "pScale" - }, - "name": "pScale" - }, - "property": { - "type": "Identifier", - "start": 31705, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 32 - }, - "end": { - "line": 789, - "column": 33 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "VariableDeclaration", - "start": 31719, - "end": 31848, - "loc": { - "start": { - "line": 792, - "column": 2 - }, - "end": { - "line": 795, - "column": 4 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 31725, - "end": 31847, - "loc": { - "start": { - "line": 792, - "column": 8 - }, - "end": { - "line": 795, - "column": 3 - } - }, - "id": { - "type": "Identifier", - "start": 31725, - "end": 31731, - "loc": { - "start": { - "line": 792, - "column": 8 - }, - "end": { - "line": 792, - "column": 14 - }, - "identifierName": "offset" - }, - "name": "offset" - }, - "init": { - "type": "ObjectExpression", - "start": 31734, - "end": 31847, - "loc": { - "start": { - "line": 792, - "column": 17 - }, - "end": { - "line": 795, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31740, - "end": 31787, - "loc": { - "start": { - "line": 793, - "column": 3 - }, - "end": { - "line": 793, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31740, - "end": 31741, - "loc": { - "start": { - "line": 793, - "column": 3 - }, - "end": { - "line": 793, - "column": 4 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "BinaryExpression", - "start": 31743, - "end": 31787, - "loc": { - "start": { - "line": 793, - "column": 6 - }, - "end": { - "line": 793, - "column": 50 - } - }, - "left": { - "type": "MemberExpression", - "start": 31743, - "end": 31752, - "loc": { - "start": { - "line": 793, - "column": 6 - }, - "end": { - "line": 793, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 31743, - "end": 31750, - "loc": { - "start": { - "line": 793, - "column": 6 - }, - "end": { - "line": 793, - "column": 13 - }, - "identifierName": "pAnchor" - }, - "name": "pAnchor" - }, - "property": { - "type": "Identifier", - "start": 31751, - "end": 31752, - "loc": { - "start": { - "line": 793, - "column": 14 - }, - "end": { - "line": 793, - "column": 15 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 31756, - "end": 31786, - "loc": { - "start": { - "line": 793, - "column": 19 - }, - "end": { - "line": 793, - "column": 49 - } - }, - "left": { - "type": "MemberExpression", - "start": 31756, - "end": 31768, - "loc": { - "start": { - "line": 793, - "column": 19 - }, - "end": { - "line": 793, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 31756, - "end": 31766, - "loc": { - "start": { - "line": 793, - "column": 19 - }, - "end": { - "line": 793, - "column": 29 - }, - "identifierName": "scaledSize" - }, - "name": "scaledSize" - }, - "property": { - "type": "Identifier", - "start": 31767, - "end": 31768, - "loc": { - "start": { - "line": 793, - "column": 30 - }, - "end": { - "line": 793, - "column": 31 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 31771, - "end": 31786, - "loc": { - "start": { - "line": 793, - "column": 34 - }, - "end": { - "line": 793, - "column": 49 - } - }, - "object": { - "type": "Identifier", - "start": 31771, - "end": 31780, - "loc": { - "start": { - "line": 793, - "column": 34 - }, - "end": { - "line": 793, - "column": 43 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "property": { - "type": "Identifier", - "start": 31781, - "end": 31786, - "loc": { - "start": { - "line": 793, - "column": 44 - }, - "end": { - "line": 793, - "column": 49 - }, - "identifierName": "width" - }, - "name": "width" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 31755 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 31793, - "end": 31841, - "loc": { - "start": { - "line": 794, - "column": 3 - }, - "end": { - "line": 794, - "column": 51 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31793, - "end": 31794, - "loc": { - "start": { - "line": 794, - "column": 3 - }, - "end": { - "line": 794, - "column": 4 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "BinaryExpression", - "start": 31796, - "end": 31841, - "loc": { - "start": { - "line": 794, - "column": 6 - }, - "end": { - "line": 794, - "column": 51 - } - }, - "left": { - "type": "MemberExpression", - "start": 31796, - "end": 31805, - "loc": { - "start": { - "line": 794, - "column": 6 - }, - "end": { - "line": 794, - "column": 15 - } - }, - "object": { - "type": "Identifier", - "start": 31796, - "end": 31803, - "loc": { - "start": { - "line": 794, - "column": 6 - }, - "end": { - "line": 794, - "column": 13 - }, - "identifierName": "pAnchor" - }, - "name": "pAnchor" - }, - "property": { - "type": "Identifier", - "start": 31804, - "end": 31805, - "loc": { - "start": { - "line": 794, - "column": 14 - }, - "end": { - "line": 794, - "column": 15 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "*", - "right": { - "type": "BinaryExpression", - "start": 31809, - "end": 31840, - "loc": { - "start": { - "line": 794, - "column": 19 - }, - "end": { - "line": 794, - "column": 50 - } - }, - "left": { - "type": "MemberExpression", - "start": 31809, - "end": 31821, - "loc": { - "start": { - "line": 794, - "column": 19 - }, - "end": { - "line": 794, - "column": 31 - } - }, - "object": { - "type": "Identifier", - "start": 31809, - "end": 31819, - "loc": { - "start": { - "line": 794, - "column": 19 - }, - "end": { - "line": 794, - "column": 29 - }, - "identifierName": "scaledSize" - }, - "name": "scaledSize" - }, - "property": { - "type": "Identifier", - "start": 31820, - "end": 31821, - "loc": { - "start": { - "line": 794, - "column": 30 - }, - "end": { - "line": 794, - "column": 31 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 31824, - "end": 31840, - "loc": { - "start": { - "line": 794, - "column": 34 - }, - "end": { - "line": 794, - "column": 50 - } - }, - "object": { - "type": "Identifier", - "start": 31824, - "end": 31833, - "loc": { - "start": { - "line": 794, - "column": 34 - }, - "end": { - "line": 794, - "column": 43 - }, - "identifierName": "pIconSize" - }, - "name": "pIconSize" - }, - "property": { - "type": "Identifier", - "start": 31834, - "end": 31840, - "loc": { - "start": { - "line": 794, - "column": 44 - }, - "end": { - "line": 794, - "column": 50 - }, - "identifierName": "height" - }, - "name": "height" - }, - "computed": false - }, - "extra": { - "parenthesized": true, - "parenStart": 31808 - } - } - } - } - ] - } - } - ], - "kind": "const" - }, - { - "type": "ReturnStatement", - "start": 31854, - "end": 31902, - "loc": { - "start": { - "line": 797, - "column": 2 - }, - "end": { - "line": 800, - "column": 4 - } - }, - "argument": { - "type": "ObjectExpression", - "start": 31861, - "end": 31901, - "loc": { - "start": { - "line": 797, - "column": 9 - }, - "end": { - "line": 800, - "column": 3 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 31867, - "end": 31878, - "loc": { - "start": { - "line": 798, - "column": 3 - }, - "end": { - "line": 798, - "column": 14 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31867, - "end": 31868, - "loc": { - "start": { - "line": 798, - "column": 3 - }, - "end": { - "line": 798, - "column": 4 - }, - "identifierName": "x" - }, - "name": "x" - }, - "value": { - "type": "MemberExpression", - "start": 31870, - "end": 31878, - "loc": { - "start": { - "line": 798, - "column": 6 - }, - "end": { - "line": 798, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 31870, - "end": 31876, - "loc": { - "start": { - "line": 798, - "column": 6 - }, - "end": { - "line": 798, - "column": 12 - }, - "identifierName": "offset" - }, - "name": "offset" - }, - "property": { - "type": "Identifier", - "start": 31877, - "end": 31878, - "loc": { - "start": { - "line": 798, - "column": 13 - }, - "end": { - "line": 798, - "column": 14 - }, - "identifierName": "x" - }, - "name": "x" - }, - "computed": false - } - }, - { - "type": "ObjectProperty", - "start": 31884, - "end": 31895, - "loc": { - "start": { - "line": 799, - "column": 3 - }, - "end": { - "line": 799, - "column": 14 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 31884, - "end": 31885, - "loc": { - "start": { - "line": 799, - "column": 3 - }, - "end": { - "line": 799, - "column": 4 - }, - "identifierName": "y" - }, - "name": "y" - }, - "value": { - "type": "MemberExpression", - "start": 31887, - "end": 31895, - "loc": { - "start": { - "line": 799, - "column": 6 - }, - "end": { - "line": 799, - "column": 14 - } - }, - "object": { - "type": "Identifier", - "start": 31887, - "end": 31893, - "loc": { - "start": { - "line": 799, - "column": 6 - }, - "end": { - "line": 799, - "column": 12 - }, - "identifierName": "offset" - }, - "name": "offset" - }, - "property": { - "type": "Identifier", - "start": 31894, - "end": 31895, - "loc": { - "start": { - "line": 799, - "column": 13 - }, - "end": { - "line": 799, - "column": 14 - }, - "identifierName": "y" - }, - "name": "y" - }, - "computed": false - } - } - ] - } - } - ], - "directives": [] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculate the icon offset to compensate for a non-zero anchor.\r\n\t *\r\n\t * @param {Object} [pIconSize] - The size of the icon with properties `.x` and `.y`.\r\n\t * @param {number} [pIconSize.width=32] - The size of the icon's width.\r\n\t * @param {number} [pIconSize.height=32] - The size of the icon's height'.\r\n\t * @param {Object} [pAnchor] - The anchor point with properties `.x` and `.y`.\r\n\t * @param {number} [pAnchor.x=0.5] - The anchor's x value.\r\n\t * @param {number} [pAnchor.y=0.5] - The anchor's y value.\r\n\t * @param {Object} [pScale] - The scale factor applied to the object with properties `.x` and `.y`.\r\n\t * @param {number} [pScale.x=1] - The scale's y value.\r\n\t * @param {number} [pScale.y=1] - The scale's y value.\r\n\t * @returns {Object} - The calculated icon offset with properties `.x` and `.y`.\r\n\t ", - "start": 30674, - "end": 31496, - "loc": { - "start": { - "line": 772, - "column": 1 - }, - "end": { - "line": 785, - "column": 4 - } - } - } - ] - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class UtilsSingleton\r\n* @license Utils is free software, available under the terms of a MIT style License.\r\n* @author https://github.com/doubleactii\r\n", - "start": 53, - "end": 234, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - } - ], - "__PseudoExport__": true, - "trailingComments": [] - }, - "leadingComments": null - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class UtilsSingleton\r\n* @license Utils is free software, available under the terms of a MIT style License.\r\n* @author https://github.com/doubleactii\r\n", - "start": 53, - "end": 234, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Object storing all color objects being transitioned at the moment\r\n\t * @private\r\n\t * @type {Object}\r\n\t ", - "start": 261, - "end": 375, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 14, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * An array storing all the reserved unique IDS\r\n\t * @private\r\n\t * @type {Array}\r\n\t ", - "start": 398, - "end": 490, - "loc": { - "start": { - "line": 16, - "column": 1 - }, - "end": { - "line": 20, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 511, - "end": 552, - "loc": { - "start": { - "line": 22, - "column": 1 - }, - "end": { - "line": 24, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Create a logger", - "start": 614, - "end": 632, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 26 - } - } - }, - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 642, - "end": 762, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 31, - "column": 11 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 868, - "end": 1438, - "loc": { - "start": { - "line": 35, - "column": 1 - }, - "end": { - "line": 42, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1629, - "end": 2053, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 53, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 2182, - "end": 2510, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 64, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2596, - "end": 3013, - "loc": { - "start": { - "line": 68, - "column": 1 - }, - "end": { - "line": 75, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 3110, - "end": 3523, - "loc": { - "start": { - "line": 79, - "column": 1 - }, - "end": { - "line": 86, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3605, - "end": 4099, - "loc": { - "start": { - "line": 90, - "column": 1 - }, - "end": { - "line": 97, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 4201, - "end": 4522, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 107, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4607, - "end": 5089, - "loc": { - "start": { - "line": 111, - "column": 1 - }, - "end": { - "line": 119, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.\r\n\t *\r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized and clamped value between -1 and 1 based on the input value's\r\n\t * position between the minimum and maximum values. If the difference between pMax and pMin is 0,\r\n\t * returns 1 to avoid dividing by zero.\r\n\t ", - "start": 5205, - "end": 5737, - "loc": { - "start": { - "line": 124, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Clamp the normalized value to the range of -1 to 1", - "start": 5889, - "end": 5942, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 137, - "column": 55 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 5996, - "end": 6389, - "loc": { - "start": { - "line": 140, - "column": 1 - }, - "end": { - "line": 147, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 6465, - "end": 6710, - "loc": { - "start": { - "line": 151, - "column": 1 - }, - "end": { - "line": 156, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 6830, - "end": 6978, - "loc": { - "start": { - "line": 160, - "column": 1 - }, - "end": { - "line": 165, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 7047, - "end": 7195, - "loc": { - "start": { - "line": 169, - "column": 1 - }, - "end": { - "line": 174, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 7264, - "end": 7428, - "loc": { - "start": { - "line": 178, - "column": 1 - }, - "end": { - "line": 183, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 7549, - "end": 7797, - "loc": { - "start": { - "line": 188, - "column": 1 - }, - "end": { - "line": 193, - "column": 3 - } - } - }, - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 7916, - "end": 7949, - "loc": { - "start": { - "line": 197, - "column": 4 - }, - "end": { - "line": 197, - "column": 37 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 8115, - "end": 8434, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 211, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDirection - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 8648, - "end": 8835, - "loc": { - "start": { - "line": 222, - "column": 1 - }, - "end": { - "line": 227, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDirection - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 9357, - "end": 9668, - "loc": { - "start": { - "line": 250, - "column": 1 - }, - "end": { - "line": 256, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Corrected to 270 degrees in radians", - "start": 9824, - "end": 9862, - "loc": { - "start": { - "line": 262, - "column": 30 - }, - "end": { - "line": 262, - "column": 68 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Centers a rectangle (defined by its dimensions) within a parent rectangle.\r\n\t *\r\n\t * @param {number} pChildWidth - The width of the child rectangle.\r\n\t * @param {number} pChildHeight - The height of the child rectangle.\r\n\t * @param {number} pParentWidth - The width of the parent rectangle.\r\n\t * @param {number} pParentHeight - The height of the parent rectangle.\r\n\t * @param {number} pParentX - The x-coordinate of the parent rectangle.\r\n\t * @param {number} pParentY - The y-coordinate of the parent rectangle.\r\n\t * @returns {Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.\r\n\t *\r\n\t * @example\r\n\t * const childWidth = 50;\r\n\t * const childHeight = 30;\r\n\t * const parentWidth = 100;\r\n\t * const parentHeight = 80;\r\n\t * const parentX = 20;\r\n\t * const parentY = 10;\r\n\t * const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);\r\n\t * // Returns {x: 45, y: 35}\r\n\t ", - "start": 10259, - "end": 11251, - "loc": { - "start": { - "line": 279, - "column": 1 - }, - "end": { - "line": 299, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random angle in radians.\r\n\t * @returns {number} A random angle in radians.\r\n\t ", - "start": 11534, - "end": 11635, - "loc": { - "start": { - "line": 305, - "column": 1 - }, - "end": { - "line": 308, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Random value between 0 and 2*pi (360 degrees)", - "start": 11698, - "end": 11746, - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 88 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 11753, - "end": 11992, - "loc": { - "start": { - "line": 312, - "column": 1 - }, - "end": { - "line": 318, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 12148, - "end": 12461, - "loc": { - "start": { - "line": 324, - "column": 1 - }, - "end": { - "line": 330, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees\r\n\t * @param {number} pAngle - The angle to convert.\r\n\t * @returns The converted angle\r\n\t ", - "start": 12635, - "end": 12816, - "loc": { - "start": { - "line": 336, - "column": 1 - }, - "end": { - "line": 340, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the Euclidean distance between two points in a two-dimensional space.\r\n\t *\r\n\t * @param {Object} pStartPoint - The starting point with x and y coordinates.\r\n\t * @param {number} pStartPoint.x - The x-coordinate of the starting point.\r\n\t * @param {number} pStartPoint.y - The y-coordinate of the starting point.\r\n\t * @param {Object} pEndPoint - The ending point with x and y coordinates.\r\n\t * @param {number} pEndPoint.x - The x-coordinate of the ending point.\r\n\t * @param {number} pEndPoint.y - The y-coordinate of the ending point.\r\n\t * @returns {number} The Euclidean distance between the two points.\r\n\t *\r\n\t * @example\r\n\t * const startPoint = { x: 1, y: 2 };\r\n\t * const endPoint = { x: 4, y: 6 };\r\n\t * const distance = getDistance(startPoint, endPoint); // 5\r\n\t * // Returns the Euclidean distance between the points (1, 2) and (4, 6).\r\n\t ", - "start": 12898, - "end": 13760, - "loc": { - "start": { - "line": 344, - "column": 1 - }, - "end": { - "line": 360, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the new position of a point based on distance and angle.\r\n\t *\r\n\t * @param {Object} pPoint - The initial position of the point with x and y coordinates.\r\n\t * @param {number} pPoint.x - The initial x-coordinate of the point.\r\n\t * @param {number} pPoint.y - The initial y-coordinate of the point.\r\n\t * @param {number} pDistance - The distance by which to move the point.\r\n\t * @param {number} pAngle - The angle (in radians) at which to move the point.\r\n\t * @returns {Object} The new position of the point after moving by the specified distance and angle.\r\n\t *\r\n\t * @example\r\n\t * const initialPosition = { x: 10, y: 20 };\r\n\t * const distance = 5;\r\n\t * const angleInRadians = 0.785398; // 45 degrees\r\n\t * const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);\r\n\t * // Returns the new position of the point after moving by 5 units at a 45-degree angle.\r\n\t ", - "start": 13935, - "end": 14857, - "loc": { - "start": { - "line": 366, - "column": 1 - }, - "end": { - "line": 382, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the proportional length based on a current value, a maximum value, and a specified total length.\r\n\t *\r\n\t * @param {number} pCurrent - The current value to be scaled.\r\n\t * @param {number} pMax - The maximum value for scaling.\r\n\t * @param {number} pTotalLength - The specified total length.\r\n\t * @returns {number} The proportional length based on the current value, maximum value, and total length.\r\n\t *\r\n\t * @example\r\n\t * const current = 25;\r\n\t * const max = 50;\r\n\t * const totalLength = 100;\r\n\t * const proportionalLength = calculateProportionalLength(current, max, totalLength); // 50\r\n\t * // Returns the proportional length based on the current value, maximum value, and total length.\r\n\t ", - "start": 15119, - "end": 15831, - "loc": { - "start": { - "line": 389, - "column": 1 - }, - "end": { - "line": 403, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the compass direction based on the given angle.\r\n\t *\r\n\t * @param {number} pAngle - The angle in radians.\r\n\t * @returns {string} The compass direction (e.g., 'east', 'southeast', 'south', etc.).\r\n\t *\r\n\t * @example\r\n\t * const angle = Math.PI / 4; // 45 degrees in radians\r\n\t * const direction = getDirection(angle); // Returns 'northeast'\r\n\t ", - "start": 15944, - "end": 16306, - "loc": { - "start": { - "line": 407, - "column": 1 - }, - "end": { - "line": 416, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " 0 or 360 degrees: 'east'", - "start": 16416, - "end": 16443, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 419, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 45 degrees: 'northeast'", - "start": 16447, - "end": 16473, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 420, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " 90 degrees: 'north'", - "start": 16477, - "end": 16499, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 135 degrees: 'northwest'", - "start": 16503, - "end": 16530, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 180 degrees: 'west'", - "start": 16534, - "end": 16556, - "loc": { - "start": { - "line": 423, - "column": 2 - }, - "end": { - "line": 423, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 225 degrees: 'southwest'", - "start": 16560, - "end": 16587, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 424, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 270 degrees: 'south'", - "start": 16591, - "end": 16614, - "loc": { - "start": { - "line": 425, - "column": 2 - }, - "end": { - "line": 425, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " 315 degrees: 'southeast'", - "start": 16618, - "end": 16645, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 426, - "column": 29 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the linear decay of a variable over time.\r\n\t *\r\n\t * @param {number} pInitialValue - The initial value of the variable.\r\n\t * @param {number} pCurrentTime - The current time at which to calculate the variable value.\r\n\t * @param {number} pMaxTime - The maximum time for the decay process.\r\n\t * @param {number} [pDecayRate=0.5] - The decay rate (default is 0.5).\r\n\t * @returns {number} The remaining value of the variable after linear decay.\r\n\t *\r\n\t * @example\r\n\t * const initialValue = 100;\r\n\t * const currentTime = 50;\r\n\t * const maxTime = 1000;\r\n\t * const decayRate = 0.3;\r\n\t * const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);\r\n\t * // Returns the remaining value after linear decay.\r\n\t ", - "start": 16812, - "end": 17553, - "loc": { - "start": { - "line": 430, - "column": 1 - }, - "end": { - "line": 446, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Calculate the variable value at the current time", - "start": 17630, - "end": 17681, - "loc": { - "start": { - "line": 448, - "column": 2 - }, - "end": { - "line": 448, - "column": 53 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 17873, - "end": 18006, - "loc": { - "start": { - "line": 453, - "column": 1 - }, - "end": { - "line": 458, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 18437, - "end": 18690, - "loc": { - "start": { - "line": 475, - "column": 1 - }, - "end": { - "line": 481, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 18829, - "end": 19081, - "loc": { - "start": { - "line": 485, - "column": 1 - }, - "end": { - "line": 491, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 19637, - "end": 19945, - "loc": { - "start": { - "line": 506, - "column": 1 - }, - "end": { - "line": 512, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 20259, - "end": 20533, - "loc": { - "start": { - "line": 523, - "column": 1 - }, - "end": { - "line": 528, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 20916, - "end": 21212, - "loc": { - "start": { - "line": 540, - "column": 1 - }, - "end": { - "line": 546, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 21285, - "end": 21536, - "loc": { - "start": { - "line": 550, - "column": 1 - }, - "end": { - "line": 555, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 21629, - "end": 22137, - "loc": { - "start": { - "line": 560, - "column": 1 - }, - "end": { - "line": 569, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 22213, - "end": 22234, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 22386, - "end": 22411, - "loc": { - "start": { - "line": 576, - "column": 3 - }, - "end": { - "line": 576, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 22524, - "end": 22545, - "loc": { - "start": { - "line": 581, - "column": 3 - }, - "end": { - "line": 581, - "column": 24 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 22995, - "end": 23091, - "loc": { - "start": { - "line": 594, - "column": 1 - }, - "end": { - "line": 598, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 23283, - "end": 23739, - "loc": { - "start": { - "line": 607, - "column": 1 - }, - "end": { - "line": 616, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 23802, - "end": 23836, - "loc": { - "start": { - "line": 618, - "column": 2 - }, - "end": { - "line": 618, - "column": 36 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 23946, - "end": 24734, - "loc": { - "start": { - "line": 621, - "column": 1 - }, - "end": { - "line": 634, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 24857, - "end": 24893, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 636, - "column": 38 - } - } - }, - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 26339, - "end": 26522, - "loc": { - "start": { - "line": 680, - "column": 4 - }, - "end": { - "line": 680, - "column": 187 - } - } - }, - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 26578, - "end": 26634, - "loc": { - "start": { - "line": 682, - "column": 4 - }, - "end": { - "line": 682, - "column": 60 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 27771, - "end": 27891, - "loc": { - "start": { - "line": 714, - "column": 1 - }, - "end": { - "line": 718, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 28064, - "end": 28745, - "loc": { - "start": { - "line": 725, - "column": 1 - }, - "end": { - "line": 735, - "column": 4 - } - } - }, - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 28792, - "end": 28832, - "loc": { - "start": { - "line": 737, - "column": 2 - }, - "end": { - "line": 737, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 28836, - "end": 28889, - "loc": { - "start": { - "line": 738, - "column": 2 - }, - "end": { - "line": 738, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 28893, - "end": 28926, - "loc": { - "start": { - "line": 739, - "column": 2 - }, - "end": { - "line": 739, - "column": 35 - } - } - }, - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 29165, - "end": 29193, - "loc": { - "start": { - "line": 743, - "column": 2 - }, - "end": { - "line": 743, - "column": 30 - } - } - }, - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 29263, - "end": 29284, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 747, - "column": 23 - } - } - }, - { - "type": "CommentLine", - "value": " translate back", - "start": 29434, - "end": 29451, - "loc": { - "start": { - "line": 751, - "column": 2 - }, - "end": { - "line": 751, - "column": 19 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 29544, - "end": 30039, - "loc": { - "start": { - "line": 756, - "column": 1 - }, - "end": { - "line": 763, - "column": 4 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculate the icon offset to compensate for a non-zero anchor.\r\n\t *\r\n\t * @param {Object} [pIconSize] - The size of the icon with properties `.x` and `.y`.\r\n\t * @param {number} [pIconSize.width=32] - The size of the icon's width.\r\n\t * @param {number} [pIconSize.height=32] - The size of the icon's height'.\r\n\t * @param {Object} [pAnchor] - The anchor point with properties `.x` and `.y`.\r\n\t * @param {number} [pAnchor.x=0.5] - The anchor's x value.\r\n\t * @param {number} [pAnchor.y=0.5] - The anchor's y value.\r\n\t * @param {Object} [pScale] - The scale factor applied to the object with properties `.x` and `.y`.\r\n\t * @param {number} [pScale.x=1] - The scale's y value.\r\n\t * @param {number} [pScale.y=1] - The scale's y value.\r\n\t * @returns {Object} - The calculated icon offset with properties `.x` and `.y`.\r\n\t ", - "start": 30674, - "end": 31496, - "loc": { - "start": { - "line": 772, - "column": 1 - }, - "end": { - "line": 785, - "column": 4 - } - } - } - ], - "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": "CommentBlock", - "value": "*\r\n* A utilities class\r\n* @class UtilsSingleton\r\n* @license Utils is free software, available under the terms of a MIT style License.\r\n* @author https://github.com/doubleactii\r\n", - "start": 53, - "end": 234, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 8, - "column": 2 - } - } - }, - { - "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": 236, - "end": 241, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "UtilsSingleton", - "start": 242, - "end": 256, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 257, - "end": 258, - "loc": { - "start": { - "line": 9, - "column": 21 - }, - "end": { - "line": 9, - "column": 22 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Object storing all color objects being transitioned at the moment\r\n\t * @private\r\n\t * @type {Object}\r\n\t ", - "start": 261, - "end": 375, - "loc": { - "start": { - "line": 10, - "column": 1 - }, - "end": { - "line": 14, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 378, - "end": 389, - "loc": { - "start": { - "line": 15, - "column": 1 - }, - "end": { - "line": 15, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 390, - "end": 391, - "loc": { - "start": { - "line": 15, - "column": 13 - }, - "end": { - "line": 15, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 392, - "end": 393, - "loc": { - "start": { - "line": 15, - "column": 15 - }, - "end": { - "line": 15, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 393, - "end": 394, - "loc": { - "start": { - "line": 15, - "column": 16 - }, - "end": { - "line": 15, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 394, - "end": 395, - "loc": { - "start": { - "line": 15, - "column": 17 - }, - "end": { - "line": 15, - "column": 18 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * An array storing all the reserved unique IDS\r\n\t * @private\r\n\t * @type {Array}\r\n\t ", - "start": 398, - "end": 490, - "loc": { - "start": { - "line": 16, - "column": 1 - }, - "end": { - "line": 20, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 493, - "end": 502, - "loc": { - "start": { - "line": 21, - "column": 1 - }, - "end": { - "line": 21, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 503, - "end": 504, - "loc": { - "start": { - "line": 21, - "column": 11 - }, - "end": { - "line": 21, - "column": 12 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 505, - "end": 506, - "loc": { - "start": { - "line": 21, - "column": 13 - }, - "end": { - "line": 21, - "column": 14 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 506, - "end": 507, - "loc": { - "start": { - "line": 21, - "column": 14 - }, - "end": { - "line": 21, - "column": 15 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 507, - "end": 508, - "loc": { - "start": { - "line": 21, - "column": 15 - }, - "end": { - "line": 21, - "column": 16 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * The version of the module.\r\n\t ", - "start": 511, - "end": 552, - "loc": { - "start": { - "line": 22, - "column": 1 - }, - "end": { - "line": 24, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "version", - "start": 555, - "end": 562, - "loc": { - "start": { - "line": 25, - "column": 1 - }, - "end": { - "line": 25, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 563, - "end": 564, - "loc": { - "start": { - "line": 25, - "column": 9 - }, - "end": { - "line": 25, - "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": 565, - "end": 585, - "loc": { - "start": { - "line": 25, - "column": 11 - }, - "end": { - "line": 25, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 585, - "end": 586, - "loc": { - "start": { - "line": 25, - "column": 31 - }, - "end": { - "line": 25, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "constructor", - "start": 589, - "end": 600, - "loc": { - "start": { - "line": 26, - "column": 1 - }, - "end": { - "line": 26, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 600, - "end": 601, - "loc": { - "start": { - "line": 26, - "column": 12 - }, - "end": { - "line": 26, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 601, - "end": 602, - "loc": { - "start": { - "line": 26, - "column": 13 - }, - "end": { - "line": 26, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 603, - "end": 604, - "loc": { - "start": { - "line": 26, - "column": 15 - }, - "end": { - "line": 26, - "column": 16 - } - } - }, - { - "type": "CommentLine", - "value": " Create a logger", - "start": 614, - "end": 632, - "loc": { - "start": { - "line": 27, - "column": 8 - }, - "end": { - "line": 27, - "column": 26 - } - } - }, - { - "type": "CommentBlock", - "value": "* The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n ", - "start": 642, - "end": 762, - "loc": { - "start": { - "line": 28, - "column": 8 - }, - "end": { - "line": 31, - "column": 11 - } - } - }, - { - "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": 772, - "end": 776, - "loc": { - "start": { - "line": 32, - "column": 8 - }, - "end": { - "line": 32, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 776, - "end": 777, - "loc": { - "start": { - "line": 32, - "column": 12 - }, - "end": { - "line": 32, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 777, - "end": 783, - "loc": { - "start": { - "line": 32, - "column": 13 - }, - "end": { - "line": 32, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 784, - "end": 785, - "loc": { - "start": { - "line": 32, - "column": 20 - }, - "end": { - "line": 32, - "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": 786, - "end": 789, - "loc": { - "start": { - "line": 32, - "column": 22 - }, - "end": { - "line": 32, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Logger", - "start": 790, - "end": 796, - "loc": { - "start": { - "line": 32, - "column": 26 - }, - "end": { - "line": 32, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 796, - "end": 797, - "loc": { - "start": { - "line": 32, - "column": 32 - }, - "end": { - "line": 32, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 797, - "end": 798, - "loc": { - "start": { - "line": 32, - "column": 33 - }, - "end": { - "line": 32, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 798, - "end": 799, - "loc": { - "start": { - "line": 32, - "column": 34 - }, - "end": { - "line": 32, - "column": 35 - } - } - }, - { - "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": 809, - "end": 813, - "loc": { - "start": { - "line": 33, - "column": 8 - }, - "end": { - "line": 33, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 813, - "end": 814, - "loc": { - "start": { - "line": 33, - "column": 12 - }, - "end": { - "line": 33, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 814, - "end": 820, - "loc": { - "start": { - "line": 33, - "column": 13 - }, - "end": { - "line": 33, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 820, - "end": 821, - "loc": { - "start": { - "line": 33, - "column": 19 - }, - "end": { - "line": 33, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "registerType", - "start": 821, - "end": 833, - "loc": { - "start": { - "line": 33, - "column": 20 - }, - "end": { - "line": 33, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 833, - "end": 834, - "loc": { - "start": { - "line": 33, - "column": 32 - }, - "end": { - "line": 33, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Utils-Module", - "start": 834, - "end": 848, - "loc": { - "start": { - "line": 33, - "column": 33 - }, - "end": { - "line": 33, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 848, - "end": 849, - "loc": { - "start": { - "line": 33, - "column": 47 - }, - "end": { - "line": 33, - "column": 48 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#ff6600", - "start": 850, - "end": 859, - "loc": { - "start": { - "line": 33, - "column": 49 - }, - "end": { - "line": 33, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 859, - "end": 860, - "loc": { - "start": { - "line": 33, - "column": 58 - }, - "end": { - "line": 33, - "column": 59 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 860, - "end": 861, - "loc": { - "start": { - "line": 33, - "column": 59 - }, - "end": { - "line": 33, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 864, - "end": 865, - "loc": { - "start": { - "line": 34, - "column": 1 - }, - "end": { - "line": 34, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 868, - "end": 1438, - "loc": { - "start": { - "line": 35, - "column": 1 - }, - "end": { - "line": 42, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalRand", - "start": 1441, - "end": 1452, - "loc": { - "start": { - "line": 43, - "column": 1 - }, - "end": { - "line": 43, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1452, - "end": 1453, - "loc": { - "start": { - "line": 43, - "column": 12 - }, - "end": { - "line": 43, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1453, - "end": 1458, - "loc": { - "start": { - "line": 43, - "column": 13 - }, - "end": { - "line": 43, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1458, - "end": 1459, - "loc": { - "start": { - "line": 43, - "column": 18 - }, - "end": { - "line": 43, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1460, - "end": 1465, - "loc": { - "start": { - "line": 43, - "column": 20 - }, - "end": { - "line": 43, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1465, - "end": 1466, - "loc": { - "start": { - "line": 43, - "column": 25 - }, - "end": { - "line": 43, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlaces", - "start": 1467, - "end": 1474, - "loc": { - "start": { - "line": 43, - "column": 27 - }, - "end": { - "line": 43, - "column": 34 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1475, - "end": 1476, - "loc": { - "start": { - "line": 43, - "column": 35 - }, - "end": { - "line": 43, - "column": 36 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1477, - "end": 1478, - "loc": { - "start": { - "line": 43, - "column": 37 - }, - "end": { - "line": 43, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1478, - "end": 1479, - "loc": { - "start": { - "line": 43, - "column": 38 - }, - "end": { - "line": 43, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1480, - "end": 1481, - "loc": { - "start": { - "line": 43, - "column": 40 - }, - "end": { - "line": 43, - "column": 41 - } - } - }, - { - "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": 1485, - "end": 1490, - "loc": { - "start": { - "line": 44, - "column": 2 - }, - "end": { - "line": 44, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1491, - "end": 1497, - "loc": { - "start": { - "line": 44, - "column": 8 - }, - "end": { - "line": 44, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1498, - "end": 1499, - "loc": { - "start": { - "line": 44, - "column": 15 - }, - "end": { - "line": 44, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Number", - "start": 1500, - "end": 1506, - "loc": { - "start": { - "line": 44, - "column": 17 - }, - "end": { - "line": 44, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1506, - "end": 1507, - "loc": { - "start": { - "line": 44, - "column": 23 - }, - "end": { - "line": 44, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1507, - "end": 1508, - "loc": { - "start": { - "line": 44, - "column": 24 - }, - "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": "Math", - "start": 1508, - "end": 1512, - "loc": { - "start": { - "line": 44, - "column": 25 - }, - "end": { - "line": 44, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1512, - "end": 1513, - "loc": { - "start": { - "line": 44, - "column": 29 - }, - "end": { - "line": 44, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 1513, - "end": 1519, - "loc": { - "start": { - "line": 44, - "column": 30 - }, - "end": { - "line": 44, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1519, - "end": 1520, - "loc": { - "start": { - "line": 44, - "column": 36 - }, - "end": { - "line": 44, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1520, - "end": 1521, - "loc": { - "start": { - "line": 44, - "column": 37 - }, - "end": { - "line": 44, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 1522, - "end": 1523, - "loc": { - "start": { - "line": 44, - "column": 39 - }, - "end": { - "line": 44, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1524, - "end": 1525, - "loc": { - "start": { - "line": 44, - "column": 41 - }, - "end": { - "line": 44, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 1525, - "end": 1530, - "loc": { - "start": { - "line": 44, - "column": 42 - }, - "end": { - "line": 44, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 1531, - "end": 1532, - "loc": { - "start": { - "line": 44, - "column": 48 - }, - "end": { - "line": 44, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1533, - "end": 1538, - "loc": { - "start": { - "line": 44, - "column": 50 - }, - "end": { - "line": 44, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1538, - "end": 1539, - "loc": { - "start": { - "line": 44, - "column": 55 - }, - "end": { - "line": 44, - "column": 56 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1540, - "end": 1541, - "loc": { - "start": { - "line": 44, - "column": 57 - }, - "end": { - "line": 44, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 1542, - "end": 1547, - "loc": { - "start": { - "line": 44, - "column": 59 - }, - "end": { - "line": 44, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1547, - "end": 1548, - "loc": { - "start": { - "line": 44, - "column": 64 - }, - "end": { - "line": 44, - "column": 65 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1548, - "end": 1549, - "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": "toFixed", - "start": 1549, - "end": 1556, - "loc": { - "start": { - "line": 44, - "column": 66 - }, - "end": { - "line": 44, - "column": 73 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1556, - "end": 1557, - "loc": { - "start": { - "line": 44, - "column": 73 - }, - "end": { - "line": 44, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlaces", - "start": 1557, - "end": 1564, - "loc": { - "start": { - "line": 44, - "column": 74 - }, - "end": { - "line": 44, - "column": 81 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1564, - "end": 1565, - "loc": { - "start": { - "line": 44, - "column": 81 - }, - "end": { - "line": 44, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1565, - "end": 1566, - "loc": { - "start": { - "line": 44, - "column": 82 - }, - "end": { - "line": 44, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1566, - "end": 1567, - "loc": { - "start": { - "line": 44, - "column": 83 - }, - "end": { - "line": 44, - "column": 84 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1571, - "end": 1577, - "loc": { - "start": { - "line": 45, - "column": 2 - }, - "end": { - "line": 45, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1578, - "end": 1579, - "loc": { - "start": { - "line": 45, - "column": 9 - }, - "end": { - "line": 45, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1579, - "end": 1585, - "loc": { - "start": { - "line": 45, - "column": 10 - }, - "end": { - "line": 45, - "column": 16 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 1586, - "end": 1588, - "loc": { - "start": { - "line": 45, - "column": 17 - }, - "end": { - "line": 45, - "column": 19 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1589, - "end": 1590, - "loc": { - "start": { - "line": 45, - "column": 20 - }, - "end": { - "line": 45, - "column": 21 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1591, - "end": 1592, - "loc": { - "start": { - "line": 45, - "column": 22 - }, - "end": { - "line": 45, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1593, - "end": 1597, - "loc": { - "start": { - "line": 45, - "column": 24 - }, - "end": { - "line": 45, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1597, - "end": 1598, - "loc": { - "start": { - "line": 45, - "column": 28 - }, - "end": { - "line": 45, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 1598, - "end": 1603, - "loc": { - "start": { - "line": 45, - "column": 29 - }, - "end": { - "line": 45, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1603, - "end": 1604, - "loc": { - "start": { - "line": 45, - "column": 34 - }, - "end": { - "line": 45, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1604, - "end": 1610, - "loc": { - "start": { - "line": 45, - "column": 35 - }, - "end": { - "line": 45, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1610, - "end": 1611, - "loc": { - "start": { - "line": 45, - "column": 41 - }, - "end": { - "line": 45, - "column": 42 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1612, - "end": 1613, - "loc": { - "start": { - "line": 45, - "column": 43 - }, - "end": { - "line": 45, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 1614, - "end": 1620, - "loc": { - "start": { - "line": 45, - "column": 45 - }, - "end": { - "line": 45, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1620, - "end": 1621, - "loc": { - "start": { - "line": 45, - "column": 51 - }, - "end": { - "line": 45, - "column": 52 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1621, - "end": 1622, - "loc": { - "start": { - "line": 45, - "column": 52 - }, - "end": { - "line": 45, - "column": 53 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1625, - "end": 1626, - "loc": { - "start": { - "line": 46, - "column": 1 - }, - "end": { - "line": 46, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t ", - "start": 1629, - "end": 2053, - "loc": { - "start": { - "line": 47, - "column": 1 - }, - "end": { - "line": 53, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rand", - "start": 2056, - "end": 2060, - "loc": { - "start": { - "line": 54, - "column": 1 - }, - "end": { - "line": 54, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2060, - "end": 2061, - "loc": { - "start": { - "line": 54, - "column": 5 - }, - "end": { - "line": 54, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 2061, - "end": 2066, - "loc": { - "start": { - "line": 54, - "column": 6 - }, - "end": { - "line": 54, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2066, - "end": 2067, - "loc": { - "start": { - "line": 54, - "column": 11 - }, - "end": { - "line": 54, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 2068, - "end": 2073, - "loc": { - "start": { - "line": 54, - "column": 13 - }, - "end": { - "line": 54, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2073, - "end": 2074, - "loc": { - "start": { - "line": 54, - "column": 18 - }, - "end": { - "line": 54, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2075, - "end": 2076, - "loc": { - "start": { - "line": 54, - "column": 20 - }, - "end": { - "line": 54, - "column": 21 - } - } - }, - { - "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": 2080, - "end": 2085, - "loc": { - "start": { - "line": 55, - "column": 2 - }, - "end": { - "line": 55, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 2086, - "end": 2092, - "loc": { - "start": { - "line": 55, - "column": 8 - }, - "end": { - "line": 55, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2093, - "end": 2094, - "loc": { - "start": { - "line": 55, - "column": 15 - }, - "end": { - "line": 55, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Number", - "start": 2095, - "end": 2101, - "loc": { - "start": { - "line": 55, - "column": 17 - }, - "end": { - "line": 55, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2101, - "end": 2102, - "loc": { - "start": { - "line": 55, - "column": 23 - }, - "end": { - "line": 55, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2102, - "end": 2103, - "loc": { - "start": { - "line": 55, - "column": 24 - }, - "end": { - "line": 55, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 2103, - "end": 2107, - "loc": { - "start": { - "line": 55, - "column": 25 - }, - "end": { - "line": 55, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2107, - "end": 2108, - "loc": { - "start": { - "line": 55, - "column": 29 - }, - "end": { - "line": 55, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 2108, - "end": 2114, - "loc": { - "start": { - "line": 55, - "column": 30 - }, - "end": { - "line": 55, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2114, - "end": 2115, - "loc": { - "start": { - "line": 55, - "column": 36 - }, - "end": { - "line": 55, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2115, - "end": 2116, - "loc": { - "start": { - "line": 55, - "column": 37 - }, - "end": { - "line": 55, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 2117, - "end": 2118, - "loc": { - "start": { - "line": 55, - "column": 39 - }, - "end": { - "line": 55, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2119, - "end": 2120, - "loc": { - "start": { - "line": 55, - "column": 41 - }, - "end": { - "line": 55, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum1", - "start": 2120, - "end": 2125, - "loc": { - "start": { - "line": 55, - "column": 42 - }, - "end": { - "line": 55, - "column": 47 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 2126, - "end": 2127, - "loc": { - "start": { - "line": 55, - "column": 48 - }, - "end": { - "line": 55, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 2128, - "end": 2133, - "loc": { - "start": { - "line": 55, - "column": 50 - }, - "end": { - "line": 55, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2133, - "end": 2134, - "loc": { - "start": { - "line": 55, - "column": 55 - }, - "end": { - "line": 55, - "column": 56 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 2135, - "end": 2136, - "loc": { - "start": { - "line": 55, - "column": 57 - }, - "end": { - "line": 55, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum2", - "start": 2137, - "end": 2142, - "loc": { - "start": { - "line": 55, - "column": 59 - }, - "end": { - "line": 55, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2142, - "end": 2143, - "loc": { - "start": { - "line": 55, - "column": 64 - }, - "end": { - "line": 55, - "column": 65 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2143, - "end": 2144, - "loc": { - "start": { - "line": 55, - "column": 65 - }, - "end": { - "line": 55, - "column": 66 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2144, - "end": 2145, - "loc": { - "start": { - "line": 55, - "column": 66 - }, - "end": { - "line": 55, - "column": 67 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2149, - "end": 2155, - "loc": { - "start": { - "line": 56, - "column": 2 - }, - "end": { - "line": 56, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 2156, - "end": 2160, - "loc": { - "start": { - "line": 56, - "column": 9 - }, - "end": { - "line": 56, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2160, - "end": 2161, - "loc": { - "start": { - "line": 56, - "column": 13 - }, - "end": { - "line": 56, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 2161, - "end": 2166, - "loc": { - "start": { - "line": 56, - "column": 14 - }, - "end": { - "line": 56, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2166, - "end": 2167, - "loc": { - "start": { - "line": 56, - "column": 19 - }, - "end": { - "line": 56, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 2167, - "end": 2173, - "loc": { - "start": { - "line": 56, - "column": 20 - }, - "end": { - "line": 56, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2173, - "end": 2174, - "loc": { - "start": { - "line": 56, - "column": 26 - }, - "end": { - "line": 56, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2174, - "end": 2175, - "loc": { - "start": { - "line": 56, - "column": 27 - }, - "end": { - "line": 56, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2178, - "end": 2179, - "loc": { - "start": { - "line": 57, - "column": 1 - }, - "end": { - "line": 57, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t ", - "start": 2182, - "end": 2510, - "loc": { - "start": { - "line": 58, - "column": 1 - }, - "end": { - "line": 64, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPercentage", - "start": 2513, - "end": 2526, - "loc": { - "start": { - "line": 65, - "column": 1 - }, - "end": { - "line": 65, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2526, - "end": 2527, - "loc": { - "start": { - "line": 65, - "column": 14 - }, - "end": { - "line": 65, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pValue", - "start": 2527, - "end": 2533, - "loc": { - "start": { - "line": 65, - "column": 15 - }, - "end": { - "line": 65, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2533, - "end": 2534, - "loc": { - "start": { - "line": 65, - "column": 21 - }, - "end": { - "line": 65, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTotalValue", - "start": 2535, - "end": 2546, - "loc": { - "start": { - "line": 65, - "column": 23 - }, - "end": { - "line": 65, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2546, - "end": 2547, - "loc": { - "start": { - "line": 65, - "column": 34 - }, - "end": { - "line": 65, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2548, - "end": 2549, - "loc": { - "start": { - "line": 65, - "column": 36 - }, - "end": { - "line": 65, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 2553, - "end": 2559, - "loc": { - "start": { - "line": 66, - "column": 2 - }, - "end": { - "line": 66, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2560, - "end": 2561, - "loc": { - "start": { - "line": 66, - "column": 9 - }, - "end": { - "line": 66, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 2561, - "end": 2564, - "loc": { - "start": { - "line": 66, - "column": 10 - }, - "end": { - "line": 66, - "column": 13 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 2565, - "end": 2566, - "loc": { - "start": { - "line": 66, - "column": 14 - }, - "end": { - "line": 66, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pValue", - "start": 2567, - "end": 2573, - "loc": { - "start": { - "line": 66, - "column": 16 - }, - "end": { - "line": 66, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2573, - "end": 2574, - "loc": { - "start": { - "line": 66, - "column": 22 - }, - "end": { - "line": 66, - "column": 23 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 2575, - "end": 2576, - "loc": { - "start": { - "line": 66, - "column": 24 - }, - "end": { - "line": 66, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTotalValue", - "start": 2577, - "end": 2588, - "loc": { - "start": { - "line": 66, - "column": 26 - }, - "end": { - "line": 66, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2588, - "end": 2589, - "loc": { - "start": { - "line": 66, - "column": 37 - }, - "end": { - "line": 66, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2592, - "end": 2593, - "loc": { - "start": { - "line": 67, - "column": 1 - }, - "end": { - "line": 67, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t ", - "start": 2596, - "end": 3013, - "loc": { - "start": { - "line": 68, - "column": 1 - }, - "end": { - "line": 75, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 3016, - "end": 3021, - "loc": { - "start": { - "line": 76, - "column": 1 - }, - "end": { - "line": 76, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3021, - "end": 3022, - "loc": { - "start": { - "line": 76, - "column": 6 - }, - "end": { - "line": 76, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 3022, - "end": 3029, - "loc": { - "start": { - "line": 76, - "column": 7 - }, - "end": { - "line": 76, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3029, - "end": 3030, - "loc": { - "start": { - "line": 76, - "column": 14 - }, - "end": { - "line": 76, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 3031, - "end": 3035, - "loc": { - "start": { - "line": 76, - "column": 16 - }, - "end": { - "line": 76, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3036, - "end": 3037, - "loc": { - "start": { - "line": 76, - "column": 21 - }, - "end": { - "line": 76, - "column": 22 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 3038, - "end": 3039, - "loc": { - "start": { - "line": 76, - "column": 23 - }, - "end": { - "line": 76, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3039, - "end": 3040, - "loc": { - "start": { - "line": 76, - "column": 24 - }, - "end": { - "line": 76, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 3041, - "end": 3045, - "loc": { - "start": { - "line": 76, - "column": 26 - }, - "end": { - "line": 76, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 3046, - "end": 3047, - "loc": { - "start": { - "line": 76, - "column": 31 - }, - "end": { - "line": 76, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 3048, - "end": 3049, - "loc": { - "start": { - "line": 76, - "column": 33 - }, - "end": { - "line": 76, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3049, - "end": 3050, - "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": 3051, - "end": 3052, - "loc": { - "start": { - "line": 76, - "column": 36 - }, - "end": { - "line": 76, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3056, - "end": 3062, - "loc": { - "start": { - "line": 77, - "column": 2 - }, - "end": { - "line": 77, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 3063, - "end": 3067, - "loc": { - "start": { - "line": 77, - "column": 9 - }, - "end": { - "line": 77, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3067, - "end": 3068, - "loc": { - "start": { - "line": 77, - "column": 13 - }, - "end": { - "line": 77, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "max", - "start": 3068, - "end": 3071, - "loc": { - "start": { - "line": 77, - "column": 14 - }, - "end": { - "line": 77, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3071, - "end": 3072, - "loc": { - "start": { - "line": 77, - "column": 17 - }, - "end": { - "line": 77, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 3072, - "end": 3076, - "loc": { - "start": { - "line": 77, - "column": 18 - }, - "end": { - "line": 77, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3076, - "end": 3077, - "loc": { - "start": { - "line": 77, - "column": 22 - }, - "end": { - "line": 77, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 3078, - "end": 3082, - "loc": { - "start": { - "line": 77, - "column": 24 - }, - "end": { - "line": 77, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3082, - "end": 3083, - "loc": { - "start": { - "line": 77, - "column": 28 - }, - "end": { - "line": 77, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "min", - "start": 3083, - "end": 3086, - "loc": { - "start": { - "line": 77, - "column": 29 - }, - "end": { - "line": 77, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3086, - "end": 3087, - "loc": { - "start": { - "line": 77, - "column": 32 - }, - "end": { - "line": 77, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 3087, - "end": 3094, - "loc": { - "start": { - "line": 77, - "column": 33 - }, - "end": { - "line": 77, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3094, - "end": 3095, - "loc": { - "start": { - "line": 77, - "column": 40 - }, - "end": { - "line": 77, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 3096, - "end": 3100, - "loc": { - "start": { - "line": 77, - "column": 42 - }, - "end": { - "line": 77, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3100, - "end": 3101, - "loc": { - "start": { - "line": 77, - "column": 46 - }, - "end": { - "line": 77, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3101, - "end": 3102, - "loc": { - "start": { - "line": 77, - "column": 47 - }, - "end": { - "line": 77, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3102, - "end": 3103, - "loc": { - "start": { - "line": 77, - "column": 48 - }, - "end": { - "line": 77, - "column": 49 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3106, - "end": 3107, - "loc": { - "start": { - "line": 78, - "column": 1 - }, - "end": { - "line": 78, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t ", - "start": 3110, - "end": 3523, - "loc": { - "start": { - "line": 79, - "column": 1 - }, - "end": { - "line": 86, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 3526, - "end": 3530, - "loc": { - "start": { - "line": 87, - "column": 1 - }, - "end": { - "line": 87, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3530, - "end": 3531, - "loc": { - "start": { - "line": 87, - "column": 5 - }, - "end": { - "line": 87, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 3531, - "end": 3537, - "loc": { - "start": { - "line": 87, - "column": 6 - }, - "end": { - "line": 87, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3537, - "end": 3538, - "loc": { - "start": { - "line": 87, - "column": 12 - }, - "end": { - "line": 87, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3539, - "end": 3543, - "loc": { - "start": { - "line": 87, - "column": 14 - }, - "end": { - "line": 87, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3543, - "end": 3544, - "loc": { - "start": { - "line": 87, - "column": 18 - }, - "end": { - "line": 87, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3545, - "end": 3552, - "loc": { - "start": { - "line": 87, - "column": 20 - }, - "end": { - "line": 87, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3552, - "end": 3553, - "loc": { - "start": { - "line": 87, - "column": 27 - }, - "end": { - "line": 87, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3554, - "end": 3555, - "loc": { - "start": { - "line": 87, - "column": 29 - }, - "end": { - "line": 87, - "column": 30 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 3559, - "end": 3565, - "loc": { - "start": { - "line": 88, - "column": 2 - }, - "end": { - "line": 88, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3566, - "end": 3567, - "loc": { - "start": { - "line": 88, - "column": 9 - }, - "end": { - "line": 88, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 3567, - "end": 3568, - "loc": { - "start": { - "line": 88, - "column": 10 - }, - "end": { - "line": 88, - "column": 11 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 3568, - "end": 3569, - "loc": { - "start": { - "line": 88, - "column": 11 - }, - "end": { - "line": 88, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3569, - "end": 3576, - "loc": { - "start": { - "line": 88, - "column": 12 - }, - "end": { - "line": 88, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3576, - "end": 3577, - "loc": { - "start": { - "line": 88, - "column": 19 - }, - "end": { - "line": 88, - "column": 20 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 3577, - "end": 3578, - "loc": { - "start": { - "line": 88, - "column": 20 - }, - "end": { - "line": 88, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 3578, - "end": 3584, - "loc": { - "start": { - "line": 88, - "column": 21 - }, - "end": { - "line": 88, - "column": 27 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 3584, - "end": 3585, - "loc": { - "start": { - "line": 88, - "column": 27 - }, - "end": { - "line": 88, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 3585, - "end": 3592, - "loc": { - "start": { - "line": 88, - "column": 28 - }, - "end": { - "line": 88, - "column": 35 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 3592, - "end": 3593, - "loc": { - "start": { - "line": 88, - "column": 35 - }, - "end": { - "line": 88, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 3593, - "end": 3597, - "loc": { - "start": { - "line": 88, - "column": 36 - }, - "end": { - "line": 88, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 3597, - "end": 3598, - "loc": { - "start": { - "line": 88, - "column": 40 - }, - "end": { - "line": 88, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 3601, - "end": 3602, - "loc": { - "start": { - "line": 89, - "column": 1 - }, - "end": { - "line": 89, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t ", - "start": 3605, - "end": 4099, - "loc": { - "start": { - "line": 90, - "column": 1 - }, - "end": { - "line": 97, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "flooredLerp", - "start": 4102, - "end": 4113, - "loc": { - "start": { - "line": 98, - "column": 1 - }, - "end": { - "line": 98, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4113, - "end": 4114, - "loc": { - "start": { - "line": 98, - "column": 12 - }, - "end": { - "line": 98, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 4114, - "end": 4120, - "loc": { - "start": { - "line": 98, - "column": 13 - }, - "end": { - "line": 98, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4120, - "end": 4121, - "loc": { - "start": { - "line": 98, - "column": 19 - }, - "end": { - "line": 98, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 4122, - "end": 4126, - "loc": { - "start": { - "line": 98, - "column": 21 - }, - "end": { - "line": 98, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4126, - "end": 4127, - "loc": { - "start": { - "line": 98, - "column": 25 - }, - "end": { - "line": 98, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 4128, - "end": 4135, - "loc": { - "start": { - "line": 98, - "column": 27 - }, - "end": { - "line": 98, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4135, - "end": 4136, - "loc": { - "start": { - "line": 98, - "column": 34 - }, - "end": { - "line": 98, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4137, - "end": 4138, - "loc": { - "start": { - "line": 98, - "column": 36 - }, - "end": { - "line": 98, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4142, - "end": 4148, - "loc": { - "start": { - "line": 99, - "column": 2 - }, - "end": { - "line": 99, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 4149, - "end": 4153, - "loc": { - "start": { - "line": 99, - "column": 9 - }, - "end": { - "line": 99, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4153, - "end": 4154, - "loc": { - "start": { - "line": 99, - "column": 13 - }, - "end": { - "line": 99, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 4154, - "end": 4159, - "loc": { - "start": { - "line": 99, - "column": 14 - }, - "end": { - "line": 99, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4159, - "end": 4160, - "loc": { - "start": { - "line": 99, - "column": 19 - }, - "end": { - "line": 99, - "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": 4160, - "end": 4164, - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4164, - "end": 4165, - "loc": { - "start": { - "line": 99, - "column": 24 - }, - "end": { - "line": 99, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 4165, - "end": 4169, - "loc": { - "start": { - "line": 99, - "column": 25 - }, - "end": { - "line": 99, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4169, - "end": 4170, - "loc": { - "start": { - "line": 99, - "column": 29 - }, - "end": { - "line": 99, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStart", - "start": 4170, - "end": 4176, - "loc": { - "start": { - "line": 99, - "column": 30 - }, - "end": { - "line": 99, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4176, - "end": 4177, - "loc": { - "start": { - "line": 99, - "column": 36 - }, - "end": { - "line": 99, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEnd", - "start": 4178, - "end": 4182, - "loc": { - "start": { - "line": 99, - "column": 38 - }, - "end": { - "line": 99, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4182, - "end": 4183, - "loc": { - "start": { - "line": 99, - "column": 42 - }, - "end": { - "line": 99, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 4184, - "end": 4191, - "loc": { - "start": { - "line": 99, - "column": 44 - }, - "end": { - "line": 99, - "column": 51 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4191, - "end": 4192, - "loc": { - "start": { - "line": 99, - "column": 51 - }, - "end": { - "line": 99, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4192, - "end": 4193, - "loc": { - "start": { - "line": 99, - "column": 52 - }, - "end": { - "line": 99, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4193, - "end": 4194, - "loc": { - "start": { - "line": 99, - "column": 53 - }, - "end": { - "line": 99, - "column": 54 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4197, - "end": 4198, - "loc": { - "start": { - "line": 100, - "column": 1 - }, - "end": { - "line": 100, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t ", - "start": 4201, - "end": 4522, - "loc": { - "start": { - "line": 101, - "column": 1 - }, - "end": { - "line": 107, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 4525, - "end": 4530, - "loc": { - "start": { - "line": 108, - "column": 1 - }, - "end": { - "line": 108, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4530, - "end": 4531, - "loc": { - "start": { - "line": 108, - "column": 6 - }, - "end": { - "line": 108, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 4531, - "end": 4538, - "loc": { - "start": { - "line": 108, - "column": 7 - }, - "end": { - "line": 108, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4538, - "end": 4539, - "loc": { - "start": { - "line": 108, - "column": 14 - }, - "end": { - "line": 108, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4540, - "end": 4546, - "loc": { - "start": { - "line": 108, - "column": 16 - }, - "end": { - "line": 108, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 4546, - "end": 4547, - "loc": { - "start": { - "line": 108, - "column": 22 - }, - "end": { - "line": 108, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 4547, - "end": 4548, - "loc": { - "start": { - "line": 108, - "column": 23 - }, - "end": { - "line": 108, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4548, - "end": 4549, - "loc": { - "start": { - "line": 108, - "column": 24 - }, - "end": { - "line": 108, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4550, - "end": 4551, - "loc": { - "start": { - "line": 108, - "column": 26 - }, - "end": { - "line": 108, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 4555, - "end": 4561, - "loc": { - "start": { - "line": 109, - "column": 2 - }, - "end": { - "line": 109, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 4562, - "end": 4566, - "loc": { - "start": { - "line": 109, - "column": 9 - }, - "end": { - "line": 109, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4566, - "end": 4567, - "loc": { - "start": { - "line": 109, - "column": 13 - }, - "end": { - "line": 109, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 4567, - "end": 4572, - "loc": { - "start": { - "line": 109, - "column": 14 - }, - "end": { - "line": 109, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4572, - "end": 4573, - "loc": { - "start": { - "line": 109, - "column": 19 - }, - "end": { - "line": 109, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4573, - "end": 4579, - "loc": { - "start": { - "line": 109, - "column": 20 - }, - "end": { - "line": 109, - "column": 26 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 4580, - "end": 4581, - "loc": { - "start": { - "line": 109, - "column": 27 - }, - "end": { - "line": 109, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNumber", - "start": 4582, - "end": 4589, - "loc": { - "start": { - "line": 109, - "column": 29 - }, - "end": { - "line": 109, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4589, - "end": 4590, - "loc": { - "start": { - "line": 109, - "column": 36 - }, - "end": { - "line": 109, - "column": 37 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 4591, - "end": 4592, - "loc": { - "start": { - "line": 109, - "column": 38 - }, - "end": { - "line": 109, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPlace", - "start": 4593, - "end": 4599, - "loc": { - "start": { - "line": 109, - "column": 40 - }, - "end": { - "line": 109, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 4599, - "end": 4600, - "loc": { - "start": { - "line": 109, - "column": 46 - }, - "end": { - "line": 109, - "column": 47 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 4603, - "end": 4604, - "loc": { - "start": { - "line": 110, - "column": 1 - }, - "end": { - "line": 110, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t ", - "start": 4607, - "end": 5089, - "loc": { - "start": { - "line": 111, - "column": 1 - }, - "end": { - "line": 119, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "normalize", - "start": 5092, - "end": 5101, - "loc": { - "start": { - "line": 120, - "column": 1 - }, - "end": { - "line": 120, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5101, - "end": 5102, - "loc": { - "start": { - "line": 120, - "column": 10 - }, - "end": { - "line": 120, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5102, - "end": 5106, - "loc": { - "start": { - "line": 120, - "column": 11 - }, - "end": { - "line": 120, - "column": 15 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5106, - "end": 5107, - "loc": { - "start": { - "line": 120, - "column": 15 - }, - "end": { - "line": 120, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5108, - "end": 5112, - "loc": { - "start": { - "line": 120, - "column": 17 - }, - "end": { - "line": 120, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5112, - "end": 5113, - "loc": { - "start": { - "line": 120, - "column": 21 - }, - "end": { - "line": 120, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5114, - "end": 5118, - "loc": { - "start": { - "line": 120, - "column": 23 - }, - "end": { - "line": 120, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5118, - "end": 5119, - "loc": { - "start": { - "line": 120, - "column": 27 - }, - "end": { - "line": 120, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5120, - "end": 5121, - "loc": { - "start": { - "line": 120, - "column": 29 - }, - "end": { - "line": 120, - "column": 30 - } - } - }, - { - "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": 5125, - "end": 5127, - "loc": { - "start": { - "line": 121, - "column": 2 - }, - "end": { - "line": 121, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5128, - "end": 5129, - "loc": { - "start": { - "line": 121, - "column": 5 - }, - "end": { - "line": 121, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5129, - "end": 5133, - "loc": { - "start": { - "line": 121, - "column": 6 - }, - "end": { - "line": 121, - "column": 10 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 5134, - "end": 5135, - "loc": { - "start": { - "line": 121, - "column": 11 - }, - "end": { - "line": 121, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5136, - "end": 5140, - "loc": { - "start": { - "line": 121, - "column": 13 - }, - "end": { - "line": 121, - "column": 17 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 5141, - "end": 5144, - "loc": { - "start": { - "line": 121, - "column": 18 - }, - "end": { - "line": 121, - "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": 5145, - "end": 5146, - "loc": { - "start": { - "line": 121, - "column": 22 - }, - "end": { - "line": 121, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5146, - "end": 5147, - "loc": { - "start": { - "line": 121, - "column": 23 - }, - "end": { - "line": 121, - "column": 24 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5148, - "end": 5154, - "loc": { - "start": { - "line": 121, - "column": 25 - }, - "end": { - "line": 121, - "column": 31 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 5155, - "end": 5156, - "loc": { - "start": { - "line": 121, - "column": 32 - }, - "end": { - "line": 121, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5156, - "end": 5157, - "loc": { - "start": { - "line": 121, - "column": 33 - }, - "end": { - "line": 121, - "column": 34 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5161, - "end": 5167, - "loc": { - "start": { - "line": 122, - "column": 2 - }, - "end": { - "line": 122, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5168, - "end": 5169, - "loc": { - "start": { - "line": 122, - "column": 9 - }, - "end": { - "line": 122, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5169, - "end": 5173, - "loc": { - "start": { - "line": 122, - "column": 10 - }, - "end": { - "line": 122, - "column": 14 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 5174, - "end": 5175, - "loc": { - "start": { - "line": 122, - "column": 15 - }, - "end": { - "line": 122, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5176, - "end": 5180, - "loc": { - "start": { - "line": 122, - "column": 17 - }, - "end": { - "line": 122, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5180, - "end": 5181, - "loc": { - "start": { - "line": 122, - "column": 21 - }, - "end": { - "line": 122, - "column": 22 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 5182, - "end": 5183, - "loc": { - "start": { - "line": 122, - "column": 23 - }, - "end": { - "line": 122, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5184, - "end": 5185, - "loc": { - "start": { - "line": 122, - "column": 25 - }, - "end": { - "line": 122, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5185, - "end": 5189, - "loc": { - "start": { - "line": 122, - "column": 26 - }, - "end": { - "line": 122, - "column": 30 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 5190, - "end": 5191, - "loc": { - "start": { - "line": 122, - "column": 31 - }, - "end": { - "line": 122, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5192, - "end": 5196, - "loc": { - "start": { - "line": 122, - "column": 33 - }, - "end": { - "line": 122, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5196, - "end": 5197, - "loc": { - "start": { - "line": 122, - "column": 37 - }, - "end": { - "line": 122, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5197, - "end": 5198, - "loc": { - "start": { - "line": 122, - "column": 38 - }, - "end": { - "line": 122, - "column": 39 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5201, - "end": 5202, - "loc": { - "start": { - "line": 123, - "column": 1 - }, - "end": { - "line": 123, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.\r\n\t *\r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized and clamped value between -1 and 1 based on the input value's\r\n\t * position between the minimum and maximum values. If the difference between pMax and pMin is 0,\r\n\t * returns 1 to avoid dividing by zero.\r\n\t ", - "start": 5205, - "end": 5737, - "loc": { - "start": { - "line": 124, - "column": 1 - }, - "end": { - "line": 133, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "normalizeRanged", - "start": 5740, - "end": 5755, - "loc": { - "start": { - "line": 134, - "column": 1 - }, - "end": { - "line": 134, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5755, - "end": 5756, - "loc": { - "start": { - "line": 134, - "column": 16 - }, - "end": { - "line": 134, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5756, - "end": 5760, - "loc": { - "start": { - "line": 134, - "column": 17 - }, - "end": { - "line": 134, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5760, - "end": 5761, - "loc": { - "start": { - "line": 134, - "column": 21 - }, - "end": { - "line": 134, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5762, - "end": 5766, - "loc": { - "start": { - "line": 134, - "column": 23 - }, - "end": { - "line": 134, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5766, - "end": 5767, - "loc": { - "start": { - "line": 134, - "column": 27 - }, - "end": { - "line": 134, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5768, - "end": 5772, - "loc": { - "start": { - "line": 134, - "column": 29 - }, - "end": { - "line": 134, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5772, - "end": 5773, - "loc": { - "start": { - "line": 134, - "column": 33 - }, - "end": { - "line": 134, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5774, - "end": 5775, - "loc": { - "start": { - "line": 134, - "column": 35 - }, - "end": { - "line": 134, - "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": 5779, - "end": 5781, - "loc": { - "start": { - "line": 135, - "column": 2 - }, - "end": { - "line": 135, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5782, - "end": 5783, - "loc": { - "start": { - "line": 135, - "column": 5 - }, - "end": { - "line": 135, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5783, - "end": 5787, - "loc": { - "start": { - "line": 135, - "column": 6 - }, - "end": { - "line": 135, - "column": 10 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 5788, - "end": 5789, - "loc": { - "start": { - "line": 135, - "column": 11 - }, - "end": { - "line": 135, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5790, - "end": 5794, - "loc": { - "start": { - "line": 135, - "column": 13 - }, - "end": { - "line": 135, - "column": 17 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 5795, - "end": 5798, - "loc": { - "start": { - "line": 135, - "column": 18 - }, - "end": { - "line": 135, - "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": 5799, - "end": 5800, - "loc": { - "start": { - "line": 135, - "column": 22 - }, - "end": { - "line": 135, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5800, - "end": 5801, - "loc": { - "start": { - "line": 135, - "column": 23 - }, - "end": { - "line": 135, - "column": 24 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5802, - "end": 5808, - "loc": { - "start": { - "line": 135, - "column": 25 - }, - "end": { - "line": 135, - "column": 31 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 5809, - "end": 5810, - "loc": { - "start": { - "line": 135, - "column": 32 - }, - "end": { - "line": 135, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5810, - "end": 5811, - "loc": { - "start": { - "line": 135, - "column": 33 - }, - "end": { - "line": 135, - "column": 34 - } - } - }, - { - "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": 5815, - "end": 5820, - "loc": { - "start": { - "line": 136, - "column": 2 - }, - "end": { - "line": 136, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "normalizedValue", - "start": 5821, - "end": 5836, - "loc": { - "start": { - "line": 136, - "column": 8 - }, - "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": 5837, - "end": 5838, - "loc": { - "start": { - "line": 136, - "column": 24 - }, - "end": { - "line": 136, - "column": 25 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 5839, - "end": 5840, - "loc": { - "start": { - "line": 136, - "column": 26 - }, - "end": { - "line": 136, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5840, - "end": 5841, - "loc": { - "start": { - "line": 136, - "column": 27 - }, - "end": { - "line": 136, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5841, - "end": 5842, - "loc": { - "start": { - "line": 136, - "column": 28 - }, - "end": { - "line": 136, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 5842, - "end": 5843, - "loc": { - "start": { - "line": 136, - "column": 29 - }, - "end": { - "line": 136, - "column": 30 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 5844, - "end": 5845, - "loc": { - "start": { - "line": 136, - "column": 31 - }, - "end": { - "line": 136, - "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": 5846, - "end": 5850, - "loc": { - "start": { - "line": 136, - "column": 33 - }, - "end": { - "line": 136, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5850, - "end": 5851, - "loc": { - "start": { - "line": 136, - "column": 37 - }, - "end": { - "line": 136, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "normalize", - "start": 5851, - "end": 5860, - "loc": { - "start": { - "line": 136, - "column": 38 - }, - "end": { - "line": 136, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5860, - "end": 5861, - "loc": { - "start": { - "line": 136, - "column": 47 - }, - "end": { - "line": 136, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 5861, - "end": 5865, - "loc": { - "start": { - "line": 136, - "column": 48 - }, - "end": { - "line": 136, - "column": 52 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5865, - "end": 5866, - "loc": { - "start": { - "line": 136, - "column": 52 - }, - "end": { - "line": 136, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 5867, - "end": 5871, - "loc": { - "start": { - "line": 136, - "column": 54 - }, - "end": { - "line": 136, - "column": 58 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5871, - "end": 5872, - "loc": { - "start": { - "line": 136, - "column": 58 - }, - "end": { - "line": 136, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 5873, - "end": 5877, - "loc": { - "start": { - "line": 136, - "column": 60 - }, - "end": { - "line": 136, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5877, - "end": 5878, - "loc": { - "start": { - "line": 136, - "column": 64 - }, - "end": { - "line": 136, - "column": 65 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5878, - "end": 5879, - "loc": { - "start": { - "line": 136, - "column": 65 - }, - "end": { - "line": 136, - "column": 66 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 5880, - "end": 5881, - "loc": { - "start": { - "line": 136, - "column": 67 - }, - "end": { - "line": 136, - "column": 68 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 5882, - "end": 5883, - "loc": { - "start": { - "line": 136, - "column": 69 - }, - "end": { - "line": 136, - "column": 70 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5883, - "end": 5884, - "loc": { - "start": { - "line": 136, - "column": 70 - }, - "end": { - "line": 136, - "column": 71 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5884, - "end": 5885, - "loc": { - "start": { - "line": 136, - "column": 71 - }, - "end": { - "line": 136, - "column": 72 - } - } - }, - { - "type": "CommentLine", - "value": " Clamp the normalized value to the range of -1 to 1", - "start": 5889, - "end": 5942, - "loc": { - "start": { - "line": 137, - "column": 2 - }, - "end": { - "line": 137, - "column": 55 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 5946, - "end": 5952, - "loc": { - "start": { - "line": 138, - "column": 2 - }, - "end": { - "line": 138, - "column": 8 - } - } - }, - { - "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": 5953, - "end": 5957, - "loc": { - "start": { - "line": 138, - "column": 9 - }, - "end": { - "line": 138, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5957, - "end": 5958, - "loc": { - "start": { - "line": 138, - "column": 13 - }, - "end": { - "line": 138, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 5958, - "end": 5963, - "loc": { - "start": { - "line": 138, - "column": 14 - }, - "end": { - "line": 138, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5963, - "end": 5964, - "loc": { - "start": { - "line": 138, - "column": 19 - }, - "end": { - "line": 138, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "normalizedValue", - "start": 5964, - "end": 5979, - "loc": { - "start": { - "line": 138, - "column": 20 - }, - "end": { - "line": 138, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5979, - "end": 5980, - "loc": { - "start": { - "line": 138, - "column": 35 - }, - "end": { - "line": 138, - "column": 36 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 5981, - "end": 5982, - "loc": { - "start": { - "line": 138, - "column": 37 - }, - "end": { - "line": 138, - "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": 5982, - "end": 5983, - "loc": { - "start": { - "line": 138, - "column": 38 - }, - "end": { - "line": 138, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5983, - "end": 5984, - "loc": { - "start": { - "line": 138, - "column": 39 - }, - "end": { - "line": 138, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 5985, - "end": 5986, - "loc": { - "start": { - "line": 138, - "column": 41 - }, - "end": { - "line": 138, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5986, - "end": 5987, - "loc": { - "start": { - "line": 138, - "column": 42 - }, - "end": { - "line": 138, - "column": 43 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5987, - "end": 5988, - "loc": { - "start": { - "line": 138, - "column": 43 - }, - "end": { - "line": 138, - "column": 44 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 5991, - "end": 5992, - "loc": { - "start": { - "line": 139, - "column": 1 - }, - "end": { - "line": 139, - "column": 2 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 5992, - "end": 5993, - "loc": { - "start": { - "line": 139, - "column": 2 - }, - "end": { - "line": 139, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t ", - "start": 5996, - "end": 6389, - "loc": { - "start": { - "line": 140, - "column": 1 - }, - "end": { - "line": 147, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "within", - "start": 6392, - "end": 6398, - "loc": { - "start": { - "line": 148, - "column": 1 - }, - "end": { - "line": 148, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6398, - "end": 6399, - "loc": { - "start": { - "line": 148, - "column": 7 - }, - "end": { - "line": 148, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 6399, - "end": 6403, - "loc": { - "start": { - "line": 148, - "column": 8 - }, - "end": { - "line": 148, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6403, - "end": 6404, - "loc": { - "start": { - "line": 148, - "column": 12 - }, - "end": { - "line": 148, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 6405, - "end": 6409, - "loc": { - "start": { - "line": 148, - "column": 14 - }, - "end": { - "line": 148, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6409, - "end": 6410, - "loc": { - "start": { - "line": 148, - "column": 18 - }, - "end": { - "line": 148, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 6411, - "end": 6415, - "loc": { - "start": { - "line": 148, - "column": 20 - }, - "end": { - "line": 148, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6415, - "end": 6416, - "loc": { - "start": { - "line": 148, - "column": 24 - }, - "end": { - "line": 148, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6417, - "end": 6418, - "loc": { - "start": { - "line": 148, - "column": 26 - }, - "end": { - "line": 148, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 6422, - "end": 6428, - "loc": { - "start": { - "line": 149, - "column": 2 - }, - "end": { - "line": 149, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 6429, - "end": 6433, - "loc": { - "start": { - "line": 149, - "column": 9 - }, - "end": { - "line": 149, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 6434, - "end": 6436, - "loc": { - "start": { - "line": 149, - "column": 14 - }, - "end": { - "line": 149, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMin", - "start": 6437, - "end": 6441, - "loc": { - "start": { - "line": 149, - "column": 17 - }, - "end": { - "line": 149, - "column": 21 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 6442, - "end": 6444, - "loc": { - "start": { - "line": 149, - "column": 22 - }, - "end": { - "line": 149, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pVal", - "start": 6445, - "end": 6449, - "loc": { - "start": { - "line": 149, - "column": 25 - }, - "end": { - "line": 149, - "column": 29 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 6450, - "end": 6452, - "loc": { - "start": { - "line": 149, - "column": 30 - }, - "end": { - "line": 149, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 6453, - "end": 6457, - "loc": { - "start": { - "line": 149, - "column": 33 - }, - "end": { - "line": 149, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6457, - "end": 6458, - "loc": { - "start": { - "line": 149, - "column": 37 - }, - "end": { - "line": 149, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6461, - "end": 6462, - "loc": { - "start": { - "line": 150, - "column": 1 - }, - "end": { - "line": 150, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t ", - "start": 6465, - "end": 6710, - "loc": { - "start": { - "line": 151, - "column": 1 - }, - "end": { - "line": 156, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "formatIntegerWithCommas", - "start": 6713, - "end": 6736, - "loc": { - "start": { - "line": 157, - "column": 1 - }, - "end": { - "line": 157, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6736, - "end": 6737, - "loc": { - "start": { - "line": 157, - "column": 24 - }, - "end": { - "line": 157, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum", - "start": 6737, - "end": 6741, - "loc": { - "start": { - "line": 157, - "column": 25 - }, - "end": { - "line": 157, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6741, - "end": 6742, - "loc": { - "start": { - "line": 157, - "column": 29 - }, - "end": { - "line": 157, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6743, - "end": 6744, - "loc": { - "start": { - "line": 157, - "column": 31 - }, - "end": { - "line": 157, - "column": 32 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 6748, - "end": 6754, - "loc": { - "start": { - "line": 158, - "column": 2 - }, - "end": { - "line": 158, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pNum", - "start": 6755, - "end": 6759, - "loc": { - "start": { - "line": 158, - "column": 9 - }, - "end": { - "line": 158, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6759, - "end": 6760, - "loc": { - "start": { - "line": 158, - "column": 13 - }, - "end": { - "line": 158, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toFixed", - "start": 6760, - "end": 6767, - "loc": { - "start": { - "line": 158, - "column": 14 - }, - "end": { - "line": 158, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6767, - "end": 6768, - "loc": { - "start": { - "line": 158, - "column": 21 - }, - "end": { - "line": 158, - "column": 22 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6768, - "end": 6769, - "loc": { - "start": { - "line": 158, - "column": 22 - }, - "end": { - "line": 158, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6769, - "end": 6770, - "loc": { - "start": { - "line": 158, - "column": 23 - }, - "end": { - "line": 158, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 6770, - "end": 6778, - "loc": { - "start": { - "line": 158, - "column": 24 - }, - "end": { - "line": 158, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6778, - "end": 6779, - "loc": { - "start": { - "line": 158, - "column": 32 - }, - "end": { - "line": 158, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6779, - "end": 6780, - "loc": { - "start": { - "line": 158, - "column": 33 - }, - "end": { - "line": 158, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6780, - "end": 6781, - "loc": { - "start": { - "line": 158, - "column": 34 - }, - "end": { - "line": 158, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 6781, - "end": 6788, - "loc": { - "start": { - "line": 158, - "column": 35 - }, - "end": { - "line": 158, - "column": 42 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6788, - "end": 6789, - "loc": { - "start": { - "line": 158, - "column": 42 - }, - "end": { - "line": 158, - "column": 43 - } - } - }, - { - "type": { - "label": "regexp", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": { - "pattern": "(\\d)(?=(\\d{3})+(?!\\d))", - "flags": "g" - }, - "start": 6789, - "end": 6814, - "loc": { - "start": { - "line": 158, - "column": 43 - }, - "end": { - "line": 158, - "column": 68 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6814, - "end": 6815, - "loc": { - "start": { - "line": 158, - "column": 68 - }, - "end": { - "line": 158, - "column": 69 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "$1,", - "start": 6816, - "end": 6821, - "loc": { - "start": { - "line": 158, - "column": 70 - }, - "end": { - "line": 158, - "column": 75 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6821, - "end": 6822, - "loc": { - "start": { - "line": 158, - "column": 75 - }, - "end": { - "line": 158, - "column": 76 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6822, - "end": 6823, - "loc": { - "start": { - "line": 158, - "column": 76 - }, - "end": { - "line": 158, - "column": 77 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6826, - "end": 6827, - "loc": { - "start": { - "line": 159, - "column": 1 - }, - "end": { - "line": 159, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t ", - "start": 6830, - "end": 6978, - "loc": { - "start": { - "line": 160, - "column": 1 - }, - "end": { - "line": 165, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toRadians", - "start": 6981, - "end": 6990, - "loc": { - "start": { - "line": 166, - "column": 1 - }, - "end": { - "line": 166, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6990, - "end": 6991, - "loc": { - "start": { - "line": 166, - "column": 10 - }, - "end": { - "line": 166, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDegrees", - "start": 6991, - "end": 6999, - "loc": { - "start": { - "line": 166, - "column": 11 - }, - "end": { - "line": 166, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6999, - "end": 7000, - "loc": { - "start": { - "line": 166, - "column": 19 - }, - "end": { - "line": 166, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7001, - "end": 7002, - "loc": { - "start": { - "line": 166, - "column": 21 - }, - "end": { - "line": 166, - "column": 22 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7006, - "end": 7012, - "loc": { - "start": { - "line": 167, - "column": 2 - }, - "end": { - "line": 167, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDegrees", - "start": 7013, - "end": 7021, - "loc": { - "start": { - "line": 167, - "column": 9 - }, - "end": { - "line": 167, - "column": 17 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 7022, - "end": 7023, - "loc": { - "start": { - "line": 167, - "column": 18 - }, - "end": { - "line": 167, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7024, - "end": 7025, - "loc": { - "start": { - "line": 167, - "column": 20 - }, - "end": { - "line": 167, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 7025, - "end": 7029, - "loc": { - "start": { - "line": 167, - "column": 21 - }, - "end": { - "line": 167, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7029, - "end": 7030, - "loc": { - "start": { - "line": 167, - "column": 25 - }, - "end": { - "line": 167, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 7030, - "end": 7032, - "loc": { - "start": { - "line": 167, - "column": 26 - }, - "end": { - "line": 167, - "column": 28 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 7033, - "end": 7034, - "loc": { - "start": { - "line": 167, - "column": 29 - }, - "end": { - "line": 167, - "column": 30 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 180, - "start": 7035, - "end": 7038, - "loc": { - "start": { - "line": 167, - "column": 31 - }, - "end": { - "line": 167, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7038, - "end": 7039, - "loc": { - "start": { - "line": 167, - "column": 34 - }, - "end": { - "line": 167, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7039, - "end": 7040, - "loc": { - "start": { - "line": 167, - "column": 35 - }, - "end": { - "line": 167, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7043, - "end": 7044, - "loc": { - "start": { - "line": 168, - "column": 1 - }, - "end": { - "line": 168, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t ", - "start": 7047, - "end": 7195, - "loc": { - "start": { - "line": 169, - "column": 1 - }, - "end": { - "line": 174, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toDegrees", - "start": 7198, - "end": 7207, - "loc": { - "start": { - "line": 175, - "column": 1 - }, - "end": { - "line": 175, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7207, - "end": 7208, - "loc": { - "start": { - "line": 175, - "column": 10 - }, - "end": { - "line": 175, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRadians", - "start": 7208, - "end": 7216, - "loc": { - "start": { - "line": 175, - "column": 11 - }, - "end": { - "line": 175, - "column": 19 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7216, - "end": 7217, - "loc": { - "start": { - "line": 175, - "column": 19 - }, - "end": { - "line": 175, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7218, - "end": 7219, - "loc": { - "start": { - "line": 175, - "column": 21 - }, - "end": { - "line": 175, - "column": 22 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7223, - "end": 7229, - "loc": { - "start": { - "line": 176, - "column": 2 - }, - "end": { - "line": 176, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRadians", - "start": 7230, - "end": 7238, - "loc": { - "start": { - "line": 176, - "column": 9 - }, - "end": { - "line": 176, - "column": 17 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 7239, - "end": 7240, - "loc": { - "start": { - "line": 176, - "column": 18 - }, - "end": { - "line": 176, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7241, - "end": 7242, - "loc": { - "start": { - "line": 176, - "column": 20 - }, - "end": { - "line": 176, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 180, - "start": 7242, - "end": 7245, - "loc": { - "start": { - "line": 176, - "column": 21 - }, - "end": { - "line": 176, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 7246, - "end": 7247, - "loc": { - "start": { - "line": 176, - "column": 25 - }, - "end": { - "line": 176, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 7248, - "end": 7252, - "loc": { - "start": { - "line": 176, - "column": 27 - }, - "end": { - "line": 176, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7252, - "end": 7253, - "loc": { - "start": { - "line": 176, - "column": 31 - }, - "end": { - "line": 176, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 7253, - "end": 7255, - "loc": { - "start": { - "line": 176, - "column": 32 - }, - "end": { - "line": 176, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7255, - "end": 7256, - "loc": { - "start": { - "line": 176, - "column": 34 - }, - "end": { - "line": 176, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7256, - "end": 7257, - "loc": { - "start": { - "line": 176, - "column": 35 - }, - "end": { - "line": 176, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7260, - "end": 7261, - "loc": { - "start": { - "line": 177, - "column": 1 - }, - "end": { - "line": 177, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t ", - "start": 7264, - "end": 7428, - "loc": { - "start": { - "line": 178, - "column": 1 - }, - "end": { - "line": 183, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pick", - "start": 7431, - "end": 7435, - "loc": { - "start": { - "line": 184, - "column": 1 - }, - "end": { - "line": 184, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7435, - "end": 7436, - "loc": { - "start": { - "line": 184, - "column": 5 - }, - "end": { - "line": 184, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 7436, - "end": 7442, - "loc": { - "start": { - "line": 184, - "column": 6 - }, - "end": { - "line": 184, - "column": 12 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7442, - "end": 7443, - "loc": { - "start": { - "line": 184, - "column": 12 - }, - "end": { - "line": 184, - "column": 13 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7444, - "end": 7445, - "loc": { - "start": { - "line": 184, - "column": 14 - }, - "end": { - "line": 184, - "column": 15 - } - } - }, - { - "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": 7449, - "end": 7454, - "loc": { - "start": { - "line": 185, - "column": 2 - }, - "end": { - "line": 185, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomIndex", - "start": 7455, - "end": 7466, - "loc": { - "start": { - "line": 185, - "column": 8 - }, - "end": { - "line": 185, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 7467, - "end": 7468, - "loc": { - "start": { - "line": 185, - "column": 20 - }, - "end": { - "line": 185, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 7469, - "end": 7473, - "loc": { - "start": { - "line": 185, - "column": 22 - }, - "end": { - "line": 185, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7473, - "end": 7474, - "loc": { - "start": { - "line": 185, - "column": 26 - }, - "end": { - "line": 185, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 7474, - "end": 7479, - "loc": { - "start": { - "line": 185, - "column": 27 - }, - "end": { - "line": 185, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7479, - "end": 7480, - "loc": { - "start": { - "line": 185, - "column": 32 - }, - "end": { - "line": 185, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 7480, - "end": 7484, - "loc": { - "start": { - "line": 185, - "column": 33 - }, - "end": { - "line": 185, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7484, - "end": 7485, - "loc": { - "start": { - "line": 185, - "column": 37 - }, - "end": { - "line": 185, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 7485, - "end": 7491, - "loc": { - "start": { - "line": 185, - "column": 38 - }, - "end": { - "line": 185, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7491, - "end": 7492, - "loc": { - "start": { - "line": 185, - "column": 44 - }, - "end": { - "line": 185, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7492, - "end": 7493, - "loc": { - "start": { - "line": 185, - "column": 45 - }, - "end": { - "line": 185, - "column": 46 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 7494, - "end": 7495, - "loc": { - "start": { - "line": 185, - "column": 47 - }, - "end": { - "line": 185, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 7496, - "end": 7502, - "loc": { - "start": { - "line": 185, - "column": 49 - }, - "end": { - "line": 185, - "column": 55 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7502, - "end": 7503, - "loc": { - "start": { - "line": 185, - "column": 55 - }, - "end": { - "line": 185, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 7503, - "end": 7509, - "loc": { - "start": { - "line": 185, - "column": 56 - }, - "end": { - "line": 185, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7509, - "end": 7510, - "loc": { - "start": { - "line": 185, - "column": 62 - }, - "end": { - "line": 185, - "column": 63 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7510, - "end": 7511, - "loc": { - "start": { - "line": 185, - "column": 63 - }, - "end": { - "line": 185, - "column": 64 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 7515, - "end": 7521, - "loc": { - "start": { - "line": 186, - "column": 2 - }, - "end": { - "line": 186, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pArray", - "start": 7522, - "end": 7528, - "loc": { - "start": { - "line": 186, - "column": 9 - }, - "end": { - "line": 186, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7528, - "end": 7529, - "loc": { - "start": { - "line": 186, - "column": 15 - }, - "end": { - "line": 186, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomIndex", - "start": 7529, - "end": 7540, - "loc": { - "start": { - "line": 186, - "column": 16 - }, - "end": { - "line": 186, - "column": 27 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7540, - "end": 7541, - "loc": { - "start": { - "line": 186, - "column": 27 - }, - "end": { - "line": 186, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7541, - "end": 7542, - "loc": { - "start": { - "line": 186, - "column": 28 - }, - "end": { - "line": 186, - "column": 29 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7545, - "end": 7546, - "loc": { - "start": { - "line": 187, - "column": 1 - }, - "end": { - "line": 187, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t", - "start": 7549, - "end": 7797, - "loc": { - "start": { - "line": 188, - "column": 1 - }, - "end": { - "line": 193, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "removeProperties", - "start": 7800, - "end": 7816, - "loc": { - "start": { - "line": 194, - "column": 1 - }, - "end": { - "line": 194, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7816, - "end": 7817, - "loc": { - "start": { - "line": 194, - "column": 17 - }, - "end": { - "line": 194, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 7817, - "end": 7824, - "loc": { - "start": { - "line": 194, - "column": 18 - }, - "end": { - "line": 194, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7824, - "end": 7825, - "loc": { - "start": { - "line": 194, - "column": 25 - }, - "end": { - "line": 194, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 7826, - "end": 7834, - "loc": { - "start": { - "line": 194, - "column": 27 - }, - "end": { - "line": 194, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7834, - "end": 7835, - "loc": { - "start": { - "line": 194, - "column": 35 - }, - "end": { - "line": 194, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7836, - "end": 7837, - "loc": { - "start": { - "line": 194, - "column": 37 - }, - "end": { - "line": 194, - "column": 38 - } - } - }, - { - "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": 7841, - "end": 7843, - "loc": { - "start": { - "line": 195, - "column": 2 - }, - "end": { - "line": 195, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7844, - "end": 7845, - "loc": { - "start": { - "line": 195, - "column": 5 - }, - "end": { - "line": 195, - "column": 6 - } - } - }, - { - "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": 7845, - "end": 7851, - "loc": { - "start": { - "line": 195, - "column": 6 - }, - "end": { - "line": 195, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7851, - "end": 7852, - "loc": { - "start": { - "line": 195, - "column": 12 - }, - "end": { - "line": 195, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 7852, - "end": 7859, - "loc": { - "start": { - "line": 195, - "column": 13 - }, - "end": { - "line": 195, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7859, - "end": 7860, - "loc": { - "start": { - "line": 195, - "column": 20 - }, - "end": { - "line": 195, - "column": 21 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 7861, - "end": 7864, - "loc": { - "start": { - "line": 195, - "column": 22 - }, - "end": { - "line": 195, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 7865, - "end": 7873, - "loc": { - "start": { - "line": 195, - "column": 26 - }, - "end": { - "line": 195, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7873, - "end": 7874, - "loc": { - "start": { - "line": 195, - "column": 34 - }, - "end": { - "line": 195, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7875, - "end": 7876, - "loc": { - "start": { - "line": 195, - "column": 36 - }, - "end": { - "line": 195, - "column": 37 - } - } - }, - { - "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": 7881, - "end": 7884, - "loc": { - "start": { - "line": 196, - "column": 3 - }, - "end": { - "line": 196, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7885, - "end": 7886, - "loc": { - "start": { - "line": 196, - "column": 7 - }, - "end": { - "line": 196, - "column": 8 - } - } - }, - { - "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": 7886, - "end": 7891, - "loc": { - "start": { - "line": 196, - "column": 8 - }, - "end": { - "line": 196, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 7892, - "end": 7896, - "loc": { - "start": { - "line": 196, - "column": 14 - }, - "end": { - "line": 196, - "column": 18 - } - } - }, - { - "type": { - "label": "in", - "keyword": "in", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "in", - "start": 7897, - "end": 7899, - "loc": { - "start": { - "line": 196, - "column": 19 - }, - "end": { - "line": 196, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 7900, - "end": 7907, - "loc": { - "start": { - "line": 196, - "column": 22 - }, - "end": { - "line": 196, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7907, - "end": 7908, - "loc": { - "start": { - "line": 196, - "column": 29 - }, - "end": { - "line": 196, - "column": 30 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7909, - "end": 7910, - "loc": { - "start": { - "line": 196, - "column": 31 - }, - "end": { - "line": 196, - "column": 32 - } - } - }, - { - "type": "CommentLine", - "value": " Do not reset these properties.", - "start": 7916, - "end": 7949, - "loc": { - "start": { - "line": 197, - "column": 4 - }, - "end": { - "line": 197, - "column": 37 - } - } - }, - { - "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": 7955, - "end": 7957, - "loc": { - "start": { - "line": 198, - "column": 4 - }, - "end": { - "line": 198, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7958, - "end": 7959, - "loc": { - "start": { - "line": 198, - "column": 7 - }, - "end": { - "line": 198, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 7959, - "end": 7964, - "loc": { - "start": { - "line": 198, - "column": 8 - }, - "end": { - "line": 198, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7964, - "end": 7965, - "loc": { - "start": { - "line": 198, - "column": 13 - }, - "end": { - "line": 198, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 7965, - "end": 7972, - "loc": { - "start": { - "line": 198, - "column": 14 - }, - "end": { - "line": 198, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7972, - "end": 7973, - "loc": { - "start": { - "line": 198, - "column": 21 - }, - "end": { - "line": 198, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 7973, - "end": 7981, - "loc": { - "start": { - "line": 198, - "column": 22 - }, - "end": { - "line": 198, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7981, - "end": 7982, - "loc": { - "start": { - "line": 198, - "column": 30 - }, - "end": { - "line": 198, - "column": 31 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 7983, - "end": 7985, - "loc": { - "start": { - "line": 198, - "column": 32 - }, - "end": { - "line": 198, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pExclude", - "start": 7986, - "end": 7994, - "loc": { - "start": { - "line": 198, - "column": 35 - }, - "end": { - "line": 198, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7994, - "end": 7995, - "loc": { - "start": { - "line": 198, - "column": 43 - }, - "end": { - "line": 198, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 7995, - "end": 8003, - "loc": { - "start": { - "line": 198, - "column": 44 - }, - "end": { - "line": 198, - "column": 52 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8003, - "end": 8004, - "loc": { - "start": { - "line": 198, - "column": 52 - }, - "end": { - "line": 198, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 8004, - "end": 8008, - "loc": { - "start": { - "line": 198, - "column": 53 - }, - "end": { - "line": 198, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8008, - "end": 8009, - "loc": { - "start": { - "line": 198, - "column": 57 - }, - "end": { - "line": 198, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8009, - "end": 8010, - "loc": { - "start": { - "line": 198, - "column": 58 - }, - "end": { - "line": 198, - "column": 59 - } - } - }, - { - "type": { - "label": "continue", - "keyword": "continue", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "continue", - "start": 8011, - "end": 8019, - "loc": { - "start": { - "line": 198, - "column": 60 - }, - "end": { - "line": 198, - "column": 68 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8019, - "end": 8020, - "loc": { - "start": { - "line": 198, - "column": 68 - }, - "end": { - "line": 198, - "column": 69 - } - } - }, - { - "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": 8026, - "end": 8028, - "loc": { - "start": { - "line": 199, - "column": 4 - }, - "end": { - "line": 199, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8029, - "end": 8030, - "loc": { - "start": { - "line": 199, - "column": 7 - }, - "end": { - "line": 199, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 8030, - "end": 8037, - "loc": { - "start": { - "line": 199, - "column": 8 - }, - "end": { - "line": 199, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8037, - "end": 8038, - "loc": { - "start": { - "line": 199, - "column": 15 - }, - "end": { - "line": 199, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hasOwnProperty", - "start": 8038, - "end": 8052, - "loc": { - "start": { - "line": 199, - "column": 16 - }, - "end": { - "line": 199, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8052, - "end": 8053, - "loc": { - "start": { - "line": 199, - "column": 30 - }, - "end": { - "line": 199, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 8053, - "end": 8057, - "loc": { - "start": { - "line": 199, - "column": 31 - }, - "end": { - "line": 199, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8057, - "end": 8058, - "loc": { - "start": { - "line": 199, - "column": 35 - }, - "end": { - "line": 199, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8058, - "end": 8059, - "loc": { - "start": { - "line": 199, - "column": 36 - }, - "end": { - "line": 199, - "column": 37 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8060, - "end": 8061, - "loc": { - "start": { - "line": 199, - "column": 38 - }, - "end": { - "line": 199, - "column": 39 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 8068, - "end": 8074, - "loc": { - "start": { - "line": 200, - "column": 5 - }, - "end": { - "line": 200, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pObject", - "start": 8075, - "end": 8082, - "loc": { - "start": { - "line": 200, - "column": 12 - }, - "end": { - "line": 200, - "column": 19 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8082, - "end": 8083, - "loc": { - "start": { - "line": 200, - "column": 19 - }, - "end": { - "line": 200, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prop", - "start": 8083, - "end": 8087, - "loc": { - "start": { - "line": 200, - "column": 20 - }, - "end": { - "line": 200, - "column": 24 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8087, - "end": 8088, - "loc": { - "start": { - "line": 200, - "column": 24 - }, - "end": { - "line": 200, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8088, - "end": 8089, - "loc": { - "start": { - "line": 200, - "column": 25 - }, - "end": { - "line": 200, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8095, - "end": 8096, - "loc": { - "start": { - "line": 201, - "column": 4 - }, - "end": { - "line": 201, - "column": 5 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8101, - "end": 8102, - "loc": { - "start": { - "line": 202, - "column": 3 - }, - "end": { - "line": 202, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8106, - "end": 8107, - "loc": { - "start": { - "line": 203, - "column": 2 - }, - "end": { - "line": 203, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8111, - "end": 8112, - "loc": { - "start": { - "line": 204, - "column": 1 - }, - "end": { - "line": 204, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t ", - "start": 8115, - "end": 8434, - "loc": { - "start": { - "line": 205, - "column": 1 - }, - "end": { - "line": 211, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prob", - "start": 8437, - "end": 8441, - "loc": { - "start": { - "line": 212, - "column": 1 - }, - "end": { - "line": 212, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8441, - "end": 8442, - "loc": { - "start": { - "line": 212, - "column": 5 - }, - "end": { - "line": 212, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 8442, - "end": 8449, - "loc": { - "start": { - "line": 212, - "column": 6 - }, - "end": { - "line": 212, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8449, - "end": 8450, - "loc": { - "start": { - "line": 212, - "column": 13 - }, - "end": { - "line": 212, - "column": 14 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8451, - "end": 8452, - "loc": { - "start": { - "line": 212, - "column": 15 - }, - "end": { - "line": 212, - "column": 16 - } - } - }, - { - "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": 8456, - "end": 8458, - "loc": { - "start": { - "line": 213, - "column": 2 - }, - "end": { - "line": 213, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8459, - "end": 8460, - "loc": { - "start": { - "line": 213, - "column": 5 - }, - "end": { - "line": 213, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 8460, - "end": 8467, - "loc": { - "start": { - "line": 213, - "column": 6 - }, - "end": { - "line": 213, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 8468, - "end": 8470, - "loc": { - "start": { - "line": 213, - "column": 14 - }, - "end": { - "line": 213, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 8471, - "end": 8472, - "loc": { - "start": { - "line": 213, - "column": 17 - }, - "end": { - "line": 213, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8472, - "end": 8473, - "loc": { - "start": { - "line": 213, - "column": 18 - }, - "end": { - "line": 213, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8474, - "end": 8475, - "loc": { - "start": { - "line": 213, - "column": 20 - }, - "end": { - "line": 213, - "column": 21 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8480, - "end": 8486, - "loc": { - "start": { - "line": 214, - "column": 3 - }, - "end": { - "line": 214, - "column": 9 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 8487, - "end": 8492, - "loc": { - "start": { - "line": 214, - "column": 10 - }, - "end": { - "line": 214, - "column": 15 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8492, - "end": 8493, - "loc": { - "start": { - "line": 214, - "column": 15 - }, - "end": { - "line": 214, - "column": 16 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8497, - "end": 8498, - "loc": { - "start": { - "line": 215, - "column": 2 - }, - "end": { - "line": 215, - "column": 3 - } - } - }, - { - "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": 8502, - "end": 8504, - "loc": { - "start": { - "line": 216, - "column": 2 - }, - "end": { - "line": 216, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8505, - "end": 8506, - "loc": { - "start": { - "line": 216, - "column": 5 - }, - "end": { - "line": 216, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 8506, - "end": 8513, - "loc": { - "start": { - "line": 216, - "column": 6 - }, - "end": { - "line": 216, - "column": 13 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 8514, - "end": 8516, - "loc": { - "start": { - "line": 216, - "column": 14 - }, - "end": { - "line": 216, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 8517, - "end": 8520, - "loc": { - "start": { - "line": 216, - "column": 17 - }, - "end": { - "line": 216, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8520, - "end": 8521, - "loc": { - "start": { - "line": 216, - "column": 20 - }, - "end": { - "line": 216, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8522, - "end": 8523, - "loc": { - "start": { - "line": 216, - "column": 22 - }, - "end": { - "line": 216, - "column": 23 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8528, - "end": 8534, - "loc": { - "start": { - "line": 217, - "column": 3 - }, - "end": { - "line": 217, - "column": 9 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 8535, - "end": 8539, - "loc": { - "start": { - "line": 217, - "column": 10 - }, - "end": { - "line": 217, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8539, - "end": 8540, - "loc": { - "start": { - "line": 217, - "column": 14 - }, - "end": { - "line": 217, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8544, - "end": 8545, - "loc": { - "start": { - "line": 218, - "column": 2 - }, - "end": { - "line": 218, - "column": 3 - } - } - }, - { - "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": 8549, - "end": 8554, - "loc": { - "start": { - "line": 219, - "column": 2 - }, - "end": { - "line": 219, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomNumber", - "start": 8555, - "end": 8567, - "loc": { - "start": { - "line": 219, - "column": 8 - }, - "end": { - "line": 219, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 8568, - "end": 8569, - "loc": { - "start": { - "line": 219, - "column": 21 - }, - "end": { - "line": 219, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8570, - "end": 8574, - "loc": { - "start": { - "line": 219, - "column": 23 - }, - "end": { - "line": 219, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8574, - "end": 8575, - "loc": { - "start": { - "line": 219, - "column": 27 - }, - "end": { - "line": 219, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 8575, - "end": 8580, - "loc": { - "start": { - "line": 219, - "column": 28 - }, - "end": { - "line": 219, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8580, - "end": 8581, - "loc": { - "start": { - "line": 219, - "column": 33 - }, - "end": { - "line": 219, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 8581, - "end": 8585, - "loc": { - "start": { - "line": 219, - "column": 34 - }, - "end": { - "line": 219, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8585, - "end": 8586, - "loc": { - "start": { - "line": 219, - "column": 38 - }, - "end": { - "line": 219, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 8586, - "end": 8592, - "loc": { - "start": { - "line": 219, - "column": 39 - }, - "end": { - "line": 219, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8592, - "end": 8593, - "loc": { - "start": { - "line": 219, - "column": 45 - }, - "end": { - "line": 219, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8593, - "end": 8594, - "loc": { - "start": { - "line": 219, - "column": 46 - }, - "end": { - "line": 219, - "column": 47 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 8595, - "end": 8596, - "loc": { - "start": { - "line": 219, - "column": 48 - }, - "end": { - "line": 219, - "column": 49 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 8597, - "end": 8600, - "loc": { - "start": { - "line": 219, - "column": 50 - }, - "end": { - "line": 219, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8600, - "end": 8601, - "loc": { - "start": { - "line": 219, - "column": 53 - }, - "end": { - "line": 219, - "column": 54 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 8602, - "end": 8603, - "loc": { - "start": { - "line": 219, - "column": 55 - }, - "end": { - "line": 219, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 8604, - "end": 8605, - "loc": { - "start": { - "line": 219, - "column": 57 - }, - "end": { - "line": 219, - "column": 58 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8605, - "end": 8606, - "loc": { - "start": { - "line": 219, - "column": 58 - }, - "end": { - "line": 219, - "column": 59 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8610, - "end": 8616, - "loc": { - "start": { - "line": 220, - "column": 2 - }, - "end": { - "line": 220, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "randomNumber", - "start": 8617, - "end": 8629, - "loc": { - "start": { - "line": 220, - "column": 9 - }, - "end": { - "line": 220, - "column": 21 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 8630, - "end": 8632, - "loc": { - "start": { - "line": 220, - "column": 22 - }, - "end": { - "line": 220, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChance", - "start": 8633, - "end": 8640, - "loc": { - "start": { - "line": 220, - "column": 25 - }, - "end": { - "line": 220, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8640, - "end": 8641, - "loc": { - "start": { - "line": 220, - "column": 32 - }, - "end": { - "line": 220, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8644, - "end": 8645, - "loc": { - "start": { - "line": 221, - "column": 1 - }, - "end": { - "line": 221, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDirection - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t ", - "start": 8648, - "end": 8835, - "loc": { - "start": { - "line": 222, - "column": 1 - }, - "end": { - "line": 227, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getInverseDirection", - "start": 8838, - "end": 8857, - "loc": { - "start": { - "line": 228, - "column": 1 - }, - "end": { - "line": 228, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8857, - "end": 8858, - "loc": { - "start": { - "line": 228, - "column": 20 - }, - "end": { - "line": 228, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDirection", - "start": 8858, - "end": 8868, - "loc": { - "start": { - "line": 228, - "column": 21 - }, - "end": { - "line": 228, - "column": 31 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8868, - "end": 8869, - "loc": { - "start": { - "line": 228, - "column": 31 - }, - "end": { - "line": 228, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8870, - "end": 8871, - "loc": { - "start": { - "line": 228, - "column": 33 - }, - "end": { - "line": 228, - "column": 34 - } - } - }, - { - "type": { - "label": "switch", - "keyword": "switch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "switch", - "start": 8875, - "end": 8881, - "loc": { - "start": { - "line": 229, - "column": 2 - }, - "end": { - "line": 229, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8882, - "end": 8883, - "loc": { - "start": { - "line": 229, - "column": 9 - }, - "end": { - "line": 229, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDirection", - "start": 8883, - "end": 8893, - "loc": { - "start": { - "line": 229, - "column": 10 - }, - "end": { - "line": 229, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8893, - "end": 8894, - "loc": { - "start": { - "line": 229, - "column": 20 - }, - "end": { - "line": 229, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8895, - "end": 8896, - "loc": { - "start": { - "line": 229, - "column": 22 - }, - "end": { - "line": 229, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8901, - "end": 8905, - "loc": { - "start": { - "line": 230, - "column": 3 - }, - "end": { - "line": 230, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 8906, - "end": 8913, - "loc": { - "start": { - "line": 230, - "column": 8 - }, - "end": { - "line": 230, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8913, - "end": 8914, - "loc": { - "start": { - "line": 230, - "column": 15 - }, - "end": { - "line": 230, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8920, - "end": 8926, - "loc": { - "start": { - "line": 231, - "column": 4 - }, - "end": { - "line": 231, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 8927, - "end": 8934, - "loc": { - "start": { - "line": 231, - "column": 11 - }, - "end": { - "line": 231, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8934, - "end": 8935, - "loc": { - "start": { - "line": 231, - "column": 18 - }, - "end": { - "line": 231, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8940, - "end": 8944, - "loc": { - "start": { - "line": 232, - "column": 3 - }, - "end": { - "line": 232, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 8945, - "end": 8952, - "loc": { - "start": { - "line": 232, - "column": 8 - }, - "end": { - "line": 232, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8952, - "end": 8953, - "loc": { - "start": { - "line": 232, - "column": 15 - }, - "end": { - "line": 232, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8959, - "end": 8965, - "loc": { - "start": { - "line": 233, - "column": 4 - }, - "end": { - "line": 233, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 8966, - "end": 8973, - "loc": { - "start": { - "line": 233, - "column": 11 - }, - "end": { - "line": 233, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8973, - "end": 8974, - "loc": { - "start": { - "line": 233, - "column": 18 - }, - "end": { - "line": 233, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 8979, - "end": 8983, - "loc": { - "start": { - "line": 234, - "column": 3 - }, - "end": { - "line": 234, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 8984, - "end": 8990, - "loc": { - "start": { - "line": 234, - "column": 8 - }, - "end": { - "line": 234, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8990, - "end": 8991, - "loc": { - "start": { - "line": 234, - "column": 14 - }, - "end": { - "line": 234, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 8997, - "end": 9003, - "loc": { - "start": { - "line": 235, - "column": 4 - }, - "end": { - "line": 235, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 9004, - "end": 9010, - "loc": { - "start": { - "line": 235, - "column": 11 - }, - "end": { - "line": 235, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9010, - "end": 9011, - "loc": { - "start": { - "line": 235, - "column": 17 - }, - "end": { - "line": 235, - "column": 18 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9016, - "end": 9020, - "loc": { - "start": { - "line": 236, - "column": 3 - }, - "end": { - "line": 236, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 9021, - "end": 9027, - "loc": { - "start": { - "line": 236, - "column": 8 - }, - "end": { - "line": 236, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9027, - "end": 9028, - "loc": { - "start": { - "line": 236, - "column": 14 - }, - "end": { - "line": 236, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9034, - "end": 9040, - "loc": { - "start": { - "line": 237, - "column": 4 - }, - "end": { - "line": 237, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 9041, - "end": 9047, - "loc": { - "start": { - "line": 237, - "column": 11 - }, - "end": { - "line": 237, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9047, - "end": 9048, - "loc": { - "start": { - "line": 237, - "column": 17 - }, - "end": { - "line": 237, - "column": 18 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9053, - "end": 9057, - "loc": { - "start": { - "line": 238, - "column": 3 - }, - "end": { - "line": 238, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 9058, - "end": 9069, - "loc": { - "start": { - "line": 238, - "column": 8 - }, - "end": { - "line": 238, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9069, - "end": 9070, - "loc": { - "start": { - "line": 238, - "column": 19 - }, - "end": { - "line": 238, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9076, - "end": 9082, - "loc": { - "start": { - "line": 239, - "column": 4 - }, - "end": { - "line": 239, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 9083, - "end": 9094, - "loc": { - "start": { - "line": 239, - "column": 11 - }, - "end": { - "line": 239, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9094, - "end": 9095, - "loc": { - "start": { - "line": 239, - "column": 22 - }, - "end": { - "line": 239, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9100, - "end": 9104, - "loc": { - "start": { - "line": 240, - "column": 3 - }, - "end": { - "line": 240, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 9105, - "end": 9116, - "loc": { - "start": { - "line": 240, - "column": 8 - }, - "end": { - "line": 240, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9116, - "end": 9117, - "loc": { - "start": { - "line": 240, - "column": 19 - }, - "end": { - "line": 240, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9123, - "end": 9129, - "loc": { - "start": { - "line": 241, - "column": 4 - }, - "end": { - "line": 241, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 9130, - "end": 9141, - "loc": { - "start": { - "line": 241, - "column": 11 - }, - "end": { - "line": 241, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9141, - "end": 9142, - "loc": { - "start": { - "line": 241, - "column": 22 - }, - "end": { - "line": 241, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9147, - "end": 9151, - "loc": { - "start": { - "line": 242, - "column": 3 - }, - "end": { - "line": 242, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 9152, - "end": 9163, - "loc": { - "start": { - "line": 242, - "column": 8 - }, - "end": { - "line": 242, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9163, - "end": 9164, - "loc": { - "start": { - "line": 242, - "column": 19 - }, - "end": { - "line": 242, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9170, - "end": 9176, - "loc": { - "start": { - "line": 243, - "column": 4 - }, - "end": { - "line": 243, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 9177, - "end": 9188, - "loc": { - "start": { - "line": 243, - "column": 11 - }, - "end": { - "line": 243, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9188, - "end": 9189, - "loc": { - "start": { - "line": 243, - "column": 22 - }, - "end": { - "line": 243, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9194, - "end": 9198, - "loc": { - "start": { - "line": 244, - "column": 3 - }, - "end": { - "line": 244, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 9199, - "end": 9210, - "loc": { - "start": { - "line": 244, - "column": 8 - }, - "end": { - "line": 244, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9210, - "end": 9211, - "loc": { - "start": { - "line": 244, - "column": 19 - }, - "end": { - "line": 244, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9217, - "end": 9223, - "loc": { - "start": { - "line": 245, - "column": 4 - }, - "end": { - "line": 245, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 9224, - "end": 9235, - "loc": { - "start": { - "line": 245, - "column": 11 - }, - "end": { - "line": 245, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9235, - "end": 9236, - "loc": { - "start": { - "line": 245, - "column": 22 - }, - "end": { - "line": 245, - "column": 23 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 9241, - "end": 9248, - "loc": { - "start": { - "line": 246, - "column": 3 - }, - "end": { - "line": 246, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9248, - "end": 9249, - "loc": { - "start": { - "line": 246, - "column": 10 - }, - "end": { - "line": 246, - "column": 11 - } - } - }, - { - "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": 9255, - "end": 9259, - "loc": { - "start": { - "line": 247, - "column": 4 - }, - "end": { - "line": 247, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9259, - "end": 9260, - "loc": { - "start": { - "line": 247, - "column": 8 - }, - "end": { - "line": 247, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 9260, - "end": 9266, - "loc": { - "start": { - "line": 247, - "column": 9 - }, - "end": { - "line": 247, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9266, - "end": 9267, - "loc": { - "start": { - "line": 247, - "column": 15 - }, - "end": { - "line": 247, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prefix", - "start": 9267, - "end": 9273, - "loc": { - "start": { - "line": 247, - "column": 16 - }, - "end": { - "line": 247, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9273, - "end": 9274, - "loc": { - "start": { - "line": 247, - "column": 22 - }, - "end": { - "line": 247, - "column": 23 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Utils-Module", - "start": 9274, - "end": 9288, - "loc": { - "start": { - "line": 247, - "column": 23 - }, - "end": { - "line": 247, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9288, - "end": 9289, - "loc": { - "start": { - "line": 247, - "column": 37 - }, - "end": { - "line": 247, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9289, - "end": 9290, - "loc": { - "start": { - "line": 247, - "column": 38 - }, - "end": { - "line": 247, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 9290, - "end": 9295, - "loc": { - "start": { - "line": 247, - "column": 39 - }, - "end": { - "line": 247, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9295, - "end": 9296, - "loc": { - "start": { - "line": 247, - "column": 44 - }, - "end": { - "line": 247, - "column": 45 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9296, - "end": 9297, - "loc": { - "start": { - "line": 247, - "column": 45 - }, - "end": { - "line": 247, - "column": 46 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "The direction ", - "start": 9297, - "end": 9311, - "loc": { - "start": { - "line": 247, - "column": 46 - }, - "end": { - "line": 247, - "column": 60 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9311, - "end": 9313, - "loc": { - "start": { - "line": 247, - "column": 60 - }, - "end": { - "line": 247, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDirection", - "start": 9313, - "end": 9323, - "loc": { - "start": { - "line": 247, - "column": 62 - }, - "end": { - "line": 247, - "column": 72 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9323, - "end": 9324, - "loc": { - "start": { - "line": 247, - "column": 72 - }, - "end": { - "line": 247, - "column": 73 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " is not supported.", - "start": 9324, - "end": 9342, - "loc": { - "start": { - "line": 247, - "column": 73 - }, - "end": { - "line": 247, - "column": 91 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9342, - "end": 9343, - "loc": { - "start": { - "line": 247, - "column": 91 - }, - "end": { - "line": 247, - "column": 92 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9343, - "end": 9344, - "loc": { - "start": { - "line": 247, - "column": 92 - }, - "end": { - "line": 247, - "column": 93 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9344, - "end": 9345, - "loc": { - "start": { - "line": 247, - "column": 93 - }, - "end": { - "line": 247, - "column": 94 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9349, - "end": 9350, - "loc": { - "start": { - "line": 248, - "column": 2 - }, - "end": { - "line": 248, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9353, - "end": 9354, - "loc": { - "start": { - "line": 249, - "column": 1 - }, - "end": { - "line": 249, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDirection - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t ", - "start": 9357, - "end": 9668, - "loc": { - "start": { - "line": 250, - "column": 1 - }, - "end": { - "line": 256, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getAngleFromDirection", - "start": 9671, - "end": 9692, - "loc": { - "start": { - "line": 257, - "column": 1 - }, - "end": { - "line": 257, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9692, - "end": 9693, - "loc": { - "start": { - "line": 257, - "column": 22 - }, - "end": { - "line": 257, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDirection", - "start": 9693, - "end": 9703, - "loc": { - "start": { - "line": 257, - "column": 23 - }, - "end": { - "line": 257, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9703, - "end": 9704, - "loc": { - "start": { - "line": 257, - "column": 33 - }, - "end": { - "line": 257, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9705, - "end": 9706, - "loc": { - "start": { - "line": 257, - "column": 35 - }, - "end": { - "line": 257, - "column": 36 - } - } - }, - { - "type": { - "label": "switch", - "keyword": "switch", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "switch", - "start": 9710, - "end": 9716, - "loc": { - "start": { - "line": 258, - "column": 2 - }, - "end": { - "line": 258, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9717, - "end": 9718, - "loc": { - "start": { - "line": 258, - "column": 9 - }, - "end": { - "line": 258, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDirection", - "start": 9718, - "end": 9728, - "loc": { - "start": { - "line": 258, - "column": 10 - }, - "end": { - "line": 258, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9728, - "end": 9729, - "loc": { - "start": { - "line": 258, - "column": 20 - }, - "end": { - "line": 258, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9730, - "end": 9731, - "loc": { - "start": { - "line": 258, - "column": 22 - }, - "end": { - "line": 258, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9736, - "end": 9740, - "loc": { - "start": { - "line": 259, - "column": 3 - }, - "end": { - "line": 259, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 9741, - "end": 9748, - "loc": { - "start": { - "line": 259, - "column": 8 - }, - "end": { - "line": 259, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9748, - "end": 9749, - "loc": { - "start": { - "line": 259, - "column": 15 - }, - "end": { - "line": 259, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9755, - "end": 9761, - "loc": { - "start": { - "line": 260, - "column": 4 - }, - "end": { - "line": 260, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9762, - "end": 9766, - "loc": { - "start": { - "line": 260, - "column": 11 - }, - "end": { - "line": 260, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9766, - "end": 9767, - "loc": { - "start": { - "line": 260, - "column": 15 - }, - "end": { - "line": 260, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 9767, - "end": 9769, - "loc": { - "start": { - "line": 260, - "column": 16 - }, - "end": { - "line": 260, - "column": 18 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 9770, - "end": 9771, - "loc": { - "start": { - "line": 260, - "column": 19 - }, - "end": { - "line": 260, - "column": 20 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 9772, - "end": 9773, - "loc": { - "start": { - "line": 260, - "column": 21 - }, - "end": { - "line": 260, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9773, - "end": 9774, - "loc": { - "start": { - "line": 260, - "column": 22 - }, - "end": { - "line": 260, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9779, - "end": 9783, - "loc": { - "start": { - "line": 261, - "column": 3 - }, - "end": { - "line": 261, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 9784, - "end": 9791, - "loc": { - "start": { - "line": 261, - "column": 8 - }, - "end": { - "line": 261, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9791, - "end": 9792, - "loc": { - "start": { - "line": 261, - "column": 15 - }, - "end": { - "line": 261, - "column": 16 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9798, - "end": 9804, - "loc": { - "start": { - "line": 262, - "column": 4 - }, - "end": { - "line": 262, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9805, - "end": 9806, - "loc": { - "start": { - "line": 262, - "column": 11 - }, - "end": { - "line": 262, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9806, - "end": 9810, - "loc": { - "start": { - "line": 262, - "column": 12 - }, - "end": { - "line": 262, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9810, - "end": 9811, - "loc": { - "start": { - "line": 262, - "column": 16 - }, - "end": { - "line": 262, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 9811, - "end": 9813, - "loc": { - "start": { - "line": 262, - "column": 17 - }, - "end": { - "line": 262, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 9814, - "end": 9815, - "loc": { - "start": { - "line": 262, - "column": 20 - }, - "end": { - "line": 262, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 9816, - "end": 9817, - "loc": { - "start": { - "line": 262, - "column": 22 - }, - "end": { - "line": 262, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9817, - "end": 9818, - "loc": { - "start": { - "line": 262, - "column": 23 - }, - "end": { - "line": 262, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 9819, - "end": 9820, - "loc": { - "start": { - "line": 262, - "column": 25 - }, - "end": { - "line": 262, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 9821, - "end": 9822, - "loc": { - "start": { - "line": 262, - "column": 27 - }, - "end": { - "line": 262, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9822, - "end": 9823, - "loc": { - "start": { - "line": 262, - "column": 28 - }, - "end": { - "line": 262, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " Corrected to 270 degrees in radians", - "start": 9824, - "end": 9862, - "loc": { - "start": { - "line": 262, - "column": 30 - }, - "end": { - "line": 262, - "column": 68 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9867, - "end": 9871, - "loc": { - "start": { - "line": 263, - "column": 3 - }, - "end": { - "line": 263, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 9872, - "end": 9878, - "loc": { - "start": { - "line": 263, - "column": 8 - }, - "end": { - "line": 263, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9878, - "end": 9879, - "loc": { - "start": { - "line": 263, - "column": 14 - }, - "end": { - "line": 263, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9885, - "end": 9891, - "loc": { - "start": { - "line": 264, - "column": 4 - }, - "end": { - "line": 264, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 9892, - "end": 9893, - "loc": { - "start": { - "line": 264, - "column": 11 - }, - "end": { - "line": 264, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9893, - "end": 9894, - "loc": { - "start": { - "line": 264, - "column": 12 - }, - "end": { - "line": 264, - "column": 13 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9899, - "end": 9903, - "loc": { - "start": { - "line": 265, - "column": 3 - }, - "end": { - "line": 265, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 9904, - "end": 9910, - "loc": { - "start": { - "line": 265, - "column": 8 - }, - "end": { - "line": 265, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9910, - "end": 9911, - "loc": { - "start": { - "line": 265, - "column": 14 - }, - "end": { - "line": 265, - "column": 15 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9917, - "end": 9923, - "loc": { - "start": { - "line": 266, - "column": 4 - }, - "end": { - "line": 266, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9924, - "end": 9928, - "loc": { - "start": { - "line": 266, - "column": 11 - }, - "end": { - "line": 266, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9928, - "end": 9929, - "loc": { - "start": { - "line": 266, - "column": 15 - }, - "end": { - "line": 266, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 9929, - "end": 9931, - "loc": { - "start": { - "line": 266, - "column": 16 - }, - "end": { - "line": 266, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9931, - "end": 9932, - "loc": { - "start": { - "line": 266, - "column": 18 - }, - "end": { - "line": 266, - "column": 19 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9937, - "end": 9941, - "loc": { - "start": { - "line": 267, - "column": 3 - }, - "end": { - "line": 267, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 9942, - "end": 9953, - "loc": { - "start": { - "line": 267, - "column": 8 - }, - "end": { - "line": 267, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9953, - "end": 9954, - "loc": { - "start": { - "line": 267, - "column": 19 - }, - "end": { - "line": 267, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 9960, - "end": 9966, - "loc": { - "start": { - "line": 268, - "column": 4 - }, - "end": { - "line": 268, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9967, - "end": 9968, - "loc": { - "start": { - "line": 268, - "column": 11 - }, - "end": { - "line": 268, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 9968, - "end": 9972, - "loc": { - "start": { - "line": 268, - "column": 12 - }, - "end": { - "line": 268, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9972, - "end": 9973, - "loc": { - "start": { - "line": 268, - "column": 16 - }, - "end": { - "line": 268, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 9973, - "end": 9975, - "loc": { - "start": { - "line": 268, - "column": 17 - }, - "end": { - "line": 268, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 9976, - "end": 9977, - "loc": { - "start": { - "line": 268, - "column": 20 - }, - "end": { - "line": 268, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 9978, - "end": 9979, - "loc": { - "start": { - "line": 268, - "column": 22 - }, - "end": { - "line": 268, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 9979, - "end": 9980, - "loc": { - "start": { - "line": 268, - "column": 23 - }, - "end": { - "line": 268, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 9981, - "end": 9982, - "loc": { - "start": { - "line": 268, - "column": 25 - }, - "end": { - "line": 268, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 9983, - "end": 9984, - "loc": { - "start": { - "line": 268, - "column": 27 - }, - "end": { - "line": 268, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9984, - "end": 9985, - "loc": { - "start": { - "line": 268, - "column": 28 - }, - "end": { - "line": 268, - "column": 29 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 9990, - "end": 9994, - "loc": { - "start": { - "line": 269, - "column": 3 - }, - "end": { - "line": 269, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 9995, - "end": 10006, - "loc": { - "start": { - "line": 269, - "column": 8 - }, - "end": { - "line": 269, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10006, - "end": 10007, - "loc": { - "start": { - "line": 269, - "column": 19 - }, - "end": { - "line": 269, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 10013, - "end": 10019, - "loc": { - "start": { - "line": 270, - "column": 4 - }, - "end": { - "line": 270, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10020, - "end": 10024, - "loc": { - "start": { - "line": 270, - "column": 11 - }, - "end": { - "line": 270, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10024, - "end": 10025, - "loc": { - "start": { - "line": 270, - "column": 15 - }, - "end": { - "line": 270, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 10025, - "end": 10027, - "loc": { - "start": { - "line": 270, - "column": 16 - }, - "end": { - "line": 270, - "column": 18 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10028, - "end": 10029, - "loc": { - "start": { - "line": 270, - "column": 19 - }, - "end": { - "line": 270, - "column": 20 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 10030, - "end": 10031, - "loc": { - "start": { - "line": 270, - "column": 21 - }, - "end": { - "line": 270, - "column": 22 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10031, - "end": 10032, - "loc": { - "start": { - "line": 270, - "column": 22 - }, - "end": { - "line": 270, - "column": 23 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 10037, - "end": 10041, - "loc": { - "start": { - "line": 271, - "column": 3 - }, - "end": { - "line": 271, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 10042, - "end": 10053, - "loc": { - "start": { - "line": 271, - "column": 8 - }, - "end": { - "line": 271, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10053, - "end": 10054, - "loc": { - "start": { - "line": 271, - "column": 19 - }, - "end": { - "line": 271, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 10060, - "end": 10066, - "loc": { - "start": { - "line": 272, - "column": 4 - }, - "end": { - "line": 272, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10067, - "end": 10068, - "loc": { - "start": { - "line": 272, - "column": 11 - }, - "end": { - "line": 272, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10068, - "end": 10072, - "loc": { - "start": { - "line": 272, - "column": 12 - }, - "end": { - "line": 272, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10072, - "end": 10073, - "loc": { - "start": { - "line": 272, - "column": 16 - }, - "end": { - "line": 272, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 10073, - "end": 10075, - "loc": { - "start": { - "line": 272, - "column": 17 - }, - "end": { - "line": 272, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 10076, - "end": 10077, - "loc": { - "start": { - "line": 272, - "column": 20 - }, - "end": { - "line": 272, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 5, - "start": 10078, - "end": 10079, - "loc": { - "start": { - "line": 272, - "column": 22 - }, - "end": { - "line": 272, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10079, - "end": 10080, - "loc": { - "start": { - "line": 272, - "column": 23 - }, - "end": { - "line": 272, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10081, - "end": 10082, - "loc": { - "start": { - "line": 272, - "column": 25 - }, - "end": { - "line": 272, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 10083, - "end": 10084, - "loc": { - "start": { - "line": 272, - "column": 27 - }, - "end": { - "line": 272, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10084, - "end": 10085, - "loc": { - "start": { - "line": 272, - "column": 28 - }, - "end": { - "line": 272, - "column": 29 - } - } - }, - { - "type": { - "label": "case", - "keyword": "case", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "case", - "start": 10090, - "end": 10094, - "loc": { - "start": { - "line": 273, - "column": 3 - }, - "end": { - "line": 273, - "column": 7 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 10095, - "end": 10106, - "loc": { - "start": { - "line": 273, - "column": 8 - }, - "end": { - "line": 273, - "column": 19 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10106, - "end": 10107, - "loc": { - "start": { - "line": 273, - "column": 19 - }, - "end": { - "line": 273, - "column": 20 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 10113, - "end": 10119, - "loc": { - "start": { - "line": 274, - "column": 4 - }, - "end": { - "line": 274, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10120, - "end": 10121, - "loc": { - "start": { - "line": 274, - "column": 11 - }, - "end": { - "line": 274, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 10121, - "end": 10125, - "loc": { - "start": { - "line": 274, - "column": 12 - }, - "end": { - "line": 274, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10125, - "end": 10126, - "loc": { - "start": { - "line": 274, - "column": 16 - }, - "end": { - "line": 274, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 10126, - "end": 10128, - "loc": { - "start": { - "line": 274, - "column": 17 - }, - "end": { - "line": 274, - "column": 19 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 10129, - "end": 10130, - "loc": { - "start": { - "line": 274, - "column": 20 - }, - "end": { - "line": 274, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 7, - "start": 10131, - "end": 10132, - "loc": { - "start": { - "line": 274, - "column": 22 - }, - "end": { - "line": 274, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10132, - "end": 10133, - "loc": { - "start": { - "line": 274, - "column": 23 - }, - "end": { - "line": 274, - "column": 24 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 10134, - "end": 10135, - "loc": { - "start": { - "line": 274, - "column": 25 - }, - "end": { - "line": 274, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 4, - "start": 10136, - "end": 10137, - "loc": { - "start": { - "line": 274, - "column": 27 - }, - "end": { - "line": 274, - "column": 28 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10137, - "end": 10138, - "loc": { - "start": { - "line": 274, - "column": 28 - }, - "end": { - "line": 274, - "column": 29 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 10143, - "end": 10150, - "loc": { - "start": { - "line": 275, - "column": 3 - }, - "end": { - "line": 275, - "column": 10 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10150, - "end": 10151, - "loc": { - "start": { - "line": 275, - "column": 10 - }, - "end": { - "line": 275, - "column": 11 - } - } - }, - { - "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": 10157, - "end": 10161, - "loc": { - "start": { - "line": 276, - "column": 4 - }, - "end": { - "line": 276, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10161, - "end": 10162, - "loc": { - "start": { - "line": 276, - "column": 8 - }, - "end": { - "line": 276, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "logger", - "start": 10162, - "end": 10168, - "loc": { - "start": { - "line": 276, - "column": 9 - }, - "end": { - "line": 276, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10168, - "end": 10169, - "loc": { - "start": { - "line": 276, - "column": 15 - }, - "end": { - "line": 276, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prefix", - "start": 10169, - "end": 10175, - "loc": { - "start": { - "line": 276, - "column": 16 - }, - "end": { - "line": 276, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10175, - "end": 10176, - "loc": { - "start": { - "line": 276, - "column": 22 - }, - "end": { - "line": 276, - "column": 23 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Utils-Module", - "start": 10176, - "end": 10190, - "loc": { - "start": { - "line": 276, - "column": 23 - }, - "end": { - "line": 276, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10190, - "end": 10191, - "loc": { - "start": { - "line": 276, - "column": 37 - }, - "end": { - "line": 276, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10191, - "end": 10192, - "loc": { - "start": { - "line": 276, - "column": 38 - }, - "end": { - "line": 276, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 10192, - "end": 10197, - "loc": { - "start": { - "line": 276, - "column": 39 - }, - "end": { - "line": 276, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10197, - "end": 10198, - "loc": { - "start": { - "line": 276, - "column": 44 - }, - "end": { - "line": 276, - "column": 45 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10198, - "end": 10199, - "loc": { - "start": { - "line": 276, - "column": 45 - }, - "end": { - "line": 276, - "column": 46 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "The direction ", - "start": 10199, - "end": 10213, - "loc": { - "start": { - "line": 276, - "column": 46 - }, - "end": { - "line": 276, - "column": 60 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10213, - "end": 10215, - "loc": { - "start": { - "line": 276, - "column": 60 - }, - "end": { - "line": 276, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDirection", - "start": 10215, - "end": 10225, - "loc": { - "start": { - "line": 276, - "column": 62 - }, - "end": { - "line": 276, - "column": 72 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10225, - "end": 10226, - "loc": { - "start": { - "line": 276, - "column": 72 - }, - "end": { - "line": 276, - "column": 73 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " is not supported.", - "start": 10226, - "end": 10244, - "loc": { - "start": { - "line": 276, - "column": 73 - }, - "end": { - "line": 276, - "column": 91 - } - } - }, - { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10244, - "end": 10245, - "loc": { - "start": { - "line": 276, - "column": 91 - }, - "end": { - "line": 276, - "column": 92 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10245, - "end": 10246, - "loc": { - "start": { - "line": 276, - "column": 92 - }, - "end": { - "line": 276, - "column": 93 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10246, - "end": 10247, - "loc": { - "start": { - "line": 276, - "column": 93 - }, - "end": { - "line": 276, - "column": 94 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10251, - "end": 10252, - "loc": { - "start": { - "line": 277, - "column": 2 - }, - "end": { - "line": 277, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10255, - "end": 10256, - "loc": { - "start": { - "line": 278, - "column": 1 - }, - "end": { - "line": 278, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Centers a rectangle (defined by its dimensions) within a parent rectangle.\r\n\t *\r\n\t * @param {number} pChildWidth - The width of the child rectangle.\r\n\t * @param {number} pChildHeight - The height of the child rectangle.\r\n\t * @param {number} pParentWidth - The width of the parent rectangle.\r\n\t * @param {number} pParentHeight - The height of the parent rectangle.\r\n\t * @param {number} pParentX - The x-coordinate of the parent rectangle.\r\n\t * @param {number} pParentY - The y-coordinate of the parent rectangle.\r\n\t * @returns {Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.\r\n\t *\r\n\t * @example\r\n\t * const childWidth = 50;\r\n\t * const childHeight = 30;\r\n\t * const parentWidth = 100;\r\n\t * const parentHeight = 80;\r\n\t * const parentX = 20;\r\n\t * const parentY = 10;\r\n\t * const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);\r\n\t * // Returns {x: 45, y: 35}\r\n\t ", - "start": 10259, - "end": 11251, - "loc": { - "start": { - "line": 279, - "column": 1 - }, - "end": { - "line": 299, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "centerRectangleOnParent", - "start": 11254, - "end": 11277, - "loc": { - "start": { - "line": 300, - "column": 1 - }, - "end": { - "line": 300, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11277, - "end": 11278, - "loc": { - "start": { - "line": 300, - "column": 24 - }, - "end": { - "line": 300, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChildWidth", - "start": 11278, - "end": 11289, - "loc": { - "start": { - "line": 300, - "column": 25 - }, - "end": { - "line": 300, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11289, - "end": 11290, - "loc": { - "start": { - "line": 300, - "column": 36 - }, - "end": { - "line": 300, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChildHeight", - "start": 11291, - "end": 11303, - "loc": { - "start": { - "line": 300, - "column": 38 - }, - "end": { - "line": 300, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11303, - "end": 11304, - "loc": { - "start": { - "line": 300, - "column": 50 - }, - "end": { - "line": 300, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParentWidth", - "start": 11305, - "end": 11317, - "loc": { - "start": { - "line": 300, - "column": 52 - }, - "end": { - "line": 300, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11317, - "end": 11318, - "loc": { - "start": { - "line": 300, - "column": 64 - }, - "end": { - "line": 300, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParentHeight", - "start": 11319, - "end": 11332, - "loc": { - "start": { - "line": 300, - "column": 66 - }, - "end": { - "line": 300, - "column": 79 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11332, - "end": 11333, - "loc": { - "start": { - "line": 300, - "column": 79 - }, - "end": { - "line": 300, - "column": 80 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParentX", - "start": 11334, - "end": 11342, - "loc": { - "start": { - "line": 300, - "column": 81 - }, - "end": { - "line": 300, - "column": 89 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11342, - "end": 11343, - "loc": { - "start": { - "line": 300, - "column": 89 - }, - "end": { - "line": 300, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParentY", - "start": 11344, - "end": 11352, - "loc": { - "start": { - "line": 300, - "column": 91 - }, - "end": { - "line": 300, - "column": 99 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11352, - "end": 11353, - "loc": { - "start": { - "line": 300, - "column": 99 - }, - "end": { - "line": 300, - "column": 100 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11354, - "end": 11355, - "loc": { - "start": { - "line": 300, - "column": 101 - }, - "end": { - "line": 300, - "column": 102 - } - } - }, - { - "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": 11359, - "end": 11364, - "loc": { - "start": { - "line": 301, - "column": 2 - }, - "end": { - "line": 301, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "centerX", - "start": 11365, - "end": 11372, - "loc": { - "start": { - "line": 301, - "column": 8 - }, - "end": { - "line": 301, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11373, - "end": 11374, - "loc": { - "start": { - "line": 301, - "column": 16 - }, - "end": { - "line": 301, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParentX", - "start": 11375, - "end": 11383, - "loc": { - "start": { - "line": 301, - "column": 18 - }, - "end": { - "line": 301, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 11384, - "end": 11385, - "loc": { - "start": { - "line": 301, - "column": 27 - }, - "end": { - "line": 301, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11386, - "end": 11387, - "loc": { - "start": { - "line": 301, - "column": 29 - }, - "end": { - "line": 301, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11387, - "end": 11388, - "loc": { - "start": { - "line": 301, - "column": 30 - }, - "end": { - "line": 301, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParentWidth", - "start": 11388, - "end": 11400, - "loc": { - "start": { - "line": 301, - "column": 31 - }, - "end": { - "line": 301, - "column": 43 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 11401, - "end": 11402, - "loc": { - "start": { - "line": 301, - "column": 44 - }, - "end": { - "line": 301, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChildWidth", - "start": 11403, - "end": 11414, - "loc": { - "start": { - "line": 301, - "column": 46 - }, - "end": { - "line": 301, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11414, - "end": 11415, - "loc": { - "start": { - "line": 301, - "column": 57 - }, - "end": { - "line": 301, - "column": 58 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 11416, - "end": 11417, - "loc": { - "start": { - "line": 301, - "column": 59 - }, - "end": { - "line": 301, - "column": 60 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 11418, - "end": 11419, - "loc": { - "start": { - "line": 301, - "column": 61 - }, - "end": { - "line": 301, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11419, - "end": 11420, - "loc": { - "start": { - "line": 301, - "column": 62 - }, - "end": { - "line": 301, - "column": 63 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11420, - "end": 11421, - "loc": { - "start": { - "line": 301, - "column": 63 - }, - "end": { - "line": 301, - "column": 64 - } - } - }, - { - "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": 11425, - "end": 11430, - "loc": { - "start": { - "line": 302, - "column": 2 - }, - "end": { - "line": 302, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "centerY", - "start": 11431, - "end": 11438, - "loc": { - "start": { - "line": 302, - "column": 8 - }, - "end": { - "line": 302, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 11439, - "end": 11440, - "loc": { - "start": { - "line": 302, - "column": 16 - }, - "end": { - "line": 302, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParentY", - "start": 11441, - "end": 11449, - "loc": { - "start": { - "line": 302, - "column": 18 - }, - "end": { - "line": 302, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 11450, - "end": 11451, - "loc": { - "start": { - "line": 302, - "column": 27 - }, - "end": { - "line": 302, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11452, - "end": 11453, - "loc": { - "start": { - "line": 302, - "column": 29 - }, - "end": { - "line": 302, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11453, - "end": 11454, - "loc": { - "start": { - "line": 302, - "column": 30 - }, - "end": { - "line": 302, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pParentHeight", - "start": 11454, - "end": 11467, - "loc": { - "start": { - "line": 302, - "column": 31 - }, - "end": { - "line": 302, - "column": 44 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 11468, - "end": 11469, - "loc": { - "start": { - "line": 302, - "column": 45 - }, - "end": { - "line": 302, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChildHeight", - "start": 11470, - "end": 11482, - "loc": { - "start": { - "line": 302, - "column": 47 - }, - "end": { - "line": 302, - "column": 59 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11482, - "end": 11483, - "loc": { - "start": { - "line": 302, - "column": 59 - }, - "end": { - "line": 302, - "column": 60 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 11484, - "end": 11485, - "loc": { - "start": { - "line": 302, - "column": 61 - }, - "end": { - "line": 302, - "column": 62 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 11486, - "end": 11487, - "loc": { - "start": { - "line": 302, - "column": 63 - }, - "end": { - "line": 302, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11487, - "end": 11488, - "loc": { - "start": { - "line": 302, - "column": 64 - }, - "end": { - "line": 302, - "column": 65 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11488, - "end": 11489, - "loc": { - "start": { - "line": 302, - "column": 65 - }, - "end": { - "line": 302, - "column": 66 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 11493, - "end": 11499, - "loc": { - "start": { - "line": 303, - "column": 2 - }, - "end": { - "line": 303, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11500, - "end": 11501, - "loc": { - "start": { - "line": 303, - "column": 9 - }, - "end": { - "line": 303, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 11502, - "end": 11503, - "loc": { - "start": { - "line": 303, - "column": 11 - }, - "end": { - "line": 303, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11503, - "end": 11504, - "loc": { - "start": { - "line": 303, - "column": 12 - }, - "end": { - "line": 303, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "centerX", - "start": 11505, - "end": 11512, - "loc": { - "start": { - "line": 303, - "column": 14 - }, - "end": { - "line": 303, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11512, - "end": 11513, - "loc": { - "start": { - "line": 303, - "column": 21 - }, - "end": { - "line": 303, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 11514, - "end": 11515, - "loc": { - "start": { - "line": 303, - "column": 23 - }, - "end": { - "line": 303, - "column": 24 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11515, - "end": 11516, - "loc": { - "start": { - "line": 303, - "column": 24 - }, - "end": { - "line": 303, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "centerY", - "start": 11517, - "end": 11524, - "loc": { - "start": { - "line": 303, - "column": 26 - }, - "end": { - "line": 303, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11525, - "end": 11526, - "loc": { - "start": { - "line": 303, - "column": 34 - }, - "end": { - "line": 303, - "column": 35 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11526, - "end": 11527, - "loc": { - "start": { - "line": 303, - "column": 35 - }, - "end": { - "line": 303, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11530, - "end": 11531, - "loc": { - "start": { - "line": 304, - "column": 1 - }, - "end": { - "line": 304, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a random angle in radians.\r\n\t * @returns {number} A random angle in radians.\r\n\t ", - "start": 11534, - "end": 11635, - "loc": { - "start": { - "line": 305, - "column": 1 - }, - "end": { - "line": 308, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomAngle", - "start": 11638, - "end": 11652, - "loc": { - "start": { - "line": 309, - "column": 1 - }, - "end": { - "line": 309, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11652, - "end": 11653, - "loc": { - "start": { - "line": 309, - "column": 15 - }, - "end": { - "line": 309, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11653, - "end": 11654, - "loc": { - "start": { - "line": 309, - "column": 16 - }, - "end": { - "line": 309, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11655, - "end": 11656, - "loc": { - "start": { - "line": 309, - "column": 18 - }, - "end": { - "line": 309, - "column": 19 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 11660, - "end": 11666, - "loc": { - "start": { - "line": 310, - "column": 2 - }, - "end": { - "line": 310, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 11667, - "end": 11671, - "loc": { - "start": { - "line": 310, - "column": 9 - }, - "end": { - "line": 310, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11671, - "end": 11672, - "loc": { - "start": { - "line": 310, - "column": 13 - }, - "end": { - "line": 310, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 11672, - "end": 11678, - "loc": { - "start": { - "line": 310, - "column": 14 - }, - "end": { - "line": 310, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11678, - "end": 11679, - "loc": { - "start": { - "line": 310, - "column": 20 - }, - "end": { - "line": 310, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11679, - "end": 11680, - "loc": { - "start": { - "line": 310, - "column": 21 - }, - "end": { - "line": 310, - "column": 22 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 11681, - "end": 11682, - "loc": { - "start": { - "line": 310, - "column": 23 - }, - "end": { - "line": 310, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11683, - "end": 11684, - "loc": { - "start": { - "line": 310, - "column": 25 - }, - "end": { - "line": 310, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 11684, - "end": 11688, - "loc": { - "start": { - "line": 310, - "column": 26 - }, - "end": { - "line": 310, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11688, - "end": 11689, - "loc": { - "start": { - "line": 310, - "column": 30 - }, - "end": { - "line": 310, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 11689, - "end": 11691, - "loc": { - "start": { - "line": 310, - "column": 31 - }, - "end": { - "line": 310, - "column": 33 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 11692, - "end": 11693, - "loc": { - "start": { - "line": 310, - "column": 34 - }, - "end": { - "line": 310, - "column": 35 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 11694, - "end": 11695, - "loc": { - "start": { - "line": 310, - "column": 36 - }, - "end": { - "line": 310, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11695, - "end": 11696, - "loc": { - "start": { - "line": 310, - "column": 37 - }, - "end": { - "line": 310, - "column": 38 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11696, - "end": 11697, - "loc": { - "start": { - "line": 310, - "column": 38 - }, - "end": { - "line": 310, - "column": 39 - } - } - }, - { - "type": "CommentLine", - "value": " Random value between 0 and 2*pi (360 degrees)", - "start": 11698, - "end": 11746, - "loc": { - "start": { - "line": 310, - "column": 40 - }, - "end": { - "line": 310, - "column": 88 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11749, - "end": 11750, - "loc": { - "start": { - "line": 311, - "column": 1 - }, - "end": { - "line": 311, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 11753, - "end": 11992, - "loc": { - "start": { - "line": 312, - "column": 1 - }, - "end": { - "line": 318, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getAngle", - "start": 11995, - "end": 12003, - "loc": { - "start": { - "line": 319, - "column": 1 - }, - "end": { - "line": 319, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12003, - "end": 12004, - "loc": { - "start": { - "line": 319, - "column": 9 - }, - "end": { - "line": 319, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 12004, - "end": 12015, - "loc": { - "start": { - "line": 319, - "column": 10 - }, - "end": { - "line": 319, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12015, - "end": 12016, - "loc": { - "start": { - "line": 319, - "column": 21 - }, - "end": { - "line": 319, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 12017, - "end": 12026, - "loc": { - "start": { - "line": 319, - "column": 23 - }, - "end": { - "line": 319, - "column": 32 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12026, - "end": 12027, - "loc": { - "start": { - "line": 319, - "column": 32 - }, - "end": { - "line": 319, - "column": 33 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12028, - "end": 12029, - "loc": { - "start": { - "line": 319, - "column": 34 - }, - "end": { - "line": 319, - "column": 35 - } - } - }, - { - "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": 12033, - "end": 12038, - "loc": { - "start": { - "line": 320, - "column": 2 - }, - "end": { - "line": 320, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 12039, - "end": 12040, - "loc": { - "start": { - "line": 320, - "column": 8 - }, - "end": { - "line": 320, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 12041, - "end": 12042, - "loc": { - "start": { - "line": 320, - "column": 10 - }, - "end": { - "line": 320, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 12043, - "end": 12054, - "loc": { - "start": { - "line": 320, - "column": 12 - }, - "end": { - "line": 320, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12054, - "end": 12055, - "loc": { - "start": { - "line": 320, - "column": 23 - }, - "end": { - "line": 320, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 12055, - "end": 12056, - "loc": { - "start": { - "line": 320, - "column": 24 - }, - "end": { - "line": 320, - "column": 25 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 12057, - "end": 12058, - "loc": { - "start": { - "line": 320, - "column": 26 - }, - "end": { - "line": 320, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 12059, - "end": 12068, - "loc": { - "start": { - "line": 320, - "column": 28 - }, - "end": { - "line": 320, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12068, - "end": 12069, - "loc": { - "start": { - "line": 320, - "column": 37 - }, - "end": { - "line": 320, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 12069, - "end": 12070, - "loc": { - "start": { - "line": 320, - "column": 38 - }, - "end": { - "line": 320, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12070, - "end": 12071, - "loc": { - "start": { - "line": 320, - "column": 39 - }, - "end": { - "line": 320, - "column": 40 - } - } - }, - { - "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": 12075, - "end": 12080, - "loc": { - "start": { - "line": 321, - "column": 2 - }, - "end": { - "line": 321, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 12081, - "end": 12082, - "loc": { - "start": { - "line": 321, - "column": 8 - }, - "end": { - "line": 321, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 12083, - "end": 12084, - "loc": { - "start": { - "line": 321, - "column": 10 - }, - "end": { - "line": 321, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 12085, - "end": 12096, - "loc": { - "start": { - "line": 321, - "column": 12 - }, - "end": { - "line": 321, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12096, - "end": 12097, - "loc": { - "start": { - "line": 321, - "column": 23 - }, - "end": { - "line": 321, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 12097, - "end": 12098, - "loc": { - "start": { - "line": 321, - "column": 24 - }, - "end": { - "line": 321, - "column": 25 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 12099, - "end": 12100, - "loc": { - "start": { - "line": 321, - "column": 26 - }, - "end": { - "line": 321, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 12101, - "end": 12110, - "loc": { - "start": { - "line": 321, - "column": 28 - }, - "end": { - "line": 321, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12110, - "end": 12111, - "loc": { - "start": { - "line": 321, - "column": 37 - }, - "end": { - "line": 321, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 12111, - "end": 12112, - "loc": { - "start": { - "line": 321, - "column": 38 - }, - "end": { - "line": 321, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12112, - "end": 12113, - "loc": { - "start": { - "line": 321, - "column": 39 - }, - "end": { - "line": 321, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12117, - "end": 12123, - "loc": { - "start": { - "line": 322, - "column": 2 - }, - "end": { - "line": 322, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 12124, - "end": 12128, - "loc": { - "start": { - "line": 322, - "column": 9 - }, - "end": { - "line": 322, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12128, - "end": 12129, - "loc": { - "start": { - "line": 322, - "column": 13 - }, - "end": { - "line": 322, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "atan2", - "start": 12129, - "end": 12134, - "loc": { - "start": { - "line": 322, - "column": 14 - }, - "end": { - "line": 322, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12134, - "end": 12135, - "loc": { - "start": { - "line": 322, - "column": 19 - }, - "end": { - "line": 322, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 12135, - "end": 12136, - "loc": { - "start": { - "line": 322, - "column": 20 - }, - "end": { - "line": 322, - "column": 21 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12136, - "end": 12137, - "loc": { - "start": { - "line": 322, - "column": 21 - }, - "end": { - "line": 322, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 12138, - "end": 12139, - "loc": { - "start": { - "line": 322, - "column": 23 - }, - "end": { - "line": 322, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12139, - "end": 12140, - "loc": { - "start": { - "line": 322, - "column": 24 - }, - "end": { - "line": 322, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12140, - "end": 12141, - "loc": { - "start": { - "line": 322, - "column": 25 - }, - "end": { - "line": 322, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12144, - "end": 12145, - "loc": { - "start": { - "line": 323, - "column": 1 - }, - "end": { - "line": 323, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t ", - "start": 12148, - "end": 12461, - "loc": { - "start": { - "line": 324, - "column": 1 - }, - "end": { - "line": 330, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getAngle2", - "start": 12464, - "end": 12473, - "loc": { - "start": { - "line": 331, - "column": 1 - }, - "end": { - "line": 331, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12473, - "end": 12474, - "loc": { - "start": { - "line": 331, - "column": 10 - }, - "end": { - "line": 331, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 12474, - "end": 12485, - "loc": { - "start": { - "line": 331, - "column": 11 - }, - "end": { - "line": 331, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12485, - "end": 12486, - "loc": { - "start": { - "line": 331, - "column": 22 - }, - "end": { - "line": 331, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 12487, - "end": 12496, - "loc": { - "start": { - "line": 331, - "column": 24 - }, - "end": { - "line": 331, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12496, - "end": 12497, - "loc": { - "start": { - "line": 331, - "column": 33 - }, - "end": { - "line": 331, - "column": 34 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12498, - "end": 12499, - "loc": { - "start": { - "line": 331, - "column": 35 - }, - "end": { - "line": 331, - "column": 36 - } - } - }, - { - "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": 12503, - "end": 12508, - "loc": { - "start": { - "line": 332, - "column": 2 - }, - "end": { - "line": 332, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 12509, - "end": 12510, - "loc": { - "start": { - "line": 332, - "column": 8 - }, - "end": { - "line": 332, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 12511, - "end": 12512, - "loc": { - "start": { - "line": 332, - "column": 10 - }, - "end": { - "line": 332, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 12513, - "end": 12524, - "loc": { - "start": { - "line": 332, - "column": 12 - }, - "end": { - "line": 332, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12524, - "end": 12525, - "loc": { - "start": { - "line": 332, - "column": 23 - }, - "end": { - "line": 332, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 12525, - "end": 12526, - "loc": { - "start": { - "line": 332, - "column": 24 - }, - "end": { - "line": 332, - "column": 25 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 12527, - "end": 12528, - "loc": { - "start": { - "line": 332, - "column": 26 - }, - "end": { - "line": 332, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 12529, - "end": 12538, - "loc": { - "start": { - "line": 332, - "column": 28 - }, - "end": { - "line": 332, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12538, - "end": 12539, - "loc": { - "start": { - "line": 332, - "column": 37 - }, - "end": { - "line": 332, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 12539, - "end": 12540, - "loc": { - "start": { - "line": 332, - "column": 38 - }, - "end": { - "line": 332, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12540, - "end": 12541, - "loc": { - "start": { - "line": 332, - "column": 39 - }, - "end": { - "line": 332, - "column": 40 - } - } - }, - { - "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": 12545, - "end": 12550, - "loc": { - "start": { - "line": 333, - "column": 2 - }, - "end": { - "line": 333, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 12551, - "end": 12552, - "loc": { - "start": { - "line": 333, - "column": 8 - }, - "end": { - "line": 333, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 12553, - "end": 12554, - "loc": { - "start": { - "line": 333, - "column": 10 - }, - "end": { - "line": 333, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 12555, - "end": 12566, - "loc": { - "start": { - "line": 333, - "column": 12 - }, - "end": { - "line": 333, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12566, - "end": 12567, - "loc": { - "start": { - "line": 333, - "column": 23 - }, - "end": { - "line": 333, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 12567, - "end": 12568, - "loc": { - "start": { - "line": 333, - "column": 24 - }, - "end": { - "line": 333, - "column": 25 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 12569, - "end": 12570, - "loc": { - "start": { - "line": 333, - "column": 26 - }, - "end": { - "line": 333, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 12571, - "end": 12580, - "loc": { - "start": { - "line": 333, - "column": 28 - }, - "end": { - "line": 333, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12580, - "end": 12581, - "loc": { - "start": { - "line": 333, - "column": 37 - }, - "end": { - "line": 333, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 12581, - "end": 12582, - "loc": { - "start": { - "line": 333, - "column": 38 - }, - "end": { - "line": 333, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12582, - "end": 12583, - "loc": { - "start": { - "line": 333, - "column": 39 - }, - "end": { - "line": 333, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12587, - "end": 12593, - "loc": { - "start": { - "line": 334, - "column": 2 - }, - "end": { - "line": 334, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12594, - "end": 12595, - "loc": { - "start": { - "line": 334, - "column": 9 - }, - "end": { - "line": 334, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 12595, - "end": 12599, - "loc": { - "start": { - "line": 334, - "column": 10 - }, - "end": { - "line": 334, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12599, - "end": 12600, - "loc": { - "start": { - "line": 334, - "column": 14 - }, - "end": { - "line": 334, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "atan2", - "start": 12600, - "end": 12605, - "loc": { - "start": { - "line": 334, - "column": 15 - }, - "end": { - "line": 334, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12605, - "end": 12606, - "loc": { - "start": { - "line": 334, - "column": 20 - }, - "end": { - "line": 334, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 12606, - "end": 12607, - "loc": { - "start": { - "line": 334, - "column": 21 - }, - "end": { - "line": 334, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12607, - "end": 12608, - "loc": { - "start": { - "line": 334, - "column": 22 - }, - "end": { - "line": 334, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 12609, - "end": 12610, - "loc": { - "start": { - "line": 334, - "column": 24 - }, - "end": { - "line": 334, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12610, - "end": 12611, - "loc": { - "start": { - "line": 334, - "column": 25 - }, - "end": { - "line": 334, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 12612, - "end": 12613, - "loc": { - "start": { - "line": 334, - "column": 27 - }, - "end": { - "line": 334, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 12614, - "end": 12618, - "loc": { - "start": { - "line": 334, - "column": 29 - }, - "end": { - "line": 334, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12618, - "end": 12619, - "loc": { - "start": { - "line": 334, - "column": 33 - }, - "end": { - "line": 334, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 12619, - "end": 12621, - "loc": { - "start": { - "line": 334, - "column": 34 - }, - "end": { - "line": 334, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12621, - "end": 12622, - "loc": { - "start": { - "line": 334, - "column": 36 - }, - "end": { - "line": 334, - "column": 37 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 12623, - "end": 12624, - "loc": { - "start": { - "line": 334, - "column": 38 - }, - "end": { - "line": 334, - "column": 39 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 12625, - "end": 12626, - "loc": { - "start": { - "line": 334, - "column": 40 - }, - "end": { - "line": 334, - "column": 41 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 12626, - "end": 12627, - "loc": { - "start": { - "line": 334, - "column": 41 - }, - "end": { - "line": 334, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12627, - "end": 12628, - "loc": { - "start": { - "line": 334, - "column": 42 - }, - "end": { - "line": 334, - "column": 43 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12631, - "end": 12632, - "loc": { - "start": { - "line": 335, - "column": 1 - }, - "end": { - "line": 335, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees\r\n\t * @param {number} pAngle - The angle to convert.\r\n\t * @returns The converted angle\r\n\t ", - "start": 12635, - "end": 12816, - "loc": { - "start": { - "line": 336, - "column": 1 - }, - "end": { - "line": 340, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "convertRaWAngleToVyloCoords", - "start": 12819, - "end": 12846, - "loc": { - "start": { - "line": 341, - "column": 1 - }, - "end": { - "line": 341, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12846, - "end": 12847, - "loc": { - "start": { - "line": 341, - "column": 28 - }, - "end": { - "line": 341, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAngle", - "start": 12847, - "end": 12853, - "loc": { - "start": { - "line": 341, - "column": 29 - }, - "end": { - "line": 341, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12853, - "end": 12854, - "loc": { - "start": { - "line": 341, - "column": 35 - }, - "end": { - "line": 341, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12855, - "end": 12856, - "loc": { - "start": { - "line": 341, - "column": 37 - }, - "end": { - "line": 341, - "column": 38 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 12860, - "end": 12866, - "loc": { - "start": { - "line": 342, - "column": 2 - }, - "end": { - "line": 342, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12867, - "end": 12868, - "loc": { - "start": { - "line": 342, - "column": 9 - }, - "end": { - "line": 342, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAngle", - "start": 12868, - "end": 12874, - "loc": { - "start": { - "line": 342, - "column": 10 - }, - "end": { - "line": 342, - "column": 16 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 12875, - "end": 12876, - "loc": { - "start": { - "line": 342, - "column": 17 - }, - "end": { - "line": 342, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 12877, - "end": 12881, - "loc": { - "start": { - "line": 342, - "column": 19 - }, - "end": { - "line": 342, - "column": 23 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12881, - "end": 12882, - "loc": { - "start": { - "line": 342, - "column": 23 - }, - "end": { - "line": 342, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 12882, - "end": 12884, - "loc": { - "start": { - "line": 342, - "column": 24 - }, - "end": { - "line": 342, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12884, - "end": 12885, - "loc": { - "start": { - "line": 342, - "column": 26 - }, - "end": { - "line": 342, - "column": 27 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 12886, - "end": 12887, - "loc": { - "start": { - "line": 342, - "column": 28 - }, - "end": { - "line": 342, - "column": 29 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 12888, - "end": 12889, - "loc": { - "start": { - "line": 342, - "column": 30 - }, - "end": { - "line": 342, - "column": 31 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 12889, - "end": 12890, - "loc": { - "start": { - "line": 342, - "column": 31 - }, - "end": { - "line": 342, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12890, - "end": 12891, - "loc": { - "start": { - "line": 342, - "column": 32 - }, - "end": { - "line": 342, - "column": 33 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 12894, - "end": 12895, - "loc": { - "start": { - "line": 343, - "column": 1 - }, - "end": { - "line": 343, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the Euclidean distance between two points in a two-dimensional space.\r\n\t *\r\n\t * @param {Object} pStartPoint - The starting point with x and y coordinates.\r\n\t * @param {number} pStartPoint.x - The x-coordinate of the starting point.\r\n\t * @param {number} pStartPoint.y - The y-coordinate of the starting point.\r\n\t * @param {Object} pEndPoint - The ending point with x and y coordinates.\r\n\t * @param {number} pEndPoint.x - The x-coordinate of the ending point.\r\n\t * @param {number} pEndPoint.y - The y-coordinate of the ending point.\r\n\t * @returns {number} The Euclidean distance between the two points.\r\n\t *\r\n\t * @example\r\n\t * const startPoint = { x: 1, y: 2 };\r\n\t * const endPoint = { x: 4, y: 6 };\r\n\t * const distance = getDistance(startPoint, endPoint); // 5\r\n\t * // Returns the Euclidean distance between the points (1, 2) and (4, 6).\r\n\t ", - "start": 12898, - "end": 13760, - "loc": { - "start": { - "line": 344, - "column": 1 - }, - "end": { - "line": 360, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDistance", - "start": 13763, - "end": 13774, - "loc": { - "start": { - "line": 361, - "column": 1 - }, - "end": { - "line": 361, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13774, - "end": 13775, - "loc": { - "start": { - "line": 361, - "column": 12 - }, - "end": { - "line": 361, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 13775, - "end": 13786, - "loc": { - "start": { - "line": 361, - "column": 13 - }, - "end": { - "line": 361, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13786, - "end": 13787, - "loc": { - "start": { - "line": 361, - "column": 24 - }, - "end": { - "line": 361, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 13788, - "end": 13797, - "loc": { - "start": { - "line": 361, - "column": 26 - }, - "end": { - "line": 361, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13797, - "end": 13798, - "loc": { - "start": { - "line": 361, - "column": 35 - }, - "end": { - "line": 361, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13799, - "end": 13800, - "loc": { - "start": { - "line": 361, - "column": 37 - }, - "end": { - "line": 361, - "column": 38 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 13804, - "end": 13809, - "loc": { - "start": { - "line": 362, - "column": 2 - }, - "end": { - "line": 362, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 13810, - "end": 13811, - "loc": { - "start": { - "line": 362, - "column": 8 - }, - "end": { - "line": 362, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13812, - "end": 13813, - "loc": { - "start": { - "line": 362, - "column": 10 - }, - "end": { - "line": 362, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13814, - "end": 13815, - "loc": { - "start": { - "line": 362, - "column": 12 - }, - "end": { - "line": 362, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 13815, - "end": 13826, - "loc": { - "start": { - "line": 362, - "column": 13 - }, - "end": { - "line": 362, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13826, - "end": 13827, - "loc": { - "start": { - "line": 362, - "column": 24 - }, - "end": { - "line": 362, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 13827, - "end": 13828, - "loc": { - "start": { - "line": 362, - "column": 25 - }, - "end": { - "line": 362, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 13829, - "end": 13830, - "loc": { - "start": { - "line": 362, - "column": 27 - }, - "end": { - "line": 362, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 13831, - "end": 13840, - "loc": { - "start": { - "line": 362, - "column": 29 - }, - "end": { - "line": 362, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13840, - "end": 13841, - "loc": { - "start": { - "line": 362, - "column": 38 - }, - "end": { - "line": 362, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 13841, - "end": 13842, - "loc": { - "start": { - "line": 362, - "column": 39 - }, - "end": { - "line": 362, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13842, - "end": 13843, - "loc": { - "start": { - "line": 362, - "column": 40 - }, - "end": { - "line": 362, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13843, - "end": 13844, - "loc": { - "start": { - "line": 362, - "column": 41 - }, - "end": { - "line": 362, - "column": 42 - } - } - }, - { - "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": 13848, - "end": 13853, - "loc": { - "start": { - "line": 363, - "column": 2 - }, - "end": { - "line": 363, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 13854, - "end": 13855, - "loc": { - "start": { - "line": 363, - "column": 8 - }, - "end": { - "line": 363, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 13856, - "end": 13857, - "loc": { - "start": { - "line": 363, - "column": 10 - }, - "end": { - "line": 363, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13858, - "end": 13859, - "loc": { - "start": { - "line": 363, - "column": 12 - }, - "end": { - "line": 363, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartPoint", - "start": 13859, - "end": 13870, - "loc": { - "start": { - "line": 363, - "column": 13 - }, - "end": { - "line": 363, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13870, - "end": 13871, - "loc": { - "start": { - "line": 363, - "column": 24 - }, - "end": { - "line": 363, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 13871, - "end": 13872, - "loc": { - "start": { - "line": 363, - "column": 25 - }, - "end": { - "line": 363, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 13873, - "end": 13874, - "loc": { - "start": { - "line": 363, - "column": 27 - }, - "end": { - "line": 363, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndPoint", - "start": 13875, - "end": 13884, - "loc": { - "start": { - "line": 363, - "column": 29 - }, - "end": { - "line": 363, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13884, - "end": 13885, - "loc": { - "start": { - "line": 363, - "column": 38 - }, - "end": { - "line": 363, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 13885, - "end": 13886, - "loc": { - "start": { - "line": 363, - "column": 39 - }, - "end": { - "line": 363, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13886, - "end": 13887, - "loc": { - "start": { - "line": 363, - "column": 40 - }, - "end": { - "line": 363, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13887, - "end": 13888, - "loc": { - "start": { - "line": 363, - "column": 41 - }, - "end": { - "line": 363, - "column": 42 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 13892, - "end": 13898, - "loc": { - "start": { - "line": 364, - "column": 2 - }, - "end": { - "line": 364, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 13899, - "end": 13903, - "loc": { - "start": { - "line": 364, - "column": 9 - }, - "end": { - "line": 364, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13903, - "end": 13904, - "loc": { - "start": { - "line": 364, - "column": 13 - }, - "end": { - "line": 364, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sqrt", - "start": 13904, - "end": 13908, - "loc": { - "start": { - "line": 364, - "column": 14 - }, - "end": { - "line": 364, - "column": 18 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13908, - "end": 13909, - "loc": { - "start": { - "line": 364, - "column": 18 - }, - "end": { - "line": 364, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13909, - "end": 13910, - "loc": { - "start": { - "line": 364, - "column": 19 - }, - "end": { - "line": 364, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 13910, - "end": 13911, - "loc": { - "start": { - "line": 364, - "column": 20 - }, - "end": { - "line": 364, - "column": 21 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 13912, - "end": 13913, - "loc": { - "start": { - "line": 364, - "column": 22 - }, - "end": { - "line": 364, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 13914, - "end": 13915, - "loc": { - "start": { - "line": 364, - "column": 24 - }, - "end": { - "line": 364, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13915, - "end": 13916, - "loc": { - "start": { - "line": 364, - "column": 25 - }, - "end": { - "line": 364, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 13917, - "end": 13918, - "loc": { - "start": { - "line": 364, - "column": 27 - }, - "end": { - "line": 364, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13919, - "end": 13920, - "loc": { - "start": { - "line": 364, - "column": 29 - }, - "end": { - "line": 364, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 13920, - "end": 13921, - "loc": { - "start": { - "line": 364, - "column": 30 - }, - "end": { - "line": 364, - "column": 31 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 13922, - "end": 13923, - "loc": { - "start": { - "line": 364, - "column": 32 - }, - "end": { - "line": 364, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 13924, - "end": 13925, - "loc": { - "start": { - "line": 364, - "column": 34 - }, - "end": { - "line": 364, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13925, - "end": 13926, - "loc": { - "start": { - "line": 364, - "column": 35 - }, - "end": { - "line": 364, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13926, - "end": 13927, - "loc": { - "start": { - "line": 364, - "column": 36 - }, - "end": { - "line": 364, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13927, - "end": 13928, - "loc": { - "start": { - "line": 364, - "column": 37 - }, - "end": { - "line": 364, - "column": 38 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13931, - "end": 13932, - "loc": { - "start": { - "line": 365, - "column": 1 - }, - "end": { - "line": 365, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the new position of a point based on distance and angle.\r\n\t *\r\n\t * @param {Object} pPoint - The initial position of the point with x and y coordinates.\r\n\t * @param {number} pPoint.x - The initial x-coordinate of the point.\r\n\t * @param {number} pPoint.y - The initial y-coordinate of the point.\r\n\t * @param {number} pDistance - The distance by which to move the point.\r\n\t * @param {number} pAngle - The angle (in radians) at which to move the point.\r\n\t * @returns {Object} The new position of the point after moving by the specified distance and angle.\r\n\t *\r\n\t * @example\r\n\t * const initialPosition = { x: 10, y: 20 };\r\n\t * const distance = 5;\r\n\t * const angleInRadians = 0.785398; // 45 degrees\r\n\t * const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);\r\n\t * // Returns the new position of the point after moving by 5 units at a 45-degree angle.\r\n\t ", - "start": 13935, - "end": 14857, - "loc": { - "start": { - "line": 366, - "column": 1 - }, - "end": { - "line": 382, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "calculateNewPositionFromDistanceAndAngle", - "start": 14860, - "end": 14900, - "loc": { - "start": { - "line": 383, - "column": 1 - }, - "end": { - "line": 383, - "column": 41 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14900, - "end": 14901, - "loc": { - "start": { - "line": 383, - "column": 41 - }, - "end": { - "line": 383, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 14901, - "end": 14907, - "loc": { - "start": { - "line": 383, - "column": 42 - }, - "end": { - "line": 383, - "column": 48 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14907, - "end": 14908, - "loc": { - "start": { - "line": 383, - "column": 48 - }, - "end": { - "line": 383, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDistance", - "start": 14909, - "end": 14918, - "loc": { - "start": { - "line": 383, - "column": 50 - }, - "end": { - "line": 383, - "column": 59 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14918, - "end": 14919, - "loc": { - "start": { - "line": 383, - "column": 59 - }, - "end": { - "line": 383, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAngle", - "start": 14920, - "end": 14926, - "loc": { - "start": { - "line": 383, - "column": 61 - }, - "end": { - "line": 383, - "column": 67 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14926, - "end": 14927, - "loc": { - "start": { - "line": 383, - "column": 67 - }, - "end": { - "line": 383, - "column": 68 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14928, - "end": 14929, - "loc": { - "start": { - "line": 383, - "column": 69 - }, - "end": { - "line": 383, - "column": 70 - } - } - }, - { - "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": 14933, - "end": 14938, - "loc": { - "start": { - "line": 384, - "column": 2 - }, - "end": { - "line": 384, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "newPosition", - "start": 14939, - "end": 14950, - "loc": { - "start": { - "line": 384, - "column": 8 - }, - "end": { - "line": 384, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14951, - "end": 14952, - "loc": { - "start": { - "line": 384, - "column": 20 - }, - "end": { - "line": 384, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14953, - "end": 14954, - "loc": { - "start": { - "line": 384, - "column": 22 - }, - "end": { - "line": 384, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 14955, - "end": 14956, - "loc": { - "start": { - "line": 384, - "column": 24 - }, - "end": { - "line": 384, - "column": 25 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14956, - "end": 14957, - "loc": { - "start": { - "line": 384, - "column": 25 - }, - "end": { - "line": 384, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 14958, - "end": 14959, - "loc": { - "start": { - "line": 384, - "column": 27 - }, - "end": { - "line": 384, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14959, - "end": 14960, - "loc": { - "start": { - "line": 384, - "column": 28 - }, - "end": { - "line": 384, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 14961, - "end": 14962, - "loc": { - "start": { - "line": 384, - "column": 30 - }, - "end": { - "line": 384, - "column": 31 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14962, - "end": 14963, - "loc": { - "start": { - "line": 384, - "column": 31 - }, - "end": { - "line": 384, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 14964, - "end": 14965, - "loc": { - "start": { - "line": 384, - "column": 33 - }, - "end": { - "line": 384, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 14966, - "end": 14967, - "loc": { - "start": { - "line": 384, - "column": 35 - }, - "end": { - "line": 384, - "column": 36 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14967, - "end": 14968, - "loc": { - "start": { - "line": 384, - "column": 36 - }, - "end": { - "line": 384, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "newPosition", - "start": 14972, - "end": 14983, - "loc": { - "start": { - "line": 385, - "column": 2 - }, - "end": { - "line": 385, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14983, - "end": 14984, - "loc": { - "start": { - "line": 385, - "column": 13 - }, - "end": { - "line": 385, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 14984, - "end": 14985, - "loc": { - "start": { - "line": 385, - "column": 14 - }, - "end": { - "line": 385, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 14986, - "end": 14987, - "loc": { - "start": { - "line": 385, - "column": 16 - }, - "end": { - "line": 385, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 14988, - "end": 14994, - "loc": { - "start": { - "line": 385, - "column": 18 - }, - "end": { - "line": 385, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14994, - "end": 14995, - "loc": { - "start": { - "line": 385, - "column": 24 - }, - "end": { - "line": 385, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 14995, - "end": 14996, - "loc": { - "start": { - "line": 385, - "column": 25 - }, - "end": { - "line": 385, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 14997, - "end": 14998, - "loc": { - "start": { - "line": 385, - "column": 27 - }, - "end": { - "line": 385, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDistance", - "start": 14999, - "end": 15008, - "loc": { - "start": { - "line": 385, - "column": 29 - }, - "end": { - "line": 385, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 15009, - "end": 15010, - "loc": { - "start": { - "line": 385, - "column": 39 - }, - "end": { - "line": 385, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 15011, - "end": 15015, - "loc": { - "start": { - "line": 385, - "column": 41 - }, - "end": { - "line": 385, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15015, - "end": 15016, - "loc": { - "start": { - "line": 385, - "column": 45 - }, - "end": { - "line": 385, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cos", - "start": 15016, - "end": 15019, - "loc": { - "start": { - "line": 385, - "column": 46 - }, - "end": { - "line": 385, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15019, - "end": 15020, - "loc": { - "start": { - "line": 385, - "column": 49 - }, - "end": { - "line": 385, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAngle", - "start": 15020, - "end": 15026, - "loc": { - "start": { - "line": 385, - "column": 50 - }, - "end": { - "line": 385, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15026, - "end": 15027, - "loc": { - "start": { - "line": 385, - "column": 56 - }, - "end": { - "line": 385, - "column": 57 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15027, - "end": 15028, - "loc": { - "start": { - "line": 385, - "column": 57 - }, - "end": { - "line": 385, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "newPosition", - "start": 15032, - "end": 15043, - "loc": { - "start": { - "line": 386, - "column": 2 - }, - "end": { - "line": 386, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15043, - "end": 15044, - "loc": { - "start": { - "line": 386, - "column": 13 - }, - "end": { - "line": 386, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 15044, - "end": 15045, - "loc": { - "start": { - "line": 386, - "column": 14 - }, - "end": { - "line": 386, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 15046, - "end": 15047, - "loc": { - "start": { - "line": 386, - "column": 16 - }, - "end": { - "line": 386, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 15048, - "end": 15054, - "loc": { - "start": { - "line": 386, - "column": 18 - }, - "end": { - "line": 386, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15054, - "end": 15055, - "loc": { - "start": { - "line": 386, - "column": 24 - }, - "end": { - "line": 386, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 15055, - "end": 15056, - "loc": { - "start": { - "line": 386, - "column": 25 - }, - "end": { - "line": 386, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 15057, - "end": 15058, - "loc": { - "start": { - "line": 386, - "column": 27 - }, - "end": { - "line": 386, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDistance", - "start": 15059, - "end": 15068, - "loc": { - "start": { - "line": 386, - "column": 29 - }, - "end": { - "line": 386, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 15069, - "end": 15070, - "loc": { - "start": { - "line": 386, - "column": 39 - }, - "end": { - "line": 386, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 15071, - "end": 15075, - "loc": { - "start": { - "line": 386, - "column": 41 - }, - "end": { - "line": 386, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15075, - "end": 15076, - "loc": { - "start": { - "line": 386, - "column": 45 - }, - "end": { - "line": 386, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sin", - "start": 15076, - "end": 15079, - "loc": { - "start": { - "line": 386, - "column": 46 - }, - "end": { - "line": 386, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15079, - "end": 15080, - "loc": { - "start": { - "line": 386, - "column": 49 - }, - "end": { - "line": 386, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAngle", - "start": 15080, - "end": 15086, - "loc": { - "start": { - "line": 386, - "column": 50 - }, - "end": { - "line": 386, - "column": 56 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15086, - "end": 15087, - "loc": { - "start": { - "line": 386, - "column": 56 - }, - "end": { - "line": 386, - "column": 57 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15087, - "end": 15088, - "loc": { - "start": { - "line": 386, - "column": 57 - }, - "end": { - "line": 386, - "column": 58 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 15092, - "end": 15098, - "loc": { - "start": { - "line": 387, - "column": 2 - }, - "end": { - "line": 387, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "newPosition", - "start": 15099, - "end": 15110, - "loc": { - "start": { - "line": 387, - "column": 9 - }, - "end": { - "line": 387, - "column": 20 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15110, - "end": 15111, - "loc": { - "start": { - "line": 387, - "column": 20 - }, - "end": { - "line": 387, - "column": 21 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15114, - "end": 15115, - "loc": { - "start": { - "line": 388, - "column": 1 - }, - "end": { - "line": 388, - "column": 2 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15115, - "end": 15116, - "loc": { - "start": { - "line": 388, - "column": 2 - }, - "end": { - "line": 388, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the proportional length based on a current value, a maximum value, and a specified total length.\r\n\t *\r\n\t * @param {number} pCurrent - The current value to be scaled.\r\n\t * @param {number} pMax - The maximum value for scaling.\r\n\t * @param {number} pTotalLength - The specified total length.\r\n\t * @returns {number} The proportional length based on the current value, maximum value, and total length.\r\n\t *\r\n\t * @example\r\n\t * const current = 25;\r\n\t * const max = 50;\r\n\t * const totalLength = 100;\r\n\t * const proportionalLength = calculateProportionalLength(current, max, totalLength); // 50\r\n\t * // Returns the proportional length based on the current value, maximum value, and total length.\r\n\t ", - "start": 15119, - "end": 15831, - "loc": { - "start": { - "line": 389, - "column": 1 - }, - "end": { - "line": 403, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "calculateProportionalLength", - "start": 15834, - "end": 15861, - "loc": { - "start": { - "line": 404, - "column": 1 - }, - "end": { - "line": 404, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15861, - "end": 15862, - "loc": { - "start": { - "line": 404, - "column": 28 - }, - "end": { - "line": 404, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCurrent", - "start": 15862, - "end": 15870, - "loc": { - "start": { - "line": 404, - "column": 29 - }, - "end": { - "line": 404, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15870, - "end": 15871, - "loc": { - "start": { - "line": 404, - "column": 37 - }, - "end": { - "line": 404, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 15872, - "end": 15876, - "loc": { - "start": { - "line": 404, - "column": 39 - }, - "end": { - "line": 404, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15876, - "end": 15877, - "loc": { - "start": { - "line": 404, - "column": 43 - }, - "end": { - "line": 404, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTotalLength", - "start": 15878, - "end": 15890, - "loc": { - "start": { - "line": 404, - "column": 45 - }, - "end": { - "line": 404, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15890, - "end": 15891, - "loc": { - "start": { - "line": 404, - "column": 57 - }, - "end": { - "line": 404, - "column": 58 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15892, - "end": 15893, - "loc": { - "start": { - "line": 404, - "column": 59 - }, - "end": { - "line": 404, - "column": 60 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 15897, - "end": 15903, - "loc": { - "start": { - "line": 405, - "column": 2 - }, - "end": { - "line": 405, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15904, - "end": 15905, - "loc": { - "start": { - "line": 405, - "column": 9 - }, - "end": { - "line": 405, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCurrent", - "start": 15905, - "end": 15913, - "loc": { - "start": { - "line": 405, - "column": 10 - }, - "end": { - "line": 405, - "column": 18 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 15914, - "end": 15915, - "loc": { - "start": { - "line": 405, - "column": 19 - }, - "end": { - "line": 405, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMax", - "start": 15916, - "end": 15920, - "loc": { - "start": { - "line": 405, - "column": 21 - }, - "end": { - "line": 405, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15920, - "end": 15921, - "loc": { - "start": { - "line": 405, - "column": 25 - }, - "end": { - "line": 405, - "column": 26 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 15922, - "end": 15923, - "loc": { - "start": { - "line": 405, - "column": 27 - }, - "end": { - "line": 405, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTotalLength", - "start": 15924, - "end": 15936, - "loc": { - "start": { - "line": 405, - "column": 29 - }, - "end": { - "line": 405, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 15936, - "end": 15937, - "loc": { - "start": { - "line": 405, - "column": 41 - }, - "end": { - "line": 405, - "column": 42 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 15940, - "end": 15941, - "loc": { - "start": { - "line": 406, - "column": 1 - }, - "end": { - "line": 406, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the compass direction based on the given angle.\r\n\t *\r\n\t * @param {number} pAngle - The angle in radians.\r\n\t * @returns {string} The compass direction (e.g., 'east', 'southeast', 'south', etc.).\r\n\t *\r\n\t * @example\r\n\t * const angle = Math.PI / 4; // 45 degrees in radians\r\n\t * const direction = getDirection(angle); // Returns 'northeast'\r\n\t ", - "start": 15944, - "end": 16306, - "loc": { - "start": { - "line": 407, - "column": 1 - }, - "end": { - "line": 416, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getDirection", - "start": 16309, - "end": 16321, - "loc": { - "start": { - "line": 417, - "column": 1 - }, - "end": { - "line": 417, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16321, - "end": 16322, - "loc": { - "start": { - "line": 417, - "column": 13 - }, - "end": { - "line": 417, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAngle", - "start": 16322, - "end": 16328, - "loc": { - "start": { - "line": 417, - "column": 14 - }, - "end": { - "line": 417, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16328, - "end": 16329, - "loc": { - "start": { - "line": 417, - "column": 20 - }, - "end": { - "line": 417, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16330, - "end": 16331, - "loc": { - "start": { - "line": 417, - "column": 22 - }, - "end": { - "line": 417, - "column": 23 - } - } - }, - { - "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": 16335, - "end": 16340, - "loc": { - "start": { - "line": 418, - "column": 2 - }, - "end": { - "line": 418, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "degree", - "start": 16341, - "end": 16347, - "loc": { - "start": { - "line": 418, - "column": 8 - }, - "end": { - "line": 418, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16348, - "end": 16349, - "loc": { - "start": { - "line": 418, - "column": 15 - }, - "end": { - "line": 418, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 16350, - "end": 16354, - "loc": { - "start": { - "line": 418, - "column": 17 - }, - "end": { - "line": 418, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16354, - "end": 16355, - "loc": { - "start": { - "line": 418, - "column": 21 - }, - "end": { - "line": 418, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "abs", - "start": 16355, - "end": 16358, - "loc": { - "start": { - "line": 418, - "column": 22 - }, - "end": { - "line": 418, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16358, - "end": 16359, - "loc": { - "start": { - "line": 418, - "column": 25 - }, - "end": { - "line": 418, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 16359, - "end": 16363, - "loc": { - "start": { - "line": 418, - "column": 26 - }, - "end": { - "line": 418, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16363, - "end": 16364, - "loc": { - "start": { - "line": 418, - "column": 30 - }, - "end": { - "line": 418, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 16364, - "end": 16369, - "loc": { - "start": { - "line": 418, - "column": 31 - }, - "end": { - "line": 418, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16369, - "end": 16370, - "loc": { - "start": { - "line": 418, - "column": 36 - }, - "end": { - "line": 418, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16370, - "end": 16371, - "loc": { - "start": { - "line": 418, - "column": 37 - }, - "end": { - "line": 418, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16371, - "end": 16372, - "loc": { - "start": { - "line": 418, - "column": 38 - }, - "end": { - "line": 418, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAngle", - "start": 16372, - "end": 16378, - "loc": { - "start": { - "line": 418, - "column": 39 - }, - "end": { - "line": 418, - "column": 45 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 16379, - "end": 16380, - "loc": { - "start": { - "line": 418, - "column": 46 - }, - "end": { - "line": 418, - "column": 47 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16381, - "end": 16382, - "loc": { - "start": { - "line": 418, - "column": 48 - }, - "end": { - "line": 418, - "column": 49 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 180, - "start": 16382, - "end": 16385, - "loc": { - "start": { - "line": 418, - "column": 49 - }, - "end": { - "line": 418, - "column": 52 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 16386, - "end": 16387, - "loc": { - "start": { - "line": 418, - "column": 53 - }, - "end": { - "line": 418, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 16388, - "end": 16392, - "loc": { - "start": { - "line": 418, - "column": 55 - }, - "end": { - "line": 418, - "column": 59 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16392, - "end": 16393, - "loc": { - "start": { - "line": 418, - "column": 59 - }, - "end": { - "line": 418, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "PI", - "start": 16393, - "end": 16395, - "loc": { - "start": { - "line": 418, - "column": 60 - }, - "end": { - "line": 418, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16395, - "end": 16396, - "loc": { - "start": { - "line": 418, - "column": 62 - }, - "end": { - "line": 418, - "column": 63 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16396, - "end": 16397, - "loc": { - "start": { - "line": 418, - "column": 63 - }, - "end": { - "line": 418, - "column": 64 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 16398, - "end": 16399, - "loc": { - "start": { - "line": 418, - "column": 65 - }, - "end": { - "line": 418, - "column": 66 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 45, - "start": 16400, - "end": 16402, - "loc": { - "start": { - "line": 418, - "column": 67 - }, - "end": { - "line": 418, - "column": 69 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16402, - "end": 16403, - "loc": { - "start": { - "line": 418, - "column": 69 - }, - "end": { - "line": 418, - "column": 70 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 16404, - "end": 16405, - "loc": { - "start": { - "line": 418, - "column": 71 - }, - "end": { - "line": 418, - "column": 72 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 16406, - "end": 16409, - "loc": { - "start": { - "line": 418, - "column": 73 - }, - "end": { - "line": 418, - "column": 76 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16409, - "end": 16410, - "loc": { - "start": { - "line": 418, - "column": 76 - }, - "end": { - "line": 418, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16410, - "end": 16411, - "loc": { - "start": { - "line": 418, - "column": 77 - }, - "end": { - "line": 418, - "column": 78 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16411, - "end": 16412, - "loc": { - "start": { - "line": 418, - "column": 78 - }, - "end": { - "line": 418, - "column": 79 - } - } - }, - { - "type": "CommentLine", - "value": " 0 or 360 degrees: 'east'", - "start": 16416, - "end": 16443, - "loc": { - "start": { - "line": 419, - "column": 2 - }, - "end": { - "line": 419, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 45 degrees: 'northeast'", - "start": 16447, - "end": 16473, - "loc": { - "start": { - "line": 420, - "column": 2 - }, - "end": { - "line": 420, - "column": 28 - } - } - }, - { - "type": "CommentLine", - "value": " 90 degrees: 'north'", - "start": 16477, - "end": 16499, - "loc": { - "start": { - "line": 421, - "column": 2 - }, - "end": { - "line": 421, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 135 degrees: 'northwest'", - "start": 16503, - "end": 16530, - "loc": { - "start": { - "line": 422, - "column": 2 - }, - "end": { - "line": 422, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 180 degrees: 'west'", - "start": 16534, - "end": 16556, - "loc": { - "start": { - "line": 423, - "column": 2 - }, - "end": { - "line": 423, - "column": 24 - } - } - }, - { - "type": "CommentLine", - "value": " 225 degrees: 'southwest'", - "start": 16560, - "end": 16587, - "loc": { - "start": { - "line": 424, - "column": 2 - }, - "end": { - "line": 424, - "column": 29 - } - } - }, - { - "type": "CommentLine", - "value": " 270 degrees: 'south'", - "start": 16591, - "end": 16614, - "loc": { - "start": { - "line": 425, - "column": 2 - }, - "end": { - "line": 425, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " 315 degrees: 'southeast'", - "start": 16618, - "end": 16645, - "loc": { - "start": { - "line": 426, - "column": 2 - }, - "end": { - "line": 426, - "column": 29 - } - } - }, - { - "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": 16649, - "end": 16654, - "loc": { - "start": { - "line": 427, - "column": 2 - }, - "end": { - "line": 427, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "compassDirections", - "start": 16655, - "end": 16672, - "loc": { - "start": { - "line": 427, - "column": 8 - }, - "end": { - "line": 427, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 16673, - "end": 16674, - "loc": { - "start": { - "line": 427, - "column": 26 - }, - "end": { - "line": 427, - "column": 27 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16675, - "end": 16676, - "loc": { - "start": { - "line": 427, - "column": 28 - }, - "end": { - "line": 427, - "column": 29 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "east", - "start": 16676, - "end": 16682, - "loc": { - "start": { - "line": 427, - "column": 29 - }, - "end": { - "line": 427, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16682, - "end": 16683, - "loc": { - "start": { - "line": 427, - "column": 35 - }, - "end": { - "line": 427, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northeast", - "start": 16684, - "end": 16695, - "loc": { - "start": { - "line": 427, - "column": 37 - }, - "end": { - "line": 427, - "column": 48 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16695, - "end": 16696, - "loc": { - "start": { - "line": 427, - "column": 48 - }, - "end": { - "line": 427, - "column": 49 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "north", - "start": 16697, - "end": 16704, - "loc": { - "start": { - "line": 427, - "column": 50 - }, - "end": { - "line": 427, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16704, - "end": 16705, - "loc": { - "start": { - "line": 427, - "column": 57 - }, - "end": { - "line": 427, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "northwest", - "start": 16706, - "end": 16717, - "loc": { - "start": { - "line": 427, - "column": 59 - }, - "end": { - "line": 427, - "column": 70 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16717, - "end": 16718, - "loc": { - "start": { - "line": 427, - "column": 70 - }, - "end": { - "line": 427, - "column": 71 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "west", - "start": 16719, - "end": 16725, - "loc": { - "start": { - "line": 427, - "column": 72 - }, - "end": { - "line": 427, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16725, - "end": 16726, - "loc": { - "start": { - "line": 427, - "column": 78 - }, - "end": { - "line": 427, - "column": 79 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southwest", - "start": 16727, - "end": 16738, - "loc": { - "start": { - "line": 427, - "column": 80 - }, - "end": { - "line": 427, - "column": 91 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16738, - "end": 16739, - "loc": { - "start": { - "line": 427, - "column": 91 - }, - "end": { - "line": 427, - "column": 92 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "south", - "start": 16740, - "end": 16747, - "loc": { - "start": { - "line": 427, - "column": 93 - }, - "end": { - "line": 427, - "column": 100 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16747, - "end": 16748, - "loc": { - "start": { - "line": 427, - "column": 100 - }, - "end": { - "line": 427, - "column": 101 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "southeast", - "start": 16749, - "end": 16760, - "loc": { - "start": { - "line": 427, - "column": 102 - }, - "end": { - "line": 427, - "column": 113 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16760, - "end": 16761, - "loc": { - "start": { - "line": 427, - "column": 113 - }, - "end": { - "line": 427, - "column": 114 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16761, - "end": 16762, - "loc": { - "start": { - "line": 427, - "column": 114 - }, - "end": { - "line": 427, - "column": 115 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 16766, - "end": 16772, - "loc": { - "start": { - "line": 428, - "column": 2 - }, - "end": { - "line": 428, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "compassDirections", - "start": 16773, - "end": 16790, - "loc": { - "start": { - "line": 428, - "column": 9 - }, - "end": { - "line": 428, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16790, - "end": 16791, - "loc": { - "start": { - "line": 428, - "column": 26 - }, - "end": { - "line": 428, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16791, - "end": 16792, - "loc": { - "start": { - "line": 428, - "column": 27 - }, - "end": { - "line": 428, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "degree", - "start": 16792, - "end": 16798, - "loc": { - "start": { - "line": 428, - "column": 28 - }, - "end": { - "line": 428, - "column": 34 - } - } - }, - { - "type": { - "label": "%", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "%", - "start": 16799, - "end": 16800, - "loc": { - "start": { - "line": 428, - "column": 35 - }, - "end": { - "line": 428, - "column": 36 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 8, - "start": 16801, - "end": 16802, - "loc": { - "start": { - "line": 428, - "column": 37 - }, - "end": { - "line": 428, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16802, - "end": 16803, - "loc": { - "start": { - "line": 428, - "column": 38 - }, - "end": { - "line": 428, - "column": 39 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16803, - "end": 16804, - "loc": { - "start": { - "line": 428, - "column": 39 - }, - "end": { - "line": 428, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16804, - "end": 16805, - "loc": { - "start": { - "line": 428, - "column": 40 - }, - "end": { - "line": 428, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16808, - "end": 16809, - "loc": { - "start": { - "line": 429, - "column": 1 - }, - "end": { - "line": 429, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the linear decay of a variable over time.\r\n\t *\r\n\t * @param {number} pInitialValue - The initial value of the variable.\r\n\t * @param {number} pCurrentTime - The current time at which to calculate the variable value.\r\n\t * @param {number} pMaxTime - The maximum time for the decay process.\r\n\t * @param {number} [pDecayRate=0.5] - The decay rate (default is 0.5).\r\n\t * @returns {number} The remaining value of the variable after linear decay.\r\n\t *\r\n\t * @example\r\n\t * const initialValue = 100;\r\n\t * const currentTime = 50;\r\n\t * const maxTime = 1000;\r\n\t * const decayRate = 0.3;\r\n\t * const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);\r\n\t * // Returns the remaining value after linear decay.\r\n\t ", - "start": 16812, - "end": 17553, - "loc": { - "start": { - "line": 430, - "column": 1 - }, - "end": { - "line": 446, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "linearDecay", - "start": 17556, - "end": 17567, - "loc": { - "start": { - "line": 447, - "column": 1 - }, - "end": { - "line": 447, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17567, - "end": 17568, - "loc": { - "start": { - "line": 447, - "column": 12 - }, - "end": { - "line": 447, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInitialValue", - "start": 17568, - "end": 17581, - "loc": { - "start": { - "line": 447, - "column": 13 - }, - "end": { - "line": 447, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17581, - "end": 17582, - "loc": { - "start": { - "line": 447, - "column": 26 - }, - "end": { - "line": 447, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCurrentTime", - "start": 17583, - "end": 17595, - "loc": { - "start": { - "line": 447, - "column": 28 - }, - "end": { - "line": 447, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17595, - "end": 17596, - "loc": { - "start": { - "line": 447, - "column": 40 - }, - "end": { - "line": 447, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMaxTime", - "start": 17597, - "end": 17605, - "loc": { - "start": { - "line": 447, - "column": 42 - }, - "end": { - "line": 447, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17605, - "end": 17606, - "loc": { - "start": { - "line": 447, - "column": 50 - }, - "end": { - "line": 447, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDecayRate", - "start": 17607, - "end": 17617, - "loc": { - "start": { - "line": 447, - "column": 52 - }, - "end": { - "line": 447, - "column": 62 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17618, - "end": 17619, - "loc": { - "start": { - "line": 447, - "column": 63 - }, - "end": { - "line": 447, - "column": 64 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 17620, - "end": 17623, - "loc": { - "start": { - "line": 447, - "column": 65 - }, - "end": { - "line": 447, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17623, - "end": 17624, - "loc": { - "start": { - "line": 447, - "column": 68 - }, - "end": { - "line": 447, - "column": 69 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17625, - "end": 17626, - "loc": { - "start": { - "line": 447, - "column": 70 - }, - "end": { - "line": 447, - "column": 71 - } - } - }, - { - "type": "CommentLine", - "value": " Calculate the variable value at the current time", - "start": 17630, - "end": 17681, - "loc": { - "start": { - "line": 448, - "column": 2 - }, - "end": { - "line": 448, - "column": 53 - } - } - }, - { - "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": 17685, - "end": 17690, - "loc": { - "start": { - "line": 449, - "column": 2 - }, - "end": { - "line": 449, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "proportionOfTimePassed", - "start": 17691, - "end": 17713, - "loc": { - "start": { - "line": 449, - "column": 8 - }, - "end": { - "line": 449, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17714, - "end": 17715, - "loc": { - "start": { - "line": 449, - "column": 31 - }, - "end": { - "line": 449, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pCurrentTime", - "start": 17716, - "end": 17728, - "loc": { - "start": { - "line": 449, - "column": 33 - }, - "end": { - "line": 449, - "column": 45 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 17729, - "end": 17730, - "loc": { - "start": { - "line": 449, - "column": 46 - }, - "end": { - "line": 449, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pMaxTime", - "start": 17731, - "end": 17739, - "loc": { - "start": { - "line": 449, - "column": 48 - }, - "end": { - "line": 449, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17739, - "end": 17740, - "loc": { - "start": { - "line": 449, - "column": 56 - }, - "end": { - "line": 449, - "column": 57 - } - } - }, - { - "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": 17744, - "end": 17749, - "loc": { - "start": { - "line": 450, - "column": 2 - }, - "end": { - "line": 450, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remainingValue", - "start": 17750, - "end": 17764, - "loc": { - "start": { - "line": 450, - "column": 8 - }, - "end": { - "line": 450, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 17765, - "end": 17766, - "loc": { - "start": { - "line": 450, - "column": 23 - }, - "end": { - "line": 450, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 17767, - "end": 17771, - "loc": { - "start": { - "line": 450, - "column": 25 - }, - "end": { - "line": 450, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17771, - "end": 17772, - "loc": { - "start": { - "line": 450, - "column": 29 - }, - "end": { - "line": 450, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "max", - "start": 17772, - "end": 17775, - "loc": { - "start": { - "line": 450, - "column": 30 - }, - "end": { - "line": 450, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17775, - "end": 17776, - "loc": { - "start": { - "line": 450, - "column": 33 - }, - "end": { - "line": 450, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInitialValue", - "start": 17776, - "end": 17789, - "loc": { - "start": { - "line": 450, - "column": 34 - }, - "end": { - "line": 450, - "column": 47 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 17790, - "end": 17791, - "loc": { - "start": { - "line": 450, - "column": 48 - }, - "end": { - "line": 450, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17792, - "end": 17793, - "loc": { - "start": { - "line": 450, - "column": 50 - }, - "end": { - "line": 450, - "column": 51 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 17793, - "end": 17794, - "loc": { - "start": { - "line": 450, - "column": 51 - }, - "end": { - "line": 450, - "column": 52 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 17795, - "end": 17796, - "loc": { - "start": { - "line": 450, - "column": 53 - }, - "end": { - "line": 450, - "column": 54 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17797, - "end": 17798, - "loc": { - "start": { - "line": 450, - "column": 55 - }, - "end": { - "line": 450, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "proportionOfTimePassed", - "start": 17798, - "end": 17820, - "loc": { - "start": { - "line": 450, - "column": 56 - }, - "end": { - "line": 450, - "column": 78 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 17821, - "end": 17822, - "loc": { - "start": { - "line": 450, - "column": 79 - }, - "end": { - "line": 450, - "column": 80 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDecayRate", - "start": 17823, - "end": 17833, - "loc": { - "start": { - "line": 450, - "column": 81 - }, - "end": { - "line": 450, - "column": 91 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17833, - "end": 17834, - "loc": { - "start": { - "line": 450, - "column": 91 - }, - "end": { - "line": 450, - "column": 92 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17834, - "end": 17835, - "loc": { - "start": { - "line": 450, - "column": 92 - }, - "end": { - "line": 450, - "column": 93 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17835, - "end": 17836, - "loc": { - "start": { - "line": 450, - "column": 93 - }, - "end": { - "line": 450, - "column": 94 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 17837, - "end": 17838, - "loc": { - "start": { - "line": 450, - "column": 95 - }, - "end": { - "line": 450, - "column": 96 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17838, - "end": 17839, - "loc": { - "start": { - "line": 450, - "column": 96 - }, - "end": { - "line": 450, - "column": 97 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17839, - "end": 17840, - "loc": { - "start": { - "line": 450, - "column": 97 - }, - "end": { - "line": 450, - "column": 98 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 17844, - "end": 17850, - "loc": { - "start": { - "line": 451, - "column": 2 - }, - "end": { - "line": 451, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "remainingValue", - "start": 17851, - "end": 17865, - "loc": { - "start": { - "line": 451, - "column": 9 - }, - "end": { - "line": 451, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17865, - "end": 17866, - "loc": { - "start": { - "line": 451, - "column": 23 - }, - "end": { - "line": 451, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17869, - "end": 17870, - "loc": { - "start": { - "line": 452, - "column": 1 - }, - "end": { - "line": 452, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t ", - "start": 17873, - "end": 18006, - "loc": { - "start": { - "line": 453, - "column": 1 - }, - "end": { - "line": 458, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 18009, - "end": 18019, - "loc": { - "start": { - "line": 459, - "column": 1 - }, - "end": { - "line": 459, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18019, - "end": 18020, - "loc": { - "start": { - "line": 459, - "column": 11 - }, - "end": { - "line": 459, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIDLength", - "start": 18020, - "end": 18029, - "loc": { - "start": { - "line": 459, - "column": 12 - }, - "end": { - "line": 459, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18030, - "end": 18031, - "loc": { - "start": { - "line": 459, - "column": 22 - }, - "end": { - "line": 459, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 7, - "start": 18032, - "end": 18033, - "loc": { - "start": { - "line": 459, - "column": 24 - }, - "end": { - "line": 459, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18033, - "end": 18034, - "loc": { - "start": { - "line": 459, - "column": 25 - }, - "end": { - "line": 459, - "column": 26 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18035, - "end": 18036, - "loc": { - "start": { - "line": 459, - "column": 27 - }, - "end": { - "line": 459, - "column": 28 - } - } - }, - { - "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": 18040, - "end": 18045, - "loc": { - "start": { - "line": 460, - "column": 2 - }, - "end": { - "line": 460, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 18046, - "end": 18051, - "loc": { - "start": { - "line": 460, - "column": 8 - }, - "end": { - "line": 460, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18052, - "end": 18053, - "loc": { - "start": { - "line": 460, - "column": 14 - }, - "end": { - "line": 460, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "start": 18054, - "end": 18118, - "loc": { - "start": { - "line": 460, - "column": 16 - }, - "end": { - "line": 460, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18118, - "end": 18119, - "loc": { - "start": { - "line": 460, - "column": 80 - }, - "end": { - "line": 460, - "column": 81 - } - } - }, - { - "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": 18123, - "end": 18128, - "loc": { - "start": { - "line": 461, - "column": 2 - }, - "end": { - "line": 461, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 18129, - "end": 18135, - "loc": { - "start": { - "line": 461, - "column": 8 - }, - "end": { - "line": 461, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18136, - "end": 18137, - "loc": { - "start": { - "line": 461, - "column": 15 - }, - "end": { - "line": 461, - "column": 16 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 18138, - "end": 18146, - "loc": { - "start": { - "line": 461, - "column": 17 - }, - "end": { - "line": 461, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18146, - "end": 18147, - "loc": { - "start": { - "line": 461, - "column": 25 - }, - "end": { - "line": 461, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18147, - "end": 18148, - "loc": { - "start": { - "line": 461, - "column": 26 - }, - "end": { - "line": 461, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18149, - "end": 18150, - "loc": { - "start": { - "line": 461, - "column": 28 - }, - "end": { - "line": 461, - "column": 29 - } - } - }, - { - "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": 18155, - "end": 18158, - "loc": { - "start": { - "line": 462, - "column": 3 - }, - "end": { - "line": 462, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 18159, - "end": 18161, - "loc": { - "start": { - "line": 462, - "column": 7 - }, - "end": { - "line": 462, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18162, - "end": 18163, - "loc": { - "start": { - "line": 462, - "column": 10 - }, - "end": { - "line": 462, - "column": 11 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 18164, - "end": 18166, - "loc": { - "start": { - "line": 462, - "column": 12 - }, - "end": { - "line": 462, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18166, - "end": 18167, - "loc": { - "start": { - "line": 462, - "column": 14 - }, - "end": { - "line": 462, - "column": 15 - } - } - }, - { - "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": 18172, - "end": 18175, - "loc": { - "start": { - "line": 463, - "column": 3 - }, - "end": { - "line": 463, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18176, - "end": 18177, - "loc": { - "start": { - "line": 463, - "column": 7 - }, - "end": { - "line": 463, - "column": 8 - } - } - }, - { - "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": 18177, - "end": 18180, - "loc": { - "start": { - "line": 463, - "column": 8 - }, - "end": { - "line": 463, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 18181, - "end": 18182, - "loc": { - "start": { - "line": 463, - "column": 12 - }, - "end": { - "line": 463, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18183, - "end": 18184, - "loc": { - "start": { - "line": 463, - "column": 14 - }, - "end": { - "line": 463, - "column": 15 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 18185, - "end": 18186, - "loc": { - "start": { - "line": 463, - "column": 16 - }, - "end": { - "line": 463, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18186, - "end": 18187, - "loc": { - "start": { - "line": 463, - "column": 17 - }, - "end": { - "line": 463, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 18188, - "end": 18189, - "loc": { - "start": { - "line": 463, - "column": 19 - }, - "end": { - "line": 463, - "column": 20 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 18190, - "end": 18191, - "loc": { - "start": { - "line": 463, - "column": 21 - }, - "end": { - "line": 463, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIDLength", - "start": 18192, - "end": 18201, - "loc": { - "start": { - "line": 463, - "column": 23 - }, - "end": { - "line": 463, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18201, - "end": 18202, - "loc": { - "start": { - "line": 463, - "column": 32 - }, - "end": { - "line": 463, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 18203, - "end": 18204, - "loc": { - "start": { - "line": 463, - "column": 34 - }, - "end": { - "line": 463, - "column": 35 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 18204, - "end": 18206, - "loc": { - "start": { - "line": 463, - "column": 35 - }, - "end": { - "line": 463, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18206, - "end": 18207, - "loc": { - "start": { - "line": 463, - "column": 37 - }, - "end": { - "line": 463, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18208, - "end": 18209, - "loc": { - "start": { - "line": 463, - "column": 39 - }, - "end": { - "line": 463, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 18215, - "end": 18217, - "loc": { - "start": { - "line": 464, - "column": 4 - }, - "end": { - "line": 464, - "column": 6 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 18218, - "end": 18220, - "loc": { - "start": { - "line": 464, - "column": 7 - }, - "end": { - "line": 464, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 18221, - "end": 18226, - "loc": { - "start": { - "line": 464, - "column": 10 - }, - "end": { - "line": 464, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18226, - "end": 18227, - "loc": { - "start": { - "line": 464, - "column": 15 - }, - "end": { - "line": 464, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "charAt", - "start": 18227, - "end": 18233, - "loc": { - "start": { - "line": 464, - "column": 16 - }, - "end": { - "line": 464, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18233, - "end": 18234, - "loc": { - "start": { - "line": 464, - "column": 22 - }, - "end": { - "line": 464, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 18234, - "end": 18238, - "loc": { - "start": { - "line": 464, - "column": 23 - }, - "end": { - "line": 464, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18238, - "end": 18239, - "loc": { - "start": { - "line": 464, - "column": 27 - }, - "end": { - "line": 464, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 18239, - "end": 18244, - "loc": { - "start": { - "line": 464, - "column": 28 - }, - "end": { - "line": 464, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18244, - "end": 18245, - "loc": { - "start": { - "line": 464, - "column": 33 - }, - "end": { - "line": 464, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 18245, - "end": 18249, - "loc": { - "start": { - "line": 464, - "column": 34 - }, - "end": { - "line": 464, - "column": 38 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18249, - "end": 18250, - "loc": { - "start": { - "line": 464, - "column": 38 - }, - "end": { - "line": 464, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 18250, - "end": 18256, - "loc": { - "start": { - "line": 464, - "column": 39 - }, - "end": { - "line": 464, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18256, - "end": 18257, - "loc": { - "start": { - "line": 464, - "column": 45 - }, - "end": { - "line": 464, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18257, - "end": 18258, - "loc": { - "start": { - "line": 464, - "column": 46 - }, - "end": { - "line": 464, - "column": 47 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 18259, - "end": 18260, - "loc": { - "start": { - "line": 464, - "column": 48 - }, - "end": { - "line": 464, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 18261, - "end": 18266, - "loc": { - "start": { - "line": 464, - "column": 50 - }, - "end": { - "line": 464, - "column": 55 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18266, - "end": 18267, - "loc": { - "start": { - "line": 464, - "column": 55 - }, - "end": { - "line": 464, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 18267, - "end": 18273, - "loc": { - "start": { - "line": 464, - "column": 56 - }, - "end": { - "line": 464, - "column": 62 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18273, - "end": 18274, - "loc": { - "start": { - "line": 464, - "column": 62 - }, - "end": { - "line": 464, - "column": 63 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18274, - "end": 18275, - "loc": { - "start": { - "line": 464, - "column": 63 - }, - "end": { - "line": 464, - "column": 64 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18275, - "end": 18276, - "loc": { - "start": { - "line": 464, - "column": 64 - }, - "end": { - "line": 464, - "column": 65 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18281, - "end": 18282, - "loc": { - "start": { - "line": 465, - "column": 3 - }, - "end": { - "line": 465, - "column": 4 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 18287, - "end": 18293, - "loc": { - "start": { - "line": 466, - "column": 3 - }, - "end": { - "line": 466, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 18294, - "end": 18296, - "loc": { - "start": { - "line": 466, - "column": 10 - }, - "end": { - "line": 466, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18296, - "end": 18297, - "loc": { - "start": { - "line": 466, - "column": 12 - }, - "end": { - "line": 466, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18301, - "end": 18302, - "loc": { - "start": { - "line": 467, - "column": 2 - }, - "end": { - "line": 467, - "column": 3 - } - } - }, - { - "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": 18306, - "end": 18309, - "loc": { - "start": { - "line": 468, - "column": 2 - }, - "end": { - "line": 468, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 18310, - "end": 18312, - "loc": { - "start": { - "line": 468, - "column": 6 - }, - "end": { - "line": 468, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18313, - "end": 18314, - "loc": { - "start": { - "line": 468, - "column": 9 - }, - "end": { - "line": 468, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 18315, - "end": 18321, - "loc": { - "start": { - "line": 468, - "column": 11 - }, - "end": { - "line": 468, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18321, - "end": 18322, - "loc": { - "start": { - "line": 468, - "column": 17 - }, - "end": { - "line": 468, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18322, - "end": 18323, - "loc": { - "start": { - "line": 468, - "column": 18 - }, - "end": { - "line": 468, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18323, - "end": 18324, - "loc": { - "start": { - "line": 468, - "column": 19 - }, - "end": { - "line": 468, - "column": 20 - } - } - }, - { - "type": { - "label": "while", - "keyword": "while", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": true, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "while", - "start": 18328, - "end": 18333, - "loc": { - "start": { - "line": 469, - "column": 2 - }, - "end": { - "line": 469, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18333, - "end": 18334, - "loc": { - "start": { - "line": 469, - "column": 7 - }, - "end": { - "line": 469, - "column": 8 - } - } - }, - { - "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": 18334, - "end": 18338, - "loc": { - "start": { - "line": 469, - "column": 8 - }, - "end": { - "line": 469, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18338, - "end": 18339, - "loc": { - "start": { - "line": 469, - "column": 12 - }, - "end": { - "line": 469, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 18339, - "end": 18348, - "loc": { - "start": { - "line": 469, - "column": 13 - }, - "end": { - "line": 469, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18348, - "end": 18349, - "loc": { - "start": { - "line": 469, - "column": 22 - }, - "end": { - "line": 469, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 18349, - "end": 18357, - "loc": { - "start": { - "line": 469, - "column": 23 - }, - "end": { - "line": 469, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18357, - "end": 18358, - "loc": { - "start": { - "line": 469, - "column": 31 - }, - "end": { - "line": 469, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 18358, - "end": 18360, - "loc": { - "start": { - "line": 469, - "column": 32 - }, - "end": { - "line": 469, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18360, - "end": 18361, - "loc": { - "start": { - "line": 469, - "column": 34 - }, - "end": { - "line": 469, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18361, - "end": 18362, - "loc": { - "start": { - "line": 469, - "column": 35 - }, - "end": { - "line": 469, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18363, - "end": 18364, - "loc": { - "start": { - "line": 469, - "column": 37 - }, - "end": { - "line": 469, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 18369, - "end": 18371, - "loc": { - "start": { - "line": 470, - "column": 3 - }, - "end": { - "line": 470, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18372, - "end": 18373, - "loc": { - "start": { - "line": 470, - "column": 6 - }, - "end": { - "line": 470, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "makeID", - "start": 18374, - "end": 18380, - "loc": { - "start": { - "line": 470, - "column": 8 - }, - "end": { - "line": 470, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18380, - "end": 18381, - "loc": { - "start": { - "line": 470, - "column": 14 - }, - "end": { - "line": 470, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18381, - "end": 18382, - "loc": { - "start": { - "line": 470, - "column": 15 - }, - "end": { - "line": 470, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18382, - "end": 18383, - "loc": { - "start": { - "line": 470, - "column": 16 - }, - "end": { - "line": 470, - "column": 17 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18387, - "end": 18388, - "loc": { - "start": { - "line": 471, - "column": 2 - }, - "end": { - "line": 471, - "column": 3 - } - } - }, - { - "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": 18392, - "end": 18396, - "loc": { - "start": { - "line": 472, - "column": 2 - }, - "end": { - "line": 472, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18396, - "end": 18397, - "loc": { - "start": { - "line": 472, - "column": 6 - }, - "end": { - "line": 472, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "storedIDs", - "start": 18397, - "end": 18406, - "loc": { - "start": { - "line": 472, - "column": 7 - }, - "end": { - "line": 472, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18406, - "end": 18407, - "loc": { - "start": { - "line": 472, - "column": 16 - }, - "end": { - "line": 472, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "push", - "start": 18407, - "end": 18411, - "loc": { - "start": { - "line": 472, - "column": 17 - }, - "end": { - "line": 472, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18411, - "end": 18412, - "loc": { - "start": { - "line": 472, - "column": 21 - }, - "end": { - "line": 472, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 18412, - "end": 18414, - "loc": { - "start": { - "line": 472, - "column": 22 - }, - "end": { - "line": 472, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18414, - "end": 18415, - "loc": { - "start": { - "line": 472, - "column": 24 - }, - "end": { - "line": 472, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18415, - "end": 18416, - "loc": { - "start": { - "line": 472, - "column": 25 - }, - "end": { - "line": 472, - "column": 26 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 18420, - "end": 18426, - "loc": { - "start": { - "line": 473, - "column": 2 - }, - "end": { - "line": 473, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ID", - "start": 18427, - "end": 18429, - "loc": { - "start": { - "line": 473, - "column": 9 - }, - "end": { - "line": 473, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18429, - "end": 18430, - "loc": { - "start": { - "line": 473, - "column": 11 - }, - "end": { - "line": 473, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18433, - "end": 18434, - "loc": { - "start": { - "line": 474, - "column": 1 - }, - "end": { - "line": 474, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t ", - "start": 18437, - "end": 18690, - "loc": { - "start": { - "line": 475, - "column": 1 - }, - "end": { - "line": 481, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalToHex", - "start": 18693, - "end": 18705, - "loc": { - "start": { - "line": 482, - "column": 1 - }, - "end": { - "line": 482, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18705, - "end": 18706, - "loc": { - "start": { - "line": 482, - "column": 13 - }, - "end": { - "line": 482, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDecimal", - "start": 18706, - "end": 18714, - "loc": { - "start": { - "line": 482, - "column": 14 - }, - "end": { - "line": 482, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18714, - "end": 18715, - "loc": { - "start": { - "line": 482, - "column": 22 - }, - "end": { - "line": 482, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 18716, - "end": 18722, - "loc": { - "start": { - "line": 482, - "column": 24 - }, - "end": { - "line": 482, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18723, - "end": 18724, - "loc": { - "start": { - "line": 482, - "column": 31 - }, - "end": { - "line": 482, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 6, - "start": 18725, - "end": 18726, - "loc": { - "start": { - "line": 482, - "column": 33 - }, - "end": { - "line": 482, - "column": 34 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18726, - "end": 18727, - "loc": { - "start": { - "line": 482, - "column": 34 - }, - "end": { - "line": 482, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18728, - "end": 18729, - "loc": { - "start": { - "line": 482, - "column": 36 - }, - "end": { - "line": 482, - "column": 37 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 18733, - "end": 18739, - "loc": { - "start": { - "line": 483, - "column": 2 - }, - "end": { - "line": 483, - "column": 8 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 18740, - "end": 18743, - "loc": { - "start": { - "line": 483, - "column": 9 - }, - "end": { - "line": 483, - "column": 12 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 18744, - "end": 18745, - "loc": { - "start": { - "line": 483, - "column": 13 - }, - "end": { - "line": 483, - "column": 14 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18746, - "end": 18747, - "loc": { - "start": { - "line": 483, - "column": 15 - }, - "end": { - "line": 483, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDecimal", - "start": 18747, - "end": 18755, - "loc": { - "start": { - "line": 483, - "column": 16 - }, - "end": { - "line": 483, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 18756, - "end": 18757, - "loc": { - "start": { - "line": 483, - "column": 25 - }, - "end": { - "line": 483, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 18758, - "end": 18762, - "loc": { - "start": { - "line": 483, - "column": 27 - }, - "end": { - "line": 483, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18762, - "end": 18763, - "loc": { - "start": { - "line": 483, - "column": 31 - }, - "end": { - "line": 483, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pow", - "start": 18763, - "end": 18766, - "loc": { - "start": { - "line": 483, - "column": 32 - }, - "end": { - "line": 483, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18766, - "end": 18767, - "loc": { - "start": { - "line": 483, - "column": 35 - }, - "end": { - "line": 483, - "column": 36 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 18767, - "end": 18769, - "loc": { - "start": { - "line": 483, - "column": 36 - }, - "end": { - "line": 483, - "column": 38 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18769, - "end": 18770, - "loc": { - "start": { - "line": 483, - "column": 38 - }, - "end": { - "line": 483, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 18771, - "end": 18777, - "loc": { - "start": { - "line": 483, - "column": 40 - }, - "end": { - "line": 483, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18777, - "end": 18778, - "loc": { - "start": { - "line": 483, - "column": 46 - }, - "end": { - "line": 483, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18778, - "end": 18779, - "loc": { - "start": { - "line": 483, - "column": 47 - }, - "end": { - "line": 483, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18779, - "end": 18780, - "loc": { - "start": { - "line": 483, - "column": 48 - }, - "end": { - "line": 483, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 18780, - "end": 18788, - "loc": { - "start": { - "line": 483, - "column": 49 - }, - "end": { - "line": 483, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18788, - "end": 18789, - "loc": { - "start": { - "line": 483, - "column": 57 - }, - "end": { - "line": 483, - "column": 58 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 18789, - "end": 18791, - "loc": { - "start": { - "line": 483, - "column": 58 - }, - "end": { - "line": 483, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18791, - "end": 18792, - "loc": { - "start": { - "line": 483, - "column": 60 - }, - "end": { - "line": 483, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18792, - "end": 18793, - "loc": { - "start": { - "line": 483, - "column": 61 - }, - "end": { - "line": 483, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "slice", - "start": 18793, - "end": 18798, - "loc": { - "start": { - "line": 483, - "column": 62 - }, - "end": { - "line": 483, - "column": 67 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18798, - "end": 18799, - "loc": { - "start": { - "line": 483, - "column": 67 - }, - "end": { - "line": 483, - "column": 68 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 18799, - "end": 18800, - "loc": { - "start": { - "line": 483, - "column": 68 - }, - "end": { - "line": 483, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pChars", - "start": 18800, - "end": 18806, - "loc": { - "start": { - "line": 483, - "column": 69 - }, - "end": { - "line": 483, - "column": 75 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18806, - "end": 18807, - "loc": { - "start": { - "line": 483, - "column": 75 - }, - "end": { - "line": 483, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18807, - "end": 18808, - "loc": { - "start": { - "line": 483, - "column": 76 - }, - "end": { - "line": 483, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toUpperCase", - "start": 18808, - "end": 18819, - "loc": { - "start": { - "line": 483, - "column": 77 - }, - "end": { - "line": 483, - "column": 88 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18819, - "end": 18820, - "loc": { - "start": { - "line": 483, - "column": 88 - }, - "end": { - "line": 483, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18820, - "end": 18821, - "loc": { - "start": { - "line": 483, - "column": 89 - }, - "end": { - "line": 483, - "column": 90 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18821, - "end": 18822, - "loc": { - "start": { - "line": 483, - "column": 90 - }, - "end": { - "line": 483, - "column": 91 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18825, - "end": 18826, - "loc": { - "start": { - "line": 484, - "column": 1 - }, - "end": { - "line": 484, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t ", - "start": 18829, - "end": 19081, - "loc": { - "start": { - "line": 485, - "column": 1 - }, - "end": { - "line": 491, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "addIntensity", - "start": 19084, - "end": 19096, - "loc": { - "start": { - "line": 492, - "column": 1 - }, - "end": { - "line": 492, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19096, - "end": 19097, - "loc": { - "start": { - "line": 492, - "column": 13 - }, - "end": { - "line": 492, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 19097, - "end": 19103, - "loc": { - "start": { - "line": 492, - "column": 14 - }, - "end": { - "line": 492, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19103, - "end": 19104, - "loc": { - "start": { - "line": 492, - "column": 20 - }, - "end": { - "line": 492, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 19105, - "end": 19113, - "loc": { - "start": { - "line": 492, - "column": 22 - }, - "end": { - "line": 492, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19113, - "end": 19114, - "loc": { - "start": { - "line": 492, - "column": 30 - }, - "end": { - "line": 492, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19115, - "end": 19116, - "loc": { - "start": { - "line": 492, - "column": 32 - }, - "end": { - "line": 492, - "column": 33 - } - } - }, - { - "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": 19120, - "end": 19125, - "loc": { - "start": { - "line": 493, - "column": 2 - }, - "end": { - "line": 493, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 19126, - "end": 19129, - "loc": { - "start": { - "line": 493, - "column": 8 - }, - "end": { - "line": 493, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19130, - "end": 19131, - "loc": { - "start": { - "line": 493, - "column": 12 - }, - "end": { - "line": 493, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 19132, - "end": 19136, - "loc": { - "start": { - "line": 493, - "column": 14 - }, - "end": { - "line": 493, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19136, - "end": 19137, - "loc": { - "start": { - "line": 493, - "column": 18 - }, - "end": { - "line": 493, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 19137, - "end": 19146, - "loc": { - "start": { - "line": 493, - "column": 19 - }, - "end": { - "line": 493, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19146, - "end": 19147, - "loc": { - "start": { - "line": 493, - "column": 28 - }, - "end": { - "line": 493, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 19147, - "end": 19153, - "loc": { - "start": { - "line": 493, - "column": 29 - }, - "end": { - "line": 493, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19153, - "end": 19154, - "loc": { - "start": { - "line": 493, - "column": 35 - }, - "end": { - "line": 493, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19154, - "end": 19155, - "loc": { - "start": { - "line": 493, - "column": 36 - }, - "end": { - "line": 493, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 19155, - "end": 19163, - "loc": { - "start": { - "line": 493, - "column": 37 - }, - "end": { - "line": 493, - "column": 45 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19163, - "end": 19164, - "loc": { - "start": { - "line": 493, - "column": 45 - }, - "end": { - "line": 493, - "column": 46 - } - } - }, - { - "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": 19168, - "end": 19173, - "loc": { - "start": { - "line": 494, - "column": 2 - }, - "end": { - "line": 494, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 19174, - "end": 19175, - "loc": { - "start": { - "line": 494, - "column": 8 - }, - "end": { - "line": 494, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19176, - "end": 19177, - "loc": { - "start": { - "line": 494, - "column": 10 - }, - "end": { - "line": 494, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 19178, - "end": 19181, - "loc": { - "start": { - "line": 494, - "column": 12 - }, - "end": { - "line": 494, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19181, - "end": 19182, - "loc": { - "start": { - "line": 494, - "column": 15 - }, - "end": { - "line": 494, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19182, - "end": 19183, - "loc": { - "start": { - "line": 494, - "column": 16 - }, - "end": { - "line": 494, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19183, - "end": 19184, - "loc": { - "start": { - "line": 494, - "column": 17 - }, - "end": { - "line": 494, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19184, - "end": 19185, - "loc": { - "start": { - "line": 494, - "column": 18 - }, - "end": { - "line": 494, - "column": 19 - } - } - }, - { - "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": 19189, - "end": 19194, - "loc": { - "start": { - "line": 495, - "column": 2 - }, - "end": { - "line": 495, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 19195, - "end": 19196, - "loc": { - "start": { - "line": 495, - "column": 8 - }, - "end": { - "line": 495, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19197, - "end": 19198, - "loc": { - "start": { - "line": 495, - "column": 10 - }, - "end": { - "line": 495, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 19199, - "end": 19202, - "loc": { - "start": { - "line": 495, - "column": 12 - }, - "end": { - "line": 495, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19202, - "end": 19203, - "loc": { - "start": { - "line": 495, - "column": 15 - }, - "end": { - "line": 495, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 19203, - "end": 19204, - "loc": { - "start": { - "line": 495, - "column": 16 - }, - "end": { - "line": 495, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19204, - "end": 19205, - "loc": { - "start": { - "line": 495, - "column": 17 - }, - "end": { - "line": 495, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19205, - "end": 19206, - "loc": { - "start": { - "line": 495, - "column": 18 - }, - "end": { - "line": 495, - "column": 19 - } - } - }, - { - "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": 19210, - "end": 19215, - "loc": { - "start": { - "line": 496, - "column": 2 - }, - "end": { - "line": 496, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 19216, - "end": 19217, - "loc": { - "start": { - "line": 496, - "column": 8 - }, - "end": { - "line": 496, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19218, - "end": 19219, - "loc": { - "start": { - "line": 496, - "column": 10 - }, - "end": { - "line": 496, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 19220, - "end": 19223, - "loc": { - "start": { - "line": 496, - "column": 12 - }, - "end": { - "line": 496, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19223, - "end": 19224, - "loc": { - "start": { - "line": 496, - "column": 15 - }, - "end": { - "line": 496, - "column": 16 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 19224, - "end": 19225, - "loc": { - "start": { - "line": 496, - "column": 16 - }, - "end": { - "line": 496, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19225, - "end": 19226, - "loc": { - "start": { - "line": 496, - "column": 17 - }, - "end": { - "line": 496, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19226, - "end": 19227, - "loc": { - "start": { - "line": 496, - "column": 18 - }, - "end": { - "line": 496, - "column": 19 - } - } - }, - { - "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": 19231, - "end": 19234, - "loc": { - "start": { - "line": 497, - "column": 2 - }, - "end": { - "line": 497, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 19235, - "end": 19237, - "loc": { - "start": { - "line": 497, - "column": 6 - }, - "end": { - "line": 497, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19238, - "end": 19239, - "loc": { - "start": { - "line": 497, - "column": 9 - }, - "end": { - "line": 497, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19240, - "end": 19241, - "loc": { - "start": { - "line": 497, - "column": 11 - }, - "end": { - "line": 497, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19241, - "end": 19242, - "loc": { - "start": { - "line": 497, - "column": 12 - }, - "end": { - "line": 497, - "column": 13 - } - } - }, - { - "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": 19246, - "end": 19249, - "loc": { - "start": { - "line": 498, - "column": 2 - }, - "end": { - "line": 498, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 19250, - "end": 19252, - "loc": { - "start": { - "line": 498, - "column": 6 - }, - "end": { - "line": 498, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19253, - "end": 19254, - "loc": { - "start": { - "line": 498, - "column": 9 - }, - "end": { - "line": 498, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19255, - "end": 19256, - "loc": { - "start": { - "line": 498, - "column": 11 - }, - "end": { - "line": 498, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19256, - "end": 19257, - "loc": { - "start": { - "line": 498, - "column": 12 - }, - "end": { - "line": 498, - "column": 13 - } - } - }, - { - "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": 19261, - "end": 19264, - "loc": { - "start": { - "line": 499, - "column": 2 - }, - "end": { - "line": 499, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 19265, - "end": 19267, - "loc": { - "start": { - "line": 499, - "column": 6 - }, - "end": { - "line": 499, - "column": 8 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19268, - "end": 19269, - "loc": { - "start": { - "line": 499, - "column": 9 - }, - "end": { - "line": 499, - "column": 10 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19270, - "end": 19271, - "loc": { - "start": { - "line": 499, - "column": 11 - }, - "end": { - "line": 499, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19271, - "end": 19272, - "loc": { - "start": { - "line": 499, - "column": 12 - }, - "end": { - "line": 499, - "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": 19276, - "end": 19281, - "loc": { - "start": { - "line": 500, - "column": 2 - }, - "end": { - "line": 500, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 19282, - "end": 19287, - "loc": { - "start": { - "line": 500, - "column": 8 - }, - "end": { - "line": 500, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19288, - "end": 19289, - "loc": { - "start": { - "line": 500, - "column": 14 - }, - "end": { - "line": 500, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19290, - "end": 19291, - "loc": { - "start": { - "line": 500, - "column": 16 - }, - "end": { - "line": 500, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 19291, - "end": 19292, - "loc": { - "start": { - "line": 500, - "column": 17 - }, - "end": { - "line": 500, - "column": 18 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 19293, - "end": 19296, - "loc": { - "start": { - "line": 500, - "column": 19 - }, - "end": { - "line": 500, - "column": 22 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19297, - "end": 19298, - "loc": { - "start": { - "line": 500, - "column": 23 - }, - "end": { - "line": 500, - "column": 24 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 19299, - "end": 19301, - "loc": { - "start": { - "line": 500, - "column": 25 - }, - "end": { - "line": 500, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 19302, - "end": 19303, - "loc": { - "start": { - "line": 500, - "column": 28 - }, - "end": { - "line": 500, - "column": 29 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 19304, - "end": 19307, - "loc": { - "start": { - "line": 500, - "column": 30 - }, - "end": { - "line": 500, - "column": 33 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19308, - "end": 19309, - "loc": { - "start": { - "line": 500, - "column": 34 - }, - "end": { - "line": 500, - "column": 35 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 19310, - "end": 19312, - "loc": { - "start": { - "line": 500, - "column": 36 - }, - "end": { - "line": 500, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 19313, - "end": 19314, - "loc": { - "start": { - "line": 500, - "column": 39 - }, - "end": { - "line": 500, - "column": 40 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 19315, - "end": 19318, - "loc": { - "start": { - "line": 500, - "column": 41 - }, - "end": { - "line": 500, - "column": 44 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19319, - "end": 19320, - "loc": { - "start": { - "line": 500, - "column": 45 - }, - "end": { - "line": 500, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19320, - "end": 19321, - "loc": { - "start": { - "line": 500, - "column": 46 - }, - "end": { - "line": 500, - "column": 47 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19322, - "end": 19323, - "loc": { - "start": { - "line": 500, - "column": 48 - }, - "end": { - "line": 500, - "column": 49 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 19324, - "end": 19328, - "loc": { - "start": { - "line": 500, - "column": 50 - }, - "end": { - "line": 500, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19329, - "end": 19330, - "loc": { - "start": { - "line": 500, - "column": 55 - }, - "end": { - "line": 500, - "column": 56 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 19331, - "end": 19336, - "loc": { - "start": { - "line": 500, - "column": 57 - }, - "end": { - "line": 500, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19336, - "end": 19337, - "loc": { - "start": { - "line": 500, - "column": 62 - }, - "end": { - "line": 500, - "column": 63 - } - } - }, - { - "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": 19341, - "end": 19343, - "loc": { - "start": { - "line": 501, - "column": 2 - }, - "end": { - "line": 501, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19344, - "end": 19345, - "loc": { - "start": { - "line": 501, - "column": 5 - }, - "end": { - "line": 501, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 19345, - "end": 19346, - "loc": { - "start": { - "line": 501, - "column": 6 - }, - "end": { - "line": 501, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 19347, - "end": 19349, - "loc": { - "start": { - "line": 501, - "column": 8 - }, - "end": { - "line": 501, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 19350, - "end": 19355, - "loc": { - "start": { - "line": 501, - "column": 11 - }, - "end": { - "line": 501, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19355, - "end": 19356, - "loc": { - "start": { - "line": 501, - "column": 16 - }, - "end": { - "line": 501, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 19357, - "end": 19359, - "loc": { - "start": { - "line": 501, - "column": 18 - }, - "end": { - "line": 501, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19360, - "end": 19361, - "loc": { - "start": { - "line": 501, - "column": 21 - }, - "end": { - "line": 501, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 19362, - "end": 19363, - "loc": { - "start": { - "line": 501, - "column": 23 - }, - "end": { - "line": 501, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 19364, - "end": 19365, - "loc": { - "start": { - "line": 501, - "column": 25 - }, - "end": { - "line": 501, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 19366, - "end": 19370, - "loc": { - "start": { - "line": 501, - "column": 27 - }, - "end": { - "line": 501, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19370, - "end": 19371, - "loc": { - "start": { - "line": 501, - "column": 31 - }, - "end": { - "line": 501, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 19371, - "end": 19376, - "loc": { - "start": { - "line": 501, - "column": 32 - }, - "end": { - "line": 501, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19376, - "end": 19377, - "loc": { - "start": { - "line": 501, - "column": 37 - }, - "end": { - "line": 501, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19377, - "end": 19378, - "loc": { - "start": { - "line": 501, - "column": 38 - }, - "end": { - "line": 501, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 19378, - "end": 19381, - "loc": { - "start": { - "line": 501, - "column": 39 - }, - "end": { - "line": 501, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 19382, - "end": 19383, - "loc": { - "start": { - "line": 501, - "column": 43 - }, - "end": { - "line": 501, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 19384, - "end": 19392, - "loc": { - "start": { - "line": 501, - "column": 45 - }, - "end": { - "line": 501, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19392, - "end": 19393, - "loc": { - "start": { - "line": 501, - "column": 53 - }, - "end": { - "line": 501, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 19394, - "end": 19395, - "loc": { - "start": { - "line": 501, - "column": 55 - }, - "end": { - "line": 501, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 19396, - "end": 19399, - "loc": { - "start": { - "line": 501, - "column": 57 - }, - "end": { - "line": 501, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19399, - "end": 19400, - "loc": { - "start": { - "line": 501, - "column": 60 - }, - "end": { - "line": 501, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19400, - "end": 19401, - "loc": { - "start": { - "line": 501, - "column": 61 - }, - "end": { - "line": 501, - "column": 62 - } - } - }, - { - "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": 19405, - "end": 19407, - "loc": { - "start": { - "line": 502, - "column": 2 - }, - "end": { - "line": 502, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19408, - "end": 19409, - "loc": { - "start": { - "line": 502, - "column": 5 - }, - "end": { - "line": 502, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 19409, - "end": 19410, - "loc": { - "start": { - "line": 502, - "column": 6 - }, - "end": { - "line": 502, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 19411, - "end": 19413, - "loc": { - "start": { - "line": 502, - "column": 8 - }, - "end": { - "line": 502, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 19414, - "end": 19419, - "loc": { - "start": { - "line": 502, - "column": 11 - }, - "end": { - "line": 502, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19419, - "end": 19420, - "loc": { - "start": { - "line": 502, - "column": 16 - }, - "end": { - "line": 502, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 19421, - "end": 19423, - "loc": { - "start": { - "line": 502, - "column": 18 - }, - "end": { - "line": 502, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19424, - "end": 19425, - "loc": { - "start": { - "line": 502, - "column": 21 - }, - "end": { - "line": 502, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 19426, - "end": 19427, - "loc": { - "start": { - "line": 502, - "column": 23 - }, - "end": { - "line": 502, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 19428, - "end": 19429, - "loc": { - "start": { - "line": 502, - "column": 25 - }, - "end": { - "line": 502, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 19430, - "end": 19434, - "loc": { - "start": { - "line": 502, - "column": 27 - }, - "end": { - "line": 502, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19434, - "end": 19435, - "loc": { - "start": { - "line": 502, - "column": 31 - }, - "end": { - "line": 502, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 19435, - "end": 19440, - "loc": { - "start": { - "line": 502, - "column": 32 - }, - "end": { - "line": 502, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19440, - "end": 19441, - "loc": { - "start": { - "line": 502, - "column": 37 - }, - "end": { - "line": 502, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19441, - "end": 19442, - "loc": { - "start": { - "line": 502, - "column": 38 - }, - "end": { - "line": 502, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 19442, - "end": 19445, - "loc": { - "start": { - "line": 502, - "column": 39 - }, - "end": { - "line": 502, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 19446, - "end": 19447, - "loc": { - "start": { - "line": 502, - "column": 43 - }, - "end": { - "line": 502, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 19448, - "end": 19456, - "loc": { - "start": { - "line": 502, - "column": 45 - }, - "end": { - "line": 502, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19456, - "end": 19457, - "loc": { - "start": { - "line": 502, - "column": 53 - }, - "end": { - "line": 502, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 19458, - "end": 19459, - "loc": { - "start": { - "line": 502, - "column": 55 - }, - "end": { - "line": 502, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 19460, - "end": 19463, - "loc": { - "start": { - "line": 502, - "column": 57 - }, - "end": { - "line": 502, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19463, - "end": 19464, - "loc": { - "start": { - "line": 502, - "column": 60 - }, - "end": { - "line": 502, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19464, - "end": 19465, - "loc": { - "start": { - "line": 502, - "column": 61 - }, - "end": { - "line": 502, - "column": 62 - } - } - }, - { - "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": 19469, - "end": 19471, - "loc": { - "start": { - "line": 503, - "column": 2 - }, - "end": { - "line": 503, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19472, - "end": 19473, - "loc": { - "start": { - "line": 503, - "column": 5 - }, - "end": { - "line": 503, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 19473, - "end": 19474, - "loc": { - "start": { - "line": 503, - "column": 6 - }, - "end": { - "line": 503, - "column": 7 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 19475, - "end": 19477, - "loc": { - "start": { - "line": 503, - "column": 8 - }, - "end": { - "line": 503, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "black", - "start": 19478, - "end": 19483, - "loc": { - "start": { - "line": 503, - "column": 11 - }, - "end": { - "line": 503, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19483, - "end": 19484, - "loc": { - "start": { - "line": 503, - "column": 16 - }, - "end": { - "line": 503, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 19485, - "end": 19487, - "loc": { - "start": { - "line": 503, - "column": 18 - }, - "end": { - "line": 503, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19488, - "end": 19489, - "loc": { - "start": { - "line": 503, - "column": 21 - }, - "end": { - "line": 503, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 19490, - "end": 19491, - "loc": { - "start": { - "line": 503, - "column": 23 - }, - "end": { - "line": 503, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 19492, - "end": 19493, - "loc": { - "start": { - "line": 503, - "column": 25 - }, - "end": { - "line": 503, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 19494, - "end": 19498, - "loc": { - "start": { - "line": 503, - "column": 27 - }, - "end": { - "line": 503, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19498, - "end": 19499, - "loc": { - "start": { - "line": 503, - "column": 31 - }, - "end": { - "line": 503, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 19499, - "end": 19504, - "loc": { - "start": { - "line": 503, - "column": 32 - }, - "end": { - "line": 503, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19504, - "end": 19505, - "loc": { - "start": { - "line": 503, - "column": 37 - }, - "end": { - "line": 503, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19505, - "end": 19506, - "loc": { - "start": { - "line": 503, - "column": 38 - }, - "end": { - "line": 503, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 19506, - "end": 19509, - "loc": { - "start": { - "line": 503, - "column": 39 - }, - "end": { - "line": 503, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 19510, - "end": 19511, - "loc": { - "start": { - "line": 503, - "column": 43 - }, - "end": { - "line": 503, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPercent", - "start": 19512, - "end": 19520, - "loc": { - "start": { - "line": 503, - "column": 45 - }, - "end": { - "line": 503, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19520, - "end": 19521, - "loc": { - "start": { - "line": 503, - "column": 53 - }, - "end": { - "line": 503, - "column": 54 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 19522, - "end": 19523, - "loc": { - "start": { - "line": 503, - "column": 55 - }, - "end": { - "line": 503, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 19524, - "end": 19527, - "loc": { - "start": { - "line": 503, - "column": 57 - }, - "end": { - "line": 503, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19527, - "end": 19528, - "loc": { - "start": { - "line": 503, - "column": 60 - }, - "end": { - "line": 503, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19528, - "end": 19529, - "loc": { - "start": { - "line": 503, - "column": 61 - }, - "end": { - "line": 503, - "column": 62 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 19533, - "end": 19539, - "loc": { - "start": { - "line": 504, - "column": 2 - }, - "end": { - "line": 504, - "column": 8 - } - } - }, - { - "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": 19540, - "end": 19544, - "loc": { - "start": { - "line": 504, - "column": 9 - }, - "end": { - "line": 504, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19544, - "end": 19545, - "loc": { - "start": { - "line": 504, - "column": 13 - }, - "end": { - "line": 504, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 19545, - "end": 19554, - "loc": { - "start": { - "line": 504, - "column": 14 - }, - "end": { - "line": 504, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19554, - "end": 19555, - "loc": { - "start": { - "line": 504, - "column": 23 - }, - "end": { - "line": 504, - "column": 24 - } - } - }, - { - "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": 19555, - "end": 19559, - "loc": { - "start": { - "line": 504, - "column": 24 - }, - "end": { - "line": 504, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19559, - "end": 19560, - "loc": { - "start": { - "line": 504, - "column": 28 - }, - "end": { - "line": 504, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 19560, - "end": 19565, - "loc": { - "start": { - "line": 504, - "column": 29 - }, - "end": { - "line": 504, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19565, - "end": 19566, - "loc": { - "start": { - "line": 504, - "column": 34 - }, - "end": { - "line": 504, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rr", - "start": 19566, - "end": 19568, - "loc": { - "start": { - "line": 504, - "column": 35 - }, - "end": { - "line": 504, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19568, - "end": 19569, - "loc": { - "start": { - "line": 504, - "column": 37 - }, - "end": { - "line": 504, - "column": 38 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19570, - "end": 19571, - "loc": { - "start": { - "line": 504, - "column": 39 - }, - "end": { - "line": 504, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19571, - "end": 19572, - "loc": { - "start": { - "line": 504, - "column": 40 - }, - "end": { - "line": 504, - "column": 41 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 19573, - "end": 19576, - "loc": { - "start": { - "line": 504, - "column": 42 - }, - "end": { - "line": 504, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19576, - "end": 19577, - "loc": { - "start": { - "line": 504, - "column": 45 - }, - "end": { - "line": 504, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19577, - "end": 19578, - "loc": { - "start": { - "line": 504, - "column": 46 - }, - "end": { - "line": 504, - "column": 47 - } - } - }, - { - "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": 19579, - "end": 19583, - "loc": { - "start": { - "line": 504, - "column": 48 - }, - "end": { - "line": 504, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19583, - "end": 19584, - "loc": { - "start": { - "line": 504, - "column": 52 - }, - "end": { - "line": 504, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 19584, - "end": 19589, - "loc": { - "start": { - "line": 504, - "column": 53 - }, - "end": { - "line": 504, - "column": 58 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19589, - "end": 19590, - "loc": { - "start": { - "line": 504, - "column": 58 - }, - "end": { - "line": 504, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rg", - "start": 19590, - "end": 19592, - "loc": { - "start": { - "line": 504, - "column": 59 - }, - "end": { - "line": 504, - "column": 61 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19592, - "end": 19593, - "loc": { - "start": { - "line": 504, - "column": 61 - }, - "end": { - "line": 504, - "column": 62 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19594, - "end": 19595, - "loc": { - "start": { - "line": 504, - "column": 63 - }, - "end": { - "line": 504, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19595, - "end": 19596, - "loc": { - "start": { - "line": 504, - "column": 64 - }, - "end": { - "line": 504, - "column": 65 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 19597, - "end": 19600, - "loc": { - "start": { - "line": 504, - "column": 66 - }, - "end": { - "line": 504, - "column": 69 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19600, - "end": 19601, - "loc": { - "start": { - "line": 504, - "column": 69 - }, - "end": { - "line": 504, - "column": 70 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19601, - "end": 19602, - "loc": { - "start": { - "line": 504, - "column": 70 - }, - "end": { - "line": 504, - "column": 71 - } - } - }, - { - "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": 19603, - "end": 19607, - "loc": { - "start": { - "line": 504, - "column": 72 - }, - "end": { - "line": 504, - "column": 76 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19607, - "end": 19608, - "loc": { - "start": { - "line": 504, - "column": 76 - }, - "end": { - "line": 504, - "column": 77 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 19608, - "end": 19613, - "loc": { - "start": { - "line": 504, - "column": 77 - }, - "end": { - "line": 504, - "column": 82 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19613, - "end": 19614, - "loc": { - "start": { - "line": 504, - "column": 82 - }, - "end": { - "line": 504, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rb", - "start": 19614, - "end": 19616, - "loc": { - "start": { - "line": 504, - "column": 83 - }, - "end": { - "line": 504, - "column": 85 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19616, - "end": 19617, - "loc": { - "start": { - "line": 504, - "column": 85 - }, - "end": { - "line": 504, - "column": 86 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19618, - "end": 19619, - "loc": { - "start": { - "line": 504, - "column": 87 - }, - "end": { - "line": 504, - "column": 88 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19619, - "end": 19620, - "loc": { - "start": { - "line": 504, - "column": 88 - }, - "end": { - "line": 504, - "column": 89 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 19621, - "end": 19624, - "loc": { - "start": { - "line": 504, - "column": 90 - }, - "end": { - "line": 504, - "column": 93 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19624, - "end": 19625, - "loc": { - "start": { - "line": 504, - "column": 93 - }, - "end": { - "line": 504, - "column": 94 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19625, - "end": 19626, - "loc": { - "start": { - "line": 504, - "column": 94 - }, - "end": { - "line": 504, - "column": 95 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19626, - "end": 19627, - "loc": { - "start": { - "line": 504, - "column": 95 - }, - "end": { - "line": 504, - "column": 96 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 19627, - "end": 19630, - "loc": { - "start": { - "line": 504, - "column": 96 - }, - "end": { - "line": 504, - "column": 99 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19633, - "end": 19634, - "loc": { - "start": { - "line": 505, - "column": 1 - }, - "end": { - "line": 505, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 19637, - "end": 19945, - "loc": { - "start": { - "line": 506, - "column": 1 - }, - "end": { - "line": 512, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToHex", - "start": 19948, - "end": 19956, - "loc": { - "start": { - "line": 513, - "column": 1 - }, - "end": { - "line": 513, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19956, - "end": 19957, - "loc": { - "start": { - "line": 513, - "column": 9 - }, - "end": { - "line": 513, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 19957, - "end": 19959, - "loc": { - "start": { - "line": 513, - "column": 10 - }, - "end": { - "line": 513, - "column": 12 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19959, - "end": 19960, - "loc": { - "start": { - "line": 513, - "column": 12 - }, - "end": { - "line": 513, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 19961, - "end": 19963, - "loc": { - "start": { - "line": 513, - "column": 14 - }, - "end": { - "line": 513, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19963, - "end": 19964, - "loc": { - "start": { - "line": 513, - "column": 16 - }, - "end": { - "line": 513, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 19965, - "end": 19967, - "loc": { - "start": { - "line": 513, - "column": 18 - }, - "end": { - "line": 513, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19967, - "end": 19968, - "loc": { - "start": { - "line": 513, - "column": 20 - }, - "end": { - "line": 513, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19969, - "end": 19970, - "loc": { - "start": { - "line": 513, - "column": 22 - }, - "end": { - "line": 513, - "column": 23 - } - } - }, - { - "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": 19974, - "end": 19979, - "loc": { - "start": { - "line": 514, - "column": 2 - }, - "end": { - "line": 514, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 19980, - "end": 19981, - "loc": { - "start": { - "line": 514, - "column": 8 - }, - "end": { - "line": 514, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 19982, - "end": 19983, - "loc": { - "start": { - "line": 514, - "column": 10 - }, - "end": { - "line": 514, - "column": 11 - } - } - }, - { - "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": 19984, - "end": 19988, - "loc": { - "start": { - "line": 514, - "column": 12 - }, - "end": { - "line": 514, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19988, - "end": 19989, - "loc": { - "start": { - "line": 514, - "column": 16 - }, - "end": { - "line": 514, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 19989, - "end": 19994, - "loc": { - "start": { - "line": 514, - "column": 17 - }, - "end": { - "line": 514, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19994, - "end": 19995, - "loc": { - "start": { - "line": 514, - "column": 22 - }, - "end": { - "line": 514, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 19995, - "end": 19997, - "loc": { - "start": { - "line": 514, - "column": 23 - }, - "end": { - "line": 514, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19997, - "end": 19998, - "loc": { - "start": { - "line": 514, - "column": 25 - }, - "end": { - "line": 514, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 19999, - "end": 20000, - "loc": { - "start": { - "line": 514, - "column": 27 - }, - "end": { - "line": 514, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20000, - "end": 20001, - "loc": { - "start": { - "line": 514, - "column": 28 - }, - "end": { - "line": 514, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 20002, - "end": 20005, - "loc": { - "start": { - "line": 514, - "column": 30 - }, - "end": { - "line": 514, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20005, - "end": 20006, - "loc": { - "start": { - "line": 514, - "column": 33 - }, - "end": { - "line": 514, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20006, - "end": 20007, - "loc": { - "start": { - "line": 514, - "column": 34 - }, - "end": { - "line": 514, - "column": 35 - } - } - }, - { - "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": 20011, - "end": 20016, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 20017, - "end": 20018, - "loc": { - "start": { - "line": 515, - "column": 8 - }, - "end": { - "line": 515, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20019, - "end": 20020, - "loc": { - "start": { - "line": 515, - "column": 10 - }, - "end": { - "line": 515, - "column": 11 - } - } - }, - { - "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": 20021, - "end": 20025, - "loc": { - "start": { - "line": 515, - "column": 12 - }, - "end": { - "line": 515, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20025, - "end": 20026, - "loc": { - "start": { - "line": 515, - "column": 16 - }, - "end": { - "line": 515, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 20026, - "end": 20031, - "loc": { - "start": { - "line": 515, - "column": 17 - }, - "end": { - "line": 515, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20031, - "end": 20032, - "loc": { - "start": { - "line": 515, - "column": 22 - }, - "end": { - "line": 515, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 20032, - "end": 20034, - "loc": { - "start": { - "line": 515, - "column": 23 - }, - "end": { - "line": 515, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20034, - "end": 20035, - "loc": { - "start": { - "line": 515, - "column": 25 - }, - "end": { - "line": 515, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 20036, - "end": 20037, - "loc": { - "start": { - "line": 515, - "column": 27 - }, - "end": { - "line": 515, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20037, - "end": 20038, - "loc": { - "start": { - "line": 515, - "column": 28 - }, - "end": { - "line": 515, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 20039, - "end": 20042, - "loc": { - "start": { - "line": 515, - "column": 30 - }, - "end": { - "line": 515, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20042, - "end": 20043, - "loc": { - "start": { - "line": 515, - "column": 33 - }, - "end": { - "line": 515, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20043, - "end": 20044, - "loc": { - "start": { - "line": 515, - "column": 34 - }, - "end": { - "line": 515, - "column": 35 - } - } - }, - { - "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": 20048, - "end": 20053, - "loc": { - "start": { - "line": 516, - "column": 2 - }, - "end": { - "line": 516, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 20054, - "end": 20055, - "loc": { - "start": { - "line": 516, - "column": 8 - }, - "end": { - "line": 516, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20056, - "end": 20057, - "loc": { - "start": { - "line": 516, - "column": 10 - }, - "end": { - "line": 516, - "column": 11 - } - } - }, - { - "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": 20058, - "end": 20062, - "loc": { - "start": { - "line": 516, - "column": 12 - }, - "end": { - "line": 516, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20062, - "end": 20063, - "loc": { - "start": { - "line": 516, - "column": 16 - }, - "end": { - "line": 516, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 20063, - "end": 20068, - "loc": { - "start": { - "line": 516, - "column": 17 - }, - "end": { - "line": 516, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20068, - "end": 20069, - "loc": { - "start": { - "line": 516, - "column": 22 - }, - "end": { - "line": 516, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 20069, - "end": 20071, - "loc": { - "start": { - "line": 516, - "column": 23 - }, - "end": { - "line": 516, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20071, - "end": 20072, - "loc": { - "start": { - "line": 516, - "column": 25 - }, - "end": { - "line": 516, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 20073, - "end": 20074, - "loc": { - "start": { - "line": 516, - "column": 27 - }, - "end": { - "line": 516, - "column": 28 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20074, - "end": 20075, - "loc": { - "start": { - "line": 516, - "column": 28 - }, - "end": { - "line": 516, - "column": 29 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 20076, - "end": 20079, - "loc": { - "start": { - "line": 516, - "column": 30 - }, - "end": { - "line": 516, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20079, - "end": 20080, - "loc": { - "start": { - "line": 516, - "column": 33 - }, - "end": { - "line": 516, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20080, - "end": 20081, - "loc": { - "start": { - "line": 516, - "column": 34 - }, - "end": { - "line": 516, - "column": 35 - } - } - }, - { - "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": 20085, - "end": 20090, - "loc": { - "start": { - "line": 517, - "column": 2 - }, - "end": { - "line": 517, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "craftString", - "start": 20091, - "end": 20102, - "loc": { - "start": { - "line": 517, - "column": 8 - }, - "end": { - "line": 517, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20103, - "end": 20104, - "loc": { - "start": { - "line": 517, - "column": 20 - }, - "end": { - "line": 517, - "column": 21 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 20105, - "end": 20113, - "loc": { - "start": { - "line": 517, - "column": 22 - }, - "end": { - "line": 517, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20113, - "end": 20114, - "loc": { - "start": { - "line": 517, - "column": 30 - }, - "end": { - "line": 517, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 20114, - "end": 20120, - "loc": { - "start": { - "line": 517, - "column": 31 - }, - "end": { - "line": 517, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20120, - "end": 20121, - "loc": { - "start": { - "line": 517, - "column": 37 - }, - "end": { - "line": 517, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20122, - "end": 20123, - "loc": { - "start": { - "line": 517, - "column": 39 - }, - "end": { - "line": 517, - "column": 40 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 20128, - "end": 20134, - "loc": { - "start": { - "line": 518, - "column": 3 - }, - "end": { - "line": 518, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor", - "start": 20135, - "end": 20141, - "loc": { - "start": { - "line": 518, - "column": 10 - }, - "end": { - "line": 518, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20141, - "end": 20142, - "loc": { - "start": { - "line": 518, - "column": 16 - }, - "end": { - "line": 518, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toString", - "start": 20142, - "end": 20150, - "loc": { - "start": { - "line": 518, - "column": 17 - }, - "end": { - "line": 518, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20150, - "end": 20151, - "loc": { - "start": { - "line": 518, - "column": 25 - }, - "end": { - "line": 518, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 20151, - "end": 20153, - "loc": { - "start": { - "line": 518, - "column": 26 - }, - "end": { - "line": 518, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20153, - "end": 20154, - "loc": { - "start": { - "line": 518, - "column": 28 - }, - "end": { - "line": 518, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20154, - "end": 20155, - "loc": { - "start": { - "line": 518, - "column": 29 - }, - "end": { - "line": 518, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "padStart", - "start": 20155, - "end": 20163, - "loc": { - "start": { - "line": 518, - "column": 30 - }, - "end": { - "line": 518, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20163, - "end": 20164, - "loc": { - "start": { - "line": 518, - "column": 38 - }, - "end": { - "line": 518, - "column": 39 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 20164, - "end": 20165, - "loc": { - "start": { - "line": 518, - "column": 39 - }, - "end": { - "line": 518, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20165, - "end": 20166, - "loc": { - "start": { - "line": 518, - "column": 40 - }, - "end": { - "line": 518, - "column": 41 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "0", - "start": 20167, - "end": 20170, - "loc": { - "start": { - "line": 518, - "column": 42 - }, - "end": { - "line": 518, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20170, - "end": 20171, - "loc": { - "start": { - "line": 518, - "column": 45 - }, - "end": { - "line": 518, - "column": 46 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20171, - "end": 20172, - "loc": { - "start": { - "line": 518, - "column": 46 - }, - "end": { - "line": 518, - "column": 47 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20176, - "end": 20177, - "loc": { - "start": { - "line": 519, - "column": 2 - }, - "end": { - "line": 519, - "column": 3 - } - } - }, - { - "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": 20181, - "end": 20186, - "loc": { - "start": { - "line": 520, - "column": 2 - }, - "end": { - "line": 520, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 20187, - "end": 20190, - "loc": { - "start": { - "line": 520, - "column": 8 - }, - "end": { - "line": 520, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20191, - "end": 20192, - "loc": { - "start": { - "line": 520, - "column": 12 - }, - "end": { - "line": 520, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 20193, - "end": 20196, - "loc": { - "start": { - "line": 520, - "column": 14 - }, - "end": { - "line": 520, - "column": 17 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 20197, - "end": 20198, - "loc": { - "start": { - "line": 520, - "column": 18 - }, - "end": { - "line": 520, - "column": 19 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20199, - "end": 20200, - "loc": { - "start": { - "line": 520, - "column": 20 - }, - "end": { - "line": 520, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 20200, - "end": 20201, - "loc": { - "start": { - "line": 520, - "column": 21 - }, - "end": { - "line": 520, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20201, - "end": 20202, - "loc": { - "start": { - "line": 520, - "column": 22 - }, - "end": { - "line": 520, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 20203, - "end": 20204, - "loc": { - "start": { - "line": 520, - "column": 24 - }, - "end": { - "line": 520, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20204, - "end": 20205, - "loc": { - "start": { - "line": 520, - "column": 25 - }, - "end": { - "line": 520, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 20206, - "end": 20207, - "loc": { - "start": { - "line": 520, - "column": 27 - }, - "end": { - "line": 520, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20207, - "end": 20208, - "loc": { - "start": { - "line": 520, - "column": 28 - }, - "end": { - "line": 520, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20208, - "end": 20209, - "loc": { - "start": { - "line": 520, - "column": 29 - }, - "end": { - "line": 520, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "map", - "start": 20209, - "end": 20212, - "loc": { - "start": { - "line": 520, - "column": 30 - }, - "end": { - "line": 520, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20212, - "end": 20213, - "loc": { - "start": { - "line": 520, - "column": 33 - }, - "end": { - "line": 520, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "craftString", - "start": 20213, - "end": 20224, - "loc": { - "start": { - "line": 520, - "column": 34 - }, - "end": { - "line": 520, - "column": 45 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20224, - "end": 20225, - "loc": { - "start": { - "line": 520, - "column": 45 - }, - "end": { - "line": 520, - "column": 46 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20225, - "end": 20226, - "loc": { - "start": { - "line": 520, - "column": 46 - }, - "end": { - "line": 520, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "join", - "start": 20226, - "end": 20230, - "loc": { - "start": { - "line": 520, - "column": 47 - }, - "end": { - "line": 520, - "column": 51 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20230, - "end": 20231, - "loc": { - "start": { - "line": 520, - "column": 51 - }, - "end": { - "line": 520, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 20231, - "end": 20233, - "loc": { - "start": { - "line": 520, - "column": 52 - }, - "end": { - "line": 520, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20233, - "end": 20234, - "loc": { - "start": { - "line": 520, - "column": 54 - }, - "end": { - "line": 520, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20234, - "end": 20235, - "loc": { - "start": { - "line": 520, - "column": 55 - }, - "end": { - "line": 520, - "column": 56 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 20239, - "end": 20245, - "loc": { - "start": { - "line": 521, - "column": 2 - }, - "end": { - "line": 521, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 20246, - "end": 20249, - "loc": { - "start": { - "line": 521, - "column": 9 - }, - "end": { - "line": 521, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20249, - "end": 20250, - "loc": { - "start": { - "line": 521, - "column": 12 - }, - "end": { - "line": 521, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20255, - "end": 20256, - "loc": { - "start": { - "line": 522, - "column": 1 - }, - "end": { - "line": 522, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t", - "start": 20259, - "end": 20533, - "loc": { - "start": { - "line": 523, - "column": 1 - }, - "end": { - "line": 528, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToRgb", - "start": 20536, - "end": 20544, - "loc": { - "start": { - "line": 529, - "column": 1 - }, - "end": { - "line": 529, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20544, - "end": 20545, - "loc": { - "start": { - "line": 529, - "column": 9 - }, - "end": { - "line": 529, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20545, - "end": 20549, - "loc": { - "start": { - "line": 529, - "column": 10 - }, - "end": { - "line": 529, - "column": 14 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20549, - "end": 20550, - "loc": { - "start": { - "line": 529, - "column": 14 - }, - "end": { - "line": 529, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20551, - "end": 20552, - "loc": { - "start": { - "line": 529, - "column": 16 - }, - "end": { - "line": 529, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20556, - "end": 20560, - "loc": { - "start": { - "line": 530, - "column": 2 - }, - "end": { - "line": 530, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20561, - "end": 20562, - "loc": { - "start": { - "line": 530, - "column": 7 - }, - "end": { - "line": 530, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20563, - "end": 20567, - "loc": { - "start": { - "line": 530, - "column": 9 - }, - "end": { - "line": 530, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20567, - "end": 20568, - "loc": { - "start": { - "line": 530, - "column": 13 - }, - "end": { - "line": 530, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 20568, - "end": 20575, - "loc": { - "start": { - "line": 530, - "column": 14 - }, - "end": { - "line": 530, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20575, - "end": 20576, - "loc": { - "start": { - "line": 530, - "column": 21 - }, - "end": { - "line": 530, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 20576, - "end": 20579, - "loc": { - "start": { - "line": 530, - "column": 22 - }, - "end": { - "line": 530, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20579, - "end": 20580, - "loc": { - "start": { - "line": 530, - "column": 25 - }, - "end": { - "line": 530, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 20581, - "end": 20583, - "loc": { - "start": { - "line": 530, - "column": 27 - }, - "end": { - "line": 530, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20583, - "end": 20584, - "loc": { - "start": { - "line": 530, - "column": 29 - }, - "end": { - "line": 530, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20584, - "end": 20585, - "loc": { - "start": { - "line": 530, - "column": 30 - }, - "end": { - "line": 530, - "column": 31 - } - } - }, - { - "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": 20589, - "end": 20591, - "loc": { - "start": { - "line": 531, - "column": 2 - }, - "end": { - "line": 531, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20592, - "end": 20593, - "loc": { - "start": { - "line": 531, - "column": 5 - }, - "end": { - "line": 531, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20593, - "end": 20597, - "loc": { - "start": { - "line": 531, - "column": 6 - }, - "end": { - "line": 531, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20597, - "end": 20598, - "loc": { - "start": { - "line": 531, - "column": 10 - }, - "end": { - "line": 531, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 20598, - "end": 20604, - "loc": { - "start": { - "line": 531, - "column": 11 - }, - "end": { - "line": 531, - "column": 17 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 20605, - "end": 20608, - "loc": { - "start": { - "line": 531, - "column": 18 - }, - "end": { - "line": 531, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 3, - "start": 20609, - "end": 20610, - "loc": { - "start": { - "line": 531, - "column": 22 - }, - "end": { - "line": 531, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20610, - "end": 20611, - "loc": { - "start": { - "line": 531, - "column": 23 - }, - "end": { - "line": 531, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20612, - "end": 20613, - "loc": { - "start": { - "line": 531, - "column": 25 - }, - "end": { - "line": 531, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20618, - "end": 20622, - "loc": { - "start": { - "line": 532, - "column": 3 - }, - "end": { - "line": 532, - "column": 7 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20623, - "end": 20624, - "loc": { - "start": { - "line": 532, - "column": 8 - }, - "end": { - "line": 532, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20625, - "end": 20629, - "loc": { - "start": { - "line": 532, - "column": 10 - }, - "end": { - "line": 532, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20629, - "end": 20630, - "loc": { - "start": { - "line": 532, - "column": 14 - }, - "end": { - "line": 532, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 20630, - "end": 20637, - "loc": { - "start": { - "line": 532, - "column": 15 - }, - "end": { - "line": 532, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20637, - "end": 20638, - "loc": { - "start": { - "line": 532, - "column": 22 - }, - "end": { - "line": 532, - "column": 23 - } - } - }, - { - "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": 20638, - "end": 20641, - "loc": { - "start": { - "line": 532, - "column": 23 - }, - "end": { - "line": 532, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "RegExp", - "start": 20642, - "end": 20648, - "loc": { - "start": { - "line": 532, - "column": 27 - }, - "end": { - "line": 532, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20648, - "end": 20649, - "loc": { - "start": { - "line": 532, - "column": 33 - }, - "end": { - "line": 532, - "column": 34 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "(.)", - "start": 20649, - "end": 20654, - "loc": { - "start": { - "line": 532, - "column": 34 - }, - "end": { - "line": 532, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20654, - "end": 20655, - "loc": { - "start": { - "line": 532, - "column": 39 - }, - "end": { - "line": 532, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 20656, - "end": 20659, - "loc": { - "start": { - "line": 532, - "column": 41 - }, - "end": { - "line": 532, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20659, - "end": 20660, - "loc": { - "start": { - "line": 532, - "column": 44 - }, - "end": { - "line": 532, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20660, - "end": 20661, - "loc": { - "start": { - "line": 532, - "column": 45 - }, - "end": { - "line": 532, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "$1$1", - "start": 20662, - "end": 20668, - "loc": { - "start": { - "line": 532, - "column": 47 - }, - "end": { - "line": 532, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20668, - "end": 20669, - "loc": { - "start": { - "line": 532, - "column": 53 - }, - "end": { - "line": 532, - "column": 54 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20669, - "end": 20670, - "loc": { - "start": { - "line": 532, - "column": 54 - }, - "end": { - "line": 532, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20674, - "end": 20675, - "loc": { - "start": { - "line": 533, - "column": 2 - }, - "end": { - "line": 533, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20679, - "end": 20683, - "loc": { - "start": { - "line": 534, - "column": 2 - }, - "end": { - "line": 534, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20684, - "end": 20685, - "loc": { - "start": { - "line": 534, - "column": 7 - }, - "end": { - "line": 534, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20686, - "end": 20690, - "loc": { - "start": { - "line": 534, - "column": 9 - }, - "end": { - "line": 534, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20690, - "end": 20691, - "loc": { - "start": { - "line": 534, - "column": 13 - }, - "end": { - "line": 534, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "match", - "start": 20691, - "end": 20696, - "loc": { - "start": { - "line": 534, - "column": 14 - }, - "end": { - "line": 534, - "column": 19 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20696, - "end": 20697, - "loc": { - "start": { - "line": 534, - "column": 19 - }, - "end": { - "line": 534, - "column": 20 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 20697, - "end": 20700, - "loc": { - "start": { - "line": 534, - "column": 20 - }, - "end": { - "line": 534, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "RegExp", - "start": 20701, - "end": 20707, - "loc": { - "start": { - "line": 534, - "column": 24 - }, - "end": { - "line": 534, - "column": 30 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20707, - "end": 20708, - "loc": { - "start": { - "line": 534, - "column": 30 - }, - "end": { - "line": 534, - "column": 31 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "..", - "start": 20708, - "end": 20712, - "loc": { - "start": { - "line": 534, - "column": 31 - }, - "end": { - "line": 534, - "column": 35 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20712, - "end": 20713, - "loc": { - "start": { - "line": 534, - "column": 35 - }, - "end": { - "line": 534, - "column": 36 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 20714, - "end": 20717, - "loc": { - "start": { - "line": 534, - "column": 37 - }, - "end": { - "line": 534, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20717, - "end": 20718, - "loc": { - "start": { - "line": 534, - "column": 40 - }, - "end": { - "line": 534, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20718, - "end": 20719, - "loc": { - "start": { - "line": 534, - "column": 41 - }, - "end": { - "line": 534, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20719, - "end": 20720, - "loc": { - "start": { - "line": 534, - "column": 42 - }, - "end": { - "line": 534, - "column": 43 - } - } - }, - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 20724, - "end": 20729, - "loc": { - "start": { - "line": 535, - "column": 2 - }, - "end": { - "line": 535, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 20730, - "end": 20731, - "loc": { - "start": { - "line": 535, - "column": 8 - }, - "end": { - "line": 535, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20732, - "end": 20733, - "loc": { - "start": { - "line": 535, - "column": 10 - }, - "end": { - "line": 535, - "column": 11 - } - } - }, - { - "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": 20734, - "end": 20738, - "loc": { - "start": { - "line": 535, - "column": 12 - }, - "end": { - "line": 535, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20738, - "end": 20739, - "loc": { - "start": { - "line": 535, - "column": 16 - }, - "end": { - "line": 535, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 20739, - "end": 20744, - "loc": { - "start": { - "line": 535, - "column": 17 - }, - "end": { - "line": 535, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20744, - "end": 20745, - "loc": { - "start": { - "line": 535, - "column": 22 - }, - "end": { - "line": 535, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 20745, - "end": 20753, - "loc": { - "start": { - "line": 535, - "column": 23 - }, - "end": { - "line": 535, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20753, - "end": 20754, - "loc": { - "start": { - "line": 535, - "column": 31 - }, - "end": { - "line": 535, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20754, - "end": 20758, - "loc": { - "start": { - "line": 535, - "column": 32 - }, - "end": { - "line": 535, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20758, - "end": 20759, - "loc": { - "start": { - "line": 535, - "column": 36 - }, - "end": { - "line": 535, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 20759, - "end": 20760, - "loc": { - "start": { - "line": 535, - "column": 37 - }, - "end": { - "line": 535, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20760, - "end": 20761, - "loc": { - "start": { - "line": 535, - "column": 38 - }, - "end": { - "line": 535, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20761, - "end": 20762, - "loc": { - "start": { - "line": 535, - "column": 39 - }, - "end": { - "line": 535, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 20763, - "end": 20765, - "loc": { - "start": { - "line": 535, - "column": 41 - }, - "end": { - "line": 535, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20765, - "end": 20766, - "loc": { - "start": { - "line": 535, - "column": 43 - }, - "end": { - "line": 535, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20766, - "end": 20767, - "loc": { - "start": { - "line": 535, - "column": 44 - }, - "end": { - "line": 535, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 20768, - "end": 20769, - "loc": { - "start": { - "line": 535, - "column": 46 - }, - "end": { - "line": 535, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20769, - "end": 20770, - "loc": { - "start": { - "line": 535, - "column": 47 - }, - "end": { - "line": 535, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 20771, - "end": 20774, - "loc": { - "start": { - "line": 535, - "column": 49 - }, - "end": { - "line": 535, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20774, - "end": 20775, - "loc": { - "start": { - "line": 535, - "column": 52 - }, - "end": { - "line": 535, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20775, - "end": 20776, - "loc": { - "start": { - "line": 535, - "column": 53 - }, - "end": { - "line": 535, - "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": 20780, - "end": 20785, - "loc": { - "start": { - "line": 536, - "column": 2 - }, - "end": { - "line": 536, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 20786, - "end": 20787, - "loc": { - "start": { - "line": 536, - "column": 8 - }, - "end": { - "line": 536, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20788, - "end": 20789, - "loc": { - "start": { - "line": 536, - "column": 10 - }, - "end": { - "line": 536, - "column": 11 - } - } - }, - { - "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": 20790, - "end": 20794, - "loc": { - "start": { - "line": 536, - "column": 12 - }, - "end": { - "line": 536, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20794, - "end": 20795, - "loc": { - "start": { - "line": 536, - "column": 16 - }, - "end": { - "line": 536, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 20795, - "end": 20800, - "loc": { - "start": { - "line": 536, - "column": 17 - }, - "end": { - "line": 536, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20800, - "end": 20801, - "loc": { - "start": { - "line": 536, - "column": 22 - }, - "end": { - "line": 536, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 20801, - "end": 20809, - "loc": { - "start": { - "line": 536, - "column": 23 - }, - "end": { - "line": 536, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20809, - "end": 20810, - "loc": { - "start": { - "line": 536, - "column": 31 - }, - "end": { - "line": 536, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20810, - "end": 20814, - "loc": { - "start": { - "line": 536, - "column": 32 - }, - "end": { - "line": 536, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20814, - "end": 20815, - "loc": { - "start": { - "line": 536, - "column": 36 - }, - "end": { - "line": 536, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 20815, - "end": 20816, - "loc": { - "start": { - "line": 536, - "column": 37 - }, - "end": { - "line": 536, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20816, - "end": 20817, - "loc": { - "start": { - "line": 536, - "column": 38 - }, - "end": { - "line": 536, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20817, - "end": 20818, - "loc": { - "start": { - "line": 536, - "column": 39 - }, - "end": { - "line": 536, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 20819, - "end": 20821, - "loc": { - "start": { - "line": 536, - "column": 41 - }, - "end": { - "line": 536, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20821, - "end": 20822, - "loc": { - "start": { - "line": 536, - "column": 43 - }, - "end": { - "line": 536, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20822, - "end": 20823, - "loc": { - "start": { - "line": 536, - "column": 44 - }, - "end": { - "line": 536, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 20824, - "end": 20825, - "loc": { - "start": { - "line": 536, - "column": 46 - }, - "end": { - "line": 536, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20825, - "end": 20826, - "loc": { - "start": { - "line": 536, - "column": 47 - }, - "end": { - "line": 536, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 20827, - "end": 20830, - "loc": { - "start": { - "line": 536, - "column": 49 - }, - "end": { - "line": 536, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20830, - "end": 20831, - "loc": { - "start": { - "line": 536, - "column": 52 - }, - "end": { - "line": 536, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20831, - "end": 20832, - "loc": { - "start": { - "line": 536, - "column": 53 - }, - "end": { - "line": 536, - "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": 20836, - "end": 20841, - "loc": { - "start": { - "line": 537, - "column": 2 - }, - "end": { - "line": 537, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 20842, - "end": 20843, - "loc": { - "start": { - "line": 537, - "column": 8 - }, - "end": { - "line": 537, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20844, - "end": 20845, - "loc": { - "start": { - "line": 537, - "column": 10 - }, - "end": { - "line": 537, - "column": 11 - } - } - }, - { - "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": 20846, - "end": 20850, - "loc": { - "start": { - "line": 537, - "column": 12 - }, - "end": { - "line": 537, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20850, - "end": 20851, - "loc": { - "start": { - "line": 537, - "column": 16 - }, - "end": { - "line": 537, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clamp", - "start": 20851, - "end": 20856, - "loc": { - "start": { - "line": 537, - "column": 17 - }, - "end": { - "line": 537, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20856, - "end": 20857, - "loc": { - "start": { - "line": 537, - "column": 22 - }, - "end": { - "line": 537, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 20857, - "end": 20865, - "loc": { - "start": { - "line": 537, - "column": 23 - }, - "end": { - "line": 537, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20865, - "end": 20866, - "loc": { - "start": { - "line": 537, - "column": 31 - }, - "end": { - "line": 537, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 20866, - "end": 20870, - "loc": { - "start": { - "line": 537, - "column": 32 - }, - "end": { - "line": 537, - "column": 36 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20870, - "end": 20871, - "loc": { - "start": { - "line": 537, - "column": 36 - }, - "end": { - "line": 537, - "column": 37 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 20871, - "end": 20872, - "loc": { - "start": { - "line": 537, - "column": 37 - }, - "end": { - "line": 537, - "column": 38 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20872, - "end": 20873, - "loc": { - "start": { - "line": 537, - "column": 38 - }, - "end": { - "line": 537, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20873, - "end": 20874, - "loc": { - "start": { - "line": 537, - "column": 39 - }, - "end": { - "line": 537, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 20875, - "end": 20877, - "loc": { - "start": { - "line": 537, - "column": 41 - }, - "end": { - "line": 537, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20877, - "end": 20878, - "loc": { - "start": { - "line": 537, - "column": 43 - }, - "end": { - "line": 537, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20878, - "end": 20879, - "loc": { - "start": { - "line": 537, - "column": 44 - }, - "end": { - "line": 537, - "column": 45 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 20880, - "end": 20881, - "loc": { - "start": { - "line": 537, - "column": 46 - }, - "end": { - "line": 537, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20881, - "end": 20882, - "loc": { - "start": { - "line": 537, - "column": 47 - }, - "end": { - "line": 537, - "column": 48 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 20883, - "end": 20886, - "loc": { - "start": { - "line": 537, - "column": 49 - }, - "end": { - "line": 537, - "column": 52 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20886, - "end": 20887, - "loc": { - "start": { - "line": 537, - "column": 52 - }, - "end": { - "line": 537, - "column": 53 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20887, - "end": 20888, - "loc": { - "start": { - "line": 537, - "column": 53 - }, - "end": { - "line": 537, - "column": 54 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 20892, - "end": 20898, - "loc": { - "start": { - "line": 538, - "column": 2 - }, - "end": { - "line": 538, - "column": 8 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20899, - "end": 20900, - "loc": { - "start": { - "line": 538, - "column": 9 - }, - "end": { - "line": 538, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 20900, - "end": 20901, - "loc": { - "start": { - "line": 538, - "column": 10 - }, - "end": { - "line": 538, - "column": 11 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20901, - "end": 20902, - "loc": { - "start": { - "line": 538, - "column": 11 - }, - "end": { - "line": 538, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 20903, - "end": 20904, - "loc": { - "start": { - "line": 538, - "column": 13 - }, - "end": { - "line": 538, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20904, - "end": 20905, - "loc": { - "start": { - "line": 538, - "column": 14 - }, - "end": { - "line": 538, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 20906, - "end": 20907, - "loc": { - "start": { - "line": 538, - "column": 16 - }, - "end": { - "line": 538, - "column": 17 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20907, - "end": 20908, - "loc": { - "start": { - "line": 538, - "column": 17 - }, - "end": { - "line": 538, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 20908, - "end": 20909, - "loc": { - "start": { - "line": 538, - "column": 18 - }, - "end": { - "line": 538, - "column": 19 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20912, - "end": 20913, - "loc": { - "start": { - "line": 539, - "column": 1 - }, - "end": { - "line": 539, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t", - "start": 20916, - "end": 21212, - "loc": { - "start": { - "line": 540, - "column": 1 - }, - "end": { - "line": 546, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToDecimal", - "start": 21215, - "end": 21227, - "loc": { - "start": { - "line": 547, - "column": 1 - }, - "end": { - "line": 547, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21227, - "end": 21228, - "loc": { - "start": { - "line": 547, - "column": 13 - }, - "end": { - "line": 547, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 21228, - "end": 21230, - "loc": { - "start": { - "line": 547, - "column": 14 - }, - "end": { - "line": 547, - "column": 16 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21230, - "end": 21231, - "loc": { - "start": { - "line": 547, - "column": 16 - }, - "end": { - "line": 547, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 21232, - "end": 21234, - "loc": { - "start": { - "line": 547, - "column": 18 - }, - "end": { - "line": 547, - "column": 20 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21234, - "end": 21235, - "loc": { - "start": { - "line": 547, - "column": 20 - }, - "end": { - "line": 547, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 21236, - "end": 21238, - "loc": { - "start": { - "line": 547, - "column": 22 - }, - "end": { - "line": 547, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21238, - "end": 21239, - "loc": { - "start": { - "line": 547, - "column": 24 - }, - "end": { - "line": 547, - "column": 25 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21240, - "end": 21241, - "loc": { - "start": { - "line": 547, - "column": 26 - }, - "end": { - "line": 547, - "column": 27 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 21245, - "end": 21251, - "loc": { - "start": { - "line": 548, - "column": 2 - }, - "end": { - "line": 548, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21252, - "end": 21253, - "loc": { - "start": { - "line": 548, - "column": 9 - }, - "end": { - "line": 548, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pR", - "start": 21253, - "end": 21255, - "loc": { - "start": { - "line": 548, - "column": 10 - }, - "end": { - "line": 548, - "column": 12 - } - } - }, - { - "type": { - "label": "<>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 8, - "updateContext": null - }, - "value": "<<", - "start": 21256, - "end": 21258, - "loc": { - "start": { - "line": 548, - "column": 13 - }, - "end": { - "line": 548, - "column": 15 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 21259, - "end": 21261, - "loc": { - "start": { - "line": 548, - "column": 16 - }, - "end": { - "line": 548, - "column": 18 - } - } - }, - { - "type": { - "label": "|", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 3, - "updateContext": null - }, - "value": "|", - "start": 21262, - "end": 21263, - "loc": { - "start": { - "line": 548, - "column": 19 - }, - "end": { - "line": 548, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 21264, - "end": 21266, - "loc": { - "start": { - "line": 548, - "column": 21 - }, - "end": { - "line": 548, - "column": 23 - } - } - }, - { - "type": { - "label": "<>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 8, - "updateContext": null - }, - "value": "<<", - "start": 21267, - "end": 21269, - "loc": { - "start": { - "line": 548, - "column": 24 - }, - "end": { - "line": 548, - "column": 26 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 8, - "start": 21270, - "end": 21271, - "loc": { - "start": { - "line": 548, - "column": 27 - }, - "end": { - "line": 548, - "column": 28 - } - } - }, - { - "type": { - "label": "|", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 3, - "updateContext": null - }, - "value": "|", - "start": 21272, - "end": 21273, - "loc": { - "start": { - "line": 548, - "column": 29 - }, - "end": { - "line": 548, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 21274, - "end": 21276, - "loc": { - "start": { - "line": 548, - "column": 31 - }, - "end": { - "line": 548, - "column": 33 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21276, - "end": 21277, - "loc": { - "start": { - "line": 548, - "column": 33 - }, - "end": { - "line": 548, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21277, - "end": 21278, - "loc": { - "start": { - "line": 548, - "column": 34 - }, - "end": { - "line": 548, - "column": 35 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21281, - "end": 21282, - "loc": { - "start": { - "line": 549, - "column": 1 - }, - "end": { - "line": 549, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t", - "start": 21285, - "end": 21536, - "loc": { - "start": { - "line": 550, - "column": 1 - }, - "end": { - "line": 555, - "column": 3 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToDecimal", - "start": 21539, - "end": 21551, - "loc": { - "start": { - "line": 556, - "column": 1 - }, - "end": { - "line": 556, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21551, - "end": 21552, - "loc": { - "start": { - "line": 556, - "column": 13 - }, - "end": { - "line": 556, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 21552, - "end": 21556, - "loc": { - "start": { - "line": 556, - "column": 14 - }, - "end": { - "line": 556, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21556, - "end": 21557, - "loc": { - "start": { - "line": 556, - "column": 18 - }, - "end": { - "line": 556, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21558, - "end": 21559, - "loc": { - "start": { - "line": 556, - "column": 20 - }, - "end": { - "line": 556, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 21563, - "end": 21567, - "loc": { - "start": { - "line": 557, - "column": 2 - }, - "end": { - "line": 557, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 21568, - "end": 21569, - "loc": { - "start": { - "line": 557, - "column": 7 - }, - "end": { - "line": 557, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 21570, - "end": 21574, - "loc": { - "start": { - "line": 557, - "column": 9 - }, - "end": { - "line": 557, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21574, - "end": 21575, - "loc": { - "start": { - "line": 557, - "column": 13 - }, - "end": { - "line": 557, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 21575, - "end": 21582, - "loc": { - "start": { - "line": 557, - "column": 14 - }, - "end": { - "line": 557, - "column": 21 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21582, - "end": 21583, - "loc": { - "start": { - "line": 557, - "column": 21 - }, - "end": { - "line": 557, - "column": 22 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 21583, - "end": 21586, - "loc": { - "start": { - "line": 557, - "column": 22 - }, - "end": { - "line": 557, - "column": 25 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21586, - "end": 21587, - "loc": { - "start": { - "line": 557, - "column": 25 - }, - "end": { - "line": 557, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 21588, - "end": 21590, - "loc": { - "start": { - "line": 557, - "column": 27 - }, - "end": { - "line": 557, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21590, - "end": 21591, - "loc": { - "start": { - "line": 557, - "column": 29 - }, - "end": { - "line": 557, - "column": 30 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21591, - "end": 21592, - "loc": { - "start": { - "line": 557, - "column": 30 - }, - "end": { - "line": 557, - "column": 31 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 21596, - "end": 21602, - "loc": { - "start": { - "line": 558, - "column": 2 - }, - "end": { - "line": 558, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 21603, - "end": 21611, - "loc": { - "start": { - "line": 558, - "column": 9 - }, - "end": { - "line": 558, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21611, - "end": 21612, - "loc": { - "start": { - "line": 558, - "column": 17 - }, - "end": { - "line": 558, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pHex", - "start": 21612, - "end": 21616, - "loc": { - "start": { - "line": 558, - "column": 18 - }, - "end": { - "line": 558, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21616, - "end": 21617, - "loc": { - "start": { - "line": 558, - "column": 22 - }, - "end": { - "line": 558, - "column": 23 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 21618, - "end": 21620, - "loc": { - "start": { - "line": 558, - "column": 24 - }, - "end": { - "line": 558, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21620, - "end": 21621, - "loc": { - "start": { - "line": 558, - "column": 26 - }, - "end": { - "line": 558, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 21621, - "end": 21622, - "loc": { - "start": { - "line": 558, - "column": 27 - }, - "end": { - "line": 558, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 21625, - "end": 21626, - "loc": { - "start": { - "line": 559, - "column": 1 - }, - "end": { - "line": 559, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t ", - "start": 21629, - "end": 22137, - "loc": { - "start": { - "line": 560, - "column": 1 - }, - "end": { - "line": 569, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 22140, - "end": 22149, - "loc": { - "start": { - "line": 570, - "column": 1 - }, - "end": { - "line": 570, - "column": 10 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22149, - "end": 22150, - "loc": { - "start": { - "line": 570, - "column": 10 - }, - "end": { - "line": 570, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 22150, - "end": 22157, - "loc": { - "start": { - "line": 570, - "column": 11 - }, - "end": { - "line": 570, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 22158, - "end": 22159, - "loc": { - "start": { - "line": 570, - "column": 19 - }, - "end": { - "line": 570, - "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": 22160, - "end": 22164, - "loc": { - "start": { - "line": 570, - "column": 21 - }, - "end": { - "line": 570, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22164, - "end": 22165, - "loc": { - "start": { - "line": 570, - "column": 25 - }, - "end": { - "line": 570, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColor", - "start": 22165, - "end": 22179, - "loc": { - "start": { - "line": 570, - "column": 26 - }, - "end": { - "line": 570, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22179, - "end": 22180, - "loc": { - "start": { - "line": 570, - "column": 40 - }, - "end": { - "line": 570, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22180, - "end": 22181, - "loc": { - "start": { - "line": 570, - "column": 41 - }, - "end": { - "line": 570, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22181, - "end": 22182, - "loc": { - "start": { - "line": 570, - "column": 42 - }, - "end": { - "line": 570, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 22183, - "end": 22185, - "loc": { - "start": { - "line": 570, - "column": 44 - }, - "end": { - "line": 570, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22185, - "end": 22186, - "loc": { - "start": { - "line": 570, - "column": 46 - }, - "end": { - "line": 570, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 22187, - "end": 22189, - "loc": { - "start": { - "line": 570, - "column": 48 - }, - "end": { - "line": 570, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22189, - "end": 22190, - "loc": { - "start": { - "line": 570, - "column": 50 - }, - "end": { - "line": 570, - "column": 51 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22191, - "end": 22192, - "loc": { - "start": { - "line": 570, - "column": 52 - }, - "end": { - "line": 570, - "column": 53 - } - } - }, - { - "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": 22196, - "end": 22199, - "loc": { - "start": { - "line": 571, - "column": 2 - }, - "end": { - "line": 571, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 22200, - "end": 22203, - "loc": { - "start": { - "line": 571, - "column": 6 - }, - "end": { - "line": 571, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22203, - "end": 22204, - "loc": { - "start": { - "line": 571, - "column": 9 - }, - "end": { - "line": 571, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22205, - "end": 22208, - "loc": { - "start": { - "line": 571, - "column": 11 - }, - "end": { - "line": 571, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22208, - "end": 22209, - "loc": { - "start": { - "line": 571, - "column": 14 - }, - "end": { - "line": 571, - "column": 15 - } - } - }, - { - "type": "CommentLine", - "value": " Convert rgb to hex", - "start": 22213, - "end": 22234, - "loc": { - "start": { - "line": 572, - "column": 2 - }, - "end": { - "line": 572, - "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": 22238, - "end": 22240, - "loc": { - "start": { - "line": 573, - "column": 2 - }, - "end": { - "line": 573, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22241, - "end": 22242, - "loc": { - "start": { - "line": 573, - "column": 5 - }, - "end": { - "line": 573, - "column": 6 - } - } - }, - { - "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": 22242, - "end": 22248, - "loc": { - "start": { - "line": 573, - "column": 6 - }, - "end": { - "line": 573, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22248, - "end": 22249, - "loc": { - "start": { - "line": 573, - "column": 12 - }, - "end": { - "line": 573, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 22249, - "end": 22256, - "loc": { - "start": { - "line": 573, - "column": 13 - }, - "end": { - "line": 573, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22256, - "end": 22257, - "loc": { - "start": { - "line": 573, - "column": 20 - }, - "end": { - "line": 573, - "column": 21 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 22258, - "end": 22261, - "loc": { - "start": { - "line": 573, - "column": 22 - }, - "end": { - "line": 573, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 22262, - "end": 22270, - "loc": { - "start": { - "line": 573, - "column": 26 - }, - "end": { - "line": 573, - "column": 34 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 22271, - "end": 22273, - "loc": { - "start": { - "line": 573, - "column": 35 - }, - "end": { - "line": 573, - "column": 37 - } - } - }, - { - "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": 22274, - "end": 22280, - "loc": { - "start": { - "line": 573, - "column": 38 - }, - "end": { - "line": 573, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22280, - "end": 22281, - "loc": { - "start": { - "line": 573, - "column": 44 - }, - "end": { - "line": 573, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 22281, - "end": 22283, - "loc": { - "start": { - "line": 573, - "column": 45 - }, - "end": { - "line": 573, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22283, - "end": 22284, - "loc": { - "start": { - "line": 573, - "column": 47 - }, - "end": { - "line": 573, - "column": 48 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 22285, - "end": 22288, - "loc": { - "start": { - "line": 573, - "column": 49 - }, - "end": { - "line": 573, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 22289, - "end": 22297, - "loc": { - "start": { - "line": 573, - "column": 53 - }, - "end": { - "line": 573, - "column": 61 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 22298, - "end": 22300, - "loc": { - "start": { - "line": 573, - "column": 62 - }, - "end": { - "line": 573, - "column": 64 - } - } - }, - { - "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": 22301, - "end": 22307, - "loc": { - "start": { - "line": 573, - "column": 65 - }, - "end": { - "line": 573, - "column": 71 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22307, - "end": 22308, - "loc": { - "start": { - "line": 573, - "column": 71 - }, - "end": { - "line": 573, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 22308, - "end": 22310, - "loc": { - "start": { - "line": 573, - "column": 72 - }, - "end": { - "line": 573, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22310, - "end": 22311, - "loc": { - "start": { - "line": 573, - "column": 74 - }, - "end": { - "line": 573, - "column": 75 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 22312, - "end": 22315, - "loc": { - "start": { - "line": 573, - "column": 76 - }, - "end": { - "line": 573, - "column": 79 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 22316, - "end": 22324, - "loc": { - "start": { - "line": 573, - "column": 80 - }, - "end": { - "line": 573, - "column": 88 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22324, - "end": 22325, - "loc": { - "start": { - "line": 573, - "column": 88 - }, - "end": { - "line": 573, - "column": 89 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22326, - "end": 22327, - "loc": { - "start": { - "line": 573, - "column": 90 - }, - "end": { - "line": 573, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 22332, - "end": 22335, - "loc": { - "start": { - "line": 574, - "column": 3 - }, - "end": { - "line": 574, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 22336, - "end": 22337, - "loc": { - "start": { - "line": 574, - "column": 7 - }, - "end": { - "line": 574, - "column": 8 - } - } - }, - { - "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": 22338, - "end": 22342, - "loc": { - "start": { - "line": 574, - "column": 9 - }, - "end": { - "line": 574, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22342, - "end": 22343, - "loc": { - "start": { - "line": 574, - "column": 13 - }, - "end": { - "line": 574, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbToHex", - "start": 22343, - "end": 22351, - "loc": { - "start": { - "line": 574, - "column": 14 - }, - "end": { - "line": 574, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22351, - "end": 22352, - "loc": { - "start": { - "line": 574, - "column": 22 - }, - "end": { - "line": 574, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 22352, - "end": 22359, - "loc": { - "start": { - "line": 574, - "column": 23 - }, - "end": { - "line": 574, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22359, - "end": 22360, - "loc": { - "start": { - "line": 574, - "column": 30 - }, - "end": { - "line": 574, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pG", - "start": 22361, - "end": 22363, - "loc": { - "start": { - "line": 574, - "column": 32 - }, - "end": { - "line": 574, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22363, - "end": 22364, - "loc": { - "start": { - "line": 574, - "column": 34 - }, - "end": { - "line": 574, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pB", - "start": 22365, - "end": 22367, - "loc": { - "start": { - "line": 574, - "column": 36 - }, - "end": { - "line": 574, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22367, - "end": 22368, - "loc": { - "start": { - "line": 574, - "column": 38 - }, - "end": { - "line": 574, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22368, - "end": 22369, - "loc": { - "start": { - "line": 574, - "column": 39 - }, - "end": { - "line": 574, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22373, - "end": 22374, - "loc": { - "start": { - "line": 575, - "column": 2 - }, - "end": { - "line": 575, - "column": 3 - } - } - }, - { - "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": 22375, - "end": 22379, - "loc": { - "start": { - "line": 575, - "column": 4 - }, - "end": { - "line": 575, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22380, - "end": 22381, - "loc": { - "start": { - "line": 575, - "column": 9 - }, - "end": { - "line": 575, - "column": 10 - } - } - }, - { - "type": "CommentLine", - "value": " Convert decimal to hex", - "start": 22386, - "end": 22411, - "loc": { - "start": { - "line": 576, - "column": 3 - }, - "end": { - "line": 576, - "column": 28 - } - } - }, - { - "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": 22416, - "end": 22418, - "loc": { - "start": { - "line": 577, - "column": 3 - }, - "end": { - "line": 577, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22419, - "end": 22420, - "loc": { - "start": { - "line": 577, - "column": 6 - }, - "end": { - "line": 577, - "column": 7 - } - } - }, - { - "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": 22420, - "end": 22426, - "loc": { - "start": { - "line": 577, - "column": 7 - }, - "end": { - "line": 577, - "column": 13 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22426, - "end": 22427, - "loc": { - "start": { - "line": 577, - "column": 13 - }, - "end": { - "line": 577, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 22427, - "end": 22434, - "loc": { - "start": { - "line": 577, - "column": 14 - }, - "end": { - "line": 577, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22434, - "end": 22435, - "loc": { - "start": { - "line": 577, - "column": 21 - }, - "end": { - "line": 577, - "column": 22 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 22436, - "end": 22439, - "loc": { - "start": { - "line": 577, - "column": 23 - }, - "end": { - "line": 577, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "number", - "start": 22440, - "end": 22448, - "loc": { - "start": { - "line": 577, - "column": 27 - }, - "end": { - "line": 577, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22448, - "end": 22449, - "loc": { - "start": { - "line": 577, - "column": 35 - }, - "end": { - "line": 577, - "column": 36 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22450, - "end": 22451, - "loc": { - "start": { - "line": 577, - "column": 37 - }, - "end": { - "line": 577, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 22457, - "end": 22464, - "loc": { - "start": { - "line": 578, - "column": 4 - }, - "end": { - "line": 578, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 22465, - "end": 22466, - "loc": { - "start": { - "line": 578, - "column": 12 - }, - "end": { - "line": 578, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 22467, - "end": 22471, - "loc": { - "start": { - "line": 578, - "column": 14 - }, - "end": { - "line": 578, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22471, - "end": 22472, - "loc": { - "start": { - "line": 578, - "column": 18 - }, - "end": { - "line": 578, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimalToHex", - "start": 22472, - "end": 22484, - "loc": { - "start": { - "line": 578, - "column": 19 - }, - "end": { - "line": 578, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22484, - "end": 22485, - "loc": { - "start": { - "line": 578, - "column": 31 - }, - "end": { - "line": 578, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 22485, - "end": 22492, - "loc": { - "start": { - "line": 578, - "column": 32 - }, - "end": { - "line": 578, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22492, - "end": 22493, - "loc": { - "start": { - "line": 578, - "column": 39 - }, - "end": { - "line": 578, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22493, - "end": 22494, - "loc": { - "start": { - "line": 578, - "column": 40 - }, - "end": { - "line": 578, - "column": 41 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22499, - "end": 22500, - "loc": { - "start": { - "line": 579, - "column": 3 - }, - "end": { - "line": 579, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 22505, - "end": 22508, - "loc": { - "start": { - "line": 580, - "column": 3 - }, - "end": { - "line": 580, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 22509, - "end": 22510, - "loc": { - "start": { - "line": 580, - "column": 7 - }, - "end": { - "line": 580, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pSwitch", - "start": 22511, - "end": 22518, - "loc": { - "start": { - "line": 580, - "column": 9 - }, - "end": { - "line": 580, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22518, - "end": 22519, - "loc": { - "start": { - "line": 580, - "column": 16 - }, - "end": { - "line": 580, - "column": 17 - } - } - }, - { - "type": "CommentLine", - "value": " Convert hex to rgb", - "start": 22524, - "end": 22545, - "loc": { - "start": { - "line": 581, - "column": 3 - }, - "end": { - "line": 581, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22550, - "end": 22553, - "loc": { - "start": { - "line": 582, - "column": 3 - }, - "end": { - "line": 582, - "column": 6 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 22554, - "end": 22555, - "loc": { - "start": { - "line": 582, - "column": 7 - }, - "end": { - "line": 582, - "column": 8 - } - } - }, - { - "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": 22556, - "end": 22560, - "loc": { - "start": { - "line": 582, - "column": 9 - }, - "end": { - "line": 582, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22560, - "end": 22561, - "loc": { - "start": { - "line": 582, - "column": 13 - }, - "end": { - "line": 582, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToRgb", - "start": 22561, - "end": 22569, - "loc": { - "start": { - "line": 582, - "column": 14 - }, - "end": { - "line": 582, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22569, - "end": 22570, - "loc": { - "start": { - "line": 582, - "column": 22 - }, - "end": { - "line": 582, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 22570, - "end": 22573, - "loc": { - "start": { - "line": 582, - "column": 23 - }, - "end": { - "line": 582, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22573, - "end": 22574, - "loc": { - "start": { - "line": 582, - "column": 26 - }, - "end": { - "line": 582, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22574, - "end": 22575, - "loc": { - "start": { - "line": 582, - "column": 27 - }, - "end": { - "line": 582, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22579, - "end": 22580, - "loc": { - "start": { - "line": 583, - "column": 2 - }, - "end": { - "line": 583, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 22584, - "end": 22590, - "loc": { - "start": { - "line": 584, - "column": 2 - }, - "end": { - "line": 584, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22591, - "end": 22592, - "loc": { - "start": { - "line": 584, - "column": 9 - }, - "end": { - "line": 584, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "hex", - "start": 22598, - "end": 22603, - "loc": { - "start": { - "line": 585, - "column": 3 - }, - "end": { - "line": 585, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22603, - "end": 22604, - "loc": { - "start": { - "line": 585, - "column": 8 - }, - "end": { - "line": 585, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 22605, - "end": 22608, - "loc": { - "start": { - "line": 585, - "column": 10 - }, - "end": { - "line": 585, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22608, - "end": 22609, - "loc": { - "start": { - "line": 585, - "column": 13 - }, - "end": { - "line": 585, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 22609, - "end": 22620, - "loc": { - "start": { - "line": 585, - "column": 14 - }, - "end": { - "line": 585, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22620, - "end": 22621, - "loc": { - "start": { - "line": 585, - "column": 25 - }, - "end": { - "line": 585, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22621, - "end": 22622, - "loc": { - "start": { - "line": 585, - "column": 26 - }, - "end": { - "line": 585, - "column": 27 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22622, - "end": 22623, - "loc": { - "start": { - "line": 585, - "column": 27 - }, - "end": { - "line": 585, - "column": 28 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "hexTagless", - "start": 22629, - "end": 22641, - "loc": { - "start": { - "line": 586, - "column": 3 - }, - "end": { - "line": 586, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22641, - "end": 22642, - "loc": { - "start": { - "line": 586, - "column": 15 - }, - "end": { - "line": 586, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 22643, - "end": 22646, - "loc": { - "start": { - "line": 586, - "column": 17 - }, - "end": { - "line": 586, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22646, - "end": 22647, - "loc": { - "start": { - "line": 586, - "column": 20 - }, - "end": { - "line": 586, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "replace", - "start": 22647, - "end": 22654, - "loc": { - "start": { - "line": 586, - "column": 21 - }, - "end": { - "line": 586, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22654, - "end": 22655, - "loc": { - "start": { - "line": 586, - "column": 28 - }, - "end": { - "line": 586, - "column": 29 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 22655, - "end": 22658, - "loc": { - "start": { - "line": 586, - "column": 29 - }, - "end": { - "line": 586, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22658, - "end": 22659, - "loc": { - "start": { - "line": 586, - "column": 32 - }, - "end": { - "line": 586, - "column": 33 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 22660, - "end": 22662, - "loc": { - "start": { - "line": 586, - "column": 34 - }, - "end": { - "line": 586, - "column": 36 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22662, - "end": 22663, - "loc": { - "start": { - "line": 586, - "column": 36 - }, - "end": { - "line": 586, - "column": 37 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22663, - "end": 22664, - "loc": { - "start": { - "line": 586, - "column": 37 - }, - "end": { - "line": 586, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 22664, - "end": 22675, - "loc": { - "start": { - "line": 586, - "column": 38 - }, - "end": { - "line": 586, - "column": 49 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22675, - "end": 22676, - "loc": { - "start": { - "line": 586, - "column": 49 - }, - "end": { - "line": 586, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22676, - "end": 22677, - "loc": { - "start": { - "line": 586, - "column": 50 - }, - "end": { - "line": 586, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22677, - "end": 22678, - "loc": { - "start": { - "line": 586, - "column": 51 - }, - "end": { - "line": 586, - "column": 52 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgb", - "start": 22684, - "end": 22689, - "loc": { - "start": { - "line": 587, - "column": 3 - }, - "end": { - "line": 587, - "column": 8 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22689, - "end": 22690, - "loc": { - "start": { - "line": 587, - "column": 8 - }, - "end": { - "line": 587, - "column": 9 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgb(", - "start": 22691, - "end": 22697, - "loc": { - "start": { - "line": 587, - "column": 10 - }, - "end": { - "line": 587, - "column": 16 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 22697, - "end": 22698, - "loc": { - "start": { - "line": 587, - "column": 16 - }, - "end": { - "line": 587, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22698, - "end": 22701, - "loc": { - "start": { - "line": 587, - "column": 17 - }, - "end": { - "line": 587, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22701, - "end": 22702, - "loc": { - "start": { - "line": 587, - "column": 20 - }, - "end": { - "line": 587, - "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": 22702, - "end": 22703, - "loc": { - "start": { - "line": 587, - "column": 21 - }, - "end": { - "line": 587, - "column": 22 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22703, - "end": 22704, - "loc": { - "start": { - "line": 587, - "column": 22 - }, - "end": { - "line": 587, - "column": 23 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 22704, - "end": 22705, - "loc": { - "start": { - "line": 587, - "column": 23 - }, - "end": { - "line": 587, - "column": 24 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ",", - "start": 22705, - "end": 22708, - "loc": { - "start": { - "line": 587, - "column": 24 - }, - "end": { - "line": 587, - "column": 27 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 22708, - "end": 22709, - "loc": { - "start": { - "line": 587, - "column": 27 - }, - "end": { - "line": 587, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22709, - "end": 22712, - "loc": { - "start": { - "line": 587, - "column": 28 - }, - "end": { - "line": 587, - "column": 31 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22712, - "end": 22713, - "loc": { - "start": { - "line": 587, - "column": 31 - }, - "end": { - "line": 587, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 22713, - "end": 22714, - "loc": { - "start": { - "line": 587, - "column": 32 - }, - "end": { - "line": 587, - "column": 33 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22714, - "end": 22715, - "loc": { - "start": { - "line": 587, - "column": 33 - }, - "end": { - "line": 587, - "column": 34 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 22715, - "end": 22716, - "loc": { - "start": { - "line": 587, - "column": 34 - }, - "end": { - "line": 587, - "column": 35 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ",", - "start": 22716, - "end": 22719, - "loc": { - "start": { - "line": 587, - "column": 35 - }, - "end": { - "line": 587, - "column": 38 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 22719, - "end": 22720, - "loc": { - "start": { - "line": 587, - "column": 38 - }, - "end": { - "line": 587, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22720, - "end": 22723, - "loc": { - "start": { - "line": 587, - "column": 39 - }, - "end": { - "line": 587, - "column": 42 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22723, - "end": 22724, - "loc": { - "start": { - "line": 587, - "column": 42 - }, - "end": { - "line": 587, - "column": 43 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 22724, - "end": 22725, - "loc": { - "start": { - "line": 587, - "column": 43 - }, - "end": { - "line": 587, - "column": 44 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22725, - "end": 22726, - "loc": { - "start": { - "line": 587, - "column": 44 - }, - "end": { - "line": 587, - "column": 45 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 22726, - "end": 22727, - "loc": { - "start": { - "line": 587, - "column": 45 - }, - "end": { - "line": 587, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ")", - "start": 22727, - "end": 22730, - "loc": { - "start": { - "line": 587, - "column": 46 - }, - "end": { - "line": 587, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22730, - "end": 22731, - "loc": { - "start": { - "line": 587, - "column": 49 - }, - "end": { - "line": 587, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbArray", - "start": 22737, - "end": 22747, - "loc": { - "start": { - "line": 588, - "column": 3 - }, - "end": { - "line": 588, - "column": 13 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22747, - "end": 22748, - "loc": { - "start": { - "line": 588, - "column": 13 - }, - "end": { - "line": 588, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22749, - "end": 22752, - "loc": { - "start": { - "line": 588, - "column": 15 - }, - "end": { - "line": 588, - "column": 18 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22752, - "end": 22753, - "loc": { - "start": { - "line": 588, - "column": 18 - }, - "end": { - "line": 588, - "column": 19 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbObject", - "start": 22759, - "end": 22770, - "loc": { - "start": { - "line": 589, - "column": 3 - }, - "end": { - "line": 589, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22770, - "end": 22771, - "loc": { - "start": { - "line": 589, - "column": 14 - }, - "end": { - "line": 589, - "column": 15 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22772, - "end": 22773, - "loc": { - "start": { - "line": 589, - "column": 16 - }, - "end": { - "line": 589, - "column": 17 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "r", - "start": 22774, - "end": 22777, - "loc": { - "start": { - "line": 589, - "column": 18 - }, - "end": { - "line": 589, - "column": 21 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22777, - "end": 22778, - "loc": { - "start": { - "line": 589, - "column": 21 - }, - "end": { - "line": 589, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22779, - "end": 22782, - "loc": { - "start": { - "line": 589, - "column": 23 - }, - "end": { - "line": 589, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22782, - "end": 22783, - "loc": { - "start": { - "line": 589, - "column": 26 - }, - "end": { - "line": 589, - "column": 27 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 22783, - "end": 22784, - "loc": { - "start": { - "line": 589, - "column": 27 - }, - "end": { - "line": 589, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22784, - "end": 22785, - "loc": { - "start": { - "line": 589, - "column": 28 - }, - "end": { - "line": 589, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22785, - "end": 22786, - "loc": { - "start": { - "line": 589, - "column": 29 - }, - "end": { - "line": 589, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "g", - "start": 22787, - "end": 22790, - "loc": { - "start": { - "line": 589, - "column": 31 - }, - "end": { - "line": 589, - "column": 34 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22790, - "end": 22791, - "loc": { - "start": { - "line": 589, - "column": 34 - }, - "end": { - "line": 589, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22792, - "end": 22795, - "loc": { - "start": { - "line": 589, - "column": 36 - }, - "end": { - "line": 589, - "column": 39 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22795, - "end": 22796, - "loc": { - "start": { - "line": 589, - "column": 39 - }, - "end": { - "line": 589, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 22796, - "end": 22797, - "loc": { - "start": { - "line": 589, - "column": 40 - }, - "end": { - "line": 589, - "column": 41 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22797, - "end": 22798, - "loc": { - "start": { - "line": 589, - "column": 41 - }, - "end": { - "line": 589, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22798, - "end": 22799, - "loc": { - "start": { - "line": 589, - "column": 42 - }, - "end": { - "line": 589, - "column": 43 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "b", - "start": 22800, - "end": 22803, - "loc": { - "start": { - "line": 589, - "column": 44 - }, - "end": { - "line": 589, - "column": 47 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22803, - "end": 22804, - "loc": { - "start": { - "line": 589, - "column": 47 - }, - "end": { - "line": 589, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22805, - "end": 22808, - "loc": { - "start": { - "line": 589, - "column": 49 - }, - "end": { - "line": 589, - "column": 52 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22808, - "end": 22809, - "loc": { - "start": { - "line": 589, - "column": 52 - }, - "end": { - "line": 589, - "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": 22809, - "end": 22810, - "loc": { - "start": { - "line": 589, - "column": 53 - }, - "end": { - "line": 589, - "column": 54 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22810, - "end": 22811, - "loc": { - "start": { - "line": 589, - "column": 54 - }, - "end": { - "line": 589, - "column": 55 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22812, - "end": 22813, - "loc": { - "start": { - "line": 589, - "column": 56 - }, - "end": { - "line": 589, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22813, - "end": 22814, - "loc": { - "start": { - "line": 589, - "column": 57 - }, - "end": { - "line": 589, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "rgbNormal", - "start": 22820, - "end": 22831, - "loc": { - "start": { - "line": 590, - "column": 3 - }, - "end": { - "line": 590, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22831, - "end": 22832, - "loc": { - "start": { - "line": 590, - "column": 14 - }, - "end": { - "line": 590, - "column": 15 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22833, - "end": 22834, - "loc": { - "start": { - "line": 590, - "column": 16 - }, - "end": { - "line": 590, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 22834, - "end": 22838, - "loc": { - "start": { - "line": 590, - "column": 17 - }, - "end": { - "line": 590, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22838, - "end": 22839, - "loc": { - "start": { - "line": 590, - "column": 21 - }, - "end": { - "line": 590, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 22839, - "end": 22844, - "loc": { - "start": { - "line": 590, - "column": 22 - }, - "end": { - "line": 590, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22844, - "end": 22845, - "loc": { - "start": { - "line": 590, - "column": 27 - }, - "end": { - "line": 590, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22845, - "end": 22848, - "loc": { - "start": { - "line": 590, - "column": 28 - }, - "end": { - "line": 590, - "column": 31 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22848, - "end": 22849, - "loc": { - "start": { - "line": 590, - "column": 31 - }, - "end": { - "line": 590, - "column": 32 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 22849, - "end": 22850, - "loc": { - "start": { - "line": 590, - "column": 32 - }, - "end": { - "line": 590, - "column": 33 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22850, - "end": 22851, - "loc": { - "start": { - "line": 590, - "column": 33 - }, - "end": { - "line": 590, - "column": 34 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 22851, - "end": 22852, - "loc": { - "start": { - "line": 590, - "column": 34 - }, - "end": { - "line": 590, - "column": 35 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 22852, - "end": 22855, - "loc": { - "start": { - "line": 590, - "column": 35 - }, - "end": { - "line": 590, - "column": 38 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 22856, - "end": 22857, - "loc": { - "start": { - "line": 590, - "column": 39 - }, - "end": { - "line": 590, - "column": 40 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 22858, - "end": 22861, - "loc": { - "start": { - "line": 590, - "column": 41 - }, - "end": { - "line": 590, - "column": 44 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22861, - "end": 22862, - "loc": { - "start": { - "line": 590, - "column": 44 - }, - "end": { - "line": 590, - "column": 45 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 22863, - "end": 22864, - "loc": { - "start": { - "line": 590, - "column": 46 - }, - "end": { - "line": 590, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 22865, - "end": 22868, - "loc": { - "start": { - "line": 590, - "column": 48 - }, - "end": { - "line": 590, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22868, - "end": 22869, - "loc": { - "start": { - "line": 590, - "column": 51 - }, - "end": { - "line": 590, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 22870, - "end": 22874, - "loc": { - "start": { - "line": 590, - "column": 53 - }, - "end": { - "line": 590, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22874, - "end": 22875, - "loc": { - "start": { - "line": 590, - "column": 57 - }, - "end": { - "line": 590, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 22875, - "end": 22880, - "loc": { - "start": { - "line": 590, - "column": 58 - }, - "end": { - "line": 590, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22880, - "end": 22881, - "loc": { - "start": { - "line": 590, - "column": 63 - }, - "end": { - "line": 590, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22881, - "end": 22884, - "loc": { - "start": { - "line": 590, - "column": 64 - }, - "end": { - "line": 590, - "column": 67 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22884, - "end": 22885, - "loc": { - "start": { - "line": 590, - "column": 67 - }, - "end": { - "line": 590, - "column": 68 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 22885, - "end": 22886, - "loc": { - "start": { - "line": 590, - "column": 68 - }, - "end": { - "line": 590, - "column": 69 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22886, - "end": 22887, - "loc": { - "start": { - "line": 590, - "column": 69 - }, - "end": { - "line": 590, - "column": 70 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 22887, - "end": 22888, - "loc": { - "start": { - "line": 590, - "column": 70 - }, - "end": { - "line": 590, - "column": 71 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 22888, - "end": 22891, - "loc": { - "start": { - "line": 590, - "column": 71 - }, - "end": { - "line": 590, - "column": 74 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 22892, - "end": 22893, - "loc": { - "start": { - "line": 590, - "column": 75 - }, - "end": { - "line": 590, - "column": 76 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 22894, - "end": 22897, - "loc": { - "start": { - "line": 590, - "column": 77 - }, - "end": { - "line": 590, - "column": 80 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22897, - "end": 22898, - "loc": { - "start": { - "line": 590, - "column": 80 - }, - "end": { - "line": 590, - "column": 81 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 22899, - "end": 22900, - "loc": { - "start": { - "line": 590, - "column": 82 - }, - "end": { - "line": 590, - "column": 83 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 22901, - "end": 22904, - "loc": { - "start": { - "line": 590, - "column": 84 - }, - "end": { - "line": 590, - "column": 87 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22904, - "end": 22905, - "loc": { - "start": { - "line": 590, - "column": 87 - }, - "end": { - "line": 590, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 22906, - "end": 22910, - "loc": { - "start": { - "line": 590, - "column": 89 - }, - "end": { - "line": 590, - "column": 93 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22910, - "end": 22911, - "loc": { - "start": { - "line": 590, - "column": 93 - }, - "end": { - "line": 590, - "column": 94 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "round", - "start": 22911, - "end": 22916, - "loc": { - "start": { - "line": 590, - "column": 94 - }, - "end": { - "line": 590, - "column": 99 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22916, - "end": 22917, - "loc": { - "start": { - "line": 590, - "column": 99 - }, - "end": { - "line": 590, - "column": 100 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgb", - "start": 22917, - "end": 22920, - "loc": { - "start": { - "line": 590, - "column": 100 - }, - "end": { - "line": 590, - "column": 103 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22920, - "end": 22921, - "loc": { - "start": { - "line": 590, - "column": 103 - }, - "end": { - "line": 590, - "column": 104 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 22921, - "end": 22922, - "loc": { - "start": { - "line": 590, - "column": 104 - }, - "end": { - "line": 590, - "column": 105 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22922, - "end": 22923, - "loc": { - "start": { - "line": 590, - "column": 105 - }, - "end": { - "line": 590, - "column": 106 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 22923, - "end": 22924, - "loc": { - "start": { - "line": 590, - "column": 106 - }, - "end": { - "line": 590, - "column": 107 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 22924, - "end": 22927, - "loc": { - "start": { - "line": 590, - "column": 107 - }, - "end": { - "line": 590, - "column": 110 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 22928, - "end": 22929, - "loc": { - "start": { - "line": 590, - "column": 111 - }, - "end": { - "line": 590, - "column": 112 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 22930, - "end": 22933, - "loc": { - "start": { - "line": 590, - "column": 113 - }, - "end": { - "line": 590, - "column": 116 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22933, - "end": 22934, - "loc": { - "start": { - "line": 590, - "column": 116 - }, - "end": { - "line": 590, - "column": 117 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 22935, - "end": 22936, - "loc": { - "start": { - "line": 590, - "column": 118 - }, - "end": { - "line": 590, - "column": 119 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 100, - "start": 22937, - "end": 22940, - "loc": { - "start": { - "line": 590, - "column": 120 - }, - "end": { - "line": 590, - "column": 123 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22940, - "end": 22941, - "loc": { - "start": { - "line": 590, - "column": 123 - }, - "end": { - "line": 590, - "column": 124 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22941, - "end": 22942, - "loc": { - "start": { - "line": 590, - "column": 124 - }, - "end": { - "line": 590, - "column": 125 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "decimal", - "start": 22948, - "end": 22957, - "loc": { - "start": { - "line": 591, - "column": 3 - }, - "end": { - "line": 591, - "column": 12 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22957, - "end": 22958, - "loc": { - "start": { - "line": 591, - "column": 12 - }, - "end": { - "line": 591, - "column": 13 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 22959, - "end": 22963, - "loc": { - "start": { - "line": 591, - "column": 14 - }, - "end": { - "line": 591, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22963, - "end": 22964, - "loc": { - "start": { - "line": 591, - "column": 18 - }, - "end": { - "line": 591, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hexToDecimal", - "start": 22964, - "end": 22976, - "loc": { - "start": { - "line": 591, - "column": 19 - }, - "end": { - "line": 591, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22976, - "end": 22977, - "loc": { - "start": { - "line": 591, - "column": 31 - }, - "end": { - "line": 591, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 22977, - "end": 22980, - "loc": { - "start": { - "line": 591, - "column": 32 - }, - "end": { - "line": 591, - "column": 35 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22980, - "end": 22981, - "loc": { - "start": { - "line": 591, - "column": 35 - }, - "end": { - "line": 591, - "column": 36 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22986, - "end": 22987, - "loc": { - "start": { - "line": 592, - "column": 2 - }, - "end": { - "line": 592, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22987, - "end": 22988, - "loc": { - "start": { - "line": 592, - "column": 3 - }, - "end": { - "line": 592, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 22991, - "end": 22992, - "loc": { - "start": { - "line": 593, - "column": 1 - }, - "end": { - "line": 593, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t ", - "start": 22995, - "end": 23091, - "loc": { - "start": { - "line": 594, - "column": 1 - }, - "end": { - "line": 598, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColor", - "start": 23094, - "end": 23108, - "loc": { - "start": { - "line": 599, - "column": 1 - }, - "end": { - "line": 599, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23108, - "end": 23109, - "loc": { - "start": { - "line": 599, - "column": 15 - }, - "end": { - "line": 599, - "column": 16 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23109, - "end": 23110, - "loc": { - "start": { - "line": 599, - "column": 16 - }, - "end": { - "line": 599, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23111, - "end": 23112, - "loc": { - "start": { - "line": 599, - "column": 18 - }, - "end": { - "line": 599, - "column": 19 - } - } - }, - { - "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": 23116, - "end": 23121, - "loc": { - "start": { - "line": 600, - "column": 2 - }, - "end": { - "line": 600, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 23122, - "end": 23127, - "loc": { - "start": { - "line": 600, - "column": 8 - }, - "end": { - "line": 600, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 23128, - "end": 23129, - "loc": { - "start": { - "line": 600, - "column": 14 - }, - "end": { - "line": 600, - "column": 15 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "0123456789ABCDEF", - "start": 23130, - "end": 23148, - "loc": { - "start": { - "line": 600, - "column": 16 - }, - "end": { - "line": 600, - "column": 34 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23148, - "end": 23149, - "loc": { - "start": { - "line": 600, - "column": 34 - }, - "end": { - "line": 600, - "column": 35 - } - } - }, - { - "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": 23153, - "end": 23156, - "loc": { - "start": { - "line": 601, - "column": 2 - }, - "end": { - "line": 601, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 23157, - "end": 23162, - "loc": { - "start": { - "line": 601, - "column": 6 - }, - "end": { - "line": 601, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 23163, - "end": 23164, - "loc": { - "start": { - "line": 601, - "column": 12 - }, - "end": { - "line": 601, - "column": 13 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#", - "start": 23165, - "end": 23168, - "loc": { - "start": { - "line": 601, - "column": 14 - }, - "end": { - "line": 601, - "column": 17 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23168, - "end": 23169, - "loc": { - "start": { - "line": 601, - "column": 17 - }, - "end": { - "line": 601, - "column": 18 - } - } - }, - { - "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": 23173, - "end": 23176, - "loc": { - "start": { - "line": 602, - "column": 2 - }, - "end": { - "line": 602, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23177, - "end": 23178, - "loc": { - "start": { - "line": 602, - "column": 6 - }, - "end": { - "line": 602, - "column": 7 - } - } - }, - { - "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": 23178, - "end": 23181, - "loc": { - "start": { - "line": 602, - "column": 7 - }, - "end": { - "line": 602, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 23182, - "end": 23183, - "loc": { - "start": { - "line": 602, - "column": 11 - }, - "end": { - "line": 602, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 23184, - "end": 23185, - "loc": { - "start": { - "line": 602, - "column": 13 - }, - "end": { - "line": 602, - "column": 14 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 23186, - "end": 23187, - "loc": { - "start": { - "line": 602, - "column": 15 - }, - "end": { - "line": 602, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23187, - "end": 23188, - "loc": { - "start": { - "line": 602, - "column": 16 - }, - "end": { - "line": 602, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 23189, - "end": 23190, - "loc": { - "start": { - "line": 602, - "column": 18 - }, - "end": { - "line": 602, - "column": 19 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 23191, - "end": 23192, - "loc": { - "start": { - "line": 602, - "column": 20 - }, - "end": { - "line": 602, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 6, - "start": 23193, - "end": 23194, - "loc": { - "start": { - "line": 602, - "column": 22 - }, - "end": { - "line": 602, - "column": 23 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23194, - "end": 23195, - "loc": { - "start": { - "line": 602, - "column": 23 - }, - "end": { - "line": 602, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 23196, - "end": 23197, - "loc": { - "start": { - "line": 602, - "column": 25 - }, - "end": { - "line": 602, - "column": 26 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 23197, - "end": 23199, - "loc": { - "start": { - "line": 602, - "column": 26 - }, - "end": { - "line": 602, - "column": 28 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23199, - "end": 23200, - "loc": { - "start": { - "line": 602, - "column": 28 - }, - "end": { - "line": 602, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23201, - "end": 23202, - "loc": { - "start": { - "line": 602, - "column": 30 - }, - "end": { - "line": 602, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 23207, - "end": 23212, - "loc": { - "start": { - "line": 603, - "column": 3 - }, - "end": { - "line": 603, - "column": 8 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 23213, - "end": 23215, - "loc": { - "start": { - "line": 603, - "column": 9 - }, - "end": { - "line": 603, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "chars", - "start": 23216, - "end": 23221, - "loc": { - "start": { - "line": 603, - "column": 12 - }, - "end": { - "line": 603, - "column": 17 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23221, - "end": 23222, - "loc": { - "start": { - "line": 603, - "column": 17 - }, - "end": { - "line": 603, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 23222, - "end": 23226, - "loc": { - "start": { - "line": 603, - "column": 18 - }, - "end": { - "line": 603, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23226, - "end": 23227, - "loc": { - "start": { - "line": 603, - "column": 22 - }, - "end": { - "line": 603, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "floor", - "start": 23227, - "end": 23232, - "loc": { - "start": { - "line": 603, - "column": 23 - }, - "end": { - "line": 603, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23232, - "end": 23233, - "loc": { - "start": { - "line": 603, - "column": 28 - }, - "end": { - "line": 603, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 23233, - "end": 23237, - "loc": { - "start": { - "line": 603, - "column": 29 - }, - "end": { - "line": 603, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23237, - "end": 23238, - "loc": { - "start": { - "line": 603, - "column": 33 - }, - "end": { - "line": 603, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "random", - "start": 23238, - "end": 23244, - "loc": { - "start": { - "line": 603, - "column": 34 - }, - "end": { - "line": 603, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23244, - "end": 23245, - "loc": { - "start": { - "line": 603, - "column": 40 - }, - "end": { - "line": 603, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23245, - "end": 23246, - "loc": { - "start": { - "line": 603, - "column": 41 - }, - "end": { - "line": 603, - "column": 42 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 23247, - "end": 23248, - "loc": { - "start": { - "line": 603, - "column": 43 - }, - "end": { - "line": 603, - "column": 44 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 16, - "start": 23249, - "end": 23251, - "loc": { - "start": { - "line": 603, - "column": 45 - }, - "end": { - "line": 603, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23251, - "end": 23252, - "loc": { - "start": { - "line": 603, - "column": 47 - }, - "end": { - "line": 603, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23252, - "end": 23253, - "loc": { - "start": { - "line": 603, - "column": 48 - }, - "end": { - "line": 603, - "column": 49 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23253, - "end": 23254, - "loc": { - "start": { - "line": 603, - "column": 49 - }, - "end": { - "line": 603, - "column": 50 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23258, - "end": 23259, - "loc": { - "start": { - "line": 604, - "column": 2 - }, - "end": { - "line": 604, - "column": 3 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 23263, - "end": 23269, - "loc": { - "start": { - "line": 605, - "column": 2 - }, - "end": { - "line": 605, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 23270, - "end": 23275, - "loc": { - "start": { - "line": 605, - "column": 9 - }, - "end": { - "line": 605, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23275, - "end": 23276, - "loc": { - "start": { - "line": 605, - "column": 14 - }, - "end": { - "line": 605, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23279, - "end": 23280, - "loc": { - "start": { - "line": 606, - "column": 1 - }, - "end": { - "line": 606, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t ", - "start": 23283, - "end": 23739, - "loc": { - "start": { - "line": 607, - "column": 1 - }, - "end": { - "line": 616, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getRandomColorBetween", - "start": 23742, - "end": 23763, - "loc": { - "start": { - "line": 617, - "column": 1 - }, - "end": { - "line": 617, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23763, - "end": 23764, - "loc": { - "start": { - "line": 617, - "column": 22 - }, - "end": { - "line": 617, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor1", - "start": 23764, - "end": 23771, - "loc": { - "start": { - "line": 617, - "column": 23 - }, - "end": { - "line": 617, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23771, - "end": 23772, - "loc": { - "start": { - "line": 617, - "column": 30 - }, - "end": { - "line": 617, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor2", - "start": 23773, - "end": 23780, - "loc": { - "start": { - "line": 617, - "column": 32 - }, - "end": { - "line": 617, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23780, - "end": 23781, - "loc": { - "start": { - "line": 617, - "column": 39 - }, - "end": { - "line": 617, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 23782, - "end": 23789, - "loc": { - "start": { - "line": 617, - "column": 41 - }, - "end": { - "line": 617, - "column": 48 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 23790, - "end": 23791, - "loc": { - "start": { - "line": 617, - "column": 49 - }, - "end": { - "line": 617, - "column": 50 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 23792, - "end": 23795, - "loc": { - "start": { - "line": 617, - "column": 51 - }, - "end": { - "line": 617, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23795, - "end": 23796, - "loc": { - "start": { - "line": 617, - "column": 54 - }, - "end": { - "line": 617, - "column": 55 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23797, - "end": 23798, - "loc": { - "start": { - "line": 617, - "column": 56 - }, - "end": { - "line": 617, - "column": 57 - } - } - }, - { - "type": "CommentLine", - "value": " u is the amount of the lerp 0-1", - "start": 23802, - "end": 23836, - "loc": { - "start": { - "line": 618, - "column": 2 - }, - "end": { - "line": 618, - "column": 36 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 23840, - "end": 23846, - "loc": { - "start": { - "line": 619, - "column": 2 - }, - "end": { - "line": 619, - "column": 8 - } - } - }, - { - "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": 23847, - "end": 23851, - "loc": { - "start": { - "line": 619, - "column": 9 - }, - "end": { - "line": 619, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23851, - "end": 23852, - "loc": { - "start": { - "line": 619, - "column": 13 - }, - "end": { - "line": 619, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "flooredLerp", - "start": 23852, - "end": 23863, - "loc": { - "start": { - "line": 619, - "column": 14 - }, - "end": { - "line": 619, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23863, - "end": 23864, - "loc": { - "start": { - "line": 619, - "column": 25 - }, - "end": { - "line": 619, - "column": 26 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 23864, - "end": 23868, - "loc": { - "start": { - "line": 619, - "column": 26 - }, - "end": { - "line": 619, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23868, - "end": 23869, - "loc": { - "start": { - "line": 619, - "column": 30 - }, - "end": { - "line": 619, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 23869, - "end": 23878, - "loc": { - "start": { - "line": 619, - "column": 31 - }, - "end": { - "line": 619, - "column": 40 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23878, - "end": 23879, - "loc": { - "start": { - "line": 619, - "column": 40 - }, - "end": { - "line": 619, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor1", - "start": 23879, - "end": 23886, - "loc": { - "start": { - "line": 619, - "column": 41 - }, - "end": { - "line": 619, - "column": 48 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23886, - "end": 23887, - "loc": { - "start": { - "line": 619, - "column": 48 - }, - "end": { - "line": 619, - "column": 49 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23887, - "end": 23888, - "loc": { - "start": { - "line": 619, - "column": 49 - }, - "end": { - "line": 619, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 23888, - "end": 23895, - "loc": { - "start": { - "line": 619, - "column": 50 - }, - "end": { - "line": 619, - "column": 57 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23895, - "end": 23896, - "loc": { - "start": { - "line": 619, - "column": 57 - }, - "end": { - "line": 619, - "column": 58 - } - } - }, - { - "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": 23897, - "end": 23901, - "loc": { - "start": { - "line": 619, - "column": 59 - }, - "end": { - "line": 619, - "column": 63 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23901, - "end": 23902, - "loc": { - "start": { - "line": 619, - "column": 63 - }, - "end": { - "line": 619, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 23902, - "end": 23911, - "loc": { - "start": { - "line": 619, - "column": 64 - }, - "end": { - "line": 619, - "column": 73 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23911, - "end": 23912, - "loc": { - "start": { - "line": 619, - "column": 73 - }, - "end": { - "line": 619, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pColor2", - "start": 23912, - "end": 23919, - "loc": { - "start": { - "line": 619, - "column": 74 - }, - "end": { - "line": 619, - "column": 81 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23919, - "end": 23920, - "loc": { - "start": { - "line": 619, - "column": 81 - }, - "end": { - "line": 619, - "column": 82 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23920, - "end": 23921, - "loc": { - "start": { - "line": 619, - "column": 82 - }, - "end": { - "line": 619, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 23921, - "end": 23928, - "loc": { - "start": { - "line": 619, - "column": 83 - }, - "end": { - "line": 619, - "column": 90 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23928, - "end": 23929, - "loc": { - "start": { - "line": 619, - "column": 90 - }, - "end": { - "line": 619, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAmount", - "start": 23930, - "end": 23937, - "loc": { - "start": { - "line": 619, - "column": 92 - }, - "end": { - "line": 619, - "column": 99 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23937, - "end": 23938, - "loc": { - "start": { - "line": 619, - "column": 99 - }, - "end": { - "line": 619, - "column": 100 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23938, - "end": 23939, - "loc": { - "start": { - "line": 619, - "column": 100 - }, - "end": { - "line": 619, - "column": 101 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23942, - "end": 23943, - "loc": { - "start": { - "line": 620, - "column": 1 - }, - "end": { - "line": 620, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t ", - "start": 23946, - "end": 24734, - "loc": { - "start": { - "line": 621, - "column": 1 - }, - "end": { - "line": 634, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitionColor", - "start": 24737, - "end": 24752, - "loc": { - "start": { - "line": 635, - "column": 1 - }, - "end": { - "line": 635, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24752, - "end": 24753, - "loc": { - "start": { - "line": 635, - "column": 16 - }, - "end": { - "line": 635, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 24753, - "end": 24762, - "loc": { - "start": { - "line": 635, - "column": 17 - }, - "end": { - "line": 635, - "column": 26 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24762, - "end": 24763, - "loc": { - "start": { - "line": 635, - "column": 26 - }, - "end": { - "line": 635, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartColor", - "start": 24764, - "end": 24775, - "loc": { - "start": { - "line": 635, - "column": 28 - }, - "end": { - "line": 635, - "column": 39 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 24775, - "end": 24776, - "loc": { - "start": { - "line": 635, - "column": 39 - }, - "end": { - "line": 635, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#000", - "start": 24776, - "end": 24782, - "loc": { - "start": { - "line": 635, - "column": 40 - }, - "end": { - "line": 635, - "column": 46 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24782, - "end": 24783, - "loc": { - "start": { - "line": 635, - "column": 46 - }, - "end": { - "line": 635, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndColor", - "start": 24784, - "end": 24793, - "loc": { - "start": { - "line": 635, - "column": 48 - }, - "end": { - "line": 635, - "column": 57 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 24793, - "end": 24794, - "loc": { - "start": { - "line": 635, - "column": 57 - }, - "end": { - "line": 635, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "#fff", - "start": 24794, - "end": 24800, - "loc": { - "start": { - "line": 635, - "column": 58 - }, - "end": { - "line": 635, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24800, - "end": 24801, - "loc": { - "start": { - "line": 635, - "column": 64 - }, - "end": { - "line": 635, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 24802, - "end": 24811, - "loc": { - "start": { - "line": 635, - "column": 66 - }, - "end": { - "line": 635, - "column": 75 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 24811, - "end": 24812, - "loc": { - "start": { - "line": 635, - "column": 75 - }, - "end": { - "line": 635, - "column": 76 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1000, - "start": 24812, - "end": 24816, - "loc": { - "start": { - "line": 635, - "column": 76 - }, - "end": { - "line": 635, - "column": 80 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24816, - "end": 24817, - "loc": { - "start": { - "line": 635, - "column": 80 - }, - "end": { - "line": 635, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 24818, - "end": 24836, - "loc": { - "start": { - "line": 635, - "column": 82 - }, - "end": { - "line": 635, - "column": 100 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24836, - "end": 24837, - "loc": { - "start": { - "line": 635, - "column": 100 - }, - "end": { - "line": 635, - "column": 101 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 24838, - "end": 24850, - "loc": { - "start": { - "line": 635, - "column": 102 - }, - "end": { - "line": 635, - "column": 114 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24850, - "end": 24851, - "loc": { - "start": { - "line": 635, - "column": 114 - }, - "end": { - "line": 635, - "column": 115 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24852, - "end": 24853, - "loc": { - "start": { - "line": 635, - "column": 116 - }, - "end": { - "line": 635, - "column": 117 - } - } - }, - { - "type": "CommentLine", - "value": " Cannot use this API on the server", - "start": 24857, - "end": 24893, - "loc": { - "start": { - "line": 636, - "column": 2 - }, - "end": { - "line": 636, - "column": 38 - } - } - }, - { - "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": 24897, - "end": 24899, - "loc": { - "start": { - "line": 637, - "column": 2 - }, - "end": { - "line": 637, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24900, - "end": 24901, - "loc": { - "start": { - "line": 637, - "column": 5 - }, - "end": { - "line": 637, - "column": 6 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 24901, - "end": 24902, - "loc": { - "start": { - "line": 637, - "column": 6 - }, - "end": { - "line": 637, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 24902, - "end": 24912, - "loc": { - "start": { - "line": 637, - "column": 7 - }, - "end": { - "line": 637, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24912, - "end": 24913, - "loc": { - "start": { - "line": 637, - "column": 17 - }, - "end": { - "line": 637, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "window", - "start": 24913, - "end": 24919, - "loc": { - "start": { - "line": 637, - "column": 18 - }, - "end": { - "line": 637, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24919, - "end": 24920, - "loc": { - "start": { - "line": 637, - "column": 24 - }, - "end": { - "line": 637, - "column": 25 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 24921, - "end": 24927, - "loc": { - "start": { - "line": 637, - "column": 26 - }, - "end": { - "line": 637, - "column": 32 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24927, - "end": 24928, - "loc": { - "start": { - "line": 637, - "column": 32 - }, - "end": { - "line": 637, - "column": 33 - } - } - }, - { - "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": 24932, - "end": 24937, - "loc": { - "start": { - "line": 638, - "column": 2 - }, - "end": { - "line": 638, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 24938, - "end": 24955, - "loc": { - "start": { - "line": 638, - "column": 8 - }, - "end": { - "line": 638, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 24956, - "end": 24957, - "loc": { - "start": { - "line": 638, - "column": 26 - }, - "end": { - "line": 638, - "column": 27 - } - } - }, - { - "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": 24958, - "end": 24964, - "loc": { - "start": { - "line": 638, - "column": 28 - }, - "end": { - "line": 638, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24964, - "end": 24965, - "loc": { - "start": { - "line": 638, - "column": 34 - }, - "end": { - "line": 638, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 24965, - "end": 24983, - "loc": { - "start": { - "line": 638, - "column": 35 - }, - "end": { - "line": 638, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24983, - "end": 24984, - "loc": { - "start": { - "line": 638, - "column": 53 - }, - "end": { - "line": 638, - "column": 54 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 24985, - "end": 24988, - "loc": { - "start": { - "line": 638, - "column": 55 - }, - "end": { - "line": 638, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "function", - "start": 24989, - "end": 24999, - "loc": { - "start": { - "line": 638, - "column": 59 - }, - "end": { - "line": 638, - "column": 69 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25000, - "end": 25001, - "loc": { - "start": { - "line": 638, - "column": 70 - }, - "end": { - "line": 638, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIterativeCallback", - "start": 25002, - "end": 25020, - "loc": { - "start": { - "line": 638, - "column": 72 - }, - "end": { - "line": 638, - "column": 90 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25021, - "end": 25022, - "loc": { - "start": { - "line": 638, - "column": 91 - }, - "end": { - "line": 638, - "column": 92 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 25023, - "end": 25027, - "loc": { - "start": { - "line": 638, - "column": 93 - }, - "end": { - "line": 638, - "column": 97 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25027, - "end": 25028, - "loc": { - "start": { - "line": 638, - "column": 97 - }, - "end": { - "line": 638, - "column": 98 - } - } - }, - { - "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": 25032, - "end": 25037, - "loc": { - "start": { - "line": 639, - "column": 2 - }, - "end": { - "line": 639, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 25038, - "end": 25049, - "loc": { - "start": { - "line": 639, - "column": 8 - }, - "end": { - "line": 639, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25050, - "end": 25051, - "loc": { - "start": { - "line": 639, - "column": 20 - }, - "end": { - "line": 639, - "column": 21 - } - } - }, - { - "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": 25052, - "end": 25058, - "loc": { - "start": { - "line": 639, - "column": 22 - }, - "end": { - "line": 639, - "column": 28 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25058, - "end": 25059, - "loc": { - "start": { - "line": 639, - "column": 28 - }, - "end": { - "line": 639, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 25059, - "end": 25071, - "loc": { - "start": { - "line": 639, - "column": 29 - }, - "end": { - "line": 639, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25071, - "end": 25072, - "loc": { - "start": { - "line": 639, - "column": 41 - }, - "end": { - "line": 639, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 25073, - "end": 25076, - "loc": { - "start": { - "line": 639, - "column": 43 - }, - "end": { - "line": 639, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "function", - "start": 25077, - "end": 25087, - "loc": { - "start": { - "line": 639, - "column": 47 - }, - "end": { - "line": 639, - "column": 57 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25088, - "end": 25089, - "loc": { - "start": { - "line": 639, - "column": 58 - }, - "end": { - "line": 639, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndCallback", - "start": 25090, - "end": 25102, - "loc": { - "start": { - "line": 639, - "column": 60 - }, - "end": { - "line": 639, - "column": 72 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25103, - "end": 25104, - "loc": { - "start": { - "line": 639, - "column": 73 - }, - "end": { - "line": 639, - "column": 74 - } - } - }, - { - "type": { - "label": "null", - "keyword": "null", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "null", - "start": 25105, - "end": 25109, - "loc": { - "start": { - "line": 639, - "column": 75 - }, - "end": { - "line": 639, - "column": 79 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25109, - "end": 25110, - "loc": { - "start": { - "line": 639, - "column": 79 - }, - "end": { - "line": 639, - "column": 80 - } - } - }, - { - "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": 25114, - "end": 25117, - "loc": { - "start": { - "line": 640, - "column": 2 - }, - "end": { - "line": 640, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25118, - "end": 25120, - "loc": { - "start": { - "line": 640, - "column": 6 - }, - "end": { - "line": 640, - "column": 8 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25120, - "end": 25121, - "loc": { - "start": { - "line": 640, - "column": 8 - }, - "end": { - "line": 640, - "column": 9 - } - } - }, - { - "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": 25125, - "end": 25128, - "loc": { - "start": { - "line": 641, - "column": 2 - }, - "end": { - "line": 641, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 25129, - "end": 25139, - "loc": { - "start": { - "line": 641, - "column": 6 - }, - "end": { - "line": 641, - "column": 16 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25139, - "end": 25140, - "loc": { - "start": { - "line": 641, - "column": 16 - }, - "end": { - "line": 641, - "column": 17 - } - } - }, - { - "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": 25144, - "end": 25147, - "loc": { - "start": { - "line": 642, - "column": 2 - }, - "end": { - "line": 642, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 25148, - "end": 25160, - "loc": { - "start": { - "line": 642, - "column": 6 - }, - "end": { - "line": 642, - "column": 18 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25160, - "end": 25161, - "loc": { - "start": { - "line": 642, - "column": 18 - }, - "end": { - "line": 642, - "column": 19 - } - } - }, - { - "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": 25167, - "end": 25169, - "loc": { - "start": { - "line": 644, - "column": 2 - }, - "end": { - "line": 644, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25170, - "end": 25171, - "loc": { - "start": { - "line": 644, - "column": 5 - }, - "end": { - "line": 644, - "column": 6 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25171, - "end": 25180, - "loc": { - "start": { - "line": 644, - "column": 6 - }, - "end": { - "line": 644, - "column": 15 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25180, - "end": 25181, - "loc": { - "start": { - "line": 644, - "column": 15 - }, - "end": { - "line": 644, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25182, - "end": 25183, - "loc": { - "start": { - "line": 644, - "column": 17 - }, - "end": { - "line": 644, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25188, - "end": 25190, - "loc": { - "start": { - "line": 645, - "column": 3 - }, - "end": { - "line": 645, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25191, - "end": 25192, - "loc": { - "start": { - "line": 645, - "column": 6 - }, - "end": { - "line": 645, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25193, - "end": 25202, - "loc": { - "start": { - "line": 645, - "column": 8 - }, - "end": { - "line": 645, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25202, - "end": 25203, - "loc": { - "start": { - "line": 645, - "column": 17 - }, - "end": { - "line": 645, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25203, - "end": 25205, - "loc": { - "start": { - "line": 645, - "column": 18 - }, - "end": { - "line": 645, - "column": 20 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25206, - "end": 25207, - "loc": { - "start": { - "line": 645, - "column": 21 - }, - "end": { - "line": 645, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25208, - "end": 25217, - "loc": { - "start": { - "line": 645, - "column": 23 - }, - "end": { - "line": 645, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25217, - "end": 25218, - "loc": { - "start": { - "line": 645, - "column": 32 - }, - "end": { - "line": 645, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25218, - "end": 25220, - "loc": { - "start": { - "line": 645, - "column": 33 - }, - "end": { - "line": 645, - "column": 35 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25221, - "end": 25222, - "loc": { - "start": { - "line": 645, - "column": 36 - }, - "end": { - "line": 645, - "column": 37 - } - } - }, - { - "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": 25223, - "end": 25227, - "loc": { - "start": { - "line": 645, - "column": 38 - }, - "end": { - "line": 645, - "column": 42 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25227, - "end": 25228, - "loc": { - "start": { - "line": 645, - "column": 42 - }, - "end": { - "line": 645, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 25228, - "end": 25238, - "loc": { - "start": { - "line": 645, - "column": 43 - }, - "end": { - "line": 645, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25238, - "end": 25239, - "loc": { - "start": { - "line": 645, - "column": 53 - }, - "end": { - "line": 645, - "column": 54 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25239, - "end": 25240, - "loc": { - "start": { - "line": 645, - "column": 54 - }, - "end": { - "line": 645, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25240, - "end": 25241, - "loc": { - "start": { - "line": 645, - "column": 55 - }, - "end": { - "line": 645, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 25246, - "end": 25256, - "loc": { - "start": { - "line": 646, - "column": 3 - }, - "end": { - "line": 646, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25257, - "end": 25258, - "loc": { - "start": { - "line": 646, - "column": 14 - }, - "end": { - "line": 646, - "column": 15 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25259, - "end": 25260, - "loc": { - "start": { - "line": 646, - "column": 16 - }, - "end": { - "line": 646, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25260, - "end": 25269, - "loc": { - "start": { - "line": 646, - "column": 17 - }, - "end": { - "line": 646, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25269, - "end": 25270, - "loc": { - "start": { - "line": 646, - "column": 26 - }, - "end": { - "line": 646, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 25270, - "end": 25274, - "loc": { - "start": { - "line": 646, - "column": 27 - }, - "end": { - "line": 646, - "column": 31 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 25275, - "end": 25278, - "loc": { - "start": { - "line": 646, - "column": 32 - }, - "end": { - "line": 646, - "column": 35 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "GeneratedParticle", - "start": 25279, - "end": 25298, - "loc": { - "start": { - "line": 646, - "column": 36 - }, - "end": { - "line": 646, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25298, - "end": 25299, - "loc": { - "start": { - "line": 646, - "column": 55 - }, - "end": { - "line": 646, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25299, - "end": 25300, - "loc": { - "start": { - "line": 646, - "column": 56 - }, - "end": { - "line": 646, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 25305, - "end": 25317, - "loc": { - "start": { - "line": 647, - "column": 3 - }, - "end": { - "line": 647, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25318, - "end": 25319, - "loc": { - "start": { - "line": 647, - "column": 16 - }, - "end": { - "line": 647, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25320, - "end": 25321, - "loc": { - "start": { - "line": 647, - "column": 18 - }, - "end": { - "line": 647, - "column": 19 - } - } - }, - { - "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": 25321, - "end": 25327, - "loc": { - "start": { - "line": 647, - "column": 19 - }, - "end": { - "line": 647, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25327, - "end": 25328, - "loc": { - "start": { - "line": 647, - "column": 25 - }, - "end": { - "line": 647, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25328, - "end": 25337, - "loc": { - "start": { - "line": 647, - "column": 26 - }, - "end": { - "line": 647, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25337, - "end": 25338, - "loc": { - "start": { - "line": 647, - "column": 35 - }, - "end": { - "line": 647, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 25338, - "end": 25343, - "loc": { - "start": { - "line": 647, - "column": 36 - }, - "end": { - "line": 647, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25343, - "end": 25344, - "loc": { - "start": { - "line": 647, - "column": 41 - }, - "end": { - "line": 647, - "column": 42 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 25345, - "end": 25348, - "loc": { - "start": { - "line": 647, - "column": 43 - }, - "end": { - "line": 647, - "column": 46 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 25349, - "end": 25357, - "loc": { - "start": { - "line": 647, - "column": 47 - }, - "end": { - "line": 647, - "column": 55 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 25358, - "end": 25360, - "loc": { - "start": { - "line": 647, - "column": 56 - }, - "end": { - "line": 647, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25361, - "end": 25370, - "loc": { - "start": { - "line": 647, - "column": 59 - }, - "end": { - "line": 647, - "column": 68 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25370, - "end": 25371, - "loc": { - "start": { - "line": 647, - "column": 68 - }, - "end": { - "line": 647, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 25371, - "end": 25376, - "loc": { - "start": { - "line": 647, - "column": 69 - }, - "end": { - "line": 647, - "column": 74 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25376, - "end": 25377, - "loc": { - "start": { - "line": 647, - "column": 74 - }, - "end": { - "line": 647, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "constructor", - "start": 25377, - "end": 25388, - "loc": { - "start": { - "line": 647, - "column": 75 - }, - "end": { - "line": 647, - "column": 86 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 25389, - "end": 25392, - "loc": { - "start": { - "line": 647, - "column": 87 - }, - "end": { - "line": 647, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 25393, - "end": 25399, - "loc": { - "start": { - "line": 647, - "column": 91 - }, - "end": { - "line": 647, - "column": 97 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25400, - "end": 25401, - "loc": { - "start": { - "line": 647, - "column": 98 - }, - "end": { - "line": 647, - "column": 99 - } - } - }, - { - "type": { - "label": "true", - "keyword": "true", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "true", - "start": 25402, - "end": 25406, - "loc": { - "start": { - "line": 647, - "column": 100 - }, - "end": { - "line": 647, - "column": 104 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25407, - "end": 25408, - "loc": { - "start": { - "line": 647, - "column": 105 - }, - "end": { - "line": 647, - "column": 106 - } - } - }, - { - "type": { - "label": "false", - "keyword": "false", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "false", - "start": 25409, - "end": 25414, - "loc": { - "start": { - "line": 647, - "column": 107 - }, - "end": { - "line": 647, - "column": 112 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25414, - "end": 25415, - "loc": { - "start": { - "line": 647, - "column": 112 - }, - "end": { - "line": 647, - "column": 113 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25415, - "end": 25416, - "loc": { - "start": { - "line": 647, - "column": 113 - }, - "end": { - "line": 647, - "column": 114 - } - } - }, - { - "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": 25421, - "end": 25423, - "loc": { - "start": { - "line": 648, - "column": 3 - }, - "end": { - "line": 648, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25424, - "end": 25425, - "loc": { - "start": { - "line": 648, - "column": 6 - }, - "end": { - "line": 648, - "column": 7 - } - } - }, - { - "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": 25425, - "end": 25429, - "loc": { - "start": { - "line": 648, - "column": 7 - }, - "end": { - "line": 648, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25429, - "end": 25430, - "loc": { - "start": { - "line": 648, - "column": 11 - }, - "end": { - "line": 648, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 25430, - "end": 25441, - "loc": { - "start": { - "line": 648, - "column": 12 - }, - "end": { - "line": 648, - "column": 23 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25441, - "end": 25442, - "loc": { - "start": { - "line": 648, - "column": 23 - }, - "end": { - "line": 648, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25442, - "end": 25444, - "loc": { - "start": { - "line": 648, - "column": 24 - }, - "end": { - "line": 648, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25444, - "end": 25445, - "loc": { - "start": { - "line": 648, - "column": 26 - }, - "end": { - "line": 648, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25445, - "end": 25446, - "loc": { - "start": { - "line": 648, - "column": 27 - }, - "end": { - "line": 648, - "column": 28 - } - } - }, - { - "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": 25447, - "end": 25451, - "loc": { - "start": { - "line": 648, - "column": 29 - }, - "end": { - "line": 648, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25451, - "end": 25452, - "loc": { - "start": { - "line": 648, - "column": 33 - }, - "end": { - "line": 648, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 25452, - "end": 25473, - "loc": { - "start": { - "line": 648, - "column": 34 - }, - "end": { - "line": 648, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25473, - "end": 25474, - "loc": { - "start": { - "line": 648, - "column": 55 - }, - "end": { - "line": 648, - "column": 56 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25474, - "end": 25476, - "loc": { - "start": { - "line": 648, - "column": 56 - }, - "end": { - "line": 648, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25476, - "end": 25477, - "loc": { - "start": { - "line": 648, - "column": 58 - }, - "end": { - "line": 648, - "column": 59 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25477, - "end": 25478, - "loc": { - "start": { - "line": 648, - "column": 59 - }, - "end": { - "line": 648, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25482, - "end": 25483, - "loc": { - "start": { - "line": 649, - "column": 2 - }, - "end": { - "line": 649, - "column": 3 - } - } - }, - { - "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": 25484, - "end": 25488, - "loc": { - "start": { - "line": 649, - "column": 4 - }, - "end": { - "line": 649, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25489, - "end": 25490, - "loc": { - "start": { - "line": 649, - "column": 9 - }, - "end": { - "line": 649, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25495, - "end": 25497, - "loc": { - "start": { - "line": 650, - "column": 3 - }, - "end": { - "line": 650, - "column": 5 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25498, - "end": 25499, - "loc": { - "start": { - "line": 650, - "column": 6 - }, - "end": { - "line": 650, - "column": 7 - } - } - }, - { - "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": 25500, - "end": 25504, - "loc": { - "start": { - "line": 650, - "column": 8 - }, - "end": { - "line": 650, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25504, - "end": 25505, - "loc": { - "start": { - "line": 650, - "column": 12 - }, - "end": { - "line": 650, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "generateID", - "start": 25505, - "end": 25515, - "loc": { - "start": { - "line": 650, - "column": 13 - }, - "end": { - "line": 650, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25515, - "end": 25516, - "loc": { - "start": { - "line": 650, - "column": 23 - }, - "end": { - "line": 650, - "column": 24 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25516, - "end": 25517, - "loc": { - "start": { - "line": 650, - "column": 24 - }, - "end": { - "line": 650, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25517, - "end": 25518, - "loc": { - "start": { - "line": 650, - "column": 25 - }, - "end": { - "line": 650, - "column": 26 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25522, - "end": 25523, - "loc": { - "start": { - "line": 651, - "column": 2 - }, - "end": { - "line": 651, - "column": 3 - } - } - }, - { - "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": 25532, - "end": 25536, - "loc": { - "start": { - "line": 653, - "column": 2 - }, - "end": { - "line": 653, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25536, - "end": 25537, - "loc": { - "start": { - "line": 653, - "column": 6 - }, - "end": { - "line": 653, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 25537, - "end": 25548, - "loc": { - "start": { - "line": 653, - "column": 7 - }, - "end": { - "line": 653, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25548, - "end": 25549, - "loc": { - "start": { - "line": 653, - "column": 18 - }, - "end": { - "line": 653, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25549, - "end": 25551, - "loc": { - "start": { - "line": 653, - "column": 19 - }, - "end": { - "line": 653, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25551, - "end": 25552, - "loc": { - "start": { - "line": 653, - "column": 21 - }, - "end": { - "line": 653, - "column": 22 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25553, - "end": 25554, - "loc": { - "start": { - "line": 653, - "column": 23 - }, - "end": { - "line": 653, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25555, - "end": 25556, - "loc": { - "start": { - "line": 653, - "column": 25 - }, - "end": { - "line": 653, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "duration", - "start": 25561, - "end": 25571, - "loc": { - "start": { - "line": 654, - "column": 3 - }, - "end": { - "line": 654, - "column": 13 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25571, - "end": 25572, - "loc": { - "start": { - "line": 654, - "column": 13 - }, - "end": { - "line": 654, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 25573, - "end": 25582, - "loc": { - "start": { - "line": 654, - "column": 15 - }, - "end": { - "line": 654, - "column": 24 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25582, - "end": 25583, - "loc": { - "start": { - "line": 654, - "column": 24 - }, - "end": { - "line": 654, - "column": 25 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "timeTracker", - "start": 25588, - "end": 25601, - "loc": { - "start": { - "line": 655, - "column": 3 - }, - "end": { - "line": 655, - "column": 16 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25601, - "end": 25602, - "loc": { - "start": { - "line": 655, - "column": 16 - }, - "end": { - "line": 655, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 25603, - "end": 25613, - "loc": { - "start": { - "line": 655, - "column": 18 - }, - "end": { - "line": 655, - "column": 28 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25614, - "end": 25615, - "loc": { - "start": { - "line": 655, - "column": 29 - }, - "end": { - "line": 655, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25616, - "end": 25625, - "loc": { - "start": { - "line": 655, - "column": 31 - }, - "end": { - "line": 655, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25625, - "end": 25626, - "loc": { - "start": { - "line": 655, - "column": 40 - }, - "end": { - "line": 655, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 25626, - "end": 25630, - "loc": { - "start": { - "line": 655, - "column": 41 - }, - "end": { - "line": 655, - "column": 45 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25630, - "end": 25631, - "loc": { - "start": { - "line": 655, - "column": 45 - }, - "end": { - "line": 655, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lifetime", - "start": 25631, - "end": 25639, - "loc": { - "start": { - "line": 655, - "column": 46 - }, - "end": { - "line": 655, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25640, - "end": 25641, - "loc": { - "start": { - "line": 655, - "column": 55 - }, - "end": { - "line": 655, - "column": 56 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 25642, - "end": 25643, - "loc": { - "start": { - "line": 655, - "column": 57 - }, - "end": { - "line": 655, - "column": 58 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25647, - "end": 25648, - "loc": { - "start": { - "line": 656, - "column": 2 - }, - "end": { - "line": 656, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25648, - "end": 25649, - "loc": { - "start": { - "line": 656, - "column": 3 - }, - "end": { - "line": 656, - "column": 4 - } - } - }, - { - "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": 25655, - "end": 25660, - "loc": { - "start": { - "line": 658, - "column": 2 - }, - "end": { - "line": 658, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 25661, - "end": 25674, - "loc": { - "start": { - "line": 658, - "column": 8 - }, - "end": { - "line": 658, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25675, - "end": 25676, - "loc": { - "start": { - "line": 658, - "column": 22 - }, - "end": { - "line": 658, - "column": 23 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 25677, - "end": 25681, - "loc": { - "start": { - "line": 658, - "column": 24 - }, - "end": { - "line": 658, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25681, - "end": 25682, - "loc": { - "start": { - "line": 658, - "column": 28 - }, - "end": { - "line": 658, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 25682, - "end": 25691, - "loc": { - "start": { - "line": 658, - "column": 29 - }, - "end": { - "line": 658, - "column": 38 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25691, - "end": 25692, - "loc": { - "start": { - "line": 658, - "column": 38 - }, - "end": { - "line": 658, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pStartColor", - "start": 25692, - "end": 25703, - "loc": { - "start": { - "line": 658, - "column": 39 - }, - "end": { - "line": 658, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25703, - "end": 25704, - "loc": { - "start": { - "line": 658, - "column": 50 - }, - "end": { - "line": 658, - "column": 51 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25704, - "end": 25705, - "loc": { - "start": { - "line": 658, - "column": 51 - }, - "end": { - "line": 658, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 25705, - "end": 25713, - "loc": { - "start": { - "line": 658, - "column": 52 - }, - "end": { - "line": 658, - "column": 60 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25713, - "end": 25714, - "loc": { - "start": { - "line": 658, - "column": 60 - }, - "end": { - "line": 658, - "column": 61 - } - } - }, - { - "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": 25718, - "end": 25723, - "loc": { - "start": { - "line": 659, - "column": 2 - }, - "end": { - "line": 659, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 25724, - "end": 25735, - "loc": { - "start": { - "line": 659, - "column": 8 - }, - "end": { - "line": 659, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25736, - "end": 25737, - "loc": { - "start": { - "line": 659, - "column": 20 - }, - "end": { - "line": 659, - "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": 25738, - "end": 25742, - "loc": { - "start": { - "line": 659, - "column": 22 - }, - "end": { - "line": 659, - "column": 26 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25742, - "end": 25743, - "loc": { - "start": { - "line": 659, - "column": 26 - }, - "end": { - "line": 659, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 25743, - "end": 25752, - "loc": { - "start": { - "line": 659, - "column": 27 - }, - "end": { - "line": 659, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25752, - "end": 25753, - "loc": { - "start": { - "line": 659, - "column": 36 - }, - "end": { - "line": 659, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pEndColor", - "start": 25753, - "end": 25762, - "loc": { - "start": { - "line": 659, - "column": 37 - }, - "end": { - "line": 659, - "column": 46 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25762, - "end": 25763, - "loc": { - "start": { - "line": 659, - "column": 46 - }, - "end": { - "line": 659, - "column": 47 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25763, - "end": 25764, - "loc": { - "start": { - "line": 659, - "column": 47 - }, - "end": { - "line": 659, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbArray", - "start": 25764, - "end": 25772, - "loc": { - "start": { - "line": 659, - "column": 48 - }, - "end": { - "line": 659, - "column": 56 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25772, - "end": 25773, - "loc": { - "start": { - "line": 659, - "column": 56 - }, - "end": { - "line": 659, - "column": 57 - } - } - }, - { - "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": 25779, - "end": 25784, - "loc": { - "start": { - "line": 661, - "column": 2 - }, - "end": { - "line": 661, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 25785, - "end": 25789, - "loc": { - "start": { - "line": 661, - "column": 8 - }, - "end": { - "line": 661, - "column": 12 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25790, - "end": 25791, - "loc": { - "start": { - "line": 661, - "column": 13 - }, - "end": { - "line": 661, - "column": 14 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 25792, - "end": 25796, - "loc": { - "start": { - "line": 661, - "column": 15 - }, - "end": { - "line": 661, - "column": 19 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25796, - "end": 25797, - "loc": { - "start": { - "line": 661, - "column": 19 - }, - "end": { - "line": 661, - "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": 25801, - "end": 25805, - "loc": { - "start": { - "line": 662, - "column": 2 - }, - "end": { - "line": 662, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25805, - "end": 25806, - "loc": { - "start": { - "line": 662, - "column": 6 - }, - "end": { - "line": 662, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 25806, - "end": 25817, - "loc": { - "start": { - "line": 662, - "column": 7 - }, - "end": { - "line": 662, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25817, - "end": 25818, - "loc": { - "start": { - "line": 662, - "column": 18 - }, - "end": { - "line": 662, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25818, - "end": 25820, - "loc": { - "start": { - "line": 662, - "column": 19 - }, - "end": { - "line": 662, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25820, - "end": 25821, - "loc": { - "start": { - "line": 662, - "column": 21 - }, - "end": { - "line": 662, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25821, - "end": 25822, - "loc": { - "start": { - "line": 662, - "column": 22 - }, - "end": { - "line": 662, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 25822, - "end": 25826, - "loc": { - "start": { - "line": 662, - "column": 23 - }, - "end": { - "line": 662, - "column": 27 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 25827, - "end": 25828, - "loc": { - "start": { - "line": 662, - "column": 28 - }, - "end": { - "line": 662, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25829, - "end": 25830, - "loc": { - "start": { - "line": 662, - "column": 30 - }, - "end": { - "line": 662, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTimeStamp", - "start": 25830, - "end": 25840, - "loc": { - "start": { - "line": 662, - "column": 31 - }, - "end": { - "line": 662, - "column": 41 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25840, - "end": 25841, - "loc": { - "start": { - "line": 662, - "column": 41 - }, - "end": { - "line": 662, - "column": 42 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25842, - "end": 25844, - "loc": { - "start": { - "line": 662, - "column": 43 - }, - "end": { - "line": 662, - "column": 45 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25845, - "end": 25846, - "loc": { - "start": { - "line": 662, - "column": 46 - }, - "end": { - "line": 662, - "column": 47 - } - } - }, - { - "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": 25851, - "end": 25853, - "loc": { - "start": { - "line": 663, - "column": 3 - }, - "end": { - "line": 663, - "column": 5 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25854, - "end": 25855, - "loc": { - "start": { - "line": 663, - "column": 6 - }, - "end": { - "line": 663, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 25855, - "end": 25859, - "loc": { - "start": { - "line": 663, - "column": 7 - }, - "end": { - "line": 663, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25859, - "end": 25860, - "loc": { - "start": { - "line": 663, - "column": 11 - }, - "end": { - "line": 663, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 25860, - "end": 25871, - "loc": { - "start": { - "line": 663, - "column": 12 - }, - "end": { - "line": 663, - "column": 23 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25871, - "end": 25872, - "loc": { - "start": { - "line": 663, - "column": 23 - }, - "end": { - "line": 663, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 25872, - "end": 25874, - "loc": { - "start": { - "line": 663, - "column": 24 - }, - "end": { - "line": 663, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25874, - "end": 25875, - "loc": { - "start": { - "line": 663, - "column": 26 - }, - "end": { - "line": 663, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25875, - "end": 25876, - "loc": { - "start": { - "line": 663, - "column": 27 - }, - "end": { - "line": 663, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25877, - "end": 25878, - "loc": { - "start": { - "line": 663, - "column": 29 - }, - "end": { - "line": 663, - "column": 30 - } - } - }, - { - "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": 25884, - "end": 25886, - "loc": { - "start": { - "line": 664, - "column": 4 - }, - "end": { - "line": 664, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25887, - "end": 25888, - "loc": { - "start": { - "line": 664, - "column": 7 - }, - "end": { - "line": 664, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isParticle", - "start": 25888, - "end": 25898, - "loc": { - "start": { - "line": 664, - "column": 8 - }, - "end": { - "line": 664, - "column": 18 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25898, - "end": 25899, - "loc": { - "start": { - "line": 664, - "column": 18 - }, - "end": { - "line": 664, - "column": 19 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25900, - "end": 25901, - "loc": { - "start": { - "line": 664, - "column": 20 - }, - "end": { - "line": 664, - "column": 21 - } - } - }, - { - "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": 25908, - "end": 25910, - "loc": { - "start": { - "line": 665, - "column": 5 - }, - "end": { - "line": 665, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25911, - "end": 25912, - "loc": { - "start": { - "line": 665, - "column": 8 - }, - "end": { - "line": 665, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25912, - "end": 25921, - "loc": { - "start": { - "line": 665, - "column": 9 - }, - "end": { - "line": 665, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25921, - "end": 25922, - "loc": { - "start": { - "line": 665, - "column": 18 - }, - "end": { - "line": 665, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 25922, - "end": 25926, - "loc": { - "start": { - "line": 665, - "column": 19 - }, - "end": { - "line": 665, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25926, - "end": 25927, - "loc": { - "start": { - "line": 665, - "column": 23 - }, - "end": { - "line": 665, - "column": 24 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25928, - "end": 25929, - "loc": { - "start": { - "line": 665, - "column": 25 - }, - "end": { - "line": 665, - "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": 25937, - "end": 25939, - "loc": { - "start": { - "line": 666, - "column": 6 - }, - "end": { - "line": 666, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25940, - "end": 25941, - "loc": { - "start": { - "line": 666, - "column": 9 - }, - "end": { - "line": 666, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25941, - "end": 25950, - "loc": { - "start": { - "line": 666, - "column": 10 - }, - "end": { - "line": 666, - "column": 19 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25950, - "end": 25951, - "loc": { - "start": { - "line": 666, - "column": 19 - }, - "end": { - "line": 666, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 25951, - "end": 25955, - "loc": { - "start": { - "line": 666, - "column": 20 - }, - "end": { - "line": 666, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25955, - "end": 25956, - "loc": { - "start": { - "line": 666, - "column": 24 - }, - "end": { - "line": 666, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "owner", - "start": 25956, - "end": 25961, - "loc": { - "start": { - "line": 666, - "column": 25 - }, - "end": { - "line": 666, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25961, - "end": 25962, - "loc": { - "start": { - "line": 666, - "column": 30 - }, - "end": { - "line": 666, - "column": 31 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25963, - "end": 25964, - "loc": { - "start": { - "line": 666, - "column": 32 - }, - "end": { - "line": 666, - "column": 33 - } - } - }, - { - "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": 25973, - "end": 25975, - "loc": { - "start": { - "line": 667, - "column": 7 - }, - "end": { - "line": 667, - "column": 9 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25976, - "end": 25977, - "loc": { - "start": { - "line": 667, - "column": 10 - }, - "end": { - "line": 667, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 25977, - "end": 25986, - "loc": { - "start": { - "line": 667, - "column": 11 - }, - "end": { - "line": 667, - "column": 20 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25986, - "end": 25987, - "loc": { - "start": { - "line": 667, - "column": 20 - }, - "end": { - "line": 667, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 25987, - "end": 25991, - "loc": { - "start": { - "line": 667, - "column": 21 - }, - "end": { - "line": 667, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25991, - "end": 25992, - "loc": { - "start": { - "line": 667, - "column": 25 - }, - "end": { - "line": 667, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "owner", - "start": 25992, - "end": 25997, - "loc": { - "start": { - "line": 667, - "column": 26 - }, - "end": { - "line": 667, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25997, - "end": 25998, - "loc": { - "start": { - "line": 667, - "column": 31 - }, - "end": { - "line": 667, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "settings", - "start": 25998, - "end": 26006, - "loc": { - "start": { - "line": 667, - "column": 32 - }, - "end": { - "line": 667, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26006, - "end": 26007, - "loc": { - "start": { - "line": 667, - "column": 40 - }, - "end": { - "line": 667, - "column": 41 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "paused", - "start": 26007, - "end": 26013, - "loc": { - "start": { - "line": 667, - "column": 41 - }, - "end": { - "line": 667, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26013, - "end": 26014, - "loc": { - "start": { - "line": 667, - "column": 47 - }, - "end": { - "line": 667, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26015, - "end": 26016, - "loc": { - "start": { - "line": 667, - "column": 49 - }, - "end": { - "line": 667, - "column": 50 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 26026, - "end": 26032, - "loc": { - "start": { - "line": 668, - "column": 8 - }, - "end": { - "line": 668, - "column": 14 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26032, - "end": 26033, - "loc": { - "start": { - "line": 668, - "column": 14 - }, - "end": { - "line": 668, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26042, - "end": 26043, - "loc": { - "start": { - "line": 669, - "column": 7 - }, - "end": { - "line": 669, - "column": 8 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26051, - "end": 26052, - "loc": { - "start": { - "line": 670, - "column": 6 - }, - "end": { - "line": 670, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26059, - "end": 26060, - "loc": { - "start": { - "line": 671, - "column": 5 - }, - "end": { - "line": 671, - "column": 6 - } - } - }, - { - "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": 26061, - "end": 26065, - "loc": { - "start": { - "line": 671, - "column": 7 - }, - "end": { - "line": 671, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26066, - "end": 26067, - "loc": { - "start": { - "line": 671, - "column": 12 - }, - "end": { - "line": 671, - "column": 13 - } - } - }, - { - "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": 26075, - "end": 26077, - "loc": { - "start": { - "line": 672, - "column": 6 - }, - "end": { - "line": 672, - "column": 8 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26078, - "end": 26079, - "loc": { - "start": { - "line": 672, - "column": 9 - }, - "end": { - "line": 672, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26079, - "end": 26083, - "loc": { - "start": { - "line": 672, - "column": 10 - }, - "end": { - "line": 672, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26083, - "end": 26084, - "loc": { - "start": { - "line": 672, - "column": 14 - }, - "end": { - "line": 672, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 26084, - "end": 26095, - "loc": { - "start": { - "line": 672, - "column": 15 - }, - "end": { - "line": 672, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26095, - "end": 26096, - "loc": { - "start": { - "line": 672, - "column": 26 - }, - "end": { - "line": 672, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 26096, - "end": 26098, - "loc": { - "start": { - "line": 672, - "column": 27 - }, - "end": { - "line": 672, - "column": 29 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26098, - "end": 26099, - "loc": { - "start": { - "line": 672, - "column": 29 - }, - "end": { - "line": 672, - "column": 30 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26099, - "end": 26100, - "loc": { - "start": { - "line": 672, - "column": 30 - }, - "end": { - "line": 672, - "column": 31 - } - } - }, - { - "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": 26101, - "end": 26105, - "loc": { - "start": { - "line": 672, - "column": 32 - }, - "end": { - "line": 672, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26105, - "end": 26106, - "loc": { - "start": { - "line": 672, - "column": 36 - }, - "end": { - "line": 672, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 26106, - "end": 26127, - "loc": { - "start": { - "line": 672, - "column": 37 - }, - "end": { - "line": 672, - "column": 58 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26127, - "end": 26128, - "loc": { - "start": { - "line": 672, - "column": 58 - }, - "end": { - "line": 672, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 26128, - "end": 26130, - "loc": { - "start": { - "line": 672, - "column": 59 - }, - "end": { - "line": 672, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26130, - "end": 26131, - "loc": { - "start": { - "line": 672, - "column": 61 - }, - "end": { - "line": 672, - "column": 62 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26131, - "end": 26132, - "loc": { - "start": { - "line": 672, - "column": 62 - }, - "end": { - "line": 672, - "column": 63 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 26140, - "end": 26146, - "loc": { - "start": { - "line": 673, - "column": 6 - }, - "end": { - "line": 673, - "column": 12 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26146, - "end": 26147, - "loc": { - "start": { - "line": 673, - "column": 12 - }, - "end": { - "line": 673, - "column": 13 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26158, - "end": 26159, - "loc": { - "start": { - "line": 674, - "column": 5 - }, - "end": { - "line": 674, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26165, - "end": 26166, - "loc": { - "start": { - "line": 675, - "column": 4 - }, - "end": { - "line": 675, - "column": 5 - } - } - }, - { - "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": 26174, - "end": 26179, - "loc": { - "start": { - "line": 677, - "column": 4 - }, - "end": { - "line": 677, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 26180, - "end": 26183, - "loc": { - "start": { - "line": 677, - "column": 10 - }, - "end": { - "line": 677, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 26184, - "end": 26185, - "loc": { - "start": { - "line": 677, - "column": 14 - }, - "end": { - "line": 677, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTimeStamp", - "start": 26186, - "end": 26196, - "loc": { - "start": { - "line": 677, - "column": 16 - }, - "end": { - "line": 677, - "column": 26 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26196, - "end": 26197, - "loc": { - "start": { - "line": 677, - "column": 26 - }, - "end": { - "line": 677, - "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": 26203, - "end": 26205, - "loc": { - "start": { - "line": 678, - "column": 4 - }, - "end": { - "line": 678, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26206, - "end": 26207, - "loc": { - "start": { - "line": 678, - "column": 7 - }, - "end": { - "line": 678, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 26207, - "end": 26208, - "loc": { - "start": { - "line": 678, - "column": 8 - }, - "end": { - "line": 678, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26208, - "end": 26212, - "loc": { - "start": { - "line": 678, - "column": 9 - }, - "end": { - "line": 678, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26212, - "end": 26213, - "loc": { - "start": { - "line": 678, - "column": 13 - }, - "end": { - "line": 678, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 26213, - "end": 26224, - "loc": { - "start": { - "line": 678, - "column": 14 - }, - "end": { - "line": 678, - "column": 25 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26224, - "end": 26225, - "loc": { - "start": { - "line": 678, - "column": 25 - }, - "end": { - "line": 678, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 26225, - "end": 26227, - "loc": { - "start": { - "line": 678, - "column": 26 - }, - "end": { - "line": 678, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26227, - "end": 26228, - "loc": { - "start": { - "line": 678, - "column": 28 - }, - "end": { - "line": 678, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26228, - "end": 26229, - "loc": { - "start": { - "line": 678, - "column": 29 - }, - "end": { - "line": 678, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 26229, - "end": 26237, - "loc": { - "start": { - "line": 678, - "column": 30 - }, - "end": { - "line": 678, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26237, - "end": 26238, - "loc": { - "start": { - "line": 678, - "column": 38 - }, - "end": { - "line": 678, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26239, - "end": 26243, - "loc": { - "start": { - "line": 678, - "column": 40 - }, - "end": { - "line": 678, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26243, - "end": 26244, - "loc": { - "start": { - "line": 678, - "column": 44 - }, - "end": { - "line": 678, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 26244, - "end": 26255, - "loc": { - "start": { - "line": 678, - "column": 45 - }, - "end": { - "line": 678, - "column": 56 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26255, - "end": 26256, - "loc": { - "start": { - "line": 678, - "column": 56 - }, - "end": { - "line": 678, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 26256, - "end": 26258, - "loc": { - "start": { - "line": 678, - "column": 57 - }, - "end": { - "line": 678, - "column": 59 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26258, - "end": 26259, - "loc": { - "start": { - "line": 678, - "column": 59 - }, - "end": { - "line": 678, - "column": 60 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26259, - "end": 26260, - "loc": { - "start": { - "line": 678, - "column": 60 - }, - "end": { - "line": 678, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 26260, - "end": 26268, - "loc": { - "start": { - "line": 678, - "column": 61 - }, - "end": { - "line": 678, - "column": 69 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 26269, - "end": 26270, - "loc": { - "start": { - "line": 678, - "column": 70 - }, - "end": { - "line": 678, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 26271, - "end": 26274, - "loc": { - "start": { - "line": 678, - "column": 72 - }, - "end": { - "line": 678, - "column": 75 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26274, - "end": 26275, - "loc": { - "start": { - "line": 678, - "column": 75 - }, - "end": { - "line": 678, - "column": 76 - } - } - }, - { - "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": 26281, - "end": 26286, - "loc": { - "start": { - "line": 679, - "column": 4 - }, - "end": { - "line": 679, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "elapsed", - "start": 26287, - "end": 26294, - "loc": { - "start": { - "line": 679, - "column": 10 - }, - "end": { - "line": 679, - "column": 17 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 26295, - "end": 26296, - "loc": { - "start": { - "line": 679, - "column": 18 - }, - "end": { - "line": 679, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 26297, - "end": 26300, - "loc": { - "start": { - "line": 679, - "column": 20 - }, - "end": { - "line": 679, - "column": 23 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 26301, - "end": 26302, - "loc": { - "start": { - "line": 679, - "column": 24 - }, - "end": { - "line": 679, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26303, - "end": 26307, - "loc": { - "start": { - "line": 679, - "column": 26 - }, - "end": { - "line": 679, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26307, - "end": 26308, - "loc": { - "start": { - "line": 679, - "column": 30 - }, - "end": { - "line": 679, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 26308, - "end": 26319, - "loc": { - "start": { - "line": 679, - "column": 31 - }, - "end": { - "line": 679, - "column": 42 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26319, - "end": 26320, - "loc": { - "start": { - "line": 679, - "column": 42 - }, - "end": { - "line": 679, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 26320, - "end": 26322, - "loc": { - "start": { - "line": 679, - "column": 43 - }, - "end": { - "line": 679, - "column": 45 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26322, - "end": 26323, - "loc": { - "start": { - "line": 679, - "column": 45 - }, - "end": { - "line": 679, - "column": 46 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26323, - "end": 26324, - "loc": { - "start": { - "line": 679, - "column": 46 - }, - "end": { - "line": 679, - "column": 47 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 26324, - "end": 26332, - "loc": { - "start": { - "line": 679, - "column": 47 - }, - "end": { - "line": 679, - "column": 55 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26332, - "end": 26333, - "loc": { - "start": { - "line": 679, - "column": 55 - }, - "end": { - "line": 679, - "column": 56 - } - } - }, - { - "type": "CommentLine", - "value": " Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)", - "start": 26339, - "end": 26522, - "loc": { - "start": { - "line": 680, - "column": 4 - }, - "end": { - "line": 680, - "column": 187 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26528, - "end": 26532, - "loc": { - "start": { - "line": 681, - "column": 4 - }, - "end": { - "line": 681, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26532, - "end": 26533, - "loc": { - "start": { - "line": 681, - "column": 8 - }, - "end": { - "line": 681, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 26533, - "end": 26544, - "loc": { - "start": { - "line": 681, - "column": 9 - }, - "end": { - "line": 681, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26544, - "end": 26545, - "loc": { - "start": { - "line": 681, - "column": 20 - }, - "end": { - "line": 681, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 26545, - "end": 26547, - "loc": { - "start": { - "line": 681, - "column": 21 - }, - "end": { - "line": 681, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26547, - "end": 26548, - "loc": { - "start": { - "line": 681, - "column": 23 - }, - "end": { - "line": 681, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26548, - "end": 26549, - "loc": { - "start": { - "line": 681, - "column": 24 - }, - "end": { - "line": 681, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 26549, - "end": 26560, - "loc": { - "start": { - "line": 681, - "column": 25 - }, - "end": { - "line": 681, - "column": 36 - } - } - }, - { - "type": { - "label": "_=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "+=", - "start": 26561, - "end": 26563, - "loc": { - "start": { - "line": 681, - "column": 37 - }, - "end": { - "line": 681, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "elapsed", - "start": 26564, - "end": 26571, - "loc": { - "start": { - "line": 681, - "column": 40 - }, - "end": { - "line": 681, - "column": 47 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26571, - "end": 26572, - "loc": { - "start": { - "line": 681, - "column": 47 - }, - "end": { - "line": 681, - "column": 48 - } - } - }, - { - "type": "CommentLine", - "value": " The max value of percentage is 1, so we clamp it at 1", - "start": 26578, - "end": 26634, - "loc": { - "start": { - "line": 682, - "column": 4 - }, - "end": { - "line": 682, - "column": 60 - } - } - }, - { - "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": 26640, - "end": 26645, - "loc": { - "start": { - "line": 683, - "column": 4 - }, - "end": { - "line": 683, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 26646, - "end": 26656, - "loc": { - "start": { - "line": 683, - "column": 10 - }, - "end": { - "line": 683, - "column": 20 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 26657, - "end": 26658, - "loc": { - "start": { - "line": 683, - "column": 21 - }, - "end": { - "line": 683, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 26659, - "end": 26663, - "loc": { - "start": { - "line": 683, - "column": 23 - }, - "end": { - "line": 683, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26663, - "end": 26664, - "loc": { - "start": { - "line": 683, - "column": 27 - }, - "end": { - "line": 683, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "min", - "start": 26664, - "end": 26667, - "loc": { - "start": { - "line": 683, - "column": 28 - }, - "end": { - "line": 683, - "column": 31 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26667, - "end": 26668, - "loc": { - "start": { - "line": 683, - "column": 31 - }, - "end": { - "line": 683, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26668, - "end": 26672, - "loc": { - "start": { - "line": 683, - "column": 32 - }, - "end": { - "line": 683, - "column": 36 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26672, - "end": 26673, - "loc": { - "start": { - "line": 683, - "column": 36 - }, - "end": { - "line": 683, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 26673, - "end": 26684, - "loc": { - "start": { - "line": 683, - "column": 37 - }, - "end": { - "line": 683, - "column": 48 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26684, - "end": 26685, - "loc": { - "start": { - "line": 683, - "column": 48 - }, - "end": { - "line": 683, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 26685, - "end": 26687, - "loc": { - "start": { - "line": 683, - "column": 49 - }, - "end": { - "line": 683, - "column": 51 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26687, - "end": 26688, - "loc": { - "start": { - "line": 683, - "column": 51 - }, - "end": { - "line": 683, - "column": 52 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26688, - "end": 26689, - "loc": { - "start": { - "line": 683, - "column": 52 - }, - "end": { - "line": 683, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 26689, - "end": 26700, - "loc": { - "start": { - "line": 683, - "column": 53 - }, - "end": { - "line": 683, - "column": 64 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 26701, - "end": 26702, - "loc": { - "start": { - "line": 683, - "column": 65 - }, - "end": { - "line": 683, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26703, - "end": 26707, - "loc": { - "start": { - "line": 683, - "column": 67 - }, - "end": { - "line": 683, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26707, - "end": 26708, - "loc": { - "start": { - "line": 683, - "column": 71 - }, - "end": { - "line": 683, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 26708, - "end": 26719, - "loc": { - "start": { - "line": 683, - "column": 72 - }, - "end": { - "line": 683, - "column": 83 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26719, - "end": 26720, - "loc": { - "start": { - "line": 683, - "column": 83 - }, - "end": { - "line": 683, - "column": 84 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 26720, - "end": 26722, - "loc": { - "start": { - "line": 683, - "column": 84 - }, - "end": { - "line": 683, - "column": 86 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26722, - "end": 26723, - "loc": { - "start": { - "line": 683, - "column": 86 - }, - "end": { - "line": 683, - "column": 87 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26723, - "end": 26724, - "loc": { - "start": { - "line": 683, - "column": 87 - }, - "end": { - "line": 683, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "duration", - "start": 26724, - "end": 26732, - "loc": { - "start": { - "line": 683, - "column": 88 - }, - "end": { - "line": 683, - "column": 96 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26732, - "end": 26733, - "loc": { - "start": { - "line": 683, - "column": 96 - }, - "end": { - "line": 683, - "column": 97 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 26734, - "end": 26735, - "loc": { - "start": { - "line": 683, - "column": 98 - }, - "end": { - "line": 683, - "column": 99 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26735, - "end": 26736, - "loc": { - "start": { - "line": 683, - "column": 99 - }, - "end": { - "line": 683, - "column": 100 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26736, - "end": 26737, - "loc": { - "start": { - "line": 683, - "column": 100 - }, - "end": { - "line": 683, - "column": 101 - } - } - }, - { - "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": 26749, - "end": 26754, - "loc": { - "start": { - "line": 685, - "column": 4 - }, - "end": { - "line": 685, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 26755, - "end": 26756, - "loc": { - "start": { - "line": 685, - "column": 10 - }, - "end": { - "line": 685, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 26757, - "end": 26758, - "loc": { - "start": { - "line": 685, - "column": 12 - }, - "end": { - "line": 685, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 26759, - "end": 26767, - "loc": { - "start": { - "line": 685, - "column": 14 - }, - "end": { - "line": 685, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26767, - "end": 26768, - "loc": { - "start": { - "line": 685, - "column": 22 - }, - "end": { - "line": 685, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26768, - "end": 26772, - "loc": { - "start": { - "line": 685, - "column": 23 - }, - "end": { - "line": 685, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26772, - "end": 26773, - "loc": { - "start": { - "line": 685, - "column": 27 - }, - "end": { - "line": 685, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 26773, - "end": 26777, - "loc": { - "start": { - "line": 685, - "column": 28 - }, - "end": { - "line": 685, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26777, - "end": 26778, - "loc": { - "start": { - "line": 685, - "column": 32 - }, - "end": { - "line": 685, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 26778, - "end": 26791, - "loc": { - "start": { - "line": 685, - "column": 33 - }, - "end": { - "line": 685, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26791, - "end": 26792, - "loc": { - "start": { - "line": 685, - "column": 46 - }, - "end": { - "line": 685, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 26792, - "end": 26793, - "loc": { - "start": { - "line": 685, - "column": 47 - }, - "end": { - "line": 685, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26793, - "end": 26794, - "loc": { - "start": { - "line": 685, - "column": 48 - }, - "end": { - "line": 685, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26794, - "end": 26795, - "loc": { - "start": { - "line": 685, - "column": 49 - }, - "end": { - "line": 685, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 26796, - "end": 26807, - "loc": { - "start": { - "line": 685, - "column": 51 - }, - "end": { - "line": 685, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26807, - "end": 26808, - "loc": { - "start": { - "line": 685, - "column": 62 - }, - "end": { - "line": 685, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 26808, - "end": 26809, - "loc": { - "start": { - "line": 685, - "column": 63 - }, - "end": { - "line": 685, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26809, - "end": 26810, - "loc": { - "start": { - "line": 685, - "column": 64 - }, - "end": { - "line": 685, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26810, - "end": 26811, - "loc": { - "start": { - "line": 685, - "column": 65 - }, - "end": { - "line": 685, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 26812, - "end": 26822, - "loc": { - "start": { - "line": 685, - "column": 67 - }, - "end": { - "line": 685, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26822, - "end": 26823, - "loc": { - "start": { - "line": 685, - "column": 77 - }, - "end": { - "line": 685, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26823, - "end": 26824, - "loc": { - "start": { - "line": 685, - "column": 78 - }, - "end": { - "line": 685, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 26825, - "end": 26827, - "loc": { - "start": { - "line": 685, - "column": 80 - }, - "end": { - "line": 685, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26827, - "end": 26828, - "loc": { - "start": { - "line": 685, - "column": 82 - }, - "end": { - "line": 685, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26828, - "end": 26829, - "loc": { - "start": { - "line": 685, - "column": 83 - }, - "end": { - "line": 685, - "column": 84 - } - } - }, - { - "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": 26835, - "end": 26840, - "loc": { - "start": { - "line": 686, - "column": 4 - }, - "end": { - "line": 686, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 26841, - "end": 26842, - "loc": { - "start": { - "line": 686, - "column": 10 - }, - "end": { - "line": 686, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 26843, - "end": 26844, - "loc": { - "start": { - "line": 686, - "column": 12 - }, - "end": { - "line": 686, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 26845, - "end": 26853, - "loc": { - "start": { - "line": 686, - "column": 14 - }, - "end": { - "line": 686, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26853, - "end": 26854, - "loc": { - "start": { - "line": 686, - "column": 22 - }, - "end": { - "line": 686, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26854, - "end": 26858, - "loc": { - "start": { - "line": 686, - "column": 23 - }, - "end": { - "line": 686, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26858, - "end": 26859, - "loc": { - "start": { - "line": 686, - "column": 27 - }, - "end": { - "line": 686, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 26859, - "end": 26863, - "loc": { - "start": { - "line": 686, - "column": 28 - }, - "end": { - "line": 686, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26863, - "end": 26864, - "loc": { - "start": { - "line": 686, - "column": 32 - }, - "end": { - "line": 686, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 26864, - "end": 26877, - "loc": { - "start": { - "line": 686, - "column": 33 - }, - "end": { - "line": 686, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26877, - "end": 26878, - "loc": { - "start": { - "line": 686, - "column": 46 - }, - "end": { - "line": 686, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 26878, - "end": 26879, - "loc": { - "start": { - "line": 686, - "column": 47 - }, - "end": { - "line": 686, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26879, - "end": 26880, - "loc": { - "start": { - "line": 686, - "column": 48 - }, - "end": { - "line": 686, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26880, - "end": 26881, - "loc": { - "start": { - "line": 686, - "column": 49 - }, - "end": { - "line": 686, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 26882, - "end": 26893, - "loc": { - "start": { - "line": 686, - "column": 51 - }, - "end": { - "line": 686, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26893, - "end": 26894, - "loc": { - "start": { - "line": 686, - "column": 62 - }, - "end": { - "line": 686, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 26894, - "end": 26895, - "loc": { - "start": { - "line": 686, - "column": 63 - }, - "end": { - "line": 686, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26895, - "end": 26896, - "loc": { - "start": { - "line": 686, - "column": 64 - }, - "end": { - "line": 686, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26896, - "end": 26897, - "loc": { - "start": { - "line": 686, - "column": 65 - }, - "end": { - "line": 686, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 26898, - "end": 26908, - "loc": { - "start": { - "line": 686, - "column": 67 - }, - "end": { - "line": 686, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26908, - "end": 26909, - "loc": { - "start": { - "line": 686, - "column": 77 - }, - "end": { - "line": 686, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26909, - "end": 26910, - "loc": { - "start": { - "line": 686, - "column": 78 - }, - "end": { - "line": 686, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 26911, - "end": 26913, - "loc": { - "start": { - "line": 686, - "column": 80 - }, - "end": { - "line": 686, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26913, - "end": 26914, - "loc": { - "start": { - "line": 686, - "column": 82 - }, - "end": { - "line": 686, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26914, - "end": 26915, - "loc": { - "start": { - "line": 686, - "column": 83 - }, - "end": { - "line": 686, - "column": 84 - } - } - }, - { - "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": 26921, - "end": 26926, - "loc": { - "start": { - "line": 687, - "column": 4 - }, - "end": { - "line": 687, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 26927, - "end": 26928, - "loc": { - "start": { - "line": 687, - "column": 10 - }, - "end": { - "line": 687, - "column": 11 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 26929, - "end": 26930, - "loc": { - "start": { - "line": 687, - "column": 12 - }, - "end": { - "line": 687, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parseInt", - "start": 26931, - "end": 26939, - "loc": { - "start": { - "line": 687, - "column": 14 - }, - "end": { - "line": 687, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26939, - "end": 26940, - "loc": { - "start": { - "line": 687, - "column": 22 - }, - "end": { - "line": 687, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 26940, - "end": 26944, - "loc": { - "start": { - "line": 687, - "column": 23 - }, - "end": { - "line": 687, - "column": 27 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26944, - "end": 26945, - "loc": { - "start": { - "line": 687, - "column": 27 - }, - "end": { - "line": 687, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lerp", - "start": 26945, - "end": 26949, - "loc": { - "start": { - "line": 687, - "column": 28 - }, - "end": { - "line": 687, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26949, - "end": 26950, - "loc": { - "start": { - "line": 687, - "column": 32 - }, - "end": { - "line": 687, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbStartColor", - "start": 26950, - "end": 26963, - "loc": { - "start": { - "line": 687, - "column": 33 - }, - "end": { - "line": 687, - "column": 46 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26963, - "end": 26964, - "loc": { - "start": { - "line": 687, - "column": 46 - }, - "end": { - "line": 687, - "column": 47 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 26964, - "end": 26965, - "loc": { - "start": { - "line": 687, - "column": 47 - }, - "end": { - "line": 687, - "column": 48 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26965, - "end": 26966, - "loc": { - "start": { - "line": 687, - "column": 48 - }, - "end": { - "line": 687, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26966, - "end": 26967, - "loc": { - "start": { - "line": 687, - "column": 49 - }, - "end": { - "line": 687, - "column": 50 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rgbEndColor", - "start": 26968, - "end": 26979, - "loc": { - "start": { - "line": 687, - "column": 51 - }, - "end": { - "line": 687, - "column": 62 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26979, - "end": 26980, - "loc": { - "start": { - "line": 687, - "column": 62 - }, - "end": { - "line": 687, - "column": 63 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 26980, - "end": 26981, - "loc": { - "start": { - "line": 687, - "column": 63 - }, - "end": { - "line": 687, - "column": 64 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26981, - "end": 26982, - "loc": { - "start": { - "line": 687, - "column": 64 - }, - "end": { - "line": 687, - "column": 65 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26982, - "end": 26983, - "loc": { - "start": { - "line": 687, - "column": 65 - }, - "end": { - "line": 687, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 26984, - "end": 26994, - "loc": { - "start": { - "line": 687, - "column": 67 - }, - "end": { - "line": 687, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26994, - "end": 26995, - "loc": { - "start": { - "line": 687, - "column": 77 - }, - "end": { - "line": 687, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26995, - "end": 26996, - "loc": { - "start": { - "line": 687, - "column": 78 - }, - "end": { - "line": 687, - "column": 79 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 10, - "start": 26997, - "end": 26999, - "loc": { - "start": { - "line": 687, - "column": 80 - }, - "end": { - "line": 687, - "column": 82 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26999, - "end": 27000, - "loc": { - "start": { - "line": 687, - "column": 82 - }, - "end": { - "line": 687, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27000, - "end": 27001, - "loc": { - "start": { - "line": 687, - "column": 83 - }, - "end": { - "line": 687, - "column": 84 - } - } - }, - { - "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": 27007, - "end": 27012, - "loc": { - "start": { - "line": 688, - "column": 4 - }, - "end": { - "line": 688, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27013, - "end": 27018, - "loc": { - "start": { - "line": 688, - "column": 10 - }, - "end": { - "line": 688, - "column": 15 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27019, - "end": 27020, - "loc": { - "start": { - "line": 688, - "column": 16 - }, - "end": { - "line": 688, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 27021, - "end": 27025, - "loc": { - "start": { - "line": 688, - "column": 18 - }, - "end": { - "line": 688, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27025, - "end": 27026, - "loc": { - "start": { - "line": 688, - "column": 22 - }, - "end": { - "line": 688, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabColor", - "start": 27026, - "end": 27035, - "loc": { - "start": { - "line": 688, - "column": 23 - }, - "end": { - "line": 688, - "column": 32 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27035, - "end": 27036, - "loc": { - "start": { - "line": 688, - "column": 32 - }, - "end": { - "line": 688, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 27036, - "end": 27037, - "loc": { - "start": { - "line": 688, - "column": 33 - }, - "end": { - "line": 688, - "column": 34 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27037, - "end": 27038, - "loc": { - "start": { - "line": 688, - "column": 34 - }, - "end": { - "line": 688, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "g", - "start": 27039, - "end": 27040, - "loc": { - "start": { - "line": 688, - "column": 36 - }, - "end": { - "line": 688, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27040, - "end": 27041, - "loc": { - "start": { - "line": 688, - "column": 37 - }, - "end": { - "line": 688, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "b", - "start": 27042, - "end": 27043, - "loc": { - "start": { - "line": 688, - "column": 39 - }, - "end": { - "line": 688, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27043, - "end": 27044, - "loc": { - "start": { - "line": 688, - "column": 40 - }, - "end": { - "line": 688, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27044, - "end": 27045, - "loc": { - "start": { - "line": 688, - "column": 41 - }, - "end": { - "line": 688, - "column": 42 - } - } - }, - { - "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": 27053, - "end": 27055, - "loc": { - "start": { - "line": 690, - "column": 4 - }, - "end": { - "line": 690, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27056, - "end": 27057, - "loc": { - "start": { - "line": 690, - "column": 7 - }, - "end": { - "line": 690, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 27057, - "end": 27074, - "loc": { - "start": { - "line": 690, - "column": 8 - }, - "end": { - "line": 690, - "column": 25 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27074, - "end": 27075, - "loc": { - "start": { - "line": 690, - "column": 25 - }, - "end": { - "line": 690, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "iterativeCallback", - "start": 27076, - "end": 27093, - "loc": { - "start": { - "line": 690, - "column": 27 - }, - "end": { - "line": 690, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27093, - "end": 27094, - "loc": { - "start": { - "line": 690, - "column": 44 - }, - "end": { - "line": 690, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27094, - "end": 27099, - "loc": { - "start": { - "line": 690, - "column": 45 - }, - "end": { - "line": 690, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27099, - "end": 27100, - "loc": { - "start": { - "line": 690, - "column": 50 - }, - "end": { - "line": 690, - "column": 51 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27100, - "end": 27101, - "loc": { - "start": { - "line": 690, - "column": 51 - }, - "end": { - "line": 690, - "column": 52 - } - } - }, - { - "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": 27109, - "end": 27111, - "loc": { - "start": { - "line": 692, - "column": 4 - }, - "end": { - "line": 692, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27112, - "end": 27113, - "loc": { - "start": { - "line": 692, - "column": 7 - }, - "end": { - "line": 692, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 27113, - "end": 27122, - "loc": { - "start": { - "line": 692, - "column": 8 - }, - "end": { - "line": 692, - "column": 17 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27122, - "end": 27123, - "loc": { - "start": { - "line": 692, - "column": 17 - }, - "end": { - "line": 692, - "column": 18 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27124, - "end": 27125, - "loc": { - "start": { - "line": 692, - "column": 19 - }, - "end": { - "line": 692, - "column": 20 - } - } - }, - { - "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": 27132, - "end": 27134, - "loc": { - "start": { - "line": 693, - "column": 5 - }, - "end": { - "line": 693, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27135, - "end": 27136, - "loc": { - "start": { - "line": 693, - "column": 8 - }, - "end": { - "line": 693, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isTintObject", - "start": 27136, - "end": 27148, - "loc": { - "start": { - "line": 693, - "column": 9 - }, - "end": { - "line": 693, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27148, - "end": 27149, - "loc": { - "start": { - "line": 693, - "column": 21 - }, - "end": { - "line": 693, - "column": 22 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27150, - "end": 27151, - "loc": { - "start": { - "line": 693, - "column": 23 - }, - "end": { - "line": 693, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 27159, - "end": 27168, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27168, - "end": 27169, - "loc": { - "start": { - "line": 694, - "column": 15 - }, - "end": { - "line": 694, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27169, - "end": 27174, - "loc": { - "start": { - "line": 694, - "column": 16 - }, - "end": { - "line": 694, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27174, - "end": 27175, - "loc": { - "start": { - "line": 694, - "column": 21 - }, - "end": { - "line": 694, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tint", - "start": 27175, - "end": 27179, - "loc": { - "start": { - "line": 694, - "column": 22 - }, - "end": { - "line": 694, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27180, - "end": 27181, - "loc": { - "start": { - "line": 694, - "column": 27 - }, - "end": { - "line": 694, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27182, - "end": 27187, - "loc": { - "start": { - "line": 694, - "column": 29 - }, - "end": { - "line": 694, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27187, - "end": 27188, - "loc": { - "start": { - "line": 694, - "column": 34 - }, - "end": { - "line": 694, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "decimal", - "start": 27188, - "end": 27195, - "loc": { - "start": { - "line": 694, - "column": 35 - }, - "end": { - "line": 694, - "column": 42 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27195, - "end": 27196, - "loc": { - "start": { - "line": 694, - "column": 42 - }, - "end": { - "line": 694, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 27204, - "end": 27213, - "loc": { - "start": { - "line": 695, - "column": 6 - }, - "end": { - "line": 695, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27213, - "end": 27214, - "loc": { - "start": { - "line": 695, - "column": 15 - }, - "end": { - "line": 695, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27214, - "end": 27219, - "loc": { - "start": { - "line": 695, - "column": 16 - }, - "end": { - "line": 695, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27220, - "end": 27221, - "loc": { - "start": { - "line": 695, - "column": 22 - }, - "end": { - "line": 695, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 27222, - "end": 27231, - "loc": { - "start": { - "line": 695, - "column": 24 - }, - "end": { - "line": 695, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27231, - "end": 27232, - "loc": { - "start": { - "line": 695, - "column": 33 - }, - "end": { - "line": 695, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27232, - "end": 27237, - "loc": { - "start": { - "line": 695, - "column": 34 - }, - "end": { - "line": 695, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27237, - "end": 27238, - "loc": { - "start": { - "line": 695, - "column": 39 - }, - "end": { - "line": 695, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27245, - "end": 27246, - "loc": { - "start": { - "line": 696, - "column": 5 - }, - "end": { - "line": 696, - "column": 6 - } - } - }, - { - "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": 27247, - "end": 27251, - "loc": { - "start": { - "line": 696, - "column": 7 - }, - "end": { - "line": 696, - "column": 11 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27252, - "end": 27253, - "loc": { - "start": { - "line": 696, - "column": 12 - }, - "end": { - "line": 696, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pInstance", - "start": 27261, - "end": 27270, - "loc": { - "start": { - "line": 697, - "column": 6 - }, - "end": { - "line": 697, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27270, - "end": 27271, - "loc": { - "start": { - "line": 697, - "column": 15 - }, - "end": { - "line": 697, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27271, - "end": 27276, - "loc": { - "start": { - "line": 697, - "column": 16 - }, - "end": { - "line": 697, - "column": 21 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27277, - "end": 27278, - "loc": { - "start": { - "line": 697, - "column": 22 - }, - "end": { - "line": 697, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27279, - "end": 27284, - "loc": { - "start": { - "line": 697, - "column": 24 - }, - "end": { - "line": 697, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27284, - "end": 27285, - "loc": { - "start": { - "line": 697, - "column": 29 - }, - "end": { - "line": 697, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "hex", - "start": 27285, - "end": 27288, - "loc": { - "start": { - "line": 697, - "column": 30 - }, - "end": { - "line": 697, - "column": 33 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27288, - "end": 27289, - "loc": { - "start": { - "line": 697, - "column": 33 - }, - "end": { - "line": 697, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27296, - "end": 27297, - "loc": { - "start": { - "line": 698, - "column": 5 - }, - "end": { - "line": 698, - "column": 6 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27303, - "end": 27304, - "loc": { - "start": { - "line": 699, - "column": 4 - }, - "end": { - "line": 699, - "column": 5 - } - } - }, - { - "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": 27312, - "end": 27314, - "loc": { - "start": { - "line": 701, - "column": 4 - }, - "end": { - "line": 701, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27315, - "end": 27316, - "loc": { - "start": { - "line": 701, - "column": 7 - }, - "end": { - "line": 701, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "percentage", - "start": 27316, - "end": 27326, - "loc": { - "start": { - "line": 701, - "column": 8 - }, - "end": { - "line": 701, - "column": 18 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 27327, - "end": 27329, - "loc": { - "start": { - "line": 701, - "column": 19 - }, - "end": { - "line": 701, - "column": 21 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 27330, - "end": 27331, - "loc": { - "start": { - "line": 701, - "column": 22 - }, - "end": { - "line": 701, - "column": 23 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 27332, - "end": 27334, - "loc": { - "start": { - "line": 701, - "column": 24 - }, - "end": { - "line": 701, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 27335, - "end": 27339, - "loc": { - "start": { - "line": 701, - "column": 27 - }, - "end": { - "line": 701, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27339, - "end": 27340, - "loc": { - "start": { - "line": 701, - "column": 31 - }, - "end": { - "line": 701, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27340, - "end": 27351, - "loc": { - "start": { - "line": 701, - "column": 32 - }, - "end": { - "line": 701, - "column": 43 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27351, - "end": 27352, - "loc": { - "start": { - "line": 701, - "column": 43 - }, - "end": { - "line": 701, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27352, - "end": 27354, - "loc": { - "start": { - "line": 701, - "column": 44 - }, - "end": { - "line": 701, - "column": 46 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27354, - "end": 27355, - "loc": { - "start": { - "line": 701, - "column": 46 - }, - "end": { - "line": 701, - "column": 47 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27355, - "end": 27356, - "loc": { - "start": { - "line": 701, - "column": 47 - }, - "end": { - "line": 701, - "column": 48 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeTracker", - "start": 27356, - "end": 27367, - "loc": { - "start": { - "line": 701, - "column": 48 - }, - "end": { - "line": 701, - "column": 59 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 27368, - "end": 27370, - "loc": { - "start": { - "line": 701, - "column": 60 - }, - "end": { - "line": 701, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pDuration", - "start": 27371, - "end": 27380, - "loc": { - "start": { - "line": 701, - "column": 63 - }, - "end": { - "line": 701, - "column": 72 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27380, - "end": 27381, - "loc": { - "start": { - "line": 701, - "column": 72 - }, - "end": { - "line": 701, - "column": 73 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27382, - "end": 27383, - "loc": { - "start": { - "line": 701, - "column": 74 - }, - "end": { - "line": 701, - "column": 75 - } - } - }, - { - "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": 27390, - "end": 27392, - "loc": { - "start": { - "line": 702, - "column": 5 - }, - "end": { - "line": 702, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27393, - "end": 27394, - "loc": { - "start": { - "line": 702, - "column": 8 - }, - "end": { - "line": 702, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 27394, - "end": 27398, - "loc": { - "start": { - "line": 702, - "column": 9 - }, - "end": { - "line": 702, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27398, - "end": 27399, - "loc": { - "start": { - "line": 702, - "column": 13 - }, - "end": { - "line": 702, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27399, - "end": 27410, - "loc": { - "start": { - "line": 702, - "column": 14 - }, - "end": { - "line": 702, - "column": 25 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27410, - "end": 27411, - "loc": { - "start": { - "line": 702, - "column": 25 - }, - "end": { - "line": 702, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27411, - "end": 27413, - "loc": { - "start": { - "line": 702, - "column": 26 - }, - "end": { - "line": 702, - "column": 28 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27413, - "end": 27414, - "loc": { - "start": { - "line": 702, - "column": 28 - }, - "end": { - "line": 702, - "column": 29 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27414, - "end": 27415, - "loc": { - "start": { - "line": 702, - "column": 29 - }, - "end": { - "line": 702, - "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": 27416, - "end": 27420, - "loc": { - "start": { - "line": 702, - "column": 31 - }, - "end": { - "line": 702, - "column": 35 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27420, - "end": 27421, - "loc": { - "start": { - "line": 702, - "column": 35 - }, - "end": { - "line": 702, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 27421, - "end": 27442, - "loc": { - "start": { - "line": 702, - "column": 36 - }, - "end": { - "line": 702, - "column": 57 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27442, - "end": 27443, - "loc": { - "start": { - "line": 702, - "column": 57 - }, - "end": { - "line": 702, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27443, - "end": 27445, - "loc": { - "start": { - "line": 702, - "column": 58 - }, - "end": { - "line": 702, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27445, - "end": 27446, - "loc": { - "start": { - "line": 702, - "column": 60 - }, - "end": { - "line": 702, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27446, - "end": 27447, - "loc": { - "start": { - "line": 702, - "column": 61 - }, - "end": { - "line": 702, - "column": 62 - } - } - }, - { - "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": 27454, - "end": 27456, - "loc": { - "start": { - "line": 703, - "column": 5 - }, - "end": { - "line": 703, - "column": 7 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27457, - "end": 27458, - "loc": { - "start": { - "line": 703, - "column": 8 - }, - "end": { - "line": 703, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 27458, - "end": 27469, - "loc": { - "start": { - "line": 703, - "column": 9 - }, - "end": { - "line": 703, - "column": 20 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27469, - "end": 27470, - "loc": { - "start": { - "line": 703, - "column": 20 - }, - "end": { - "line": 703, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "endCallback", - "start": 27471, - "end": 27482, - "loc": { - "start": { - "line": 703, - "column": 22 - }, - "end": { - "line": 703, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27482, - "end": 27483, - "loc": { - "start": { - "line": 703, - "column": 33 - }, - "end": { - "line": 703, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "color", - "start": 27483, - "end": 27488, - "loc": { - "start": { - "line": 703, - "column": 34 - }, - "end": { - "line": 703, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27488, - "end": 27489, - "loc": { - "start": { - "line": 703, - "column": 39 - }, - "end": { - "line": 703, - "column": 40 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27489, - "end": 27490, - "loc": { - "start": { - "line": 703, - "column": 40 - }, - "end": { - "line": 703, - "column": 41 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 27497, - "end": 27503, - "loc": { - "start": { - "line": 704, - "column": 5 - }, - "end": { - "line": 704, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27503, - "end": 27504, - "loc": { - "start": { - "line": 704, - "column": 11 - }, - "end": { - "line": 704, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27510, - "end": 27511, - "loc": { - "start": { - "line": 705, - "column": 4 - }, - "end": { - "line": 705, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 27517, - "end": 27521, - "loc": { - "start": { - "line": 706, - "column": 4 - }, - "end": { - "line": 706, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27521, - "end": 27522, - "loc": { - "start": { - "line": 706, - "column": 8 - }, - "end": { - "line": 706, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27522, - "end": 27533, - "loc": { - "start": { - "line": 706, - "column": 9 - }, - "end": { - "line": 706, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27533, - "end": 27534, - "loc": { - "start": { - "line": 706, - "column": 20 - }, - "end": { - "line": 706, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27534, - "end": 27536, - "loc": { - "start": { - "line": 706, - "column": 21 - }, - "end": { - "line": 706, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27536, - "end": 27537, - "loc": { - "start": { - "line": 706, - "column": 23 - }, - "end": { - "line": 706, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27537, - "end": 27538, - "loc": { - "start": { - "line": 706, - "column": 24 - }, - "end": { - "line": 706, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 27538, - "end": 27541, - "loc": { - "start": { - "line": 706, - "column": 25 - }, - "end": { - "line": 706, - "column": 28 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27542, - "end": 27543, - "loc": { - "start": { - "line": 706, - "column": 29 - }, - "end": { - "line": 706, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 27544, - "end": 27554, - "loc": { - "start": { - "line": 706, - "column": 31 - }, - "end": { - "line": 706, - "column": 41 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27554, - "end": 27555, - "loc": { - "start": { - "line": 706, - "column": 41 - }, - "end": { - "line": 706, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requestAnimationFrame", - "start": 27555, - "end": 27576, - "loc": { - "start": { - "line": 706, - "column": 42 - }, - "end": { - "line": 706, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27576, - "end": 27577, - "loc": { - "start": { - "line": 706, - "column": 63 - }, - "end": { - "line": 706, - "column": 64 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 27577, - "end": 27581, - "loc": { - "start": { - "line": 706, - "column": 64 - }, - "end": { - "line": 706, - "column": 68 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27581, - "end": 27582, - "loc": { - "start": { - "line": 706, - "column": 68 - }, - "end": { - "line": 706, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27582, - "end": 27593, - "loc": { - "start": { - "line": 706, - "column": 69 - }, - "end": { - "line": 706, - "column": 80 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27593, - "end": 27594, - "loc": { - "start": { - "line": 706, - "column": 80 - }, - "end": { - "line": 706, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27594, - "end": 27596, - "loc": { - "start": { - "line": 706, - "column": 81 - }, - "end": { - "line": 706, - "column": 83 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27596, - "end": 27597, - "loc": { - "start": { - "line": 706, - "column": 83 - }, - "end": { - "line": 706, - "column": 84 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27597, - "end": 27598, - "loc": { - "start": { - "line": 706, - "column": 84 - }, - "end": { - "line": 706, - "column": 85 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 27598, - "end": 27602, - "loc": { - "start": { - "line": 706, - "column": 85 - }, - "end": { - "line": 706, - "column": 89 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27602, - "end": 27603, - "loc": { - "start": { - "line": 706, - "column": 89 - }, - "end": { - "line": 706, - "column": 90 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27603, - "end": 27604, - "loc": { - "start": { - "line": 706, - "column": 90 - }, - "end": { - "line": 706, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "self", - "start": 27610, - "end": 27614, - "loc": { - "start": { - "line": 707, - "column": 4 - }, - "end": { - "line": 707, - "column": 8 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27614, - "end": 27615, - "loc": { - "start": { - "line": 707, - "column": 8 - }, - "end": { - "line": 707, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27615, - "end": 27626, - "loc": { - "start": { - "line": 707, - "column": 9 - }, - "end": { - "line": 707, - "column": 20 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27626, - "end": 27627, - "loc": { - "start": { - "line": 707, - "column": 20 - }, - "end": { - "line": 707, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27627, - "end": 27629, - "loc": { - "start": { - "line": 707, - "column": 21 - }, - "end": { - "line": 707, - "column": 23 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27629, - "end": 27630, - "loc": { - "start": { - "line": 707, - "column": 23 - }, - "end": { - "line": 707, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27630, - "end": 27631, - "loc": { - "start": { - "line": 707, - "column": 24 - }, - "end": { - "line": 707, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "lastTime", - "start": 27631, - "end": 27639, - "loc": { - "start": { - "line": 707, - "column": 25 - }, - "end": { - "line": 707, - "column": 33 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27640, - "end": 27641, - "loc": { - "start": { - "line": 707, - "column": 34 - }, - "end": { - "line": 707, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "now", - "start": 27642, - "end": 27645, - "loc": { - "start": { - "line": 707, - "column": 36 - }, - "end": { - "line": 707, - "column": 39 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27645, - "end": 27646, - "loc": { - "start": { - "line": 707, - "column": 39 - }, - "end": { - "line": 707, - "column": 40 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27651, - "end": 27652, - "loc": { - "start": { - "line": 708, - "column": 3 - }, - "end": { - "line": 708, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27656, - "end": 27657, - "loc": { - "start": { - "line": 709, - "column": 2 - }, - "end": { - "line": 709, - "column": 3 - } - } - }, - { - "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": 27663, - "end": 27667, - "loc": { - "start": { - "line": 711, - "column": 2 - }, - "end": { - "line": 711, - "column": 6 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27667, - "end": 27668, - "loc": { - "start": { - "line": 711, - "column": 6 - }, - "end": { - "line": 711, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27668, - "end": 27679, - "loc": { - "start": { - "line": 711, - "column": 7 - }, - "end": { - "line": 711, - "column": 18 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27679, - "end": 27680, - "loc": { - "start": { - "line": 711, - "column": 18 - }, - "end": { - "line": 711, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27680, - "end": 27682, - "loc": { - "start": { - "line": 711, - "column": 19 - }, - "end": { - "line": 711, - "column": 21 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27682, - "end": 27683, - "loc": { - "start": { - "line": 711, - "column": 21 - }, - "end": { - "line": 711, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27683, - "end": 27684, - "loc": { - "start": { - "line": 711, - "column": 22 - }, - "end": { - "line": 711, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 27684, - "end": 27687, - "loc": { - "start": { - "line": 711, - "column": 23 - }, - "end": { - "line": 711, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 27688, - "end": 27689, - "loc": { - "start": { - "line": 711, - "column": 27 - }, - "end": { - "line": 711, - "column": 28 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 27690, - "end": 27700, - "loc": { - "start": { - "line": 711, - "column": 29 - }, - "end": { - "line": 711, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27700, - "end": 27701, - "loc": { - "start": { - "line": 711, - "column": 39 - }, - "end": { - "line": 711, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "requestAnimationFrame", - "start": 27701, - "end": 27722, - "loc": { - "start": { - "line": 711, - "column": 40 - }, - "end": { - "line": 711, - "column": 61 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27722, - "end": 27723, - "loc": { - "start": { - "line": 711, - "column": 61 - }, - "end": { - "line": 711, - "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": 27723, - "end": 27727, - "loc": { - "start": { - "line": 711, - "column": 62 - }, - "end": { - "line": 711, - "column": 66 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27727, - "end": 27728, - "loc": { - "start": { - "line": 711, - "column": 66 - }, - "end": { - "line": 711, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27728, - "end": 27739, - "loc": { - "start": { - "line": 711, - "column": 67 - }, - "end": { - "line": 711, - "column": 78 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27739, - "end": 27740, - "loc": { - "start": { - "line": 711, - "column": 78 - }, - "end": { - "line": 711, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27740, - "end": 27742, - "loc": { - "start": { - "line": 711, - "column": 79 - }, - "end": { - "line": 711, - "column": 81 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27742, - "end": 27743, - "loc": { - "start": { - "line": 711, - "column": 81 - }, - "end": { - "line": 711, - "column": 82 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27743, - "end": 27744, - "loc": { - "start": { - "line": 711, - "column": 82 - }, - "end": { - "line": 711, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "step", - "start": 27744, - "end": 27748, - "loc": { - "start": { - "line": 711, - "column": 83 - }, - "end": { - "line": 711, - "column": 87 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27748, - "end": 27749, - "loc": { - "start": { - "line": 711, - "column": 87 - }, - "end": { - "line": 711, - "column": 88 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27749, - "end": 27750, - "loc": { - "start": { - "line": 711, - "column": 88 - }, - "end": { - "line": 711, - "column": 89 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 27754, - "end": 27760, - "loc": { - "start": { - "line": 712, - "column": 2 - }, - "end": { - "line": 712, - "column": 8 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "id", - "start": 27761, - "end": 27763, - "loc": { - "start": { - "line": 712, - "column": 9 - }, - "end": { - "line": 712, - "column": 11 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27763, - "end": 27764, - "loc": { - "start": { - "line": 712, - "column": 11 - }, - "end": { - "line": 712, - "column": 12 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27767, - "end": 27768, - "loc": { - "start": { - "line": 713, - "column": 1 - }, - "end": { - "line": 713, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t ", - "start": 27771, - "end": 27891, - "loc": { - "start": { - "line": 714, - "column": 1 - }, - "end": { - "line": 718, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelTransitionColor", - "start": 27894, - "end": 27915, - "loc": { - "start": { - "line": 719, - "column": 1 - }, - "end": { - "line": 719, - "column": 22 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27915, - "end": 27916, - "loc": { - "start": { - "line": 719, - "column": 22 - }, - "end": { - "line": 719, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 27916, - "end": 27919, - "loc": { - "start": { - "line": 719, - "column": 23 - }, - "end": { - "line": 719, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27919, - "end": 27920, - "loc": { - "start": { - "line": 719, - "column": 26 - }, - "end": { - "line": 719, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27921, - "end": 27922, - "loc": { - "start": { - "line": 719, - "column": 28 - }, - "end": { - "line": 719, - "column": 29 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 27926, - "end": 27928, - "loc": { - "start": { - "line": 720, - "column": 2 - }, - "end": { - "line": 720, - "column": 4 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27929, - "end": 27930, - "loc": { - "start": { - "line": 720, - "column": 5 - }, - "end": { - "line": 720, - "column": 6 - } - } - }, - { - "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": 27930, - "end": 27934, - "loc": { - "start": { - "line": 720, - "column": 6 - }, - "end": { - "line": 720, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27934, - "end": 27935, - "loc": { - "start": { - "line": 720, - "column": 10 - }, - "end": { - "line": 720, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27935, - "end": 27946, - "loc": { - "start": { - "line": 720, - "column": 11 - }, - "end": { - "line": 720, - "column": 22 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27946, - "end": 27947, - "loc": { - "start": { - "line": 720, - "column": 22 - }, - "end": { - "line": 720, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 27947, - "end": 27950, - "loc": { - "start": { - "line": 720, - "column": 23 - }, - "end": { - "line": 720, - "column": 26 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27950, - "end": 27951, - "loc": { - "start": { - "line": 720, - "column": 26 - }, - "end": { - "line": 720, - "column": 27 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27951, - "end": 27952, - "loc": { - "start": { - "line": 720, - "column": 27 - }, - "end": { - "line": 720, - "column": 28 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27953, - "end": 27954, - "loc": { - "start": { - "line": 720, - "column": 29 - }, - "end": { - "line": 720, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 27959, - "end": 27969, - "loc": { - "start": { - "line": 721, - "column": 3 - }, - "end": { - "line": 721, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27969, - "end": 27970, - "loc": { - "start": { - "line": 721, - "column": 13 - }, - "end": { - "line": 721, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cancelAnimationFrame", - "start": 27970, - "end": 27990, - "loc": { - "start": { - "line": 721, - "column": 14 - }, - "end": { - "line": 721, - "column": 34 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27990, - "end": 27991, - "loc": { - "start": { - "line": 721, - "column": 34 - }, - "end": { - "line": 721, - "column": 35 - } - } - }, - { - "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": 27991, - "end": 27995, - "loc": { - "start": { - "line": 721, - "column": 35 - }, - "end": { - "line": 721, - "column": 39 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27995, - "end": 27996, - "loc": { - "start": { - "line": 721, - "column": 39 - }, - "end": { - "line": 721, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 27996, - "end": 28007, - "loc": { - "start": { - "line": 721, - "column": 40 - }, - "end": { - "line": 721, - "column": 51 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28007, - "end": 28008, - "loc": { - "start": { - "line": 721, - "column": 51 - }, - "end": { - "line": 721, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 28008, - "end": 28011, - "loc": { - "start": { - "line": 721, - "column": 52 - }, - "end": { - "line": 721, - "column": 55 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28011, - "end": 28012, - "loc": { - "start": { - "line": 721, - "column": 55 - }, - "end": { - "line": 721, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28012, - "end": 28013, - "loc": { - "start": { - "line": 721, - "column": 56 - }, - "end": { - "line": 721, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "req", - "start": 28013, - "end": 28016, - "loc": { - "start": { - "line": 721, - "column": 57 - }, - "end": { - "line": 721, - "column": 60 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28016, - "end": 28017, - "loc": { - "start": { - "line": 721, - "column": 60 - }, - "end": { - "line": 721, - "column": 61 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28017, - "end": 28018, - "loc": { - "start": { - "line": 721, - "column": 61 - }, - "end": { - "line": 721, - "column": 62 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 28023, - "end": 28029, - "loc": { - "start": { - "line": 722, - "column": 3 - }, - "end": { - "line": 722, - "column": 9 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 28030, - "end": 28034, - "loc": { - "start": { - "line": 722, - "column": 10 - }, - "end": { - "line": 722, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28034, - "end": 28035, - "loc": { - "start": { - "line": 722, - "column": 14 - }, - "end": { - "line": 722, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "transitions", - "start": 28035, - "end": 28046, - "loc": { - "start": { - "line": 722, - "column": 15 - }, - "end": { - "line": 722, - "column": 26 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28046, - "end": 28047, - "loc": { - "start": { - "line": 722, - "column": 26 - }, - "end": { - "line": 722, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pID", - "start": 28047, - "end": 28050, - "loc": { - "start": { - "line": 722, - "column": 27 - }, - "end": { - "line": 722, - "column": 30 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28050, - "end": 28051, - "loc": { - "start": { - "line": 722, - "column": 30 - }, - "end": { - "line": 722, - "column": 31 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28051, - "end": 28052, - "loc": { - "start": { - "line": 722, - "column": 31 - }, - "end": { - "line": 722, - "column": 32 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28056, - "end": 28057, - "loc": { - "start": { - "line": 723, - "column": 2 - }, - "end": { - "line": 723, - "column": 3 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28060, - "end": 28061, - "loc": { - "start": { - "line": 724, - "column": 1 - }, - "end": { - "line": 724, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t ", - "start": 28064, - "end": 28745, - "loc": { - "start": { - "line": 725, - "column": 1 - }, - "end": { - "line": 735, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 28748, - "end": 28763, - "loc": { - "start": { - "line": 736, - "column": 1 - }, - "end": { - "line": 736, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28763, - "end": 28764, - "loc": { - "start": { - "line": 736, - "column": 16 - }, - "end": { - "line": 736, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 28764, - "end": 28769, - "loc": { - "start": { - "line": 736, - "column": 17 - }, - "end": { - "line": 736, - "column": 22 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28769, - "end": 28770, - "loc": { - "start": { - "line": 736, - "column": 22 - }, - "end": { - "line": 736, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 28771, - "end": 28777, - "loc": { - "start": { - "line": 736, - "column": 24 - }, - "end": { - "line": 736, - "column": 30 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28777, - "end": 28778, - "loc": { - "start": { - "line": 736, - "column": 30 - }, - "end": { - "line": 736, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 28779, - "end": 28785, - "loc": { - "start": { - "line": 736, - "column": 32 - }, - "end": { - "line": 736, - "column": 38 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28785, - "end": 28786, - "loc": { - "start": { - "line": 736, - "column": 38 - }, - "end": { - "line": 736, - "column": 39 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28787, - "end": 28788, - "loc": { - "start": { - "line": 736, - "column": 40 - }, - "end": { - "line": 736, - "column": 41 - } - } - }, - { - "type": "CommentLine", - "value": " cx, cy - center of square coordinates", - "start": 28792, - "end": 28832, - "loc": { - "start": { - "line": 737, - "column": 2 - }, - "end": { - "line": 737, - "column": 42 - } - } - }, - { - "type": "CommentLine", - "value": " x, y - coordinates of a corner point of the square", - "start": 28836, - "end": 28889, - "loc": { - "start": { - "line": 738, - "column": 2 - }, - "end": { - "line": 738, - "column": 55 - } - } - }, - { - "type": "CommentLine", - "value": " theta is the angle of rotation", - "start": 28893, - "end": 28926, - "loc": { - "start": { - "line": 739, - "column": 2 - }, - "end": { - "line": 739, - "column": 35 - } - } - }, - { - "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": 28930, - "end": 28935, - "loc": { - "start": { - "line": 740, - "column": 2 - }, - "end": { - "line": 740, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 28936, - "end": 28938, - "loc": { - "start": { - "line": 740, - "column": 8 - }, - "end": { - "line": 740, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 28939, - "end": 28940, - "loc": { - "start": { - "line": 740, - "column": 11 - }, - "end": { - "line": 740, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 28941, - "end": 28946, - "loc": { - "start": { - "line": 740, - "column": 13 - }, - "end": { - "line": 740, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28946, - "end": 28947, - "loc": { - "start": { - "line": 740, - "column": 18 - }, - "end": { - "line": 740, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 28947, - "end": 28948, - "loc": { - "start": { - "line": 740, - "column": 19 - }, - "end": { - "line": 740, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 28949, - "end": 28950, - "loc": { - "start": { - "line": 740, - "column": 21 - }, - "end": { - "line": 740, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 28951, - "end": 28956, - "loc": { - "start": { - "line": 740, - "column": 23 - }, - "end": { - "line": 740, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28956, - "end": 28957, - "loc": { - "start": { - "line": 740, - "column": 28 - }, - "end": { - "line": 740, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 28957, - "end": 28962, - "loc": { - "start": { - "line": 740, - "column": 29 - }, - "end": { - "line": 740, - "column": 34 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 28963, - "end": 28964, - "loc": { - "start": { - "line": 740, - "column": 35 - }, - "end": { - "line": 740, - "column": 36 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28965, - "end": 28966, - "loc": { - "start": { - "line": 740, - "column": 37 - }, - "end": { - "line": 740, - "column": 38 - } - } - }, - { - "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": 28966, - "end": 28972, - "loc": { - "start": { - "line": 740, - "column": 38 - }, - "end": { - "line": 740, - "column": 44 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28972, - "end": 28973, - "loc": { - "start": { - "line": 740, - "column": 44 - }, - "end": { - "line": 740, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 28973, - "end": 28978, - "loc": { - "start": { - "line": 740, - "column": 45 - }, - "end": { - "line": 740, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28978, - "end": 28979, - "loc": { - "start": { - "line": 740, - "column": 50 - }, - "end": { - "line": 740, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 28979, - "end": 28985, - "loc": { - "start": { - "line": 740, - "column": 51 - }, - "end": { - "line": 740, - "column": 57 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28985, - "end": 28986, - "loc": { - "start": { - "line": 740, - "column": 57 - }, - "end": { - "line": 740, - "column": 58 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 28987, - "end": 28990, - "loc": { - "start": { - "line": 740, - "column": 59 - }, - "end": { - "line": 740, - "column": 62 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 28991, - "end": 28999, - "loc": { - "start": { - "line": 740, - "column": 63 - }, - "end": { - "line": 740, - "column": 71 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 29000, - "end": 29002, - "loc": { - "start": { - "line": 740, - "column": 72 - }, - "end": { - "line": 740, - "column": 74 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 29003, - "end": 29008, - "loc": { - "start": { - "line": 740, - "column": 75 - }, - "end": { - "line": 740, - "column": 80 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29008, - "end": 29009, - "loc": { - "start": { - "line": 740, - "column": 80 - }, - "end": { - "line": 740, - "column": 81 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 29009, - "end": 29015, - "loc": { - "start": { - "line": 740, - "column": 81 - }, - "end": { - "line": 740, - "column": 87 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29015, - "end": 29016, - "loc": { - "start": { - "line": 740, - "column": 87 - }, - "end": { - "line": 740, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 29016, - "end": 29017, - "loc": { - "start": { - "line": 740, - "column": 88 - }, - "end": { - "line": 740, - "column": 89 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29018, - "end": 29019, - "loc": { - "start": { - "line": 740, - "column": 90 - }, - "end": { - "line": 740, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 29020, - "end": 29025, - "loc": { - "start": { - "line": 740, - "column": 92 - }, - "end": { - "line": 740, - "column": 97 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29025, - "end": 29026, - "loc": { - "start": { - "line": 740, - "column": 97 - }, - "end": { - "line": 740, - "column": 98 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 29026, - "end": 29032, - "loc": { - "start": { - "line": 740, - "column": 98 - }, - "end": { - "line": 740, - "column": 104 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29032, - "end": 29033, - "loc": { - "start": { - "line": 740, - "column": 104 - }, - "end": { - "line": 740, - "column": 105 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 29033, - "end": 29034, - "loc": { - "start": { - "line": 740, - "column": 105 - }, - "end": { - "line": 740, - "column": 106 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29035, - "end": 29036, - "loc": { - "start": { - "line": 740, - "column": 107 - }, - "end": { - "line": 740, - "column": 108 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 29037, - "end": 29040, - "loc": { - "start": { - "line": 740, - "column": 109 - }, - "end": { - "line": 740, - "column": 112 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29040, - "end": 29041, - "loc": { - "start": { - "line": 740, - "column": 112 - }, - "end": { - "line": 740, - "column": 113 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29041, - "end": 29042, - "loc": { - "start": { - "line": 740, - "column": 113 - }, - "end": { - "line": 740, - "column": 114 - } - } - }, - { - "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": 29046, - "end": 29051, - "loc": { - "start": { - "line": 741, - "column": 2 - }, - "end": { - "line": 741, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 29052, - "end": 29054, - "loc": { - "start": { - "line": 741, - "column": 8 - }, - "end": { - "line": 741, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 29055, - "end": 29056, - "loc": { - "start": { - "line": 741, - "column": 11 - }, - "end": { - "line": 741, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 29057, - "end": 29062, - "loc": { - "start": { - "line": 741, - "column": 13 - }, - "end": { - "line": 741, - "column": 18 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29062, - "end": 29063, - "loc": { - "start": { - "line": 741, - "column": 18 - }, - "end": { - "line": 741, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 29063, - "end": 29064, - "loc": { - "start": { - "line": 741, - "column": 19 - }, - "end": { - "line": 741, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 29065, - "end": 29066, - "loc": { - "start": { - "line": 741, - "column": 21 - }, - "end": { - "line": 741, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 29067, - "end": 29072, - "loc": { - "start": { - "line": 741, - "column": 23 - }, - "end": { - "line": 741, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29072, - "end": 29073, - "loc": { - "start": { - "line": 741, - "column": 28 - }, - "end": { - "line": 741, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 29073, - "end": 29079, - "loc": { - "start": { - "line": 741, - "column": 29 - }, - "end": { - "line": 741, - "column": 35 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 29080, - "end": 29081, - "loc": { - "start": { - "line": 741, - "column": 36 - }, - "end": { - "line": 741, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29082, - "end": 29083, - "loc": { - "start": { - "line": 741, - "column": 38 - }, - "end": { - "line": 741, - "column": 39 - } - } - }, - { - "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": 29083, - "end": 29089, - "loc": { - "start": { - "line": 741, - "column": 39 - }, - "end": { - "line": 741, - "column": 45 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29089, - "end": 29090, - "loc": { - "start": { - "line": 741, - "column": 45 - }, - "end": { - "line": 741, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 29090, - "end": 29095, - "loc": { - "start": { - "line": 741, - "column": 46 - }, - "end": { - "line": 741, - "column": 51 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29095, - "end": 29096, - "loc": { - "start": { - "line": 741, - "column": 51 - }, - "end": { - "line": 741, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 29096, - "end": 29102, - "loc": { - "start": { - "line": 741, - "column": 52 - }, - "end": { - "line": 741, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29102, - "end": 29103, - "loc": { - "start": { - "line": 741, - "column": 58 - }, - "end": { - "line": 741, - "column": 59 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 29104, - "end": 29107, - "loc": { - "start": { - "line": 741, - "column": 60 - }, - "end": { - "line": 741, - "column": 63 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "object", - "start": 29108, - "end": 29116, - "loc": { - "start": { - "line": 741, - "column": 64 - }, - "end": { - "line": 741, - "column": 72 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 29117, - "end": 29119, - "loc": { - "start": { - "line": 741, - "column": 73 - }, - "end": { - "line": 741, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 29120, - "end": 29125, - "loc": { - "start": { - "line": 741, - "column": 76 - }, - "end": { - "line": 741, - "column": 81 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29125, - "end": 29126, - "loc": { - "start": { - "line": 741, - "column": 81 - }, - "end": { - "line": 741, - "column": 82 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 29126, - "end": 29132, - "loc": { - "start": { - "line": 741, - "column": 82 - }, - "end": { - "line": 741, - "column": 88 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29132, - "end": 29133, - "loc": { - "start": { - "line": 741, - "column": 88 - }, - "end": { - "line": 741, - "column": 89 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 29133, - "end": 29134, - "loc": { - "start": { - "line": 741, - "column": 89 - }, - "end": { - "line": 741, - "column": 90 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29135, - "end": 29136, - "loc": { - "start": { - "line": 741, - "column": 91 - }, - "end": { - "line": 741, - "column": 92 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 29137, - "end": 29142, - "loc": { - "start": { - "line": 741, - "column": 93 - }, - "end": { - "line": 741, - "column": 98 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29142, - "end": 29143, - "loc": { - "start": { - "line": 741, - "column": 98 - }, - "end": { - "line": 741, - "column": 99 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "anchor", - "start": 29143, - "end": 29149, - "loc": { - "start": { - "line": 741, - "column": 99 - }, - "end": { - "line": 741, - "column": 105 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29149, - "end": 29150, - "loc": { - "start": { - "line": 741, - "column": 105 - }, - "end": { - "line": 741, - "column": 106 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 29150, - "end": 29151, - "loc": { - "start": { - "line": 741, - "column": 106 - }, - "end": { - "line": 741, - "column": 107 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29152, - "end": 29153, - "loc": { - "start": { - "line": 741, - "column": 108 - }, - "end": { - "line": 741, - "column": 109 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 29154, - "end": 29157, - "loc": { - "start": { - "line": 741, - "column": 110 - }, - "end": { - "line": 741, - "column": 113 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29157, - "end": 29158, - "loc": { - "start": { - "line": 741, - "column": 113 - }, - "end": { - "line": 741, - "column": 114 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29158, - "end": 29159, - "loc": { - "start": { - "line": 741, - "column": 114 - }, - "end": { - "line": 741, - "column": 115 - } - } - }, - { - "type": "CommentLine", - "value": " translate point to origin", - "start": 29165, - "end": 29193, - "loc": { - "start": { - "line": 743, - "column": 2 - }, - "end": { - "line": 743, - "column": 30 - } - } - }, - { - "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": 29197, - "end": 29202, - "loc": { - "start": { - "line": 744, - "column": 2 - }, - "end": { - "line": 744, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 29203, - "end": 29208, - "loc": { - "start": { - "line": 744, - "column": 8 - }, - "end": { - "line": 744, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 29209, - "end": 29210, - "loc": { - "start": { - "line": 744, - "column": 14 - }, - "end": { - "line": 744, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 29211, - "end": 29217, - "loc": { - "start": { - "line": 744, - "column": 16 - }, - "end": { - "line": 744, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29217, - "end": 29218, - "loc": { - "start": { - "line": 744, - "column": 22 - }, - "end": { - "line": 744, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 29218, - "end": 29219, - "loc": { - "start": { - "line": 744, - "column": 23 - }, - "end": { - "line": 744, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 29220, - "end": 29221, - "loc": { - "start": { - "line": 744, - "column": 25 - }, - "end": { - "line": 744, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 29222, - "end": 29224, - "loc": { - "start": { - "line": 744, - "column": 27 - }, - "end": { - "line": 744, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29224, - "end": 29225, - "loc": { - "start": { - "line": 744, - "column": 29 - }, - "end": { - "line": 744, - "column": 30 - } - } - }, - { - "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": 29229, - "end": 29234, - "loc": { - "start": { - "line": 745, - "column": 2 - }, - "end": { - "line": 745, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 29235, - "end": 29240, - "loc": { - "start": { - "line": 745, - "column": 8 - }, - "end": { - "line": 745, - "column": 13 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 29241, - "end": 29242, - "loc": { - "start": { - "line": 745, - "column": 14 - }, - "end": { - "line": 745, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pPoint", - "start": 29243, - "end": 29249, - "loc": { - "start": { - "line": 745, - "column": 16 - }, - "end": { - "line": 745, - "column": 22 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29249, - "end": 29250, - "loc": { - "start": { - "line": 745, - "column": 22 - }, - "end": { - "line": 745, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 29250, - "end": 29251, - "loc": { - "start": { - "line": 745, - "column": 23 - }, - "end": { - "line": 745, - "column": 24 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 29252, - "end": 29253, - "loc": { - "start": { - "line": 745, - "column": 25 - }, - "end": { - "line": 745, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 29254, - "end": 29256, - "loc": { - "start": { - "line": 745, - "column": 27 - }, - "end": { - "line": 745, - "column": 29 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29256, - "end": 29257, - "loc": { - "start": { - "line": 745, - "column": 29 - }, - "end": { - "line": 745, - "column": 30 - } - } - }, - { - "type": "CommentLine", - "value": " now apply rotation", - "start": 29263, - "end": 29284, - "loc": { - "start": { - "line": 747, - "column": 2 - }, - "end": { - "line": 747, - "column": 23 - } - } - }, - { - "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": 29288, - "end": 29293, - "loc": { - "start": { - "line": 748, - "column": 2 - }, - "end": { - "line": 748, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedX", - "start": 29294, - "end": 29302, - "loc": { - "start": { - "line": 748, - "column": 8 - }, - "end": { - "line": 748, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 29303, - "end": 29304, - "loc": { - "start": { - "line": 748, - "column": 17 - }, - "end": { - "line": 748, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 29305, - "end": 29310, - "loc": { - "start": { - "line": 748, - "column": 19 - }, - "end": { - "line": 748, - "column": 24 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 29310, - "end": 29311, - "loc": { - "start": { - "line": 748, - "column": 24 - }, - "end": { - "line": 748, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 29311, - "end": 29315, - "loc": { - "start": { - "line": 748, - "column": 25 - }, - "end": { - "line": 748, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29315, - "end": 29316, - "loc": { - "start": { - "line": 748, - "column": 29 - }, - "end": { - "line": 748, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cos", - "start": 29316, - "end": 29319, - "loc": { - "start": { - "line": 748, - "column": 30 - }, - "end": { - "line": 748, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29319, - "end": 29320, - "loc": { - "start": { - "line": 748, - "column": 33 - }, - "end": { - "line": 748, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 29320, - "end": 29326, - "loc": { - "start": { - "line": 748, - "column": 34 - }, - "end": { - "line": 748, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29326, - "end": 29327, - "loc": { - "start": { - "line": 748, - "column": 40 - }, - "end": { - "line": 748, - "column": 41 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 29328, - "end": 29329, - "loc": { - "start": { - "line": 748, - "column": 42 - }, - "end": { - "line": 748, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 29330, - "end": 29335, - "loc": { - "start": { - "line": 748, - "column": 44 - }, - "end": { - "line": 748, - "column": 49 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 29335, - "end": 29336, - "loc": { - "start": { - "line": 748, - "column": 49 - }, - "end": { - "line": 748, - "column": 50 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29336, - "end": 29337, - "loc": { - "start": { - "line": 748, - "column": 50 - }, - "end": { - "line": 748, - "column": 51 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 29337, - "end": 29338, - "loc": { - "start": { - "line": 748, - "column": 51 - }, - "end": { - "line": 748, - "column": 52 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 29338, - "end": 29342, - "loc": { - "start": { - "line": 748, - "column": 52 - }, - "end": { - "line": 748, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29342, - "end": 29343, - "loc": { - "start": { - "line": 748, - "column": 56 - }, - "end": { - "line": 748, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sin", - "start": 29343, - "end": 29346, - "loc": { - "start": { - "line": 748, - "column": 57 - }, - "end": { - "line": 748, - "column": 60 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29346, - "end": 29347, - "loc": { - "start": { - "line": 748, - "column": 60 - }, - "end": { - "line": 748, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 29347, - "end": 29353, - "loc": { - "start": { - "line": 748, - "column": 61 - }, - "end": { - "line": 748, - "column": 67 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29353, - "end": 29354, - "loc": { - "start": { - "line": 748, - "column": 67 - }, - "end": { - "line": 748, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29354, - "end": 29355, - "loc": { - "start": { - "line": 748, - "column": 68 - }, - "end": { - "line": 748, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29355, - "end": 29356, - "loc": { - "start": { - "line": 748, - "column": 69 - }, - "end": { - "line": 748, - "column": 70 - } - } - }, - { - "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": 29360, - "end": 29365, - "loc": { - "start": { - "line": 749, - "column": 2 - }, - "end": { - "line": 749, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedY", - "start": 29366, - "end": 29374, - "loc": { - "start": { - "line": 749, - "column": 8 - }, - "end": { - "line": 749, - "column": 16 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 29375, - "end": 29376, - "loc": { - "start": { - "line": 749, - "column": 17 - }, - "end": { - "line": 749, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempX", - "start": 29377, - "end": 29382, - "loc": { - "start": { - "line": 749, - "column": 19 - }, - "end": { - "line": 749, - "column": 24 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 29382, - "end": 29383, - "loc": { - "start": { - "line": 749, - "column": 24 - }, - "end": { - "line": 749, - "column": 25 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29383, - "end": 29384, - "loc": { - "start": { - "line": 749, - "column": 25 - }, - "end": { - "line": 749, - "column": 26 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 29384, - "end": 29385, - "loc": { - "start": { - "line": 749, - "column": 26 - }, - "end": { - "line": 749, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 29385, - "end": 29389, - "loc": { - "start": { - "line": 749, - "column": 27 - }, - "end": { - "line": 749, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29389, - "end": 29390, - "loc": { - "start": { - "line": 749, - "column": 31 - }, - "end": { - "line": 749, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "sin", - "start": 29390, - "end": 29393, - "loc": { - "start": { - "line": 749, - "column": 32 - }, - "end": { - "line": 749, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29393, - "end": 29394, - "loc": { - "start": { - "line": 749, - "column": 35 - }, - "end": { - "line": 749, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 29394, - "end": 29400, - "loc": { - "start": { - "line": 749, - "column": 36 - }, - "end": { - "line": 749, - "column": 42 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29400, - "end": 29401, - "loc": { - "start": { - "line": 749, - "column": 42 - }, - "end": { - "line": 749, - "column": 43 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29401, - "end": 29402, - "loc": { - "start": { - "line": 749, - "column": 43 - }, - "end": { - "line": 749, - "column": 44 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 29403, - "end": 29404, - "loc": { - "start": { - "line": 749, - "column": 45 - }, - "end": { - "line": 749, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tempY", - "start": 29405, - "end": 29410, - "loc": { - "start": { - "line": 749, - "column": 47 - }, - "end": { - "line": 749, - "column": 52 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 29410, - "end": 29411, - "loc": { - "start": { - "line": 749, - "column": 52 - }, - "end": { - "line": 749, - "column": 53 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 29411, - "end": 29415, - "loc": { - "start": { - "line": 749, - "column": 53 - }, - "end": { - "line": 749, - "column": 57 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29415, - "end": 29416, - "loc": { - "start": { - "line": 749, - "column": 57 - }, - "end": { - "line": 749, - "column": 58 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cos", - "start": 29416, - "end": 29419, - "loc": { - "start": { - "line": 749, - "column": 58 - }, - "end": { - "line": 749, - "column": 61 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29419, - "end": 29420, - "loc": { - "start": { - "line": 749, - "column": 61 - }, - "end": { - "line": 749, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 29420, - "end": 29426, - "loc": { - "start": { - "line": 749, - "column": 62 - }, - "end": { - "line": 749, - "column": 68 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29426, - "end": 29427, - "loc": { - "start": { - "line": 749, - "column": 68 - }, - "end": { - "line": 749, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29427, - "end": 29428, - "loc": { - "start": { - "line": 749, - "column": 69 - }, - "end": { - "line": 749, - "column": 70 - } - } - }, - { - "type": "CommentLine", - "value": " translate back", - "start": 29434, - "end": 29451, - "loc": { - "start": { - "line": 751, - "column": 2 - }, - "end": { - "line": 751, - "column": 19 - } - } - }, - { - "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": 29455, - "end": 29460, - "loc": { - "start": { - "line": 752, - "column": 2 - }, - "end": { - "line": 752, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 29461, - "end": 29462, - "loc": { - "start": { - "line": 752, - "column": 8 - }, - "end": { - "line": 752, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 29463, - "end": 29464, - "loc": { - "start": { - "line": 752, - "column": 10 - }, - "end": { - "line": 752, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedX", - "start": 29465, - "end": 29473, - "loc": { - "start": { - "line": 752, - "column": 12 - }, - "end": { - "line": 752, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 29474, - "end": 29475, - "loc": { - "start": { - "line": 752, - "column": 21 - }, - "end": { - "line": 752, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cx", - "start": 29476, - "end": 29478, - "loc": { - "start": { - "line": 752, - "column": 23 - }, - "end": { - "line": 752, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29478, - "end": 29479, - "loc": { - "start": { - "line": 752, - "column": 25 - }, - "end": { - "line": 752, - "column": 26 - } - } - }, - { - "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": 29483, - "end": 29488, - "loc": { - "start": { - "line": 753, - "column": 2 - }, - "end": { - "line": 753, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 29489, - "end": 29490, - "loc": { - "start": { - "line": 753, - "column": 8 - }, - "end": { - "line": 753, - "column": 9 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 29491, - "end": 29492, - "loc": { - "start": { - "line": 753, - "column": 10 - }, - "end": { - "line": 753, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rotatedY", - "start": 29493, - "end": 29501, - "loc": { - "start": { - "line": 753, - "column": 12 - }, - "end": { - "line": 753, - "column": 20 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 29502, - "end": 29503, - "loc": { - "start": { - "line": 753, - "column": 21 - }, - "end": { - "line": 753, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "cy", - "start": 29504, - "end": 29506, - "loc": { - "start": { - "line": 753, - "column": 23 - }, - "end": { - "line": 753, - "column": 25 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29506, - "end": 29507, - "loc": { - "start": { - "line": 753, - "column": 25 - }, - "end": { - "line": 753, - "column": 26 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 29511, - "end": 29517, - "loc": { - "start": { - "line": 754, - "column": 2 - }, - "end": { - "line": 754, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29518, - "end": 29519, - "loc": { - "start": { - "line": 754, - "column": 9 - }, - "end": { - "line": 754, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 29520, - "end": 29523, - "loc": { - "start": { - "line": 754, - "column": 11 - }, - "end": { - "line": 754, - "column": 14 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29523, - "end": 29524, - "loc": { - "start": { - "line": 754, - "column": 14 - }, - "end": { - "line": 754, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 29525, - "end": 29526, - "loc": { - "start": { - "line": 754, - "column": 16 - }, - "end": { - "line": 754, - "column": 17 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29526, - "end": 29527, - "loc": { - "start": { - "line": 754, - "column": 17 - }, - "end": { - "line": 754, - "column": 18 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 29528, - "end": 29531, - "loc": { - "start": { - "line": 754, - "column": 19 - }, - "end": { - "line": 754, - "column": 22 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29531, - "end": 29532, - "loc": { - "start": { - "line": 754, - "column": 22 - }, - "end": { - "line": 754, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 29533, - "end": 29534, - "loc": { - "start": { - "line": 754, - "column": 24 - }, - "end": { - "line": 754, - "column": 25 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29535, - "end": 29536, - "loc": { - "start": { - "line": 754, - "column": 26 - }, - "end": { - "line": 754, - "column": 27 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29536, - "end": 29537, - "loc": { - "start": { - "line": 754, - "column": 27 - }, - "end": { - "line": 754, - "column": 28 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 29540, - "end": 29541, - "loc": { - "start": { - "line": 755, - "column": 1 - }, - "end": { - "line": 755, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t ", - "start": 29544, - "end": 30039, - "loc": { - "start": { - "line": 756, - "column": 1 - }, - "end": { - "line": 763, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointsOfRotatedRect", - "start": 30042, - "end": 30064, - "loc": { - "start": { - "line": 764, - "column": 1 - }, - "end": { - "line": 764, - "column": 23 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30064, - "end": 30065, - "loc": { - "start": { - "line": 764, - "column": 23 - }, - "end": { - "line": 764, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30065, - "end": 30070, - "loc": { - "start": { - "line": 764, - "column": 24 - }, - "end": { - "line": 764, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30070, - "end": 30071, - "loc": { - "start": { - "line": 764, - "column": 29 - }, - "end": { - "line": 764, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 30072, - "end": 30078, - "loc": { - "start": { - "line": 764, - "column": 31 - }, - "end": { - "line": 764, - "column": 37 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30078, - "end": 30079, - "loc": { - "start": { - "line": 764, - "column": 37 - }, - "end": { - "line": 764, - "column": 38 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30080, - "end": 30081, - "loc": { - "start": { - "line": 764, - "column": 39 - }, - "end": { - "line": 764, - "column": 40 - } - } - }, - { - "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": 30085, - "end": 30090, - "loc": { - "start": { - "line": 765, - "column": 2 - }, - "end": { - "line": 765, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tl", - "start": 30091, - "end": 30093, - "loc": { - "start": { - "line": 765, - "column": 8 - }, - "end": { - "line": 765, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30094, - "end": 30095, - "loc": { - "start": { - "line": 765, - "column": 11 - }, - "end": { - "line": 765, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 30096, - "end": 30100, - "loc": { - "start": { - "line": 765, - "column": 13 - }, - "end": { - "line": 765, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30100, - "end": 30101, - "loc": { - "start": { - "line": 765, - "column": 17 - }, - "end": { - "line": 765, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 30101, - "end": 30116, - "loc": { - "start": { - "line": 765, - "column": 18 - }, - "end": { - "line": 765, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30116, - "end": 30117, - "loc": { - "start": { - "line": 765, - "column": 33 - }, - "end": { - "line": 765, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30117, - "end": 30122, - "loc": { - "start": { - "line": 765, - "column": 34 - }, - "end": { - "line": 765, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30122, - "end": 30123, - "loc": { - "start": { - "line": 765, - "column": 39 - }, - "end": { - "line": 765, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 30124, - "end": 30130, - "loc": { - "start": { - "line": 765, - "column": 41 - }, - "end": { - "line": 765, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30130, - "end": 30131, - "loc": { - "start": { - "line": 765, - "column": 47 - }, - "end": { - "line": 765, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30132, - "end": 30133, - "loc": { - "start": { - "line": 765, - "column": 49 - }, - "end": { - "line": 765, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 30134, - "end": 30137, - "loc": { - "start": { - "line": 765, - "column": 51 - }, - "end": { - "line": 765, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30137, - "end": 30138, - "loc": { - "start": { - "line": 765, - "column": 54 - }, - "end": { - "line": 765, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30139, - "end": 30144, - "loc": { - "start": { - "line": 765, - "column": 56 - }, - "end": { - "line": 765, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30144, - "end": 30145, - "loc": { - "start": { - "line": 765, - "column": 61 - }, - "end": { - "line": 765, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 30145, - "end": 30146, - "loc": { - "start": { - "line": 765, - "column": 62 - }, - "end": { - "line": 765, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30146, - "end": 30147, - "loc": { - "start": { - "line": 765, - "column": 63 - }, - "end": { - "line": 765, - "column": 64 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 30148, - "end": 30151, - "loc": { - "start": { - "line": 765, - "column": 65 - }, - "end": { - "line": 765, - "column": 68 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30151, - "end": 30152, - "loc": { - "start": { - "line": 765, - "column": 68 - }, - "end": { - "line": 765, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30153, - "end": 30158, - "loc": { - "start": { - "line": 765, - "column": 70 - }, - "end": { - "line": 765, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30158, - "end": 30159, - "loc": { - "start": { - "line": 765, - "column": 75 - }, - "end": { - "line": 765, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 30159, - "end": 30160, - "loc": { - "start": { - "line": 765, - "column": 76 - }, - "end": { - "line": 765, - "column": 77 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30161, - "end": 30162, - "loc": { - "start": { - "line": 765, - "column": 78 - }, - "end": { - "line": 765, - "column": 79 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30162, - "end": 30163, - "loc": { - "start": { - "line": 765, - "column": 79 - }, - "end": { - "line": 765, - "column": 80 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30163, - "end": 30164, - "loc": { - "start": { - "line": 765, - "column": 80 - }, - "end": { - "line": 765, - "column": 81 - } - } - }, - { - "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": 30168, - "end": 30173, - "loc": { - "start": { - "line": 766, - "column": 2 - }, - "end": { - "line": 766, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tr", - "start": 30174, - "end": 30176, - "loc": { - "start": { - "line": 766, - "column": 8 - }, - "end": { - "line": 766, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30177, - "end": 30178, - "loc": { - "start": { - "line": 766, - "column": 11 - }, - "end": { - "line": 766, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 30179, - "end": 30183, - "loc": { - "start": { - "line": 766, - "column": 13 - }, - "end": { - "line": 766, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30183, - "end": 30184, - "loc": { - "start": { - "line": 766, - "column": 17 - }, - "end": { - "line": 766, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 30184, - "end": 30199, - "loc": { - "start": { - "line": 766, - "column": 18 - }, - "end": { - "line": 766, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30199, - "end": 30200, - "loc": { - "start": { - "line": 766, - "column": 33 - }, - "end": { - "line": 766, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30200, - "end": 30205, - "loc": { - "start": { - "line": 766, - "column": 34 - }, - "end": { - "line": 766, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30205, - "end": 30206, - "loc": { - "start": { - "line": 766, - "column": 39 - }, - "end": { - "line": 766, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 30207, - "end": 30213, - "loc": { - "start": { - "line": 766, - "column": 41 - }, - "end": { - "line": 766, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30213, - "end": 30214, - "loc": { - "start": { - "line": 766, - "column": 47 - }, - "end": { - "line": 766, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30215, - "end": 30216, - "loc": { - "start": { - "line": 766, - "column": 49 - }, - "end": { - "line": 766, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 30217, - "end": 30220, - "loc": { - "start": { - "line": 766, - "column": 51 - }, - "end": { - "line": 766, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30220, - "end": 30221, - "loc": { - "start": { - "line": 766, - "column": 54 - }, - "end": { - "line": 766, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30222, - "end": 30227, - "loc": { - "start": { - "line": 766, - "column": 56 - }, - "end": { - "line": 766, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30227, - "end": 30228, - "loc": { - "start": { - "line": 766, - "column": 61 - }, - "end": { - "line": 766, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 30228, - "end": 30229, - "loc": { - "start": { - "line": 766, - "column": 62 - }, - "end": { - "line": 766, - "column": 63 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 30230, - "end": 30231, - "loc": { - "start": { - "line": 766, - "column": 64 - }, - "end": { - "line": 766, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30232, - "end": 30237, - "loc": { - "start": { - "line": 766, - "column": 66 - }, - "end": { - "line": 766, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30237, - "end": 30238, - "loc": { - "start": { - "line": 766, - "column": 71 - }, - "end": { - "line": 766, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 30238, - "end": 30243, - "loc": { - "start": { - "line": 766, - "column": 72 - }, - "end": { - "line": 766, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30243, - "end": 30244, - "loc": { - "start": { - "line": 766, - "column": 77 - }, - "end": { - "line": 766, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 30245, - "end": 30248, - "loc": { - "start": { - "line": 766, - "column": 79 - }, - "end": { - "line": 766, - "column": 82 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30248, - "end": 30249, - "loc": { - "start": { - "line": 766, - "column": 82 - }, - "end": { - "line": 766, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30250, - "end": 30255, - "loc": { - "start": { - "line": 766, - "column": 84 - }, - "end": { - "line": 766, - "column": 89 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30255, - "end": 30256, - "loc": { - "start": { - "line": 766, - "column": 89 - }, - "end": { - "line": 766, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 30256, - "end": 30257, - "loc": { - "start": { - "line": 766, - "column": 90 - }, - "end": { - "line": 766, - "column": 91 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30258, - "end": 30259, - "loc": { - "start": { - "line": 766, - "column": 92 - }, - "end": { - "line": 766, - "column": 93 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30259, - "end": 30260, - "loc": { - "start": { - "line": 766, - "column": 93 - }, - "end": { - "line": 766, - "column": 94 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30260, - "end": 30261, - "loc": { - "start": { - "line": 766, - "column": 94 - }, - "end": { - "line": 766, - "column": 95 - } - } - }, - { - "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": 30265, - "end": 30270, - "loc": { - "start": { - "line": 767, - "column": 2 - }, - "end": { - "line": 767, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bl", - "start": 30271, - "end": 30273, - "loc": { - "start": { - "line": 767, - "column": 8 - }, - "end": { - "line": 767, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30274, - "end": 30275, - "loc": { - "start": { - "line": 767, - "column": 11 - }, - "end": { - "line": 767, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 30276, - "end": 30280, - "loc": { - "start": { - "line": 767, - "column": 13 - }, - "end": { - "line": 767, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30280, - "end": 30281, - "loc": { - "start": { - "line": 767, - "column": 17 - }, - "end": { - "line": 767, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 30281, - "end": 30296, - "loc": { - "start": { - "line": 767, - "column": 18 - }, - "end": { - "line": 767, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30296, - "end": 30297, - "loc": { - "start": { - "line": 767, - "column": 33 - }, - "end": { - "line": 767, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30297, - "end": 30302, - "loc": { - "start": { - "line": 767, - "column": 34 - }, - "end": { - "line": 767, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30302, - "end": 30303, - "loc": { - "start": { - "line": 767, - "column": 39 - }, - "end": { - "line": 767, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 30304, - "end": 30310, - "loc": { - "start": { - "line": 767, - "column": 41 - }, - "end": { - "line": 767, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30310, - "end": 30311, - "loc": { - "start": { - "line": 767, - "column": 47 - }, - "end": { - "line": 767, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30312, - "end": 30313, - "loc": { - "start": { - "line": 767, - "column": 49 - }, - "end": { - "line": 767, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 30314, - "end": 30317, - "loc": { - "start": { - "line": 767, - "column": 51 - }, - "end": { - "line": 767, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30317, - "end": 30318, - "loc": { - "start": { - "line": 767, - "column": 54 - }, - "end": { - "line": 767, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30319, - "end": 30324, - "loc": { - "start": { - "line": 767, - "column": 56 - }, - "end": { - "line": 767, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30324, - "end": 30325, - "loc": { - "start": { - "line": 767, - "column": 61 - }, - "end": { - "line": 767, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 30325, - "end": 30326, - "loc": { - "start": { - "line": 767, - "column": 62 - }, - "end": { - "line": 767, - "column": 63 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30326, - "end": 30327, - "loc": { - "start": { - "line": 767, - "column": 63 - }, - "end": { - "line": 767, - "column": 64 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 30328, - "end": 30331, - "loc": { - "start": { - "line": 767, - "column": 65 - }, - "end": { - "line": 767, - "column": 68 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30331, - "end": 30332, - "loc": { - "start": { - "line": 767, - "column": 68 - }, - "end": { - "line": 767, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30333, - "end": 30338, - "loc": { - "start": { - "line": 767, - "column": 70 - }, - "end": { - "line": 767, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30338, - "end": 30339, - "loc": { - "start": { - "line": 767, - "column": 75 - }, - "end": { - "line": 767, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 30339, - "end": 30340, - "loc": { - "start": { - "line": 767, - "column": 76 - }, - "end": { - "line": 767, - "column": 77 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 30341, - "end": 30342, - "loc": { - "start": { - "line": 767, - "column": 78 - }, - "end": { - "line": 767, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30343, - "end": 30348, - "loc": { - "start": { - "line": 767, - "column": 80 - }, - "end": { - "line": 767, - "column": 85 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30348, - "end": 30349, - "loc": { - "start": { - "line": 767, - "column": 85 - }, - "end": { - "line": 767, - "column": 86 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 30349, - "end": 30355, - "loc": { - "start": { - "line": 767, - "column": 86 - }, - "end": { - "line": 767, - "column": 92 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30356, - "end": 30357, - "loc": { - "start": { - "line": 767, - "column": 93 - }, - "end": { - "line": 767, - "column": 94 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30357, - "end": 30358, - "loc": { - "start": { - "line": 767, - "column": 94 - }, - "end": { - "line": 767, - "column": 95 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30358, - "end": 30359, - "loc": { - "start": { - "line": 767, - "column": 95 - }, - "end": { - "line": 767, - "column": 96 - } - } - }, - { - "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": 30363, - "end": 30368, - "loc": { - "start": { - "line": 768, - "column": 2 - }, - "end": { - "line": 768, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "br", - "start": 30369, - "end": 30371, - "loc": { - "start": { - "line": 768, - "column": 8 - }, - "end": { - "line": 768, - "column": 10 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30372, - "end": 30373, - "loc": { - "start": { - "line": 768, - "column": 11 - }, - "end": { - "line": 768, - "column": 12 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 30374, - "end": 30378, - "loc": { - "start": { - "line": 768, - "column": 13 - }, - "end": { - "line": 768, - "column": 17 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30378, - "end": 30379, - "loc": { - "start": { - "line": 768, - "column": 17 - }, - "end": { - "line": 768, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 30379, - "end": 30394, - "loc": { - "start": { - "line": 768, - "column": 18 - }, - "end": { - "line": 768, - "column": 33 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30394, - "end": 30395, - "loc": { - "start": { - "line": 768, - "column": 33 - }, - "end": { - "line": 768, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30395, - "end": 30400, - "loc": { - "start": { - "line": 768, - "column": 34 - }, - "end": { - "line": 768, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30400, - "end": 30401, - "loc": { - "start": { - "line": 768, - "column": 39 - }, - "end": { - "line": 768, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 30402, - "end": 30408, - "loc": { - "start": { - "line": 768, - "column": 41 - }, - "end": { - "line": 768, - "column": 47 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30408, - "end": 30409, - "loc": { - "start": { - "line": 768, - "column": 47 - }, - "end": { - "line": 768, - "column": 48 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30410, - "end": 30411, - "loc": { - "start": { - "line": 768, - "column": 49 - }, - "end": { - "line": 768, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 30412, - "end": 30415, - "loc": { - "start": { - "line": 768, - "column": 51 - }, - "end": { - "line": 768, - "column": 54 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30415, - "end": 30416, - "loc": { - "start": { - "line": 768, - "column": 54 - }, - "end": { - "line": 768, - "column": 55 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30417, - "end": 30422, - "loc": { - "start": { - "line": 768, - "column": 56 - }, - "end": { - "line": 768, - "column": 61 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30422, - "end": 30423, - "loc": { - "start": { - "line": 768, - "column": 61 - }, - "end": { - "line": 768, - "column": 62 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 30423, - "end": 30424, - "loc": { - "start": { - "line": 768, - "column": 62 - }, - "end": { - "line": 768, - "column": 63 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 30425, - "end": 30426, - "loc": { - "start": { - "line": 768, - "column": 64 - }, - "end": { - "line": 768, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30427, - "end": 30432, - "loc": { - "start": { - "line": 768, - "column": 66 - }, - "end": { - "line": 768, - "column": 71 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30432, - "end": 30433, - "loc": { - "start": { - "line": 768, - "column": 71 - }, - "end": { - "line": 768, - "column": 72 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 30433, - "end": 30438, - "loc": { - "start": { - "line": 768, - "column": 72 - }, - "end": { - "line": 768, - "column": 77 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30438, - "end": 30439, - "loc": { - "start": { - "line": 768, - "column": 77 - }, - "end": { - "line": 768, - "column": 78 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 30440, - "end": 30443, - "loc": { - "start": { - "line": 768, - "column": 79 - }, - "end": { - "line": 768, - "column": 82 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30443, - "end": 30444, - "loc": { - "start": { - "line": 768, - "column": 82 - }, - "end": { - "line": 768, - "column": 83 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30445, - "end": 30450, - "loc": { - "start": { - "line": 768, - "column": 84 - }, - "end": { - "line": 768, - "column": 89 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30450, - "end": 30451, - "loc": { - "start": { - "line": 768, - "column": 89 - }, - "end": { - "line": 768, - "column": 90 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 30451, - "end": 30452, - "loc": { - "start": { - "line": 768, - "column": 90 - }, - "end": { - "line": 768, - "column": 91 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 30453, - "end": 30454, - "loc": { - "start": { - "line": 768, - "column": 92 - }, - "end": { - "line": 768, - "column": 93 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30455, - "end": 30460, - "loc": { - "start": { - "line": 768, - "column": 94 - }, - "end": { - "line": 768, - "column": 99 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30460, - "end": 30461, - "loc": { - "start": { - "line": 768, - "column": 99 - }, - "end": { - "line": 768, - "column": 100 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 30461, - "end": 30467, - "loc": { - "start": { - "line": 768, - "column": 100 - }, - "end": { - "line": 768, - "column": 106 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30468, - "end": 30469, - "loc": { - "start": { - "line": 768, - "column": 107 - }, - "end": { - "line": 768, - "column": 108 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30469, - "end": 30470, - "loc": { - "start": { - "line": 768, - "column": 108 - }, - "end": { - "line": 768, - "column": 109 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30470, - "end": 30471, - "loc": { - "start": { - "line": 768, - "column": 109 - }, - "end": { - "line": 768, - "column": 110 - } - } - }, - { - "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": 30475, - "end": 30480, - "loc": { - "start": { - "line": 769, - "column": 2 - }, - "end": { - "line": 769, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "center", - "start": 30481, - "end": 30487, - "loc": { - "start": { - "line": 769, - "column": 8 - }, - "end": { - "line": 769, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 30488, - "end": 30489, - "loc": { - "start": { - "line": 769, - "column": 15 - }, - "end": { - "line": 769, - "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": 30490, - "end": 30494, - "loc": { - "start": { - "line": 769, - "column": 17 - }, - "end": { - "line": 769, - "column": 21 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30494, - "end": 30495, - "loc": { - "start": { - "line": 769, - "column": 21 - }, - "end": { - "line": 769, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getPointRotated", - "start": 30495, - "end": 30510, - "loc": { - "start": { - "line": 769, - "column": 22 - }, - "end": { - "line": 769, - "column": 37 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30510, - "end": 30511, - "loc": { - "start": { - "line": 769, - "column": 37 - }, - "end": { - "line": 769, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30511, - "end": 30516, - "loc": { - "start": { - "line": 769, - "column": 38 - }, - "end": { - "line": 769, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30516, - "end": 30517, - "loc": { - "start": { - "line": 769, - "column": 43 - }, - "end": { - "line": 769, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pTheta", - "start": 30518, - "end": 30524, - "loc": { - "start": { - "line": 769, - "column": 45 - }, - "end": { - "line": 769, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30524, - "end": 30525, - "loc": { - "start": { - "line": 769, - "column": 51 - }, - "end": { - "line": 769, - "column": 52 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30526, - "end": 30527, - "loc": { - "start": { - "line": 769, - "column": 53 - }, - "end": { - "line": 769, - "column": 54 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "x", - "start": 30528, - "end": 30531, - "loc": { - "start": { - "line": 769, - "column": 55 - }, - "end": { - "line": 769, - "column": 58 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30531, - "end": 30532, - "loc": { - "start": { - "line": 769, - "column": 58 - }, - "end": { - "line": 769, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30533, - "end": 30538, - "loc": { - "start": { - "line": 769, - "column": 60 - }, - "end": { - "line": 769, - "column": 65 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30538, - "end": 30539, - "loc": { - "start": { - "line": 769, - "column": 65 - }, - "end": { - "line": 769, - "column": 66 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 30539, - "end": 30540, - "loc": { - "start": { - "line": 769, - "column": 66 - }, - "end": { - "line": 769, - "column": 67 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 30541, - "end": 30542, - "loc": { - "start": { - "line": 769, - "column": 68 - }, - "end": { - "line": 769, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30543, - "end": 30548, - "loc": { - "start": { - "line": 769, - "column": 70 - }, - "end": { - "line": 769, - "column": 75 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30548, - "end": 30549, - "loc": { - "start": { - "line": 769, - "column": 75 - }, - "end": { - "line": 769, - "column": 76 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 30549, - "end": 30554, - "loc": { - "start": { - "line": 769, - "column": 76 - }, - "end": { - "line": 769, - "column": 81 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 30555, - "end": 30556, - "loc": { - "start": { - "line": 769, - "column": 82 - }, - "end": { - "line": 769, - "column": 83 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 30557, - "end": 30558, - "loc": { - "start": { - "line": 769, - "column": 84 - }, - "end": { - "line": 769, - "column": 85 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30558, - "end": 30559, - "loc": { - "start": { - "line": 769, - "column": 85 - }, - "end": { - "line": 769, - "column": 86 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "y", - "start": 30560, - "end": 30563, - "loc": { - "start": { - "line": 769, - "column": 87 - }, - "end": { - "line": 769, - "column": 90 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30563, - "end": 30564, - "loc": { - "start": { - "line": 769, - "column": 90 - }, - "end": { - "line": 769, - "column": 91 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30565, - "end": 30570, - "loc": { - "start": { - "line": 769, - "column": 92 - }, - "end": { - "line": 769, - "column": 97 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30570, - "end": 30571, - "loc": { - "start": { - "line": 769, - "column": 97 - }, - "end": { - "line": 769, - "column": 98 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 30571, - "end": 30572, - "loc": { - "start": { - "line": 769, - "column": 98 - }, - "end": { - "line": 769, - "column": 99 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 30573, - "end": 30574, - "loc": { - "start": { - "line": 769, - "column": 100 - }, - "end": { - "line": 769, - "column": 101 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pRect", - "start": 30575, - "end": 30580, - "loc": { - "start": { - "line": 769, - "column": 102 - }, - "end": { - "line": 769, - "column": 107 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30580, - "end": 30581, - "loc": { - "start": { - "line": 769, - "column": 107 - }, - "end": { - "line": 769, - "column": 108 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 30581, - "end": 30587, - "loc": { - "start": { - "line": 769, - "column": 108 - }, - "end": { - "line": 769, - "column": 114 - } - } - }, - { - "type": { - "label": "/", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "/", - "start": 30588, - "end": 30589, - "loc": { - "start": { - "line": 769, - "column": 115 - }, - "end": { - "line": 769, - "column": 116 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 2, - "start": 30590, - "end": 30591, - "loc": { - "start": { - "line": 769, - "column": 117 - }, - "end": { - "line": 769, - "column": 118 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30592, - "end": 30593, - "loc": { - "start": { - "line": 769, - "column": 119 - }, - "end": { - "line": 769, - "column": 120 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30593, - "end": 30594, - "loc": { - "start": { - "line": 769, - "column": 120 - }, - "end": { - "line": 769, - "column": 121 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30594, - "end": 30595, - "loc": { - "start": { - "line": 769, - "column": 121 - }, - "end": { - "line": 769, - "column": 122 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 30599, - "end": 30605, - "loc": { - "start": { - "line": 770, - "column": 2 - }, - "end": { - "line": 770, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30606, - "end": 30607, - "loc": { - "start": { - "line": 770, - "column": 9 - }, - "end": { - "line": 770, - "column": 10 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "tl", - "start": 30608, - "end": 30612, - "loc": { - "start": { - "line": 770, - "column": 11 - }, - "end": { - "line": 770, - "column": 15 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30612, - "end": 30613, - "loc": { - "start": { - "line": 770, - "column": 15 - }, - "end": { - "line": 770, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tl", - "start": 30614, - "end": 30616, - "loc": { - "start": { - "line": 770, - "column": 17 - }, - "end": { - "line": 770, - "column": 19 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30616, - "end": 30617, - "loc": { - "start": { - "line": 770, - "column": 19 - }, - "end": { - "line": 770, - "column": 20 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "tr", - "start": 30618, - "end": 30622, - "loc": { - "start": { - "line": 770, - "column": 21 - }, - "end": { - "line": 770, - "column": 25 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30622, - "end": 30623, - "loc": { - "start": { - "line": 770, - "column": 25 - }, - "end": { - "line": 770, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "tr", - "start": 30624, - "end": 30626, - "loc": { - "start": { - "line": 770, - "column": 27 - }, - "end": { - "line": 770, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30626, - "end": 30627, - "loc": { - "start": { - "line": 770, - "column": 29 - }, - "end": { - "line": 770, - "column": 30 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "bl", - "start": 30628, - "end": 30632, - "loc": { - "start": { - "line": 770, - "column": 31 - }, - "end": { - "line": 770, - "column": 35 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30632, - "end": 30633, - "loc": { - "start": { - "line": 770, - "column": 35 - }, - "end": { - "line": 770, - "column": 36 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "bl", - "start": 30634, - "end": 30636, - "loc": { - "start": { - "line": 770, - "column": 37 - }, - "end": { - "line": 770, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30636, - "end": 30637, - "loc": { - "start": { - "line": 770, - "column": 39 - }, - "end": { - "line": 770, - "column": 40 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "br", - "start": 30638, - "end": 30642, - "loc": { - "start": { - "line": 770, - "column": 41 - }, - "end": { - "line": 770, - "column": 45 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30642, - "end": 30643, - "loc": { - "start": { - "line": 770, - "column": 45 - }, - "end": { - "line": 770, - "column": 46 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "br", - "start": 30644, - "end": 30646, - "loc": { - "start": { - "line": 770, - "column": 47 - }, - "end": { - "line": 770, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30646, - "end": 30647, - "loc": { - "start": { - "line": 770, - "column": 49 - }, - "end": { - "line": 770, - "column": 50 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "center", - "start": 30648, - "end": 30656, - "loc": { - "start": { - "line": 770, - "column": 51 - }, - "end": { - "line": 770, - "column": 59 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30656, - "end": 30657, - "loc": { - "start": { - "line": 770, - "column": 59 - }, - "end": { - "line": 770, - "column": 60 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "center", - "start": 30658, - "end": 30664, - "loc": { - "start": { - "line": 770, - "column": 61 - }, - "end": { - "line": 770, - "column": 67 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30665, - "end": 30666, - "loc": { - "start": { - "line": 770, - "column": 68 - }, - "end": { - "line": 770, - "column": 69 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30666, - "end": 30667, - "loc": { - "start": { - "line": 770, - "column": 69 - }, - "end": { - "line": 770, - "column": 70 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30670, - "end": 30671, - "loc": { - "start": { - "line": 771, - "column": 1 - }, - "end": { - "line": 771, - "column": 2 - } - } - }, - { - "type": "CommentBlock", - "value": "*\r\n\t * Calculate the icon offset to compensate for a non-zero anchor.\r\n\t *\r\n\t * @param {Object} [pIconSize] - The size of the icon with properties `.x` and `.y`.\r\n\t * @param {number} [pIconSize.width=32] - The size of the icon's width.\r\n\t * @param {number} [pIconSize.height=32] - The size of the icon's height'.\r\n\t * @param {Object} [pAnchor] - The anchor point with properties `.x` and `.y`.\r\n\t * @param {number} [pAnchor.x=0.5] - The anchor's x value.\r\n\t * @param {number} [pAnchor.y=0.5] - The anchor's y value.\r\n\t * @param {Object} [pScale] - The scale factor applied to the object with properties `.x` and `.y`.\r\n\t * @param {number} [pScale.x=1] - The scale's y value.\r\n\t * @param {number} [pScale.y=1] - The scale's y value.\r\n\t * @returns {Object} - The calculated icon offset with properties `.x` and `.y`.\r\n\t ", - "start": 30674, - "end": 31496, - "loc": { - "start": { - "line": 772, - "column": 1 - }, - "end": { - "line": 785, - "column": 4 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "calculateIconOffset", - "start": 31499, - "end": 31518, - "loc": { - "start": { - "line": 786, - "column": 1 - }, - "end": { - "line": 786, - "column": 20 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31518, - "end": 31519, - "loc": { - "start": { - "line": 786, - "column": 20 - }, - "end": { - "line": 786, - "column": 21 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIconSize", - "start": 31519, - "end": 31528, - "loc": { - "start": { - "line": 786, - "column": 21 - }, - "end": { - "line": 786, - "column": 30 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 31529, - "end": 31530, - "loc": { - "start": { - "line": 786, - "column": 31 - }, - "end": { - "line": 786, - "column": 32 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31531, - "end": 31532, - "loc": { - "start": { - "line": 786, - "column": 33 - }, - "end": { - "line": 786, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 31533, - "end": 31538, - "loc": { - "start": { - "line": 786, - "column": 35 - }, - "end": { - "line": 786, - "column": 40 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31538, - "end": 31539, - "loc": { - "start": { - "line": 786, - "column": 40 - }, - "end": { - "line": 786, - "column": 41 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 32, - "start": 31540, - "end": 31542, - "loc": { - "start": { - "line": 786, - "column": 42 - }, - "end": { - "line": 786, - "column": 44 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31542, - "end": 31543, - "loc": { - "start": { - "line": 786, - "column": 44 - }, - "end": { - "line": 786, - "column": 45 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 31544, - "end": 31550, - "loc": { - "start": { - "line": 786, - "column": 46 - }, - "end": { - "line": 786, - "column": 52 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31550, - "end": 31551, - "loc": { - "start": { - "line": 786, - "column": 52 - }, - "end": { - "line": 786, - "column": 53 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 32, - "start": 31552, - "end": 31554, - "loc": { - "start": { - "line": 786, - "column": 54 - }, - "end": { - "line": 786, - "column": 56 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31555, - "end": 31556, - "loc": { - "start": { - "line": 786, - "column": 57 - }, - "end": { - "line": 786, - "column": 58 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31556, - "end": 31557, - "loc": { - "start": { - "line": 786, - "column": 58 - }, - "end": { - "line": 786, - "column": 59 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAnchor", - "start": 31558, - "end": 31565, - "loc": { - "start": { - "line": 786, - "column": 60 - }, - "end": { - "line": 786, - "column": 67 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 31566, - "end": 31567, - "loc": { - "start": { - "line": 786, - "column": 68 - }, - "end": { - "line": 786, - "column": 69 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31568, - "end": 31569, - "loc": { - "start": { - "line": 786, - "column": 70 - }, - "end": { - "line": 786, - "column": 71 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31570, - "end": 31571, - "loc": { - "start": { - "line": 786, - "column": 72 - }, - "end": { - "line": 786, - "column": 73 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31571, - "end": 31572, - "loc": { - "start": { - "line": 786, - "column": 73 - }, - "end": { - "line": 786, - "column": 74 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 31573, - "end": 31576, - "loc": { - "start": { - "line": 786, - "column": 75 - }, - "end": { - "line": 786, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31576, - "end": 31577, - "loc": { - "start": { - "line": 786, - "column": 78 - }, - "end": { - "line": 786, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31578, - "end": 31579, - "loc": { - "start": { - "line": 786, - "column": 80 - }, - "end": { - "line": 786, - "column": 81 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31579, - "end": 31580, - "loc": { - "start": { - "line": 786, - "column": 81 - }, - "end": { - "line": 786, - "column": 82 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0.5, - "start": 31581, - "end": 31584, - "loc": { - "start": { - "line": 786, - "column": 83 - }, - "end": { - "line": 786, - "column": 86 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31585, - "end": 31586, - "loc": { - "start": { - "line": 786, - "column": 87 - }, - "end": { - "line": 786, - "column": 88 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31586, - "end": 31587, - "loc": { - "start": { - "line": 786, - "column": 88 - }, - "end": { - "line": 786, - "column": 89 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pScale", - "start": 31588, - "end": 31594, - "loc": { - "start": { - "line": 786, - "column": 90 - }, - "end": { - "line": 786, - "column": 96 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 31594, - "end": 31595, - "loc": { - "start": { - "line": 786, - "column": 96 - }, - "end": { - "line": 786, - "column": 97 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31596, - "end": 31597, - "loc": { - "start": { - "line": 786, - "column": 98 - }, - "end": { - "line": 786, - "column": 99 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31598, - "end": 31599, - "loc": { - "start": { - "line": 786, - "column": 100 - }, - "end": { - "line": 786, - "column": 101 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31599, - "end": 31600, - "loc": { - "start": { - "line": 786, - "column": 101 - }, - "end": { - "line": 786, - "column": 102 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 31601, - "end": 31602, - "loc": { - "start": { - "line": 786, - "column": 103 - }, - "end": { - "line": 786, - "column": 104 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31602, - "end": 31603, - "loc": { - "start": { - "line": 786, - "column": 104 - }, - "end": { - "line": 786, - "column": 105 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31604, - "end": 31605, - "loc": { - "start": { - "line": 786, - "column": 106 - }, - "end": { - "line": 786, - "column": 107 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31605, - "end": 31606, - "loc": { - "start": { - "line": 786, - "column": 107 - }, - "end": { - "line": 786, - "column": 108 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 31607, - "end": 31608, - "loc": { - "start": { - "line": 786, - "column": 109 - }, - "end": { - "line": 786, - "column": 110 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31608, - "end": 31609, - "loc": { - "start": { - "line": 786, - "column": 110 - }, - "end": { - "line": 786, - "column": 111 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31609, - "end": 31610, - "loc": { - "start": { - "line": 786, - "column": 111 - }, - "end": { - "line": 786, - "column": 112 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31611, - "end": 31612, - "loc": { - "start": { - "line": 786, - "column": 113 - }, - "end": { - "line": 786, - "column": 114 - } - } - }, - { - "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": 31616, - "end": 31621, - "loc": { - "start": { - "line": 787, - "column": 2 - }, - "end": { - "line": 787, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "scaledSize", - "start": 31622, - "end": 31632, - "loc": { - "start": { - "line": 787, - "column": 8 - }, - "end": { - "line": 787, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 31633, - "end": 31634, - "loc": { - "start": { - "line": 787, - "column": 19 - }, - "end": { - "line": 787, - "column": 20 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31635, - "end": 31636, - "loc": { - "start": { - "line": 787, - "column": 21 - }, - "end": { - "line": 787, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31641, - "end": 31642, - "loc": { - "start": { - "line": 788, - "column": 3 - }, - "end": { - "line": 788, - "column": 4 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31642, - "end": 31643, - "loc": { - "start": { - "line": 788, - "column": 4 - }, - "end": { - "line": 788, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIconSize", - "start": 31644, - "end": 31653, - "loc": { - "start": { - "line": 788, - "column": 6 - }, - "end": { - "line": 788, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31653, - "end": 31654, - "loc": { - "start": { - "line": 788, - "column": 15 - }, - "end": { - "line": 788, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 31654, - "end": 31659, - "loc": { - "start": { - "line": 788, - "column": 16 - }, - "end": { - "line": 788, - "column": 21 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 31660, - "end": 31661, - "loc": { - "start": { - "line": 788, - "column": 22 - }, - "end": { - "line": 788, - "column": 23 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pScale", - "start": 31662, - "end": 31668, - "loc": { - "start": { - "line": 788, - "column": 24 - }, - "end": { - "line": 788, - "column": 30 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31668, - "end": 31669, - "loc": { - "start": { - "line": 788, - "column": 30 - }, - "end": { - "line": 788, - "column": 31 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31669, - "end": 31670, - "loc": { - "start": { - "line": 788, - "column": 31 - }, - "end": { - "line": 788, - "column": 32 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31670, - "end": 31671, - "loc": { - "start": { - "line": 788, - "column": 32 - }, - "end": { - "line": 788, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31676, - "end": 31677, - "loc": { - "start": { - "line": 789, - "column": 3 - }, - "end": { - "line": 789, - "column": 4 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31677, - "end": 31678, - "loc": { - "start": { - "line": 789, - "column": 4 - }, - "end": { - "line": 789, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIconSize", - "start": 31679, - "end": 31688, - "loc": { - "start": { - "line": 789, - "column": 6 - }, - "end": { - "line": 789, - "column": 15 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31688, - "end": 31689, - "loc": { - "start": { - "line": 789, - "column": 15 - }, - "end": { - "line": 789, - "column": 16 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 31689, - "end": 31695, - "loc": { - "start": { - "line": 789, - "column": 16 - }, - "end": { - "line": 789, - "column": 22 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 31696, - "end": 31697, - "loc": { - "start": { - "line": 789, - "column": 23 - }, - "end": { - "line": 789, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pScale", - "start": 31698, - "end": 31704, - "loc": { - "start": { - "line": 789, - "column": 25 - }, - "end": { - "line": 789, - "column": 31 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31704, - "end": 31705, - "loc": { - "start": { - "line": 789, - "column": 31 - }, - "end": { - "line": 789, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31705, - "end": 31706, - "loc": { - "start": { - "line": 789, - "column": 32 - }, - "end": { - "line": 789, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31706, - "end": 31707, - "loc": { - "start": { - "line": 789, - "column": 33 - }, - "end": { - "line": 789, - "column": 34 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31711, - "end": 31712, - "loc": { - "start": { - "line": 790, - "column": 2 - }, - "end": { - "line": 790, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31712, - "end": 31713, - "loc": { - "start": { - "line": 790, - "column": 3 - }, - "end": { - "line": 790, - "column": 4 - } - } - }, - { - "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": 31719, - "end": 31724, - "loc": { - "start": { - "line": 792, - "column": 2 - }, - "end": { - "line": 792, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "offset", - "start": 31725, - "end": 31731, - "loc": { - "start": { - "line": 792, - "column": 8 - }, - "end": { - "line": 792, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 31732, - "end": 31733, - "loc": { - "start": { - "line": 792, - "column": 15 - }, - "end": { - "line": 792, - "column": 16 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31734, - "end": 31735, - "loc": { - "start": { - "line": 792, - "column": 17 - }, - "end": { - "line": 792, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31740, - "end": 31741, - "loc": { - "start": { - "line": 793, - "column": 3 - }, - "end": { - "line": 793, - "column": 4 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31741, - "end": 31742, - "loc": { - "start": { - "line": 793, - "column": 4 - }, - "end": { - "line": 793, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAnchor", - "start": 31743, - "end": 31750, - "loc": { - "start": { - "line": 793, - "column": 6 - }, - "end": { - "line": 793, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31750, - "end": 31751, - "loc": { - "start": { - "line": 793, - "column": 13 - }, - "end": { - "line": 793, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31751, - "end": 31752, - "loc": { - "start": { - "line": 793, - "column": 14 - }, - "end": { - "line": 793, - "column": 15 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 31753, - "end": 31754, - "loc": { - "start": { - "line": 793, - "column": 16 - }, - "end": { - "line": 793, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31755, - "end": 31756, - "loc": { - "start": { - "line": 793, - "column": 18 - }, - "end": { - "line": 793, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "scaledSize", - "start": 31756, - "end": 31766, - "loc": { - "start": { - "line": 793, - "column": 19 - }, - "end": { - "line": 793, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31766, - "end": 31767, - "loc": { - "start": { - "line": 793, - "column": 29 - }, - "end": { - "line": 793, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31767, - "end": 31768, - "loc": { - "start": { - "line": 793, - "column": 30 - }, - "end": { - "line": 793, - "column": 31 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 31769, - "end": 31770, - "loc": { - "start": { - "line": 793, - "column": 32 - }, - "end": { - "line": 793, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIconSize", - "start": 31771, - "end": 31780, - "loc": { - "start": { - "line": 793, - "column": 34 - }, - "end": { - "line": 793, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31780, - "end": 31781, - "loc": { - "start": { - "line": 793, - "column": 43 - }, - "end": { - "line": 793, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "width", - "start": 31781, - "end": 31786, - "loc": { - "start": { - "line": 793, - "column": 44 - }, - "end": { - "line": 793, - "column": 49 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31786, - "end": 31787, - "loc": { - "start": { - "line": 793, - "column": 49 - }, - "end": { - "line": 793, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31787, - "end": 31788, - "loc": { - "start": { - "line": 793, - "column": 50 - }, - "end": { - "line": 793, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31793, - "end": 31794, - "loc": { - "start": { - "line": 794, - "column": 3 - }, - "end": { - "line": 794, - "column": 4 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31794, - "end": 31795, - "loc": { - "start": { - "line": 794, - "column": 4 - }, - "end": { - "line": 794, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pAnchor", - "start": 31796, - "end": 31803, - "loc": { - "start": { - "line": 794, - "column": 6 - }, - "end": { - "line": 794, - "column": 13 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31803, - "end": 31804, - "loc": { - "start": { - "line": 794, - "column": 13 - }, - "end": { - "line": 794, - "column": 14 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31804, - "end": 31805, - "loc": { - "start": { - "line": 794, - "column": 14 - }, - "end": { - "line": 794, - "column": 15 - } - } - }, - { - "type": { - "label": "*", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 10, - "updateContext": null - }, - "value": "*", - "start": 31806, - "end": 31807, - "loc": { - "start": { - "line": 794, - "column": 16 - }, - "end": { - "line": 794, - "column": 17 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31808, - "end": 31809, - "loc": { - "start": { - "line": 794, - "column": 18 - }, - "end": { - "line": 794, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "scaledSize", - "start": 31809, - "end": 31819, - "loc": { - "start": { - "line": 794, - "column": 19 - }, - "end": { - "line": 794, - "column": 29 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31819, - "end": 31820, - "loc": { - "start": { - "line": 794, - "column": 29 - }, - "end": { - "line": 794, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31820, - "end": 31821, - "loc": { - "start": { - "line": 794, - "column": 30 - }, - "end": { - "line": 794, - "column": 31 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 31822, - "end": 31823, - "loc": { - "start": { - "line": 794, - "column": 32 - }, - "end": { - "line": 794, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pIconSize", - "start": 31824, - "end": 31833, - "loc": { - "start": { - "line": 794, - "column": 34 - }, - "end": { - "line": 794, - "column": 43 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31833, - "end": 31834, - "loc": { - "start": { - "line": 794, - "column": 43 - }, - "end": { - "line": 794, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "height", - "start": 31834, - "end": 31840, - "loc": { - "start": { - "line": 794, - "column": 44 - }, - "end": { - "line": 794, - "column": 50 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31840, - "end": 31841, - "loc": { - "start": { - "line": 794, - "column": 50 - }, - "end": { - "line": 794, - "column": 51 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31841, - "end": 31842, - "loc": { - "start": { - "line": 794, - "column": 51 - }, - "end": { - "line": 794, - "column": 52 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31846, - "end": 31847, - "loc": { - "start": { - "line": 795, - "column": 2 - }, - "end": { - "line": 795, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31847, - "end": 31848, - "loc": { - "start": { - "line": 795, - "column": 3 - }, - "end": { - "line": 795, - "column": 4 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 31854, - "end": 31860, - "loc": { - "start": { - "line": 797, - "column": 2 - }, - "end": { - "line": 797, - "column": 8 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31861, - "end": 31862, - "loc": { - "start": { - "line": 797, - "column": 9 - }, - "end": { - "line": 797, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31867, - "end": 31868, - "loc": { - "start": { - "line": 798, - "column": 3 - }, - "end": { - "line": 798, - "column": 4 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31868, - "end": 31869, - "loc": { - "start": { - "line": 798, - "column": 4 - }, - "end": { - "line": 798, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "offset", - "start": 31870, - "end": 31876, - "loc": { - "start": { - "line": 798, - "column": 6 - }, - "end": { - "line": 798, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31876, - "end": 31877, - "loc": { - "start": { - "line": 798, - "column": 12 - }, - "end": { - "line": 798, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "x", - "start": 31877, - "end": 31878, - "loc": { - "start": { - "line": 798, - "column": 13 - }, - "end": { - "line": 798, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31878, - "end": 31879, - "loc": { - "start": { - "line": 798, - "column": 14 - }, - "end": { - "line": 798, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31884, - "end": 31885, - "loc": { - "start": { - "line": 799, - "column": 3 - }, - "end": { - "line": 799, - "column": 4 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31885, - "end": 31886, - "loc": { - "start": { - "line": 799, - "column": 4 - }, - "end": { - "line": 799, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "offset", - "start": 31887, - "end": 31893, - "loc": { - "start": { - "line": 799, - "column": 6 - }, - "end": { - "line": 799, - "column": 12 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31893, - "end": 31894, - "loc": { - "start": { - "line": 799, - "column": 12 - }, - "end": { - "line": 799, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "y", - "start": 31894, - "end": 31895, - "loc": { - "start": { - "line": 799, - "column": 13 - }, - "end": { - "line": 799, - "column": 14 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31895, - "end": 31896, - "loc": { - "start": { - "line": 799, - "column": 14 - }, - "end": { - "line": 799, - "column": 15 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31900, - "end": 31901, - "loc": { - "start": { - "line": 800, - "column": 2 - }, - "end": { - "line": 800, - "column": 3 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31901, - "end": 31902, - "loc": { - "start": { - "line": 800, - "column": 3 - }, - "end": { - "line": 800, - "column": 4 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31905, - "end": 31906, - "loc": { - "start": { - "line": 801, - "column": 1 - }, - "end": { - "line": 801, - "column": 2 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31908, - "end": 31909, - "loc": { - "start": { - "line": 802, - "column": 0 - }, - "end": { - "line": 802, - "column": 1 - } - } - }, - { - "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": 31911, - "end": 31917, - "loc": { - "start": { - "line": 803, - "column": 0 - }, - "end": { - "line": 803, - "column": 6 - } - } - }, - { - "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": 31918, - "end": 31923, - "loc": { - "start": { - "line": 803, - "column": 7 - }, - "end": { - "line": 803, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Utils", - "start": 31924, - "end": 31929, - "loc": { - "start": { - "line": 803, - "column": 13 - }, - "end": { - "line": 803, - "column": 18 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 31930, - "end": 31931, - "loc": { - "start": { - "line": 803, - "column": 19 - }, - "end": { - "line": 803, - "column": 20 - } - } - }, - { - "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "new", - "start": 31932, - "end": 31935, - "loc": { - "start": { - "line": 803, - "column": 21 - }, - "end": { - "line": 803, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "UtilsSingleton", - "start": 31936, - "end": 31950, - "loc": { - "start": { - "line": 803, - "column": 25 - }, - "end": { - "line": 803, - "column": 39 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31950, - "end": 31951, - "loc": { - "start": { - "line": 803, - "column": 39 - }, - "end": { - "line": 803, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31951, - "end": 31952, - "loc": { - "start": { - "line": 803, - "column": 40 - }, - "end": { - "line": 803, - "column": 41 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31952, - "end": 31953, - "loc": { - "start": { - "line": 803, - "column": 41 - }, - "end": { - "line": 803, - "column": 42 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31955, - "end": 31955, - "loc": { - "start": { - "line": 804, - "column": 0 - }, - "end": { - "line": 804, - "column": 0 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/ast/source/vendor/logger.min.mjs.json b/docs/ast/source/vendor/logger.min.mjs.json deleted file mode 100644 index a05f04e..0000000 --- a/docs/ast/source/vendor/logger.min.mjs.json +++ /dev/null @@ -1,45589 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 2546, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 9, - "column": 2277 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 2546, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 9, - "column": 2277 - } - }, - "sourceType": "module", - "body": [ - { - "type": "Identifier", - "start": 269, - "end": 2531, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 2262 - } - }, - "id": { - "type": "Identifier", - "start": 275, - "end": 281, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 12 - }, - "identifierName": "Logger" - }, - "name": "Logger", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 281, - "end": 2531, - "loc": { - "start": { - "line": 9, - "column": 12 - }, - "end": { - "line": 9, - "column": 2262 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 282, - "end": 1115, - "loc": { - "start": { - "line": 9, - "column": 13 - }, - "end": { - "line": 9, - "column": 846 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 282, - "end": 293, - "loc": { - "start": { - "line": 9, - "column": 13 - }, - "end": { - "line": 9, - "column": 24 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 294, - "end": 295, - "loc": { - "start": { - "line": 9, - "column": 25 - }, - "end": { - "line": 9, - "column": 26 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 296, - "end": 1115, - "loc": { - "start": { - "line": 9, - "column": 27 - }, - "end": { - "line": 9, - "column": 846 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 297, - "end": 943, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 674 - } - }, - "expression": { - "type": "SequenceExpression", - "start": 297, - "end": 942, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 673 - } - }, - "expressions": [ - { - "type": "AssignmentExpression", - "start": 297, - "end": 314, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 45 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 297, - "end": 307, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 38 - } - }, - "object": { - "type": "ThisExpression", - "start": 297, - "end": 301, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 32 - } - } - }, - "property": { - "type": "Identifier", - "start": 302, - "end": 307, - "loc": { - "start": { - "line": 9, - "column": 33 - }, - "end": { - "line": 9, - "column": 38 - }, - "identifierName": "RESET" - }, - "name": "RESET" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 308, - "end": 314, - "loc": { - "start": { - "line": 9, - "column": 39 - }, - "end": { - "line": 9, - "column": 45 - } - }, - "extra": { - "rawValue": "\u001b[0m", - "raw": "\"\u001b[0m\"" - }, - "value": "\u001b[0m" - } - }, - { - "type": "AssignmentExpression", - "start": 315, - "end": 333, - "loc": { - "start": { - "line": 9, - "column": 46 - }, - "end": { - "line": 9, - "column": 64 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 315, - "end": 326, - "loc": { - "start": { - "line": 9, - "column": 46 - }, - "end": { - "line": 9, - "column": 57 - } - }, - "object": { - "type": "ThisExpression", - "start": 315, - "end": 319, - "loc": { - "start": { - "line": 9, - "column": 46 - }, - "end": { - "line": 9, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "start": 320, - "end": 326, - "loc": { - "start": { - "line": 9, - "column": 51 - }, - "end": { - "line": 9, - "column": 57 - }, - "identifierName": "BRIGHT" - }, - "name": "BRIGHT" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 327, - "end": 333, - "loc": { - "start": { - "line": 9, - "column": 58 - }, - "end": { - "line": 9, - "column": 64 - } - }, - "extra": { - "rawValue": "\u001b[1m", - "raw": "\"\u001b[1m\"" - }, - "value": "\u001b[1m" - } - }, - { - "type": "AssignmentExpression", - "start": 334, - "end": 349, - "loc": { - "start": { - "line": 9, - "column": 65 - }, - "end": { - "line": 9, - "column": 80 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 334, - "end": 342, - "loc": { - "start": { - "line": 9, - "column": 65 - }, - "end": { - "line": 9, - "column": 73 - } - }, - "object": { - "type": "ThisExpression", - "start": 334, - "end": 338, - "loc": { - "start": { - "line": 9, - "column": 65 - }, - "end": { - "line": 9, - "column": 69 - } - } - }, - "property": { - "type": "Identifier", - "start": 339, - "end": 342, - "loc": { - "start": { - "line": 9, - "column": 70 - }, - "end": { - "line": 9, - "column": 73 - }, - "identifierName": "DIM" - }, - "name": "DIM" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 343, - "end": 349, - "loc": { - "start": { - "line": 9, - "column": 74 - }, - "end": { - "line": 9, - "column": 80 - } - }, - "extra": { - "rawValue": "\u001b[2m", - "raw": "\"\u001b[2m\"" - }, - "value": "\u001b[2m" - } - }, - { - "type": "AssignmentExpression", - "start": 350, - "end": 372, - "loc": { - "start": { - "line": 9, - "column": 81 - }, - "end": { - "line": 9, - "column": 103 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 350, - "end": 365, - "loc": { - "start": { - "line": 9, - "column": 81 - }, - "end": { - "line": 9, - "column": 96 - } - }, - "object": { - "type": "ThisExpression", - "start": 350, - "end": 354, - "loc": { - "start": { - "line": 9, - "column": 81 - }, - "end": { - "line": 9, - "column": 85 - } - } - }, - "property": { - "type": "Identifier", - "start": 355, - "end": 365, - "loc": { - "start": { - "line": 9, - "column": 86 - }, - "end": { - "line": 9, - "column": 96 - }, - "identifierName": "UNDERSCORE" - }, - "name": "UNDERSCORE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 366, - "end": 372, - "loc": { - "start": { - "line": 9, - "column": 97 - }, - "end": { - "line": 9, - "column": 103 - } - }, - "extra": { - "rawValue": "\u001b[4m", - "raw": "\"\u001b[4m\"" - }, - "value": "\u001b[4m" - } - }, - { - "type": "AssignmentExpression", - "start": 373, - "end": 390, - "loc": { - "start": { - "line": 9, - "column": 104 - }, - "end": { - "line": 9, - "column": 121 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 373, - "end": 383, - "loc": { - "start": { - "line": 9, - "column": 104 - }, - "end": { - "line": 9, - "column": 114 - } - }, - "object": { - "type": "ThisExpression", - "start": 373, - "end": 377, - "loc": { - "start": { - "line": 9, - "column": 104 - }, - "end": { - "line": 9, - "column": 108 - } - } - }, - "property": { - "type": "Identifier", - "start": 378, - "end": 383, - "loc": { - "start": { - "line": 9, - "column": 109 - }, - "end": { - "line": 9, - "column": 114 - }, - "identifierName": "BLINK" - }, - "name": "BLINK" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 384, - "end": 390, - "loc": { - "start": { - "line": 9, - "column": 115 - }, - "end": { - "line": 9, - "column": 121 - } - }, - "extra": { - "rawValue": "\u001b[5m", - "raw": "\"\u001b[5m\"" - }, - "value": "\u001b[5m" - } - }, - { - "type": "AssignmentExpression", - "start": 391, - "end": 410, - "loc": { - "start": { - "line": 9, - "column": 122 - }, - "end": { - "line": 9, - "column": 141 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 391, - "end": 403, - "loc": { - "start": { - "line": 9, - "column": 122 - }, - "end": { - "line": 9, - "column": 134 - } - }, - "object": { - "type": "ThisExpression", - "start": 391, - "end": 395, - "loc": { - "start": { - "line": 9, - "column": 122 - }, - "end": { - "line": 9, - "column": 126 - } - } - }, - "property": { - "type": "Identifier", - "start": 396, - "end": 403, - "loc": { - "start": { - "line": 9, - "column": 127 - }, - "end": { - "line": 9, - "column": 134 - }, - "identifierName": "REVERSE" - }, - "name": "REVERSE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 404, - "end": 410, - "loc": { - "start": { - "line": 9, - "column": 135 - }, - "end": { - "line": 9, - "column": 141 - } - }, - "extra": { - "rawValue": "\u001b[7m", - "raw": "\"\u001b[7m\"" - }, - "value": "\u001b[7m" - } - }, - { - "type": "AssignmentExpression", - "start": 411, - "end": 429, - "loc": { - "start": { - "line": 9, - "column": 142 - }, - "end": { - "line": 9, - "column": 160 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 411, - "end": 422, - "loc": { - "start": { - "line": 9, - "column": 142 - }, - "end": { - "line": 9, - "column": 153 - } - }, - "object": { - "type": "ThisExpression", - "start": 411, - "end": 415, - "loc": { - "start": { - "line": 9, - "column": 142 - }, - "end": { - "line": 9, - "column": 146 - } - } - }, - "property": { - "type": "Identifier", - "start": 416, - "end": 422, - "loc": { - "start": { - "line": 9, - "column": 147 - }, - "end": { - "line": 9, - "column": 153 - }, - "identifierName": "HIDDEN" - }, - "name": "HIDDEN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 423, - "end": 429, - "loc": { - "start": { - "line": 9, - "column": 154 - }, - "end": { - "line": 9, - "column": 160 - } - }, - "extra": { - "rawValue": "\u001b[8m", - "raw": "\"\u001b[8m\"" - }, - "value": "\u001b[8m" - } - }, - { - "type": "AssignmentExpression", - "start": 430, - "end": 451, - "loc": { - "start": { - "line": 9, - "column": 161 - }, - "end": { - "line": 9, - "column": 182 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 430, - "end": 443, - "loc": { - "start": { - "line": 9, - "column": 161 - }, - "end": { - "line": 9, - "column": 174 - } - }, - "object": { - "type": "ThisExpression", - "start": 430, - "end": 434, - "loc": { - "start": { - "line": 9, - "column": 161 - }, - "end": { - "line": 9, - "column": 165 - } - } - }, - "property": { - "type": "Identifier", - "start": 435, - "end": 443, - "loc": { - "start": { - "line": 9, - "column": 166 - }, - "end": { - "line": 9, - "column": 174 - }, - "identifierName": "FG_BLACK" - }, - "name": "FG_BLACK" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 444, - "end": 451, - "loc": { - "start": { - "line": 9, - "column": 175 - }, - "end": { - "line": 9, - "column": 182 - } - }, - "extra": { - "rawValue": "\u001b[30m", - "raw": "\"\u001b[30m\"" - }, - "value": "\u001b[30m" - } - }, - { - "type": "AssignmentExpression", - "start": 452, - "end": 471, - "loc": { - "start": { - "line": 9, - "column": 183 - }, - "end": { - "line": 9, - "column": 202 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 452, - "end": 463, - "loc": { - "start": { - "line": 9, - "column": 183 - }, - "end": { - "line": 9, - "column": 194 - } - }, - "object": { - "type": "ThisExpression", - "start": 452, - "end": 456, - "loc": { - "start": { - "line": 9, - "column": 183 - }, - "end": { - "line": 9, - "column": 187 - } - } - }, - "property": { - "type": "Identifier", - "start": 457, - "end": 463, - "loc": { - "start": { - "line": 9, - "column": 188 - }, - "end": { - "line": 9, - "column": 194 - }, - "identifierName": "FG_RED" - }, - "name": "FG_RED" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 464, - "end": 471, - "loc": { - "start": { - "line": 9, - "column": 195 - }, - "end": { - "line": 9, - "column": 202 - } - }, - "extra": { - "rawValue": "\u001b[31m", - "raw": "\"\u001b[31m\"" - }, - "value": "\u001b[31m" - } - }, - { - "type": "AssignmentExpression", - "start": 472, - "end": 493, - "loc": { - "start": { - "line": 9, - "column": 203 - }, - "end": { - "line": 9, - "column": 224 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 472, - "end": 485, - "loc": { - "start": { - "line": 9, - "column": 203 - }, - "end": { - "line": 9, - "column": 216 - } - }, - "object": { - "type": "ThisExpression", - "start": 472, - "end": 476, - "loc": { - "start": { - "line": 9, - "column": 203 - }, - "end": { - "line": 9, - "column": 207 - } - } - }, - "property": { - "type": "Identifier", - "start": 477, - "end": 485, - "loc": { - "start": { - "line": 9, - "column": 208 - }, - "end": { - "line": 9, - "column": 216 - }, - "identifierName": "FG_GREEN" - }, - "name": "FG_GREEN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 486, - "end": 493, - "loc": { - "start": { - "line": 9, - "column": 217 - }, - "end": { - "line": 9, - "column": 224 - } - }, - "extra": { - "rawValue": "\u001b[32m", - "raw": "\"\u001b[32m\"" - }, - "value": "\u001b[32m" - } - }, - { - "type": "AssignmentExpression", - "start": 494, - "end": 516, - "loc": { - "start": { - "line": 9, - "column": 225 - }, - "end": { - "line": 9, - "column": 247 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 494, - "end": 508, - "loc": { - "start": { - "line": 9, - "column": 225 - }, - "end": { - "line": 9, - "column": 239 - } - }, - "object": { - "type": "ThisExpression", - "start": 494, - "end": 498, - "loc": { - "start": { - "line": 9, - "column": 225 - }, - "end": { - "line": 9, - "column": 229 - } - } - }, - "property": { - "type": "Identifier", - "start": 499, - "end": 508, - "loc": { - "start": { - "line": 9, - "column": 230 - }, - "end": { - "line": 9, - "column": 239 - }, - "identifierName": "FG_YELLOW" - }, - "name": "FG_YELLOW" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 509, - "end": 516, - "loc": { - "start": { - "line": 9, - "column": 240 - }, - "end": { - "line": 9, - "column": 247 - } - }, - "extra": { - "rawValue": "\u001b[33m", - "raw": "\"\u001b[33m\"" - }, - "value": "\u001b[33m" - } - }, - { - "type": "AssignmentExpression", - "start": 517, - "end": 537, - "loc": { - "start": { - "line": 9, - "column": 248 - }, - "end": { - "line": 9, - "column": 268 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 517, - "end": 529, - "loc": { - "start": { - "line": 9, - "column": 248 - }, - "end": { - "line": 9, - "column": 260 - } - }, - "object": { - "type": "ThisExpression", - "start": 517, - "end": 521, - "loc": { - "start": { - "line": 9, - "column": 248 - }, - "end": { - "line": 9, - "column": 252 - } - } - }, - "property": { - "type": "Identifier", - "start": 522, - "end": 529, - "loc": { - "start": { - "line": 9, - "column": 253 - }, - "end": { - "line": 9, - "column": 260 - }, - "identifierName": "FG_BLUE" - }, - "name": "FG_BLUE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 530, - "end": 537, - "loc": { - "start": { - "line": 9, - "column": 261 - }, - "end": { - "line": 9, - "column": 268 - } - }, - "extra": { - "rawValue": "\u001b[34m", - "raw": "\"\u001b[34m\"" - }, - "value": "\u001b[34m" - } - }, - { - "type": "AssignmentExpression", - "start": 538, - "end": 561, - "loc": { - "start": { - "line": 9, - "column": 269 - }, - "end": { - "line": 9, - "column": 292 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 538, - "end": 553, - "loc": { - "start": { - "line": 9, - "column": 269 - }, - "end": { - "line": 9, - "column": 284 - } - }, - "object": { - "type": "ThisExpression", - "start": 538, - "end": 542, - "loc": { - "start": { - "line": 9, - "column": 269 - }, - "end": { - "line": 9, - "column": 273 - } - } - }, - "property": { - "type": "Identifier", - "start": 543, - "end": 553, - "loc": { - "start": { - "line": 9, - "column": 274 - }, - "end": { - "line": 9, - "column": 284 - }, - "identifierName": "FG_MAGENTA" - }, - "name": "FG_MAGENTA" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 554, - "end": 561, - "loc": { - "start": { - "line": 9, - "column": 285 - }, - "end": { - "line": 9, - "column": 292 - } - }, - "extra": { - "rawValue": "\u001b[35m", - "raw": "\"\u001b[35m\"" - }, - "value": "\u001b[35m" - } - }, - { - "type": "AssignmentExpression", - "start": 562, - "end": 582, - "loc": { - "start": { - "line": 9, - "column": 293 - }, - "end": { - "line": 9, - "column": 313 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 562, - "end": 574, - "loc": { - "start": { - "line": 9, - "column": 293 - }, - "end": { - "line": 9, - "column": 305 - } - }, - "object": { - "type": "ThisExpression", - "start": 562, - "end": 566, - "loc": { - "start": { - "line": 9, - "column": 293 - }, - "end": { - "line": 9, - "column": 297 - } - } - }, - "property": { - "type": "Identifier", - "start": 567, - "end": 574, - "loc": { - "start": { - "line": 9, - "column": 298 - }, - "end": { - "line": 9, - "column": 305 - }, - "identifierName": "FG_CYAN" - }, - "name": "FG_CYAN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 575, - "end": 582, - "loc": { - "start": { - "line": 9, - "column": 306 - }, - "end": { - "line": 9, - "column": 313 - } - }, - "extra": { - "rawValue": "\u001b[36m", - "raw": "\"\u001b[36m\"" - }, - "value": "\u001b[36m" - } - }, - { - "type": "AssignmentExpression", - "start": 583, - "end": 604, - "loc": { - "start": { - "line": 9, - "column": 314 - }, - "end": { - "line": 9, - "column": 335 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 583, - "end": 596, - "loc": { - "start": { - "line": 9, - "column": 314 - }, - "end": { - "line": 9, - "column": 327 - } - }, - "object": { - "type": "ThisExpression", - "start": 583, - "end": 587, - "loc": { - "start": { - "line": 9, - "column": 314 - }, - "end": { - "line": 9, - "column": 318 - } - } - }, - "property": { - "type": "Identifier", - "start": 588, - "end": 596, - "loc": { - "start": { - "line": 9, - "column": 319 - }, - "end": { - "line": 9, - "column": 327 - }, - "identifierName": "FG_WHITE" - }, - "name": "FG_WHITE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 597, - "end": 604, - "loc": { - "start": { - "line": 9, - "column": 328 - }, - "end": { - "line": 9, - "column": 335 - } - }, - "extra": { - "rawValue": "\u001b[37m", - "raw": "\"\u001b[37m\"" - }, - "value": "\u001b[37m" - } - }, - { - "type": "AssignmentExpression", - "start": 605, - "end": 625, - "loc": { - "start": { - "line": 9, - "column": 336 - }, - "end": { - "line": 9, - "column": 356 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 605, - "end": 617, - "loc": { - "start": { - "line": 9, - "column": 336 - }, - "end": { - "line": 9, - "column": 348 - } - }, - "object": { - "type": "ThisExpression", - "start": 605, - "end": 609, - "loc": { - "start": { - "line": 9, - "column": 336 - }, - "end": { - "line": 9, - "column": 340 - } - } - }, - "property": { - "type": "Identifier", - "start": 610, - "end": 617, - "loc": { - "start": { - "line": 9, - "column": 341 - }, - "end": { - "line": 9, - "column": 348 - }, - "identifierName": "FG_GRAY" - }, - "name": "FG_GRAY" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 618, - "end": 625, - "loc": { - "start": { - "line": 9, - "column": 349 - }, - "end": { - "line": 9, - "column": 356 - } - }, - "extra": { - "rawValue": "\u001b[90m", - "raw": "\"\u001b[90m\"" - }, - "value": "\u001b[90m" - } - }, - { - "type": "AssignmentExpression", - "start": 626, - "end": 647, - "loc": { - "start": { - "line": 9, - "column": 357 - }, - "end": { - "line": 9, - "column": 378 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 626, - "end": 639, - "loc": { - "start": { - "line": 9, - "column": 357 - }, - "end": { - "line": 9, - "column": 370 - } - }, - "object": { - "type": "ThisExpression", - "start": 626, - "end": 630, - "loc": { - "start": { - "line": 9, - "column": 357 - }, - "end": { - "line": 9, - "column": 361 - } - } - }, - "property": { - "type": "Identifier", - "start": 631, - "end": 639, - "loc": { - "start": { - "line": 9, - "column": 362 - }, - "end": { - "line": 9, - "column": 370 - }, - "identifierName": "BG_BLACK" - }, - "name": "BG_BLACK" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 640, - "end": 647, - "loc": { - "start": { - "line": 9, - "column": 371 - }, - "end": { - "line": 9, - "column": 378 - } - }, - "extra": { - "rawValue": "\u001b[40m", - "raw": "\"\u001b[40m\"" - }, - "value": "\u001b[40m" - } - }, - { - "type": "AssignmentExpression", - "start": 648, - "end": 667, - "loc": { - "start": { - "line": 9, - "column": 379 - }, - "end": { - "line": 9, - "column": 398 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 648, - "end": 659, - "loc": { - "start": { - "line": 9, - "column": 379 - }, - "end": { - "line": 9, - "column": 390 - } - }, - "object": { - "type": "ThisExpression", - "start": 648, - "end": 652, - "loc": { - "start": { - "line": 9, - "column": 379 - }, - "end": { - "line": 9, - "column": 383 - } - } - }, - "property": { - "type": "Identifier", - "start": 653, - "end": 659, - "loc": { - "start": { - "line": 9, - "column": 384 - }, - "end": { - "line": 9, - "column": 390 - }, - "identifierName": "BG_RED" - }, - "name": "BG_RED" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 660, - "end": 667, - "loc": { - "start": { - "line": 9, - "column": 391 - }, - "end": { - "line": 9, - "column": 398 - } - }, - "extra": { - "rawValue": "\u001b[41m", - "raw": "\"\u001b[41m\"" - }, - "value": "\u001b[41m" - } - }, - { - "type": "AssignmentExpression", - "start": 668, - "end": 689, - "loc": { - "start": { - "line": 9, - "column": 399 - }, - "end": { - "line": 9, - "column": 420 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 668, - "end": 681, - "loc": { - "start": { - "line": 9, - "column": 399 - }, - "end": { - "line": 9, - "column": 412 - } - }, - "object": { - "type": "ThisExpression", - "start": 668, - "end": 672, - "loc": { - "start": { - "line": 9, - "column": 399 - }, - "end": { - "line": 9, - "column": 403 - } - } - }, - "property": { - "type": "Identifier", - "start": 673, - "end": 681, - "loc": { - "start": { - "line": 9, - "column": 404 - }, - "end": { - "line": 9, - "column": 412 - }, - "identifierName": "BG_GREEN" - }, - "name": "BG_GREEN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 682, - "end": 689, - "loc": { - "start": { - "line": 9, - "column": 413 - }, - "end": { - "line": 9, - "column": 420 - } - }, - "extra": { - "rawValue": "\u001b[42m", - "raw": "\"\u001b[42m\"" - }, - "value": "\u001b[42m" - } - }, - { - "type": "AssignmentExpression", - "start": 690, - "end": 712, - "loc": { - "start": { - "line": 9, - "column": 421 - }, - "end": { - "line": 9, - "column": 443 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 690, - "end": 704, - "loc": { - "start": { - "line": 9, - "column": 421 - }, - "end": { - "line": 9, - "column": 435 - } - }, - "object": { - "type": "ThisExpression", - "start": 690, - "end": 694, - "loc": { - "start": { - "line": 9, - "column": 421 - }, - "end": { - "line": 9, - "column": 425 - } - } - }, - "property": { - "type": "Identifier", - "start": 695, - "end": 704, - "loc": { - "start": { - "line": 9, - "column": 426 - }, - "end": { - "line": 9, - "column": 435 - }, - "identifierName": "BG_YELLOW" - }, - "name": "BG_YELLOW" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 705, - "end": 712, - "loc": { - "start": { - "line": 9, - "column": 436 - }, - "end": { - "line": 9, - "column": 443 - } - }, - "extra": { - "rawValue": "\u001b[43m", - "raw": "\"\u001b[43m\"" - }, - "value": "\u001b[43m" - } - }, - { - "type": "AssignmentExpression", - "start": 713, - "end": 733, - "loc": { - "start": { - "line": 9, - "column": 444 - }, - "end": { - "line": 9, - "column": 464 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 713, - "end": 725, - "loc": { - "start": { - "line": 9, - "column": 444 - }, - "end": { - "line": 9, - "column": 456 - } - }, - "object": { - "type": "ThisExpression", - "start": 713, - "end": 717, - "loc": { - "start": { - "line": 9, - "column": 444 - }, - "end": { - "line": 9, - "column": 448 - } - } - }, - "property": { - "type": "Identifier", - "start": 718, - "end": 725, - "loc": { - "start": { - "line": 9, - "column": 449 - }, - "end": { - "line": 9, - "column": 456 - }, - "identifierName": "BG_BLUE" - }, - "name": "BG_BLUE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 726, - "end": 733, - "loc": { - "start": { - "line": 9, - "column": 457 - }, - "end": { - "line": 9, - "column": 464 - } - }, - "extra": { - "rawValue": "\u001b[44m", - "raw": "\"\u001b[44m\"" - }, - "value": "\u001b[44m" - } - }, - { - "type": "AssignmentExpression", - "start": 734, - "end": 757, - "loc": { - "start": { - "line": 9, - "column": 465 - }, - "end": { - "line": 9, - "column": 488 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 734, - "end": 749, - "loc": { - "start": { - "line": 9, - "column": 465 - }, - "end": { - "line": 9, - "column": 480 - } - }, - "object": { - "type": "ThisExpression", - "start": 734, - "end": 738, - "loc": { - "start": { - "line": 9, - "column": 465 - }, - "end": { - "line": 9, - "column": 469 - } - } - }, - "property": { - "type": "Identifier", - "start": 739, - "end": 749, - "loc": { - "start": { - "line": 9, - "column": 470 - }, - "end": { - "line": 9, - "column": 480 - }, - "identifierName": "BG_MAGENTA" - }, - "name": "BG_MAGENTA" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 750, - "end": 757, - "loc": { - "start": { - "line": 9, - "column": 481 - }, - "end": { - "line": 9, - "column": 488 - } - }, - "extra": { - "rawValue": "\u001b[45m", - "raw": "\"\u001b[45m\"" - }, - "value": "\u001b[45m" - } - }, - { - "type": "AssignmentExpression", - "start": 758, - "end": 778, - "loc": { - "start": { - "line": 9, - "column": 489 - }, - "end": { - "line": 9, - "column": 509 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 758, - "end": 770, - "loc": { - "start": { - "line": 9, - "column": 489 - }, - "end": { - "line": 9, - "column": 501 - } - }, - "object": { - "type": "ThisExpression", - "start": 758, - "end": 762, - "loc": { - "start": { - "line": 9, - "column": 489 - }, - "end": { - "line": 9, - "column": 493 - } - } - }, - "property": { - "type": "Identifier", - "start": 763, - "end": 770, - "loc": { - "start": { - "line": 9, - "column": 494 - }, - "end": { - "line": 9, - "column": 501 - }, - "identifierName": "BG_CYAN" - }, - "name": "BG_CYAN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 771, - "end": 778, - "loc": { - "start": { - "line": 9, - "column": 502 - }, - "end": { - "line": 9, - "column": 509 - } - }, - "extra": { - "rawValue": "\u001b[46m", - "raw": "\"\u001b[46m\"" - }, - "value": "\u001b[46m" - } - }, - { - "type": "AssignmentExpression", - "start": 779, - "end": 800, - "loc": { - "start": { - "line": 9, - "column": 510 - }, - "end": { - "line": 9, - "column": 531 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 779, - "end": 792, - "loc": { - "start": { - "line": 9, - "column": 510 - }, - "end": { - "line": 9, - "column": 523 - } - }, - "object": { - "type": "ThisExpression", - "start": 779, - "end": 783, - "loc": { - "start": { - "line": 9, - "column": 510 - }, - "end": { - "line": 9, - "column": 514 - } - } - }, - "property": { - "type": "Identifier", - "start": 784, - "end": 792, - "loc": { - "start": { - "line": 9, - "column": 515 - }, - "end": { - "line": 9, - "column": 523 - }, - "identifierName": "BG_WHITE" - }, - "name": "BG_WHITE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 793, - "end": 800, - "loc": { - "start": { - "line": 9, - "column": 524 - }, - "end": { - "line": 9, - "column": 531 - } - }, - "extra": { - "rawValue": "\u001b[47m", - "raw": "\"\u001b[47m\"" - }, - "value": "\u001b[47m" - } - }, - { - "type": "AssignmentExpression", - "start": 801, - "end": 822, - "loc": { - "start": { - "line": 9, - "column": 532 - }, - "end": { - "line": 9, - "column": 553 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 801, - "end": 813, - "loc": { - "start": { - "line": 9, - "column": 532 - }, - "end": { - "line": 9, - "column": 544 - } - }, - "object": { - "type": "ThisExpression", - "start": 801, - "end": 805, - "loc": { - "start": { - "line": 9, - "column": 532 - }, - "end": { - "line": 9, - "column": 536 - } - } - }, - "property": { - "type": "Identifier", - "start": 806, - "end": 813, - "loc": { - "start": { - "line": 9, - "column": 537 - }, - "end": { - "line": 9, - "column": 544 - }, - "identifierName": "BG_GRAY" - }, - "name": "BG_GRAY" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 814, - "end": 822, - "loc": { - "start": { - "line": 9, - "column": 545 - }, - "end": { - "line": 9, - "column": 553 - } - }, - "extra": { - "rawValue": "\u001b[100m", - "raw": "\"\u001b[100m\"" - }, - "value": "\u001b[100m" - } - }, - { - "type": "AssignmentExpression", - "start": 823, - "end": 849, - "loc": { - "start": { - "line": 9, - "column": 554 - }, - "end": { - "line": 9, - "column": 580 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 823, - "end": 846, - "loc": { - "start": { - "line": 9, - "column": 554 - }, - "end": { - "line": 9, - "column": 577 - } - }, - "object": { - "type": "ThisExpression", - "start": 823, - "end": 827, - "loc": { - "start": { - "line": 9, - "column": 554 - }, - "end": { - "line": 9, - "column": 558 - } - } - }, - "property": { - "type": "Identifier", - "start": 828, - "end": 846, - "loc": { - "start": { - "line": 9, - "column": 559 - }, - "end": { - "line": 9, - "column": 577 - }, - "identifierName": "TYPE_SPACER_LENGTH" - }, - "name": "TYPE_SPACER_LENGTH" - }, - "computed": false - }, - "right": { - "type": "NumericLiteral", - "start": 847, - "end": 849, - "loc": { - "start": { - "line": 9, - "column": 578 - }, - "end": { - "line": 9, - "column": 580 - } - }, - "extra": { - "rawValue": 13, - "raw": "13" - }, - "value": 13 - } - }, - { - "type": "AssignmentExpression", - "start": 850, - "end": 884, - "loc": { - "start": { - "line": 9, - "column": 581 - }, - "end": { - "line": 9, - "column": 615 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 850, - "end": 860, - "loc": { - "start": { - "line": 9, - "column": 581 - }, - "end": { - "line": 9, - "column": 591 - } - }, - "object": { - "type": "ThisExpression", - "start": 850, - "end": 854, - "loc": { - "start": { - "line": 9, - "column": 581 - }, - "end": { - "line": 9, - "column": 585 - } - } - }, - "property": { - "type": "Identifier", - "start": 855, - "end": 860, - "loc": { - "start": { - "line": 9, - "column": 586 - }, - "end": { - "line": 9, - "column": 591 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "right": { - "type": "ObjectExpression", - "start": 861, - "end": 884, - "loc": { - "start": { - "line": 9, - "column": 592 - }, - "end": { - "line": 9, - "column": 615 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 862, - "end": 883, - "loc": { - "start": { - "line": 9, - "column": 593 - }, - "end": { - "line": 9, - "column": 614 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 862, - "end": 869, - "loc": { - "start": { - "line": 9, - "column": 593 - }, - "end": { - "line": 9, - "column": 600 - }, - "identifierName": "default" - }, - "name": "default" - }, - "value": { - "type": "MemberExpression", - "start": 870, - "end": 883, - "loc": { - "start": { - "line": 9, - "column": 601 - }, - "end": { - "line": 9, - "column": 614 - } - }, - "object": { - "type": "ThisExpression", - "start": 870, - "end": 874, - "loc": { - "start": { - "line": 9, - "column": 601 - }, - "end": { - "line": 9, - "column": 605 - } - } - }, - "property": { - "type": "Identifier", - "start": 875, - "end": 883, - "loc": { - "start": { - "line": 9, - "column": 606 - }, - "end": { - "line": 9, - "column": 614 - }, - "identifierName": "FG_WHITE" - }, - "name": "FG_WHITE" - }, - "computed": false - } - } - ] - } - }, - { - "type": "AssignmentExpression", - "start": 885, - "end": 904, - "loc": { - "start": { - "line": 9, - "column": 616 - }, - "end": { - "line": 9, - "column": 635 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 885, - "end": 901, - "loc": { - "start": { - "line": 9, - "column": 616 - }, - "end": { - "line": 9, - "column": 632 - } - }, - "object": { - "type": "ThisExpression", - "start": 885, - "end": 889, - "loc": { - "start": { - "line": 9, - "column": 616 - }, - "end": { - "line": 9, - "column": 620 - } - } - }, - "property": { - "type": "Identifier", - "start": 890, - "end": 901, - "loc": { - "start": { - "line": 9, - "column": 621 - }, - "end": { - "line": 9, - "column": 632 - }, - "identifierName": "currentType" - }, - "name": "currentType" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 902, - "end": 904, - "loc": { - "start": { - "line": 9, - "column": 633 - }, - "end": { - "line": 9, - "column": 635 - } - }, - "extra": { - "rawValue": "", - "raw": "\"\"" - }, - "value": "" - } - }, - { - "type": "AssignmentExpression", - "start": 905, - "end": 924, - "loc": { - "start": { - "line": 9, - "column": 636 - }, - "end": { - "line": 9, - "column": 655 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 905, - "end": 920, - "loc": { - "start": { - "line": 9, - "column": 636 - }, - "end": { - "line": 9, - "column": 651 - } - }, - "object": { - "type": "ThisExpression", - "start": 905, - "end": 909, - "loc": { - "start": { - "line": 9, - "column": 636 - }, - "end": { - "line": 9, - "column": 640 - } - } - }, - "property": { - "type": "Identifier", - "start": 910, - "end": 920, - "loc": { - "start": { - "line": 9, - "column": 641 - }, - "end": { - "line": 9, - "column": 651 - }, - "identifierName": "SPACE_CHAR" - }, - "name": "SPACE_CHAR" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 921, - "end": 924, - "loc": { - "start": { - "line": 9, - "column": 652 - }, - "end": { - "line": 9, - "column": 655 - } - }, - "extra": { - "rawValue": " ", - "raw": "\" \"" - }, - "value": " " - } - }, - { - "type": "AssignmentExpression", - "start": 925, - "end": 942, - "loc": { - "start": { - "line": 9, - "column": 656 - }, - "end": { - "line": 9, - "column": 673 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 925, - "end": 939, - "loc": { - "start": { - "line": 9, - "column": 656 - }, - "end": { - "line": 9, - "column": 670 - } - }, - "object": { - "type": "ThisExpression", - "start": 925, - "end": 929, - "loc": { - "start": { - "line": 9, - "column": 656 - }, - "end": { - "line": 9, - "column": 660 - } - } - }, - "property": { - "type": "Identifier", - "start": 930, - "end": 939, - "loc": { - "start": { - "line": 9, - "column": 661 - }, - "end": { - "line": 9, - "column": 670 - }, - "identifierName": "FG_COLORS" - }, - "name": "FG_COLORS" - }, - "computed": false - }, - "right": { - "type": "ObjectExpression", - "start": 940, - "end": 942, - "loc": { - "start": { - "line": 9, - "column": 671 - }, - "end": { - "line": 9, - "column": 673 - } - }, - "properties": [] - } - } - ] - } - }, - { - "type": "ForStatement", - "start": 943, - "end": 1000, - "loc": { - "start": { - "line": 9, - "column": 674 - }, - "end": { - "line": 9, - "column": 731 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 947, - "end": 954, - "loc": { - "start": { - "line": 9, - "column": 678 - }, - "end": { - "line": 9, - "column": 685 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 951, - "end": 954, - "loc": { - "start": { - "line": 9, - "column": 682 - }, - "end": { - "line": 9, - "column": 685 - } - }, - "id": { - "type": "Identifier", - "start": 951, - "end": 952, - "loc": { - "start": { - "line": 9, - "column": 682 - }, - "end": { - "line": 9, - "column": 683 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "NumericLiteral", - "start": 953, - "end": 954, - "loc": { - "start": { - "line": 9, - "column": 684 - }, - "end": { - "line": 9, - "column": 685 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 955, - "end": 961, - "loc": { - "start": { - "line": 9, - "column": 686 - }, - "end": { - "line": 9, - "column": 692 - } - }, - "left": { - "type": "Identifier", - "start": 955, - "end": 956, - "loc": { - "start": { - "line": 9, - "column": 686 - }, - "end": { - "line": 9, - "column": 687 - }, - "identifierName": "s" - }, - "name": "s" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 958, - "end": 961, - "loc": { - "start": { - "line": 9, - "column": 689 - }, - "end": { - "line": 9, - "column": 692 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "update": { - "type": "UpdateExpression", - "start": 962, - "end": 965, - "loc": { - "start": { - "line": 9, - "column": 693 - }, - "end": { - "line": 9, - "column": 696 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 962, - "end": 963, - "loc": { - "start": { - "line": 9, - "column": 693 - }, - "end": { - "line": 9, - "column": 694 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "body": { - "type": "ExpressionStatement", - "start": 966, - "end": 1000, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 731 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 966, - "end": 999, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 730 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 966, - "end": 983, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 714 - } - }, - "object": { - "type": "MemberExpression", - "start": 966, - "end": 980, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 711 - } - }, - "object": { - "type": "ThisExpression", - "start": 966, - "end": 970, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 701 - } - } - }, - "property": { - "type": "Identifier", - "start": 971, - "end": 980, - "loc": { - "start": { - "line": 9, - "column": 702 - }, - "end": { - "line": 9, - "column": 711 - }, - "identifierName": "FG_COLORS" - }, - "name": "FG_COLORS" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 981, - "end": 982, - "loc": { - "start": { - "line": 9, - "column": 712 - }, - "end": { - "line": 9, - "column": 713 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "right": { - "type": "BinaryExpression", - "start": 984, - "end": 999, - "loc": { - "start": { - "line": 9, - "column": 715 - }, - "end": { - "line": 9, - "column": 730 - } - }, - "left": { - "type": "BinaryExpression", - "start": 984, - "end": 995, - "loc": { - "start": { - "line": 9, - "column": 715 - }, - "end": { - "line": 9, - "column": 726 - } - }, - "left": { - "type": "StringLiteral", - "start": 984, - "end": 993, - "loc": { - "start": { - "line": 9, - "column": 715 - }, - "end": { - "line": 9, - "column": 724 - } - }, - "extra": { - "rawValue": "\u001b[38;5;", - "raw": "\"\u001b[38;5;\"" - }, - "value": "\u001b[38;5;" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 994, - "end": 995, - "loc": { - "start": { - "line": 9, - "column": 725 - }, - "end": { - "line": 9, - "column": 726 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 996, - "end": 999, - "loc": { - "start": { - "line": 9, - "column": 727 - }, - "end": { - "line": 9, - "column": 730 - } - }, - "extra": { - "rawValue": "m", - "raw": "\"m\"" - }, - "value": "m" - } - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 1000, - "end": 1018, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 749 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1000, - "end": 1017, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 748 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1000, - "end": 1014, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 745 - } - }, - "object": { - "type": "ThisExpression", - "start": 1000, - "end": 1004, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 735 - } - } - }, - "property": { - "type": "Identifier", - "start": 1005, - "end": 1014, - "loc": { - "start": { - "line": 9, - "column": 736 - }, - "end": { - "line": 9, - "column": 745 - }, - "identifierName": "BG_COLORS" - }, - "name": "BG_COLORS" - }, - "computed": false - }, - "right": { - "type": "ObjectExpression", - "start": 1015, - "end": 1017, - "loc": { - "start": { - "line": 9, - "column": 746 - }, - "end": { - "line": 9, - "column": 748 - } - }, - "properties": [] - } - } - }, - { - "type": "ForStatement", - "start": 1018, - "end": 1075, - "loc": { - "start": { - "line": 9, - "column": 749 - }, - "end": { - "line": 9, - "column": 806 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 1022, - "end": 1029, - "loc": { - "start": { - "line": 9, - "column": 753 - }, - "end": { - "line": 9, - "column": 760 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1026, - "end": 1029, - "loc": { - "start": { - "line": 9, - "column": 757 - }, - "end": { - "line": 9, - "column": 760 - } - }, - "id": { - "type": "Identifier", - "start": 1026, - "end": 1027, - "loc": { - "start": { - "line": 9, - "column": 757 - }, - "end": { - "line": 9, - "column": 758 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "NumericLiteral", - "start": 1028, - "end": 1029, - "loc": { - "start": { - "line": 9, - "column": 759 - }, - "end": { - "line": 9, - "column": 760 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 1030, - "end": 1036, - "loc": { - "start": { - "line": 9, - "column": 761 - }, - "end": { - "line": 9, - "column": 767 - } - }, - "left": { - "type": "Identifier", - "start": 1030, - "end": 1031, - "loc": { - "start": { - "line": 9, - "column": 761 - }, - "end": { - "line": 9, - "column": 762 - }, - "identifierName": "s" - }, - "name": "s" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 1033, - "end": 1036, - "loc": { - "start": { - "line": 9, - "column": 764 - }, - "end": { - "line": 9, - "column": 767 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "update": { - "type": "UpdateExpression", - "start": 1037, - "end": 1040, - "loc": { - "start": { - "line": 9, - "column": 768 - }, - "end": { - "line": 9, - "column": 771 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 1037, - "end": 1038, - "loc": { - "start": { - "line": 9, - "column": 768 - }, - "end": { - "line": 9, - "column": 769 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "body": { - "type": "ExpressionStatement", - "start": 1041, - "end": 1075, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 806 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1041, - "end": 1074, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 805 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1041, - "end": 1058, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 789 - } - }, - "object": { - "type": "MemberExpression", - "start": 1041, - "end": 1055, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 786 - } - }, - "object": { - "type": "ThisExpression", - "start": 1041, - "end": 1045, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 776 - } - } - }, - "property": { - "type": "Identifier", - "start": 1046, - "end": 1055, - "loc": { - "start": { - "line": 9, - "column": 777 - }, - "end": { - "line": 9, - "column": 786 - }, - "identifierName": "BG_COLORS" - }, - "name": "BG_COLORS" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1056, - "end": 1057, - "loc": { - "start": { - "line": 9, - "column": 787 - }, - "end": { - "line": 9, - "column": 788 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "right": { - "type": "BinaryExpression", - "start": 1059, - "end": 1074, - "loc": { - "start": { - "line": 9, - "column": 790 - }, - "end": { - "line": 9, - "column": 805 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1059, - "end": 1070, - "loc": { - "start": { - "line": 9, - "column": 790 - }, - "end": { - "line": 9, - "column": 801 - } - }, - "left": { - "type": "StringLiteral", - "start": 1059, - "end": 1068, - "loc": { - "start": { - "line": 9, - "column": 790 - }, - "end": { - "line": 9, - "column": 799 - } - }, - "extra": { - "rawValue": "\u001b[48;5;", - "raw": "\"\u001b[48;5;\"" - }, - "value": "\u001b[48;5;" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1069, - "end": 1070, - "loc": { - "start": { - "line": 9, - "column": 800 - }, - "end": { - "line": 9, - "column": 801 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 1071, - "end": 1074, - "loc": { - "start": { - "line": 9, - "column": 802 - }, - "end": { - "line": 9, - "column": 805 - } - }, - "extra": { - "rawValue": "m", - "raw": "\"m\"" - }, - "value": "m" - } - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 1075, - "end": 1114, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 845 - } - }, - "expression": { - "type": "LogicalExpression", - "start": 1075, - "end": 1114, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 845 - } - }, - "left": { - "type": "CallExpression", - "start": 1075, - "end": 1091, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 822 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1075, - "end": 1088, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 819 - } - }, - "object": { - "type": "Identifier", - "start": 1075, - "end": 1080, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 811 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 1081, - "end": 1088, - "loc": { - "start": { - "line": 9, - "column": 812 - }, - "end": { - "line": 9, - "column": 819 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1089, - "end": 1090, - "loc": { - "start": { - "line": 9, - "column": 820 - }, - "end": { - "line": 9, - "column": 821 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 1093, - "end": 1114, - "loc": { - "start": { - "line": 9, - "column": 824 - }, - "end": { - "line": 9, - "column": 845 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1093, - "end": 1111, - "loc": { - "start": { - "line": 9, - "column": 824 - }, - "end": { - "line": 9, - "column": 842 - } - }, - "object": { - "type": "ThisExpression", - "start": 1093, - "end": 1097, - "loc": { - "start": { - "line": 9, - "column": 824 - }, - "end": { - "line": 9, - "column": 828 - } - } - }, - "property": { - "type": "Identifier", - "start": 1098, - "end": 1111, - "loc": { - "start": { - "line": 9, - "column": 829 - }, - "end": { - "line": 9, - "column": 842 - }, - "identifierName": "registerTypes" - }, - "name": "registerTypes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1112, - "end": 1113, - "loc": { - "start": { - "line": 9, - "column": 843 - }, - "end": { - "line": 9, - "column": 844 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1115, - "end": 1177, - "loc": { - "start": { - "line": 9, - "column": 846 - }, - "end": { - "line": 9, - "column": 908 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1115, - "end": 1121, - "loc": { - "start": { - "line": 9, - "column": 846 - }, - "end": { - "line": 9, - "column": 852 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1122, - "end": 1123, - "loc": { - "start": { - "line": 9, - "column": 853 - }, - "end": { - "line": 9, - "column": 854 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 1124, - "end": 1177, - "loc": { - "start": { - "line": 9, - "column": 855 - }, - "end": { - "line": 9, - "column": 908 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 1125, - "end": 1176, - "loc": { - "start": { - "line": 9, - "column": 856 - }, - "end": { - "line": 9, - "column": 907 - } - }, - "argument": { - "type": "SequenceExpression", - "start": 1131, - "end": 1176, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 907 - } - }, - "expressions": [ - { - "type": "LogicalExpression", - "start": 1131, - "end": 1171, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 902 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1131, - "end": 1149, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 880 - } - }, - "left": { - "type": "StringLiteral", - "start": 1131, - "end": 1139, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 870 - } - }, - "extra": { - "rawValue": "string", - "raw": "\"string\"" - }, - "value": "string" - }, - "operator": "==", - "right": { - "type": "UnaryExpression", - "start": 1141, - "end": 1149, - "loc": { - "start": { - "line": 9, - "column": 872 - }, - "end": { - "line": 9, - "column": 880 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 1148, - "end": 1149, - "loc": { - "start": { - "line": 9, - "column": 879 - }, - "end": { - "line": 9, - "column": 880 - }, - "identifierName": "s" - }, - "name": "s" - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - "operator": "&&", - "right": { - "type": "AssignmentExpression", - "start": 1152, - "end": 1170, - "loc": { - "start": { - "line": 9, - "column": 883 - }, - "end": { - "line": 9, - "column": 901 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1152, - "end": 1168, - "loc": { - "start": { - "line": 9, - "column": 883 - }, - "end": { - "line": 9, - "column": 899 - } - }, - "object": { - "type": "ThisExpression", - "start": 1152, - "end": 1156, - "loc": { - "start": { - "line": 9, - "column": 883 - }, - "end": { - "line": 9, - "column": 887 - } - } - }, - "property": { - "type": "Identifier", - "start": 1157, - "end": 1168, - "loc": { - "start": { - "line": 9, - "column": 888 - }, - "end": { - "line": 9, - "column": 899 - }, - "identifierName": "currentType" - }, - "name": "currentType" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 1169, - "end": 1170, - "loc": { - "start": { - "line": 9, - "column": 900 - }, - "end": { - "line": 9, - "column": 901 - }, - "identifierName": "s" - }, - "name": "s" - }, - "extra": { - "parenthesized": true, - "parenStart": 1151 - } - } - }, - { - "type": "ThisExpression", - "start": 1172, - "end": 1176, - "loc": { - "start": { - "line": 9, - "column": 903 - }, - "end": { - "line": 9, - "column": 907 - } - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1177, - "end": 1680, - "loc": { - "start": { - "line": 9, - "column": 908 - }, - "end": { - "line": 9, - "column": 1411 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1177, - "end": 1184, - "loc": { - "start": { - "line": 9, - "column": 908 - }, - "end": { - "line": 9, - "column": 915 - }, - "identifierName": "message" - }, - "name": "message" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 1185, - "end": 1192, - "loc": { - "start": { - "line": 9, - "column": 916 - }, - "end": { - "line": 9, - "column": 923 - } - }, - "left": { - "type": "Identifier", - "start": 1185, - "end": 1186, - "loc": { - "start": { - "line": 9, - "column": 916 - }, - "end": { - "line": 9, - "column": 917 - }, - "identifierName": "t" - }, - "name": "t" - }, - "right": { - "type": "StringLiteral", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 9, - "column": 918 - }, - "end": { - "line": 9, - "column": 923 - } - }, - "extra": { - "rawValue": "log", - "raw": "\"log\"" - }, - "value": "log" - } - }, - { - "type": "RestElement", - "start": 1193, - "end": 1197, - "loc": { - "start": { - "line": 9, - "column": 924 - }, - "end": { - "line": 9, - "column": 928 - } - }, - "argument": { - "type": "Identifier", - "start": 1196, - "end": 1197, - "loc": { - "start": { - "line": 9, - "column": 927 - }, - "end": { - "line": 9, - "column": 928 - }, - "identifierName": "e" - }, - "name": "e" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1198, - "end": 1680, - "loc": { - "start": { - "line": 9, - "column": 929 - }, - "end": { - "line": 9, - "column": 1411 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1199, - "end": 1226, - "loc": { - "start": { - "line": 9, - "column": 930 - }, - "end": { - "line": 9, - "column": 957 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1203, - "end": 1225, - "loc": { - "start": { - "line": 9, - "column": 934 - }, - "end": { - "line": 9, - "column": 956 - } - }, - "id": { - "type": "Identifier", - "start": 1203, - "end": 1204, - "loc": { - "start": { - "line": 9, - "column": 934 - }, - "end": { - "line": 9, - "column": 935 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "LogicalExpression", - "start": 1205, - "end": 1225, - "loc": { - "start": { - "line": 9, - "column": 936 - }, - "end": { - "line": 9, - "column": 956 - } - }, - "left": { - "type": "MemberExpression", - "start": 1205, - "end": 1221, - "loc": { - "start": { - "line": 9, - "column": 936 - }, - "end": { - "line": 9, - "column": 952 - } - }, - "object": { - "type": "ThisExpression", - "start": 1205, - "end": 1209, - "loc": { - "start": { - "line": 9, - "column": 936 - }, - "end": { - "line": 9, - "column": 940 - } - } - }, - "property": { - "type": "Identifier", - "start": 1210, - "end": 1221, - "loc": { - "start": { - "line": 9, - "column": 941 - }, - "end": { - "line": 9, - "column": 952 - }, - "identifierName": "currentType" - }, - "name": "currentType" - }, - "computed": false - }, - "operator": "||", - "right": { - "type": "StringLiteral", - "start": 1223, - "end": 1225, - "loc": { - "start": { - "line": 9, - "column": 954 - }, - "end": { - "line": 9, - "column": 956 - } - }, - "extra": { - "rawValue": "", - "raw": "\"\"" - }, - "value": "" - } - } - } - ], - "kind": "var" - }, - { - "type": "IfStatement", - "start": 1226, - "end": 1660, - "loc": { - "start": { - "line": 9, - "column": 957 - }, - "end": { - "line": 9, - "column": 1391 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1229, - "end": 1241, - "loc": { - "start": { - "line": 9, - "column": 960 - }, - "end": { - "line": 9, - "column": 972 - } - }, - "left": { - "type": "NumericLiteral", - "start": 1229, - "end": 1230, - "loc": { - "start": { - "line": 9, - "column": 960 - }, - "end": { - "line": 9, - "column": 961 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "operator": "===", - "right": { - "type": "MemberExpression", - "start": 1233, - "end": 1241, - "loc": { - "start": { - "line": 9, - "column": 964 - }, - "end": { - "line": 9, - "column": 972 - } - }, - "object": { - "type": "Identifier", - "start": 1233, - "end": 1234, - "loc": { - "start": { - "line": 9, - "column": 964 - }, - "end": { - "line": 9, - "column": 965 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1235, - "end": 1241, - "loc": { - "start": { - "line": 9, - "column": 966 - }, - "end": { - "line": 9, - "column": 972 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 1242, - "end": 1259, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 990 - } - }, - "expression": { - "type": "CallExpression", - "start": 1242, - "end": 1258, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 989 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1242, - "end": 1252, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 983 - } - }, - "object": { - "type": "Identifier", - "start": 1242, - "end": 1249, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 980 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1250, - "end": 1251, - "loc": { - "start": { - "line": 9, - "column": 981 - }, - "end": { - "line": 9, - "column": 982 - }, - "identifierName": "t" - }, - "name": "t" - }, - "computed": true - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 1253, - "end": 1257, - "loc": { - "start": { - "line": 9, - "column": 984 - }, - "end": { - "line": 9, - "column": 988 - } - }, - "argument": { - "type": "Identifier", - "start": 1256, - "end": 1257, - "loc": { - "start": { - "line": 9, - "column": 987 - }, - "end": { - "line": 9, - "column": 988 - }, - "identifierName": "e" - }, - "name": "e" - } - } - ] - } - }, - "alternate": { - "type": "BlockStatement", - "start": 1263, - "end": 1660, - "loc": { - "start": { - "line": 9, - "column": 994 - }, - "end": { - "line": 9, - "column": 1391 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1264, - "end": 1304, - "loc": { - "start": { - "line": 9, - "column": 995 - }, - "end": { - "line": 9, - "column": 1035 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1268, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 999 - }, - "end": { - "line": 9, - "column": 1034 - } - }, - "id": { - "type": "Identifier", - "start": 1268, - "end": 1269, - "loc": { - "start": { - "line": 9, - "column": 999 - }, - "end": { - "line": 9, - "column": 1000 - }, - "identifierName": "h" - }, - "name": "h" - }, - "init": { - "type": "BinaryExpression", - "start": 1270, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 1001 - }, - "end": { - "line": 9, - "column": 1034 - } - }, - "left": { - "type": "MemberExpression", - "start": 1270, - "end": 1278, - "loc": { - "start": { - "line": 9, - "column": 1001 - }, - "end": { - "line": 9, - "column": 1009 - } - }, - "object": { - "type": "Identifier", - "start": 1270, - "end": 1271, - "loc": { - "start": { - "line": 9, - "column": 1001 - }, - "end": { - "line": 9, - "column": 1002 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1272, - "end": 1278, - "loc": { - "start": { - "line": 9, - "column": 1003 - }, - "end": { - "line": 9, - "column": 1009 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">=", - "right": { - "type": "MemberExpression", - "start": 1280, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 1011 - }, - "end": { - "line": 9, - "column": 1034 - } - }, - "object": { - "type": "ThisExpression", - "start": 1280, - "end": 1284, - "loc": { - "start": { - "line": 9, - "column": 1011 - }, - "end": { - "line": 9, - "column": 1015 - } - } - }, - "property": { - "type": "Identifier", - "start": 1285, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 1016 - }, - "end": { - "line": 9, - "column": 1034 - }, - "identifierName": "TYPE_SPACER_LENGTH" - }, - "name": "TYPE_SPACER_LENGTH" - }, - "computed": false - } - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "start": 1304, - "end": 1385, - "loc": { - "start": { - "line": 9, - "column": 1035 - }, - "end": { - "line": 9, - "column": 1116 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1308, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1039 - }, - "end": { - "line": 9, - "column": 1115 - } - }, - "id": { - "type": "Identifier", - "start": 1308, - "end": 1309, - "loc": { - "start": { - "line": 9, - "column": 1039 - }, - "end": { - "line": 9, - "column": 1040 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "ConditionalExpression", - "start": 1310, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1115 - } - }, - "test": { - "type": "MemberExpression", - "start": 1310, - "end": 1337, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1068 - } - }, - "object": { - "type": "MemberExpression", - "start": 1310, - "end": 1320, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1051 - } - }, - "object": { - "type": "ThisExpression", - "start": 1310, - "end": 1314, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1045 - } - } - }, - "property": { - "type": "Identifier", - "start": 1315, - "end": 1320, - "loc": { - "start": { - "line": 9, - "column": 1046 - }, - "end": { - "line": 9, - "column": 1051 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "CallExpression", - "start": 1321, - "end": 1336, - "loc": { - "start": { - "line": 9, - "column": 1052 - }, - "end": { - "line": 9, - "column": 1067 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1321, - "end": 1334, - "loc": { - "start": { - "line": 9, - "column": 1052 - }, - "end": { - "line": 9, - "column": 1065 - } - }, - "object": { - "type": "Identifier", - "start": 1321, - "end": 1322, - "loc": { - "start": { - "line": 9, - "column": 1052 - }, - "end": { - "line": 9, - "column": 1053 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1323, - "end": 1334, - "loc": { - "start": { - "line": 9, - "column": 1054 - }, - "end": { - "line": 9, - "column": 1065 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - }, - "computed": true - }, - "consequent": { - "type": "MemberExpression", - "start": 1338, - "end": 1365, - "loc": { - "start": { - "line": 9, - "column": 1069 - }, - "end": { - "line": 9, - "column": 1096 - } - }, - "object": { - "type": "MemberExpression", - "start": 1338, - "end": 1348, - "loc": { - "start": { - "line": 9, - "column": 1069 - }, - "end": { - "line": 9, - "column": 1079 - } - }, - "object": { - "type": "ThisExpression", - "start": 1338, - "end": 1342, - "loc": { - "start": { - "line": 9, - "column": 1069 - }, - "end": { - "line": 9, - "column": 1073 - } - } - }, - "property": { - "type": "Identifier", - "start": 1343, - "end": 1348, - "loc": { - "start": { - "line": 9, - "column": 1074 - }, - "end": { - "line": 9, - "column": 1079 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "CallExpression", - "start": 1349, - "end": 1364, - "loc": { - "start": { - "line": 9, - "column": 1080 - }, - "end": { - "line": 9, - "column": 1095 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1349, - "end": 1362, - "loc": { - "start": { - "line": 9, - "column": 1080 - }, - "end": { - "line": 9, - "column": 1093 - } - }, - "object": { - "type": "Identifier", - "start": 1349, - "end": 1350, - "loc": { - "start": { - "line": 9, - "column": 1080 - }, - "end": { - "line": 9, - "column": 1081 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1351, - "end": 1362, - "loc": { - "start": { - "line": 9, - "column": 1082 - }, - "end": { - "line": 9, - "column": 1093 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - }, - "computed": true - }, - "alternate": { - "type": "MemberExpression", - "start": 1366, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1097 - }, - "end": { - "line": 9, - "column": 1115 - } - }, - "object": { - "type": "MemberExpression", - "start": 1366, - "end": 1376, - "loc": { - "start": { - "line": 9, - "column": 1097 - }, - "end": { - "line": 9, - "column": 1107 - } - }, - "object": { - "type": "ThisExpression", - "start": 1366, - "end": 1370, - "loc": { - "start": { - "line": 9, - "column": 1097 - }, - "end": { - "line": 9, - "column": 1101 - } - } - }, - "property": { - "type": "Identifier", - "start": 1371, - "end": 1376, - "loc": { - "start": { - "line": 9, - "column": 1102 - }, - "end": { - "line": 9, - "column": 1107 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1377, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1108 - }, - "end": { - "line": 9, - "column": 1115 - }, - "identifierName": "default" - }, - "name": "default" - }, - "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 1385, - "end": 1407, - "loc": { - "start": { - "line": 9, - "column": 1116 - }, - "end": { - "line": 9, - "column": 1138 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1389, - "end": 1406, - "loc": { - "start": { - "line": 9, - "column": 1120 - }, - "end": { - "line": 9, - "column": 1137 - } - }, - "id": { - "type": "Identifier", - "start": 1389, - "end": 1390, - "loc": { - "start": { - "line": 9, - "column": 1120 - }, - "end": { - "line": 9, - "column": 1121 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 1391, - "end": 1406, - "loc": { - "start": { - "line": 9, - "column": 1122 - }, - "end": { - "line": 9, - "column": 1137 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1391, - "end": 1401, - "loc": { - "start": { - "line": 9, - "column": 1122 - }, - "end": { - "line": 9, - "column": 1132 - } - }, - "object": { - "type": "Identifier", - "start": 1391, - "end": 1392, - "loc": { - "start": { - "line": 9, - "column": 1122 - }, - "end": { - "line": 9, - "column": 1123 - }, - "identifierName": "s" - }, - "name": "s" - }, - "property": { - "type": "Identifier", - "start": 1393, - "end": 1401, - "loc": { - "start": { - "line": 9, - "column": 1124 - }, - "end": { - "line": 9, - "column": 1132 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1402, - "end": 1405, - "loc": { - "start": { - "line": 9, - "column": 1133 - }, - "end": { - "line": 9, - "column": 1136 - } - }, - "extra": { - "rawValue": "\u001b", - "raw": "\"\u001b\"" - }, - "value": "\u001b" - } - ] - } - } - ], - "kind": "var" - }, - { - "type": "ExpressionStatement", - "start": 1407, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1390 - } - }, - "expression": { - "type": "SequenceExpression", - "start": 1407, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1390 - } - }, - "expressions": [ - { - "type": "LogicalExpression", - "start": 1407, - "end": 1425, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1156 - } - }, - "left": { - "type": "Identifier", - "start": 1407, - "end": 1408, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1139 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "||", - "right": { - "type": "AssignmentExpression", - "start": 1411, - "end": 1424, - "loc": { - "start": { - "line": 9, - "column": 1142 - }, - "end": { - "line": 9, - "column": 1155 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 1411, - "end": 1412, - "loc": { - "start": { - "line": 9, - "column": 1142 - }, - "end": { - "line": 9, - "column": 1143 - }, - "identifierName": "s" - }, - "name": "s" - }, - "right": { - "type": "BinaryExpression", - "start": 1413, - "end": 1424, - "loc": { - "start": { - "line": 9, - "column": 1144 - }, - "end": { - "line": 9, - "column": 1155 - } - }, - "left": { - "type": "StringLiteral", - "start": 1413, - "end": 1422, - "loc": { - "start": { - "line": 9, - "column": 1144 - }, - "end": { - "line": 9, - "column": 1153 - } - }, - "extra": { - "rawValue": "color: ", - "raw": "\"color: \"" - }, - "value": "color: " - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1423, - "end": 1424, - "loc": { - "start": { - "line": 9, - "column": 1154 - }, - "end": { - "line": 9, - "column": 1155 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "extra": { - "parenthesized": true, - "parenStart": 1410 - } - } - }, - { - "type": "ConditionalExpression", - "start": 1426, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1157 - }, - "end": { - "line": 9, - "column": 1390 - } - }, - "test": { - "type": "LogicalExpression", - "start": 1426, - "end": 1447, - "loc": { - "start": { - "line": 9, - "column": 1157 - }, - "end": { - "line": 9, - "column": 1178 - } - }, - "left": { - "type": "UnaryExpression", - "start": 1426, - "end": 1444, - "loc": { - "start": { - "line": 9, - "column": 1157 - }, - "end": { - "line": 9, - "column": 1175 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 1427, - "end": 1444, - "loc": { - "start": { - "line": 9, - "column": 1158 - }, - "end": { - "line": 9, - "column": 1175 - } - }, - "object": { - "type": "Identifier", - "start": 1427, - "end": 1437, - "loc": { - "start": { - "line": 9, - "column": 1158 - }, - "end": { - "line": 9, - "column": 1168 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 1438, - "end": 1444, - "loc": { - "start": { - "line": 9, - "column": 1169 - }, - "end": { - "line": 9, - "column": 1175 - }, - "identifierName": "window" - }, - "name": "window" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 1446, - "end": 1447, - "loc": { - "start": { - "line": 9, - "column": 1177 - }, - "end": { - "line": 9, - "column": 1178 - }, - "identifierName": "r" - }, - "name": "r" - } - }, - "consequent": { - "type": "CallExpression", - "start": 1448, - "end": 1556, - "loc": { - "start": { - "line": 9, - "column": 1179 - }, - "end": { - "line": 9, - "column": 1287 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1448, - "end": 1458, - "loc": { - "start": { - "line": 9, - "column": 1179 - }, - "end": { - "line": 9, - "column": 1189 - } - }, - "object": { - "type": "Identifier", - "start": 1448, - "end": 1455, - "loc": { - "start": { - "line": 9, - "column": 1179 - }, - "end": { - "line": 9, - "column": 1186 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1456, - "end": 1457, - "loc": { - "start": { - "line": 9, - "column": 1187 - }, - "end": { - "line": 9, - "column": 1188 - }, - "identifierName": "t" - }, - "name": "t" - }, - "computed": true - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1459, - "end": 1550, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1281 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1459, - "end": 1539, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1270 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1459, - "end": 1535, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1266 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1459, - "end": 1462, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1193 - } - }, - "left": { - "type": "Identifier", - "start": 1459, - "end": 1460, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1191 - }, - "identifierName": "s" - }, - "name": "s" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1461, - "end": 1462, - "loc": { - "start": { - "line": 9, - "column": 1192 - }, - "end": { - "line": 9, - "column": 1193 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 1463, - "end": 1535, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1266 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1463, - "end": 1485, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1216 - } - }, - "object": { - "type": "MemberExpression", - "start": 1463, - "end": 1478, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1209 - } - }, - "object": { - "type": "ThisExpression", - "start": 1463, - "end": 1467, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1198 - } - } - }, - "property": { - "type": "Identifier", - "start": 1468, - "end": 1478, - "loc": { - "start": { - "line": 9, - "column": 1199 - }, - "end": { - "line": 9, - "column": 1209 - }, - "identifierName": "SPACE_CHAR" - }, - "name": "SPACE_CHAR" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1479, - "end": 1485, - "loc": { - "start": { - "line": 9, - "column": 1210 - }, - "end": { - "line": 9, - "column": 1216 - }, - "identifierName": "repeat" - }, - "name": "repeat" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1486, - "end": 1534, - "loc": { - "start": { - "line": 9, - "column": 1217 - }, - "end": { - "line": 9, - "column": 1265 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1486, - "end": 1494, - "loc": { - "start": { - "line": 9, - "column": 1217 - }, - "end": { - "line": 9, - "column": 1225 - } - }, - "object": { - "type": "Identifier", - "start": 1486, - "end": 1490, - "loc": { - "start": { - "line": 9, - "column": 1217 - }, - "end": { - "line": 9, - "column": 1221 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1491, - "end": 1494, - "loc": { - "start": { - "line": 9, - "column": 1222 - }, - "end": { - "line": 9, - "column": 1225 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1495, - "end": 1527, - "loc": { - "start": { - "line": 9, - "column": 1226 - }, - "end": { - "line": 9, - "column": 1258 - } - }, - "left": { - "type": "MemberExpression", - "start": 1495, - "end": 1518, - "loc": { - "start": { - "line": 9, - "column": 1226 - }, - "end": { - "line": 9, - "column": 1249 - } - }, - "object": { - "type": "ThisExpression", - "start": 1495, - "end": 1499, - "loc": { - "start": { - "line": 9, - "column": 1226 - }, - "end": { - "line": 9, - "column": 1230 - } - } - }, - "property": { - "type": "Identifier", - "start": 1500, - "end": 1518, - "loc": { - "start": { - "line": 9, - "column": 1231 - }, - "end": { - "line": 9, - "column": 1249 - }, - "identifierName": "TYPE_SPACER_LENGTH" - }, - "name": "TYPE_SPACER_LENGTH" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 1519, - "end": 1527, - "loc": { - "start": { - "line": 9, - "column": 1250 - }, - "end": { - "line": 9, - "column": 1258 - } - }, - "object": { - "type": "Identifier", - "start": 1519, - "end": 1520, - "loc": { - "start": { - "line": 9, - "column": 1250 - }, - "end": { - "line": 9, - "column": 1251 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1521, - "end": 1527, - "loc": { - "start": { - "line": 9, - "column": 1252 - }, - "end": { - "line": 9, - "column": 1258 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - { - "type": "ConditionalExpression", - "start": 1528, - "end": 1533, - "loc": { - "start": { - "line": 9, - "column": 1259 - }, - "end": { - "line": 9, - "column": 1264 - } - }, - "test": { - "type": "Identifier", - "start": 1528, - "end": 1529, - "loc": { - "start": { - "line": 9, - "column": 1259 - }, - "end": { - "line": 9, - "column": 1260 - }, - "identifierName": "h" - }, - "name": "h" - }, - "consequent": { - "type": "NumericLiteral", - "start": 1530, - "end": 1531, - "loc": { - "start": { - "line": 9, - "column": 1261 - }, - "end": { - "line": 9, - "column": 1262 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "alternate": { - "type": "NumericLiteral", - "start": 1532, - "end": 1533, - "loc": { - "start": { - "line": 9, - "column": 1263 - }, - "end": { - "line": 9, - "column": 1264 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ] - } - ] - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 1536, - "end": 1539, - "loc": { - "start": { - "line": 9, - "column": 1267 - }, - "end": { - "line": 9, - "column": 1270 - } - }, - "extra": { - "rawValue": "|", - "raw": "\"|\"" - }, - "value": "|" - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 1540, - "end": 1550, - "loc": { - "start": { - "line": 9, - "column": 1271 - }, - "end": { - "line": 9, - "column": 1281 - } - }, - "object": { - "type": "ThisExpression", - "start": 1540, - "end": 1544, - "loc": { - "start": { - "line": 9, - "column": 1271 - }, - "end": { - "line": 9, - "column": 1275 - } - } - }, - "property": { - "type": "Identifier", - "start": 1545, - "end": 1550, - "loc": { - "start": { - "line": 9, - "column": 1276 - }, - "end": { - "line": 9, - "column": 1281 - }, - "identifierName": "RESET" - }, - "name": "RESET" - }, - "computed": false - } - }, - { - "type": "SpreadElement", - "start": 1551, - "end": 1555, - "loc": { - "start": { - "line": 9, - "column": 1282 - }, - "end": { - "line": 9, - "column": 1286 - } - }, - "argument": { - "type": "Identifier", - "start": 1554, - "end": 1555, - "loc": { - "start": { - "line": 9, - "column": 1285 - }, - "end": { - "line": 9, - "column": 1286 - }, - "identifierName": "e" - }, - "name": "e" - } - } - ] - }, - "alternate": { - "type": "CallExpression", - "start": 1557, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1288 - }, - "end": { - "line": 9, - "column": 1390 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1557, - "end": 1567, - "loc": { - "start": { - "line": 9, - "column": 1288 - }, - "end": { - "line": 9, - "column": 1298 - } - }, - "object": { - "type": "Identifier", - "start": 1557, - "end": 1564, - "loc": { - "start": { - "line": 9, - "column": 1288 - }, - "end": { - "line": 9, - "column": 1295 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1565, - "end": 1566, - "loc": { - "start": { - "line": 9, - "column": 1296 - }, - "end": { - "line": 9, - "column": 1297 - }, - "identifierName": "t" - }, - "name": "t" - }, - "computed": true - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1568, - "end": 1651, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1382 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1568, - "end": 1647, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1378 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1568, - "end": 1574, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1305 - } - }, - "left": { - "type": "StringLiteral", - "start": 1568, - "end": 1572, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1303 - } - }, - "extra": { - "rawValue": "%c", - "raw": "\"%c\"" - }, - "value": "%c" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1573, - "end": 1574, - "loc": { - "start": { - "line": 9, - "column": 1304 - }, - "end": { - "line": 9, - "column": 1305 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 1575, - "end": 1647, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1378 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1575, - "end": 1597, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1328 - } - }, - "object": { - "type": "MemberExpression", - "start": 1575, - "end": 1590, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1321 - } - }, - "object": { - "type": "ThisExpression", - "start": 1575, - "end": 1579, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1310 - } - } - }, - "property": { - "type": "Identifier", - "start": 1580, - "end": 1590, - "loc": { - "start": { - "line": 9, - "column": 1311 - }, - "end": { - "line": 9, - "column": 1321 - }, - "identifierName": "SPACE_CHAR" - }, - "name": "SPACE_CHAR" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1591, - "end": 1597, - "loc": { - "start": { - "line": 9, - "column": 1322 - }, - "end": { - "line": 9, - "column": 1328 - }, - "identifierName": "repeat" - }, - "name": "repeat" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1598, - "end": 1646, - "loc": { - "start": { - "line": 9, - "column": 1329 - }, - "end": { - "line": 9, - "column": 1377 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1598, - "end": 1606, - "loc": { - "start": { - "line": 9, - "column": 1329 - }, - "end": { - "line": 9, - "column": 1337 - } - }, - "object": { - "type": "Identifier", - "start": 1598, - "end": 1602, - "loc": { - "start": { - "line": 9, - "column": 1329 - }, - "end": { - "line": 9, - "column": 1333 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1603, - "end": 1606, - "loc": { - "start": { - "line": 9, - "column": 1334 - }, - "end": { - "line": 9, - "column": 1337 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1607, - "end": 1639, - "loc": { - "start": { - "line": 9, - "column": 1338 - }, - "end": { - "line": 9, - "column": 1370 - } - }, - "left": { - "type": "MemberExpression", - "start": 1607, - "end": 1630, - "loc": { - "start": { - "line": 9, - "column": 1338 - }, - "end": { - "line": 9, - "column": 1361 - } - }, - "object": { - "type": "ThisExpression", - "start": 1607, - "end": 1611, - "loc": { - "start": { - "line": 9, - "column": 1338 - }, - "end": { - "line": 9, - "column": 1342 - } - } - }, - "property": { - "type": "Identifier", - "start": 1612, - "end": 1630, - "loc": { - "start": { - "line": 9, - "column": 1343 - }, - "end": { - "line": 9, - "column": 1361 - }, - "identifierName": "TYPE_SPACER_LENGTH" - }, - "name": "TYPE_SPACER_LENGTH" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 1631, - "end": 1639, - "loc": { - "start": { - "line": 9, - "column": 1362 - }, - "end": { - "line": 9, - "column": 1370 - } - }, - "object": { - "type": "Identifier", - "start": 1631, - "end": 1632, - "loc": { - "start": { - "line": 9, - "column": 1362 - }, - "end": { - "line": 9, - "column": 1363 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1633, - "end": 1639, - "loc": { - "start": { - "line": 9, - "column": 1364 - }, - "end": { - "line": 9, - "column": 1370 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - { - "type": "ConditionalExpression", - "start": 1640, - "end": 1645, - "loc": { - "start": { - "line": 9, - "column": 1371 - }, - "end": { - "line": 9, - "column": 1376 - } - }, - "test": { - "type": "Identifier", - "start": 1640, - "end": 1641, - "loc": { - "start": { - "line": 9, - "column": 1371 - }, - "end": { - "line": 9, - "column": 1372 - }, - "identifierName": "h" - }, - "name": "h" - }, - "consequent": { - "type": "NumericLiteral", - "start": 1642, - "end": 1643, - "loc": { - "start": { - "line": 9, - "column": 1373 - }, - "end": { - "line": 9, - "column": 1374 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "alternate": { - "type": "NumericLiteral", - "start": 1644, - "end": 1645, - "loc": { - "start": { - "line": 9, - "column": 1375 - }, - "end": { - "line": 9, - "column": 1376 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ] - } - ] - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 1648, - "end": 1651, - "loc": { - "start": { - "line": 9, - "column": 1379 - }, - "end": { - "line": 9, - "column": 1382 - } - }, - "extra": { - "rawValue": "|", - "raw": "\"|\"" - }, - "value": "|" - } - }, - { - "type": "Identifier", - "start": 1652, - "end": 1653, - "loc": { - "start": { - "line": 9, - "column": 1383 - }, - "end": { - "line": 9, - "column": 1384 - }, - "identifierName": "s" - }, - "name": "s" - }, - { - "type": "SpreadElement", - "start": 1654, - "end": 1658, - "loc": { - "start": { - "line": 9, - "column": 1385 - }, - "end": { - "line": 9, - "column": 1389 - } - }, - "argument": { - "type": "Identifier", - "start": 1657, - "end": 1658, - "loc": { - "start": { - "line": 9, - "column": 1388 - }, - "end": { - "line": 9, - "column": 1389 - }, - "identifierName": "e" - }, - "name": "e" - } - } - ] - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 1660, - "end": 1679, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1410 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1660, - "end": 1679, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1410 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1660, - "end": 1676, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1407 - } - }, - "object": { - "type": "ThisExpression", - "start": 1660, - "end": 1664, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1395 - } - } - }, - "property": { - "type": "Identifier", - "start": 1665, - "end": 1676, - "loc": { - "start": { - "line": 9, - "column": 1396 - }, - "end": { - "line": 9, - "column": 1407 - }, - "identifierName": "currentType" - }, - "name": "currentType" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 1677, - "end": 1679, - "loc": { - "start": { - "line": 9, - "column": 1408 - }, - "end": { - "line": 9, - "column": 1410 - } - }, - "extra": { - "rawValue": "", - "raw": "\"\"" - }, - "value": "" - } - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1680, - "end": 1715, - "loc": { - "start": { - "line": 9, - "column": 1411 - }, - "end": { - "line": 9, - "column": 1446 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1680, - "end": 1683, - "loc": { - "start": { - "line": 9, - "column": 1411 - }, - "end": { - "line": 9, - "column": 1414 - }, - "identifierName": "log" - }, - "name": "log" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1684, - "end": 1688, - "loc": { - "start": { - "line": 9, - "column": 1415 - }, - "end": { - "line": 9, - "column": 1419 - } - }, - "argument": { - "type": "Identifier", - "start": 1687, - "end": 1688, - "loc": { - "start": { - "line": 9, - "column": 1418 - }, - "end": { - "line": 9, - "column": 1419 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1689, - "end": 1715, - "loc": { - "start": { - "line": 9, - "column": 1420 - }, - "end": { - "line": 9, - "column": 1446 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1690, - "end": 1714, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1445 - } - }, - "expression": { - "type": "CallExpression", - "start": 1690, - "end": 1714, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1445 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1690, - "end": 1702, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1433 - } - }, - "object": { - "type": "ThisExpression", - "start": 1690, - "end": 1694, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1425 - } - } - }, - "property": { - "type": "Identifier", - "start": 1695, - "end": 1702, - "loc": { - "start": { - "line": 9, - "column": 1426 - }, - "end": { - "line": 9, - "column": 1433 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1703, - "end": 1708, - "loc": { - "start": { - "line": 9, - "column": 1434 - }, - "end": { - "line": 9, - "column": 1439 - } - }, - "extra": { - "rawValue": "log", - "raw": "\"log\"" - }, - "value": "log" - }, - { - "type": "SpreadElement", - "start": 1709, - "end": 1713, - "loc": { - "start": { - "line": 9, - "column": 1440 - }, - "end": { - "line": 9, - "column": 1444 - } - }, - "argument": { - "type": "Identifier", - "start": 1712, - "end": 1713, - "loc": { - "start": { - "line": 9, - "column": 1443 - }, - "end": { - "line": 9, - "column": 1444 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1715, - "end": 1752, - "loc": { - "start": { - "line": 9, - "column": 1446 - }, - "end": { - "line": 9, - "column": 1483 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1715, - "end": 1719, - "loc": { - "start": { - "line": 9, - "column": 1446 - }, - "end": { - "line": 9, - "column": 1450 - }, - "identifierName": "info" - }, - "name": "info" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1720, - "end": 1724, - "loc": { - "start": { - "line": 9, - "column": 1451 - }, - "end": { - "line": 9, - "column": 1455 - } - }, - "argument": { - "type": "Identifier", - "start": 1723, - "end": 1724, - "loc": { - "start": { - "line": 9, - "column": 1454 - }, - "end": { - "line": 9, - "column": 1455 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1725, - "end": 1752, - "loc": { - "start": { - "line": 9, - "column": 1456 - }, - "end": { - "line": 9, - "column": 1483 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1726, - "end": 1751, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1482 - } - }, - "expression": { - "type": "CallExpression", - "start": 1726, - "end": 1751, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1482 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1726, - "end": 1738, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1469 - } - }, - "object": { - "type": "ThisExpression", - "start": 1726, - "end": 1730, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1461 - } - } - }, - "property": { - "type": "Identifier", - "start": 1731, - "end": 1738, - "loc": { - "start": { - "line": 9, - "column": 1462 - }, - "end": { - "line": 9, - "column": 1469 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1739, - "end": 1745, - "loc": { - "start": { - "line": 9, - "column": 1470 - }, - "end": { - "line": 9, - "column": 1476 - } - }, - "extra": { - "rawValue": "info", - "raw": "\"info\"" - }, - "value": "info" - }, - { - "type": "SpreadElement", - "start": 1746, - "end": 1750, - "loc": { - "start": { - "line": 9, - "column": 1477 - }, - "end": { - "line": 9, - "column": 1481 - } - }, - "argument": { - "type": "Identifier", - "start": 1749, - "end": 1750, - "loc": { - "start": { - "line": 9, - "column": 1480 - }, - "end": { - "line": 9, - "column": 1481 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1752, - "end": 1791, - "loc": { - "start": { - "line": 9, - "column": 1483 - }, - "end": { - "line": 9, - "column": 1522 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1752, - "end": 1757, - "loc": { - "start": { - "line": 9, - "column": 1483 - }, - "end": { - "line": 9, - "column": 1488 - }, - "identifierName": "error" - }, - "name": "error" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1758, - "end": 1762, - "loc": { - "start": { - "line": 9, - "column": 1489 - }, - "end": { - "line": 9, - "column": 1493 - } - }, - "argument": { - "type": "Identifier", - "start": 1761, - "end": 1762, - "loc": { - "start": { - "line": 9, - "column": 1492 - }, - "end": { - "line": 9, - "column": 1493 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1763, - "end": 1791, - "loc": { - "start": { - "line": 9, - "column": 1494 - }, - "end": { - "line": 9, - "column": 1522 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1764, - "end": 1790, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1521 - } - }, - "expression": { - "type": "CallExpression", - "start": 1764, - "end": 1790, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1521 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1764, - "end": 1776, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1507 - } - }, - "object": { - "type": "ThisExpression", - "start": 1764, - "end": 1768, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1499 - } - } - }, - "property": { - "type": "Identifier", - "start": 1769, - "end": 1776, - "loc": { - "start": { - "line": 9, - "column": 1500 - }, - "end": { - "line": 9, - "column": 1507 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1777, - "end": 1784, - "loc": { - "start": { - "line": 9, - "column": 1508 - }, - "end": { - "line": 9, - "column": 1515 - } - }, - "extra": { - "rawValue": "error", - "raw": "\"error\"" - }, - "value": "error" - }, - { - "type": "SpreadElement", - "start": 1785, - "end": 1789, - "loc": { - "start": { - "line": 9, - "column": 1516 - }, - "end": { - "line": 9, - "column": 1520 - } - }, - "argument": { - "type": "Identifier", - "start": 1788, - "end": 1789, - "loc": { - "start": { - "line": 9, - "column": 1519 - }, - "end": { - "line": 9, - "column": 1520 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1791, - "end": 1828, - "loc": { - "start": { - "line": 9, - "column": 1522 - }, - "end": { - "line": 9, - "column": 1559 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1791, - "end": 1795, - "loc": { - "start": { - "line": 9, - "column": 1522 - }, - "end": { - "line": 9, - "column": 1526 - }, - "identifierName": "warn" - }, - "name": "warn" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1796, - "end": 1800, - "loc": { - "start": { - "line": 9, - "column": 1527 - }, - "end": { - "line": 9, - "column": 1531 - } - }, - "argument": { - "type": "Identifier", - "start": 1799, - "end": 1800, - "loc": { - "start": { - "line": 9, - "column": 1530 - }, - "end": { - "line": 9, - "column": 1531 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1801, - "end": 1828, - "loc": { - "start": { - "line": 9, - "column": 1532 - }, - "end": { - "line": 9, - "column": 1559 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1802, - "end": 1827, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1558 - } - }, - "expression": { - "type": "CallExpression", - "start": 1802, - "end": 1827, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1558 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1802, - "end": 1814, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1545 - } - }, - "object": { - "type": "ThisExpression", - "start": 1802, - "end": 1806, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1537 - } - } - }, - "property": { - "type": "Identifier", - "start": 1807, - "end": 1814, - "loc": { - "start": { - "line": 9, - "column": 1538 - }, - "end": { - "line": 9, - "column": 1545 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1815, - "end": 1821, - "loc": { - "start": { - "line": 9, - "column": 1546 - }, - "end": { - "line": 9, - "column": 1552 - } - }, - "extra": { - "rawValue": "warn", - "raw": "\"warn\"" - }, - "value": "warn" - }, - { - "type": "SpreadElement", - "start": 1822, - "end": 1826, - "loc": { - "start": { - "line": 9, - "column": 1553 - }, - "end": { - "line": 9, - "column": 1557 - } - }, - "argument": { - "type": "Identifier", - "start": 1825, - "end": 1826, - "loc": { - "start": { - "line": 9, - "column": 1556 - }, - "end": { - "line": 9, - "column": 1557 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1828, - "end": 1862, - "loc": { - "start": { - "line": 9, - "column": 1559 - }, - "end": { - "line": 9, - "column": 1593 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1828, - "end": 1834, - "loc": { - "start": { - "line": 9, - "column": 1559 - }, - "end": { - "line": 9, - "column": 1565 - }, - "identifierName": "assert" - }, - "name": "assert" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1835, - "end": 1839, - "loc": { - "start": { - "line": 9, - "column": 1566 - }, - "end": { - "line": 9, - "column": 1570 - } - }, - "argument": { - "type": "Identifier", - "start": 1838, - "end": 1839, - "loc": { - "start": { - "line": 9, - "column": 1569 - }, - "end": { - "line": 9, - "column": 1570 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1840, - "end": 1862, - "loc": { - "start": { - "line": 9, - "column": 1571 - }, - "end": { - "line": 9, - "column": 1593 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1841, - "end": 1861, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1592 - } - }, - "expression": { - "type": "CallExpression", - "start": 1841, - "end": 1861, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1592 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1841, - "end": 1855, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1586 - } - }, - "object": { - "type": "Identifier", - "start": 1841, - "end": 1848, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1579 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1849, - "end": 1855, - "loc": { - "start": { - "line": 9, - "column": 1580 - }, - "end": { - "line": 9, - "column": 1586 - }, - "identifierName": "assert" - }, - "name": "assert" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 1856, - "end": 1860, - "loc": { - "start": { - "line": 9, - "column": 1587 - }, - "end": { - "line": 9, - "column": 1591 - } - }, - "argument": { - "type": "Identifier", - "start": 1859, - "end": 1860, - "loc": { - "start": { - "line": 9, - "column": 1590 - }, - "end": { - "line": 9, - "column": 1591 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1862, - "end": 1901, - "loc": { - "start": { - "line": 9, - "column": 1593 - }, - "end": { - "line": 9, - "column": 1632 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 9, - "column": 1593 - }, - "end": { - "line": 9, - "column": 1598 - }, - "identifierName": "debug" - }, - "name": "debug" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1868, - "end": 1872, - "loc": { - "start": { - "line": 9, - "column": 1599 - }, - "end": { - "line": 9, - "column": 1603 - } - }, - "argument": { - "type": "Identifier", - "start": 1871, - "end": 1872, - "loc": { - "start": { - "line": 9, - "column": 1602 - }, - "end": { - "line": 9, - "column": 1603 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1873, - "end": 1901, - "loc": { - "start": { - "line": 9, - "column": 1604 - }, - "end": { - "line": 9, - "column": 1632 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1874, - "end": 1900, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1631 - } - }, - "expression": { - "type": "CallExpression", - "start": 1874, - "end": 1900, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1631 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1874, - "end": 1886, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1617 - } - }, - "object": { - "type": "ThisExpression", - "start": 1874, - "end": 1878, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1609 - } - } - }, - "property": { - "type": "Identifier", - "start": 1879, - "end": 1886, - "loc": { - "start": { - "line": 9, - "column": 1610 - }, - "end": { - "line": 9, - "column": 1617 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1887, - "end": 1894, - "loc": { - "start": { - "line": 9, - "column": 1618 - }, - "end": { - "line": 9, - "column": 1625 - } - }, - "extra": { - "rawValue": "debug", - "raw": "\"debug\"" - }, - "value": "debug" - }, - { - "type": "SpreadElement", - "start": 1895, - "end": 1899, - "loc": { - "start": { - "line": 9, - "column": 1626 - }, - "end": { - "line": 9, - "column": 1630 - } - }, - "argument": { - "type": "Identifier", - "start": 1898, - "end": 1899, - "loc": { - "start": { - "line": 9, - "column": 1629 - }, - "end": { - "line": 9, - "column": 1630 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1901, - "end": 1927, - "loc": { - "start": { - "line": 9, - "column": 1632 - }, - "end": { - "line": 9, - "column": 1658 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1901, - "end": 1906, - "loc": { - "start": { - "line": 9, - "column": 1632 - }, - "end": { - "line": 9, - "column": 1637 - }, - "identifierName": "count" - }, - "name": "count" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1907, - "end": 1908, - "loc": { - "start": { - "line": 9, - "column": 1638 - }, - "end": { - "line": 9, - "column": 1639 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 1909, - "end": 1927, - "loc": { - "start": { - "line": 9, - "column": 1640 - }, - "end": { - "line": 9, - "column": 1658 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1910, - "end": 1926, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1657 - } - }, - "expression": { - "type": "CallExpression", - "start": 1910, - "end": 1926, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1657 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1910, - "end": 1923, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1654 - } - }, - "object": { - "type": "Identifier", - "start": 1910, - "end": 1917, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1648 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1918, - "end": 1923, - "loc": { - "start": { - "line": 9, - "column": 1649 - }, - "end": { - "line": 9, - "column": 1654 - }, - "identifierName": "count" - }, - "name": "count" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1924, - "end": 1925, - "loc": { - "start": { - "line": 9, - "column": 1655 - }, - "end": { - "line": 9, - "column": 1656 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1927, - "end": 1963, - "loc": { - "start": { - "line": 9, - "column": 1658 - }, - "end": { - "line": 9, - "column": 1694 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1927, - "end": 1937, - "loc": { - "start": { - "line": 9, - "column": 1658 - }, - "end": { - "line": 9, - "column": 1668 - }, - "identifierName": "countReset" - }, - "name": "countReset" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1938, - "end": 1939, - "loc": { - "start": { - "line": 9, - "column": 1669 - }, - "end": { - "line": 9, - "column": 1670 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 1940, - "end": 1963, - "loc": { - "start": { - "line": 9, - "column": 1671 - }, - "end": { - "line": 9, - "column": 1694 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1941, - "end": 1962, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1693 - } - }, - "expression": { - "type": "CallExpression", - "start": 1941, - "end": 1962, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1693 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1941, - "end": 1959, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1690 - } - }, - "object": { - "type": "Identifier", - "start": 1941, - "end": 1948, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1679 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1949, - "end": 1959, - "loc": { - "start": { - "line": 9, - "column": 1680 - }, - "end": { - "line": 9, - "column": 1690 - }, - "identifierName": "countReset" - }, - "name": "countReset" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1960, - "end": 1961, - "loc": { - "start": { - "line": 9, - "column": 1691 - }, - "end": { - "line": 9, - "column": 1692 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1963, - "end": 1993, - "loc": { - "start": { - "line": 9, - "column": 1694 - }, - "end": { - "line": 9, - "column": 1724 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1963, - "end": 1968, - "loc": { - "start": { - "line": 9, - "column": 1694 - }, - "end": { - "line": 9, - "column": 1699 - }, - "identifierName": "table" - }, - "name": "table" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1969, - "end": 1970, - "loc": { - "start": { - "line": 9, - "column": 1700 - }, - "end": { - "line": 9, - "column": 1701 - }, - "identifierName": "s" - }, - "name": "s" - }, - { - "type": "Identifier", - "start": 1971, - "end": 1972, - "loc": { - "start": { - "line": 9, - "column": 1702 - }, - "end": { - "line": 9, - "column": 1703 - }, - "identifierName": "t" - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 1973, - "end": 1993, - "loc": { - "start": { - "line": 9, - "column": 1704 - }, - "end": { - "line": 9, - "column": 1724 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1974, - "end": 1992, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1723 - } - }, - "expression": { - "type": "CallExpression", - "start": 1974, - "end": 1992, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1723 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1974, - "end": 1987, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1718 - } - }, - "object": { - "type": "Identifier", - "start": 1974, - "end": 1981, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1712 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1982, - "end": 1987, - "loc": { - "start": { - "line": 9, - "column": 1713 - }, - "end": { - "line": 9, - "column": 1718 - }, - "identifierName": "table" - }, - "name": "table" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1988, - "end": 1989, - "loc": { - "start": { - "line": 9, - "column": 1719 - }, - "end": { - "line": 9, - "column": 1720 - }, - "identifierName": "s" - }, - "name": "s" - }, - { - "type": "Identifier", - "start": 1990, - "end": 1991, - "loc": { - "start": { - "line": 9, - "column": 1721 - }, - "end": { - "line": 9, - "column": 1722 - }, - "identifierName": "t" - }, - "name": "t" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1993, - "end": 2024, - "loc": { - "start": { - "line": 9, - "column": 1724 - }, - "end": { - "line": 9, - "column": 1755 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1993, - "end": 1997, - "loc": { - "start": { - "line": 9, - "column": 1724 - }, - "end": { - "line": 9, - "column": 1728 - }, - "identifierName": "time" - }, - "name": "time" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1998, - "end": 1999, - "loc": { - "start": { - "line": 9, - "column": 1729 - }, - "end": { - "line": 9, - "column": 1730 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2000, - "end": 2024, - "loc": { - "start": { - "line": 9, - "column": 1731 - }, - "end": { - "line": 9, - "column": 1755 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2001, - "end": 2023, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1754 - } - }, - "expression": { - "type": "CallExpression", - "start": 2001, - "end": 2023, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1754 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2001, - "end": 2013, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1744 - } - }, - "object": { - "type": "ThisExpression", - "start": 2001, - "end": 2005, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1736 - } - } - }, - "property": { - "type": "Identifier", - "start": 2006, - "end": 2013, - "loc": { - "start": { - "line": 9, - "column": 1737 - }, - "end": { - "line": 9, - "column": 1744 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2014, - "end": 2020, - "loc": { - "start": { - "line": 9, - "column": 1745 - }, - "end": { - "line": 9, - "column": 1751 - } - }, - "extra": { - "rawValue": "time", - "raw": "\"time\"" - }, - "value": "time" - }, - { - "type": "Identifier", - "start": 2021, - "end": 2022, - "loc": { - "start": { - "line": 9, - "column": 1752 - }, - "end": { - "line": 9, - "column": 1753 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2024, - "end": 2061, - "loc": { - "start": { - "line": 9, - "column": 1755 - }, - "end": { - "line": 9, - "column": 1792 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2024, - "end": 2031, - "loc": { - "start": { - "line": 9, - "column": 1755 - }, - "end": { - "line": 9, - "column": 1762 - }, - "identifierName": "timeLog" - }, - "name": "timeLog" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2032, - "end": 2033, - "loc": { - "start": { - "line": 9, - "column": 1763 - }, - "end": { - "line": 9, - "column": 1764 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2034, - "end": 2061, - "loc": { - "start": { - "line": 9, - "column": 1765 - }, - "end": { - "line": 9, - "column": 1792 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2035, - "end": 2060, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1791 - } - }, - "expression": { - "type": "CallExpression", - "start": 2035, - "end": 2060, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1791 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2035, - "end": 2047, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1778 - } - }, - "object": { - "type": "ThisExpression", - "start": 2035, - "end": 2039, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1770 - } - } - }, - "property": { - "type": "Identifier", - "start": 2040, - "end": 2047, - "loc": { - "start": { - "line": 9, - "column": 1771 - }, - "end": { - "line": 9, - "column": 1778 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2048, - "end": 2057, - "loc": { - "start": { - "line": 9, - "column": 1779 - }, - "end": { - "line": 9, - "column": 1788 - } - }, - "extra": { - "rawValue": "timeLog", - "raw": "\"timeLog\"" - }, - "value": "timeLog" - }, - { - "type": "Identifier", - "start": 2058, - "end": 2059, - "loc": { - "start": { - "line": 9, - "column": 1789 - }, - "end": { - "line": 9, - "column": 1790 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2061, - "end": 2098, - "loc": { - "start": { - "line": 9, - "column": 1792 - }, - "end": { - "line": 9, - "column": 1829 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2061, - "end": 2068, - "loc": { - "start": { - "line": 9, - "column": 1792 - }, - "end": { - "line": 9, - "column": 1799 - }, - "identifierName": "timeEnd" - }, - "name": "timeEnd" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2069, - "end": 2070, - "loc": { - "start": { - "line": 9, - "column": 1800 - }, - "end": { - "line": 9, - "column": 1801 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2071, - "end": 2098, - "loc": { - "start": { - "line": 9, - "column": 1802 - }, - "end": { - "line": 9, - "column": 1829 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2072, - "end": 2097, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1828 - } - }, - "expression": { - "type": "CallExpression", - "start": 2072, - "end": 2097, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1828 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2072, - "end": 2084, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1815 - } - }, - "object": { - "type": "ThisExpression", - "start": 2072, - "end": 2076, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1807 - } - } - }, - "property": { - "type": "Identifier", - "start": 2077, - "end": 2084, - "loc": { - "start": { - "line": 9, - "column": 1808 - }, - "end": { - "line": 9, - "column": 1815 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2085, - "end": 2094, - "loc": { - "start": { - "line": 9, - "column": 1816 - }, - "end": { - "line": 9, - "column": 1825 - } - }, - "extra": { - "rawValue": "timeEnd", - "raw": "\"timeEnd\"" - }, - "value": "timeEnd" - }, - { - "type": "Identifier", - "start": 2095, - "end": 2096, - "loc": { - "start": { - "line": 9, - "column": 1826 - }, - "end": { - "line": 9, - "column": 1827 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2098, - "end": 2137, - "loc": { - "start": { - "line": 9, - "column": 1829 - }, - "end": { - "line": 9, - "column": 1868 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2098, - "end": 2103, - "loc": { - "start": { - "line": 9, - "column": 1829 - }, - "end": { - "line": 9, - "column": 1834 - }, - "identifierName": "trace" - }, - "name": "trace" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 2104, - "end": 2108, - "loc": { - "start": { - "line": 9, - "column": 1835 - }, - "end": { - "line": 9, - "column": 1839 - } - }, - "argument": { - "type": "Identifier", - "start": 2107, - "end": 2108, - "loc": { - "start": { - "line": 9, - "column": 1838 - }, - "end": { - "line": 9, - "column": 1839 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 2109, - "end": 2137, - "loc": { - "start": { - "line": 9, - "column": 1840 - }, - "end": { - "line": 9, - "column": 1868 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2110, - "end": 2136, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1867 - } - }, - "expression": { - "type": "CallExpression", - "start": 2110, - "end": 2136, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1867 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2110, - "end": 2122, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1853 - } - }, - "object": { - "type": "ThisExpression", - "start": 2110, - "end": 2114, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1845 - } - } - }, - "property": { - "type": "Identifier", - "start": 2115, - "end": 2122, - "loc": { - "start": { - "line": 9, - "column": 1846 - }, - "end": { - "line": 9, - "column": 1853 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2123, - "end": 2130, - "loc": { - "start": { - "line": 9, - "column": 1854 - }, - "end": { - "line": 9, - "column": 1861 - } - }, - "extra": { - "rawValue": "trace", - "raw": "\"trace\"" - }, - "value": "trace" - }, - { - "type": "SpreadElement", - "start": 2131, - "end": 2135, - "loc": { - "start": { - "line": 9, - "column": 1862 - }, - "end": { - "line": 9, - "column": 1866 - } - }, - "argument": { - "type": "Identifier", - "start": 2134, - "end": 2135, - "loc": { - "start": { - "line": 9, - "column": 1865 - }, - "end": { - "line": 9, - "column": 1866 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2137, - "end": 2170, - "loc": { - "start": { - "line": 9, - "column": 1868 - }, - "end": { - "line": 9, - "column": 1901 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2137, - "end": 2142, - "loc": { - "start": { - "line": 9, - "column": 1868 - }, - "end": { - "line": 9, - "column": 1873 - }, - "identifierName": "group" - }, - "name": "group" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2143, - "end": 2144, - "loc": { - "start": { - "line": 9, - "column": 1874 - }, - "end": { - "line": 9, - "column": 1875 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2145, - "end": 2170, - "loc": { - "start": { - "line": 9, - "column": 1876 - }, - "end": { - "line": 9, - "column": 1901 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2146, - "end": 2169, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1900 - } - }, - "expression": { - "type": "CallExpression", - "start": 2146, - "end": 2169, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1900 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2146, - "end": 2158, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1889 - } - }, - "object": { - "type": "ThisExpression", - "start": 2146, - "end": 2150, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1881 - } - } - }, - "property": { - "type": "Identifier", - "start": 2151, - "end": 2158, - "loc": { - "start": { - "line": 9, - "column": 1882 - }, - "end": { - "line": 9, - "column": 1889 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2159, - "end": 2166, - "loc": { - "start": { - "line": 9, - "column": 1890 - }, - "end": { - "line": 9, - "column": 1897 - } - }, - "extra": { - "rawValue": "group", - "raw": "\"group\"" - }, - "value": "group" - }, - { - "type": "Identifier", - "start": 2167, - "end": 2168, - "loc": { - "start": { - "line": 9, - "column": 1898 - }, - "end": { - "line": 9, - "column": 1899 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2170, - "end": 2214, - "loc": { - "start": { - "line": 9, - "column": 1901 - }, - "end": { - "line": 9, - "column": 1945 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2170, - "end": 2184, - "loc": { - "start": { - "line": 9, - "column": 1901 - }, - "end": { - "line": 9, - "column": 1915 - }, - "identifierName": "groupCollapsed" - }, - "name": "groupCollapsed" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2185, - "end": 2186, - "loc": { - "start": { - "line": 9, - "column": 1916 - }, - "end": { - "line": 9, - "column": 1917 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2187, - "end": 2214, - "loc": { - "start": { - "line": 9, - "column": 1918 - }, - "end": { - "line": 9, - "column": 1945 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2188, - "end": 2213, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1944 - } - }, - "expression": { - "type": "CallExpression", - "start": 2188, - "end": 2213, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1944 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2188, - "end": 2210, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1941 - } - }, - "object": { - "type": "Identifier", - "start": 2188, - "end": 2195, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1926 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 2196, - "end": 2210, - "loc": { - "start": { - "line": 9, - "column": 1927 - }, - "end": { - "line": 9, - "column": 1941 - }, - "identifierName": "groupCollapsed" - }, - "name": "groupCollapsed" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2211, - "end": 2212, - "loc": { - "start": { - "line": 9, - "column": 1942 - }, - "end": { - "line": 9, - "column": 1943 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2214, - "end": 2244, - "loc": { - "start": { - "line": 9, - "column": 1945 - }, - "end": { - "line": 9, - "column": 1975 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2214, - "end": 2222, - "loc": { - "start": { - "line": 9, - "column": 1945 - }, - "end": { - "line": 9, - "column": 1953 - }, - "identifierName": "groupEnd" - }, - "name": "groupEnd" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 2224, - "end": 2244, - "loc": { - "start": { - "line": 9, - "column": 1955 - }, - "end": { - "line": 9, - "column": 1975 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2225, - "end": 2243, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1974 - } - }, - "expression": { - "type": "CallExpression", - "start": 2225, - "end": 2243, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1974 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2225, - "end": 2241, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1972 - } - }, - "object": { - "type": "Identifier", - "start": 2225, - "end": 2232, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1963 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 2233, - "end": 2241, - "loc": { - "start": { - "line": 9, - "column": 1964 - }, - "end": { - "line": 9, - "column": 1972 - }, - "identifierName": "groupEnd" - }, - "name": "groupEnd" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2244, - "end": 2268, - "loc": { - "start": { - "line": 9, - "column": 1975 - }, - "end": { - "line": 9, - "column": 1999 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2244, - "end": 2249, - "loc": { - "start": { - "line": 9, - "column": 1975 - }, - "end": { - "line": 9, - "column": 1980 - }, - "identifierName": "clear" - }, - "name": "clear" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 2251, - "end": 2268, - "loc": { - "start": { - "line": 9, - "column": 1982 - }, - "end": { - "line": 9, - "column": 1999 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2252, - "end": 2267, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1998 - } - }, - "expression": { - "type": "CallExpression", - "start": 2252, - "end": 2267, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1998 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2252, - "end": 2265, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1996 - } - }, - "object": { - "type": "Identifier", - "start": 2252, - "end": 2259, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1990 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 2260, - "end": 2265, - "loc": { - "start": { - "line": 9, - "column": 1991 - }, - "end": { - "line": 9, - "column": 1996 - }, - "identifierName": "clear" - }, - "name": "clear" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2268, - "end": 2373, - "loc": { - "start": { - "line": 9, - "column": 1999 - }, - "end": { - "line": 9, - "column": 2104 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2268, - "end": 2280, - "loc": { - "start": { - "line": 9, - "column": 1999 - }, - "end": { - "line": 9, - "column": 2011 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2281, - "end": 2282, - "loc": { - "start": { - "line": 9, - "column": 2012 - }, - "end": { - "line": 9, - "column": 2013 - }, - "identifierName": "s" - }, - "name": "s" - }, - { - "type": "Identifier", - "start": 2283, - "end": 2284, - "loc": { - "start": { - "line": 9, - "column": 2014 - }, - "end": { - "line": 9, - "column": 2015 - }, - "identifierName": "t" - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 2285, - "end": 2373, - "loc": { - "start": { - "line": 9, - "column": 2016 - }, - "end": { - "line": 9, - "column": 2104 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2286, - "end": 2372, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2103 - } - }, - "expression": { - "type": "LogicalExpression", - "start": 2286, - "end": 2372, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2103 - } - }, - "left": { - "type": "MemberExpression", - "start": 2286, - "end": 2299, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2030 - } - }, - "object": { - "type": "MemberExpression", - "start": 2286, - "end": 2296, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2027 - } - }, - "object": { - "type": "ThisExpression", - "start": 2286, - "end": 2290, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2021 - } - } - }, - "property": { - "type": "Identifier", - "start": 2291, - "end": 2296, - "loc": { - "start": { - "line": 9, - "column": 2022 - }, - "end": { - "line": 9, - "column": 2027 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2297, - "end": 2298, - "loc": { - "start": { - "line": 9, - "column": 2028 - }, - "end": { - "line": 9, - "column": 2029 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "operator": "||", - "right": { - "type": "LogicalExpression", - "start": 2301, - "end": 2372, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2103 - } - }, - "left": { - "type": "LogicalExpression", - "start": 2301, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2070 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2301, - "end": 2319, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2050 - } - }, - "left": { - "type": "StringLiteral", - "start": 2301, - "end": 2309, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2040 - } - }, - "extra": { - "rawValue": "string", - "raw": "\"string\"" - }, - "value": "string" - }, - "operator": "==", - "right": { - "type": "UnaryExpression", - "start": 2311, - "end": 2319, - "loc": { - "start": { - "line": 9, - "column": 2042 - }, - "end": { - "line": 9, - "column": 2050 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2318, - "end": 2319, - "loc": { - "start": { - "line": 9, - "column": 2049 - }, - "end": { - "line": 9, - "column": 2050 - }, - "identifierName": "s" - }, - "name": "s" - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 2321, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2052 - }, - "end": { - "line": 9, - "column": 2070 - } - }, - "left": { - "type": "StringLiteral", - "start": 2321, - "end": 2329, - "loc": { - "start": { - "line": 9, - "column": 2052 - }, - "end": { - "line": 9, - "column": 2060 - } - }, - "extra": { - "rawValue": "string", - "raw": "\"string\"" - }, - "value": "string" - }, - "operator": "==", - "right": { - "type": "UnaryExpression", - "start": 2331, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2062 - }, - "end": { - "line": 9, - "column": 2070 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2338, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2069 - }, - "end": { - "line": 9, - "column": 2070 - }, - "identifierName": "t" - }, - "name": "t" - }, - "extra": { - "parenthesizedArgument": false - } - } - } - }, - "operator": "&&", - "right": { - "type": "AssignmentExpression", - "start": 2342, - "end": 2371, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2102 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 2342, - "end": 2369, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2100 - } - }, - "object": { - "type": "MemberExpression", - "start": 2342, - "end": 2352, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2083 - } - }, - "object": { - "type": "ThisExpression", - "start": 2342, - "end": 2346, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2077 - } - } - }, - "property": { - "type": "Identifier", - "start": 2347, - "end": 2352, - "loc": { - "start": { - "line": 9, - "column": 2078 - }, - "end": { - "line": 9, - "column": 2083 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "CallExpression", - "start": 2353, - "end": 2368, - "loc": { - "start": { - "line": 9, - "column": 2084 - }, - "end": { - "line": 9, - "column": 2099 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2353, - "end": 2366, - "loc": { - "start": { - "line": 9, - "column": 2084 - }, - "end": { - "line": 9, - "column": 2097 - } - }, - "object": { - "type": "Identifier", - "start": 2353, - "end": 2354, - "loc": { - "start": { - "line": 9, - "column": 2084 - }, - "end": { - "line": 9, - "column": 2085 - }, - "identifierName": "s" - }, - "name": "s" - }, - "property": { - "type": "Identifier", - "start": 2355, - "end": 2366, - "loc": { - "start": { - "line": 9, - "column": 2086 - }, - "end": { - "line": 9, - "column": 2097 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - }, - "computed": true - }, - "right": { - "type": "Identifier", - "start": 2370, - "end": 2371, - "loc": { - "start": { - "line": 9, - "column": 2101 - }, - "end": { - "line": 9, - "column": 2102 - }, - "identifierName": "t" - }, - "name": "t" - }, - "extra": { - "parenthesized": true, - "parenStart": 2341 - } - } - } - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2373, - "end": 2476, - "loc": { - "start": { - "line": 9, - "column": 2104 - }, - "end": { - "line": 9, - "column": 2207 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2373, - "end": 2386, - "loc": { - "start": { - "line": 9, - "column": 2104 - }, - "end": { - "line": 9, - "column": 2117 - }, - "identifierName": "registerTypes" - }, - "name": "registerTypes" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2387, - "end": 2388, - "loc": { - "start": { - "line": 9, - "column": 2118 - }, - "end": { - "line": 9, - "column": 2119 - }, - "identifierName": "t" - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 2389, - "end": 2476, - "loc": { - "start": { - "line": 9, - "column": 2120 - }, - "end": { - "line": 9, - "column": 2207 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2390, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2121 - }, - "end": { - "line": 9, - "column": 2206 - } - }, - "test": { - "type": "CallExpression", - "start": 2393, - "end": 2409, - "loc": { - "start": { - "line": 9, - "column": 2124 - }, - "end": { - "line": 9, - "column": 2140 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2393, - "end": 2406, - "loc": { - "start": { - "line": 9, - "column": 2124 - }, - "end": { - "line": 9, - "column": 2137 - } - }, - "object": { - "type": "Identifier", - "start": 2393, - "end": 2398, - "loc": { - "start": { - "line": 9, - "column": 2124 - }, - "end": { - "line": 9, - "column": 2129 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 2399, - "end": 2406, - "loc": { - "start": { - "line": 9, - "column": 2130 - }, - "end": { - "line": 9, - "column": 2137 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2407, - "end": 2408, - "loc": { - "start": { - "line": 9, - "column": 2138 - }, - "end": { - "line": 9, - "column": 2139 - }, - "identifierName": "t" - }, - "name": "t" - } - ] - }, - "consequent": { - "type": "ForStatement", - "start": 2410, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2141 - }, - "end": { - "line": 9, - "column": 2206 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 2414, - "end": 2421, - "loc": { - "start": { - "line": 9, - "column": 2145 - }, - "end": { - "line": 9, - "column": 2152 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2418, - "end": 2421, - "loc": { - "start": { - "line": 9, - "column": 2149 - }, - "end": { - "line": 9, - "column": 2152 - } - }, - "id": { - "type": "Identifier", - "start": 2418, - "end": 2419, - "loc": { - "start": { - "line": 9, - "column": 2149 - }, - "end": { - "line": 9, - "column": 2150 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "NumericLiteral", - "start": 2420, - "end": 2421, - "loc": { - "start": { - "line": 9, - "column": 2151 - }, - "end": { - "line": 9, - "column": 2152 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 2422, - "end": 2432, - "loc": { - "start": { - "line": 9, - "column": 2153 - }, - "end": { - "line": 9, - "column": 2163 - } - }, - "left": { - "type": "Identifier", - "start": 2422, - "end": 2423, - "loc": { - "start": { - "line": 9, - "column": 2153 - }, - "end": { - "line": 9, - "column": 2154 - }, - "identifierName": "s" - }, - "name": "s" - }, - "operator": "<", - "right": { - "type": "MemberExpression", - "start": 2424, - "end": 2432, - "loc": { - "start": { - "line": 9, - "column": 2155 - }, - "end": { - "line": 9, - "column": 2163 - } - }, - "object": { - "type": "Identifier", - "start": 2424, - "end": 2425, - "loc": { - "start": { - "line": 9, - "column": 2155 - }, - "end": { - "line": 9, - "column": 2156 - }, - "identifierName": "t" - }, - "name": "t" - }, - "property": { - "type": "Identifier", - "start": 2426, - "end": 2432, - "loc": { - "start": { - "line": 9, - "column": 2157 - }, - "end": { - "line": 9, - "column": 2163 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "update": { - "type": "UpdateExpression", - "start": 2433, - "end": 2436, - "loc": { - "start": { - "line": 9, - "column": 2164 - }, - "end": { - "line": 9, - "column": 2167 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 2433, - "end": 2434, - "loc": { - "start": { - "line": 9, - "column": 2164 - }, - "end": { - "line": 9, - "column": 2165 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "body": { - "type": "ExpressionStatement", - "start": 2437, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2206 - } - }, - "expression": { - "type": "CallExpression", - "start": 2437, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2206 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2437, - "end": 2454, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2185 - } - }, - "object": { - "type": "ThisExpression", - "start": 2437, - "end": 2441, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2172 - } - } - }, - "property": { - "type": "Identifier", - "start": 2442, - "end": 2454, - "loc": { - "start": { - "line": 9, - "column": 2173 - }, - "end": { - "line": 9, - "column": 2185 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 2455, - "end": 2464, - "loc": { - "start": { - "line": 9, - "column": 2186 - }, - "end": { - "line": 9, - "column": 2195 - } - }, - "object": { - "type": "MemberExpression", - "start": 2455, - "end": 2459, - "loc": { - "start": { - "line": 9, - "column": 2186 - }, - "end": { - "line": 9, - "column": 2190 - } - }, - "object": { - "type": "Identifier", - "start": 2455, - "end": 2456, - "loc": { - "start": { - "line": 9, - "column": 2186 - }, - "end": { - "line": 9, - "column": 2187 - }, - "identifierName": "t" - }, - "name": "t" - }, - "property": { - "type": "Identifier", - "start": 2457, - "end": 2458, - "loc": { - "start": { - "line": 9, - "column": 2188 - }, - "end": { - "line": 9, - "column": 2189 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 2460, - "end": 2464, - "loc": { - "start": { - "line": 9, - "column": 2191 - }, - "end": { - "line": 9, - "column": 2195 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - { - "type": "MemberExpression", - "start": 2465, - "end": 2474, - "loc": { - "start": { - "line": 9, - "column": 2196 - }, - "end": { - "line": 9, - "column": 2205 - } - }, - "object": { - "type": "MemberExpression", - "start": 2465, - "end": 2469, - "loc": { - "start": { - "line": 9, - "column": 2196 - }, - "end": { - "line": 9, - "column": 2200 - } - }, - "object": { - "type": "Identifier", - "start": 2465, - "end": 2466, - "loc": { - "start": { - "line": 9, - "column": 2196 - }, - "end": { - "line": 9, - "column": 2197 - }, - "identifierName": "t" - }, - "name": "t" - }, - "property": { - "type": "Identifier", - "start": 2467, - "end": 2468, - "loc": { - "start": { - "line": 9, - "column": 2198 - }, - "end": { - "line": 9, - "column": 2199 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 2470, - "end": 2474, - "loc": { - "start": { - "line": 9, - "column": 2201 - }, - "end": { - "line": 9, - "column": 2205 - }, - "identifierName": "ansi" - }, - "name": "ansi" - }, - "computed": false - } - ] - } - } - }, - "alternate": null - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2476, - "end": 2530, - "loc": { - "start": { - "line": 9, - "column": 2207 - }, - "end": { - "line": 9, - "column": 2261 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2476, - "end": 2490, - "loc": { - "start": { - "line": 9, - "column": 2207 - }, - "end": { - "line": 9, - "column": 2221 - }, - "identifierName": "unregisterType" - }, - "name": "unregisterType" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2491, - "end": 2492, - "loc": { - "start": { - "line": 9, - "column": 2222 - }, - "end": { - "line": 9, - "column": 2223 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2493, - "end": 2530, - "loc": { - "start": { - "line": 9, - "column": 2224 - }, - "end": { - "line": 9, - "column": 2261 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2494, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2260 - } - }, - "expression": { - "type": "LogicalExpression", - "start": 2494, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2260 - } - }, - "left": { - "type": "MemberExpression", - "start": 2494, - "end": 2507, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2238 - } - }, - "object": { - "type": "MemberExpression", - "start": 2494, - "end": 2504, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2235 - } - }, - "object": { - "type": "ThisExpression", - "start": 2494, - "end": 2498, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2229 - } - } - }, - "property": { - "type": "Identifier", - "start": 2499, - "end": 2504, - "loc": { - "start": { - "line": 9, - "column": 2230 - }, - "end": { - "line": 9, - "column": 2235 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2505, - "end": 2506, - "loc": { - "start": { - "line": 9, - "column": 2236 - }, - "end": { - "line": 9, - "column": 2237 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 2509, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2240 - }, - "end": { - "line": 9, - "column": 2260 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 2516, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2247 - }, - "end": { - "line": 9, - "column": 2260 - } - }, - "object": { - "type": "MemberExpression", - "start": 2516, - "end": 2526, - "loc": { - "start": { - "line": 9, - "column": 2247 - }, - "end": { - "line": 9, - "column": 2257 - } - }, - "object": { - "type": "ThisExpression", - "start": 2516, - "end": 2520, - "loc": { - "start": { - "line": 9, - "column": 2247 - }, - "end": { - "line": 9, - "column": 2251 - } - } - }, - "property": { - "type": "Identifier", - "start": 2521, - "end": 2526, - "loc": { - "start": { - "line": 9, - "column": 2252 - }, - "end": { - "line": 9, - "column": 2257 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2527, - "end": 2528, - "loc": { - "start": { - "line": 9, - "column": 2258 - }, - "end": { - "line": 9, - "column": 2259 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - } - ], - "directives": [] - } - } - ] - }, - "leadingComments": [], - "name": "_", - "trailingComments": [] - }, - { - "type": "ExportNamedDeclaration", - "start": 2531, - "end": 2546, - "loc": { - "start": { - "line": 9, - "column": 2262 - }, - "end": { - "line": 9, - "column": 2277 - } - }, - "declaration": null, - "specifiers": [ - { - "type": "ExportSpecifier", - "start": 2538, - "end": 2544, - "loc": { - "start": { - "line": 9, - "column": 2269 - }, - "end": { - "line": 9, - "column": 2275 - } - }, - "local": { - "type": "Identifier", - "start": 2538, - "end": 2544, - "loc": { - "start": { - "line": 9, - "column": 2269 - }, - "end": { - "line": 9, - "column": 2275 - }, - "identifierName": "Logger" - }, - "name": "Logger" - }, - "exported": { - "type": "Identifier", - "start": 2538, - "end": 2544, - "loc": { - "start": { - "line": 9, - "column": 2269 - }, - "end": { - "line": 9, - "column": 2275 - }, - "identifierName": "Logger" - }, - "name": "Logger" - } - } - ], - "source": null - }, - { - "type": "ExportNamedDeclaration", - "start": 2531, - "end": 2546, - "loc": { - "start": { - "line": 9, - "column": 2262 - }, - "end": { - "line": 9, - "column": 2277 - } - }, - "declaration": { - "type": "ClassDeclaration", - "start": 269, - "end": 2531, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 2262 - } - }, - "id": { - "type": "Identifier", - "start": 275, - "end": 281, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 12 - }, - "identifierName": "Logger" - }, - "name": "Logger", - "leadingComments": null - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 281, - "end": 2531, - "loc": { - "start": { - "line": 9, - "column": 12 - }, - "end": { - "line": 9, - "column": 2262 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 282, - "end": 1115, - "loc": { - "start": { - "line": 9, - "column": 13 - }, - "end": { - "line": 9, - "column": 846 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 282, - "end": 293, - "loc": { - "start": { - "line": 9, - "column": 13 - }, - "end": { - "line": 9, - "column": 24 - }, - "identifierName": "constructor" - }, - "name": "constructor" - }, - "kind": "constructor", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 294, - "end": 295, - "loc": { - "start": { - "line": 9, - "column": 25 - }, - "end": { - "line": 9, - "column": 26 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 296, - "end": 1115, - "loc": { - "start": { - "line": 9, - "column": 27 - }, - "end": { - "line": 9, - "column": 846 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 297, - "end": 943, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 674 - } - }, - "expression": { - "type": "SequenceExpression", - "start": 297, - "end": 942, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 673 - } - }, - "expressions": [ - { - "type": "AssignmentExpression", - "start": 297, - "end": 314, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 45 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 297, - "end": 307, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 38 - } - }, - "object": { - "type": "ThisExpression", - "start": 297, - "end": 301, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 32 - } - } - }, - "property": { - "type": "Identifier", - "start": 302, - "end": 307, - "loc": { - "start": { - "line": 9, - "column": 33 - }, - "end": { - "line": 9, - "column": 38 - }, - "identifierName": "RESET" - }, - "name": "RESET" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 308, - "end": 314, - "loc": { - "start": { - "line": 9, - "column": 39 - }, - "end": { - "line": 9, - "column": 45 - } - }, - "extra": { - "rawValue": "\u001b[0m", - "raw": "\"\u001b[0m\"" - }, - "value": "\u001b[0m" - } - }, - { - "type": "AssignmentExpression", - "start": 315, - "end": 333, - "loc": { - "start": { - "line": 9, - "column": 46 - }, - "end": { - "line": 9, - "column": 64 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 315, - "end": 326, - "loc": { - "start": { - "line": 9, - "column": 46 - }, - "end": { - "line": 9, - "column": 57 - } - }, - "object": { - "type": "ThisExpression", - "start": 315, - "end": 319, - "loc": { - "start": { - "line": 9, - "column": 46 - }, - "end": { - "line": 9, - "column": 50 - } - } - }, - "property": { - "type": "Identifier", - "start": 320, - "end": 326, - "loc": { - "start": { - "line": 9, - "column": 51 - }, - "end": { - "line": 9, - "column": 57 - }, - "identifierName": "BRIGHT" - }, - "name": "BRIGHT" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 327, - "end": 333, - "loc": { - "start": { - "line": 9, - "column": 58 - }, - "end": { - "line": 9, - "column": 64 - } - }, - "extra": { - "rawValue": "\u001b[1m", - "raw": "\"\u001b[1m\"" - }, - "value": "\u001b[1m" - } - }, - { - "type": "AssignmentExpression", - "start": 334, - "end": 349, - "loc": { - "start": { - "line": 9, - "column": 65 - }, - "end": { - "line": 9, - "column": 80 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 334, - "end": 342, - "loc": { - "start": { - "line": 9, - "column": 65 - }, - "end": { - "line": 9, - "column": 73 - } - }, - "object": { - "type": "ThisExpression", - "start": 334, - "end": 338, - "loc": { - "start": { - "line": 9, - "column": 65 - }, - "end": { - "line": 9, - "column": 69 - } - } - }, - "property": { - "type": "Identifier", - "start": 339, - "end": 342, - "loc": { - "start": { - "line": 9, - "column": 70 - }, - "end": { - "line": 9, - "column": 73 - }, - "identifierName": "DIM" - }, - "name": "DIM" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 343, - "end": 349, - "loc": { - "start": { - "line": 9, - "column": 74 - }, - "end": { - "line": 9, - "column": 80 - } - }, - "extra": { - "rawValue": "\u001b[2m", - "raw": "\"\u001b[2m\"" - }, - "value": "\u001b[2m" - } - }, - { - "type": "AssignmentExpression", - "start": 350, - "end": 372, - "loc": { - "start": { - "line": 9, - "column": 81 - }, - "end": { - "line": 9, - "column": 103 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 350, - "end": 365, - "loc": { - "start": { - "line": 9, - "column": 81 - }, - "end": { - "line": 9, - "column": 96 - } - }, - "object": { - "type": "ThisExpression", - "start": 350, - "end": 354, - "loc": { - "start": { - "line": 9, - "column": 81 - }, - "end": { - "line": 9, - "column": 85 - } - } - }, - "property": { - "type": "Identifier", - "start": 355, - "end": 365, - "loc": { - "start": { - "line": 9, - "column": 86 - }, - "end": { - "line": 9, - "column": 96 - }, - "identifierName": "UNDERSCORE" - }, - "name": "UNDERSCORE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 366, - "end": 372, - "loc": { - "start": { - "line": 9, - "column": 97 - }, - "end": { - "line": 9, - "column": 103 - } - }, - "extra": { - "rawValue": "\u001b[4m", - "raw": "\"\u001b[4m\"" - }, - "value": "\u001b[4m" - } - }, - { - "type": "AssignmentExpression", - "start": 373, - "end": 390, - "loc": { - "start": { - "line": 9, - "column": 104 - }, - "end": { - "line": 9, - "column": 121 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 373, - "end": 383, - "loc": { - "start": { - "line": 9, - "column": 104 - }, - "end": { - "line": 9, - "column": 114 - } - }, - "object": { - "type": "ThisExpression", - "start": 373, - "end": 377, - "loc": { - "start": { - "line": 9, - "column": 104 - }, - "end": { - "line": 9, - "column": 108 - } - } - }, - "property": { - "type": "Identifier", - "start": 378, - "end": 383, - "loc": { - "start": { - "line": 9, - "column": 109 - }, - "end": { - "line": 9, - "column": 114 - }, - "identifierName": "BLINK" - }, - "name": "BLINK" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 384, - "end": 390, - "loc": { - "start": { - "line": 9, - "column": 115 - }, - "end": { - "line": 9, - "column": 121 - } - }, - "extra": { - "rawValue": "\u001b[5m", - "raw": "\"\u001b[5m\"" - }, - "value": "\u001b[5m" - } - }, - { - "type": "AssignmentExpression", - "start": 391, - "end": 410, - "loc": { - "start": { - "line": 9, - "column": 122 - }, - "end": { - "line": 9, - "column": 141 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 391, - "end": 403, - "loc": { - "start": { - "line": 9, - "column": 122 - }, - "end": { - "line": 9, - "column": 134 - } - }, - "object": { - "type": "ThisExpression", - "start": 391, - "end": 395, - "loc": { - "start": { - "line": 9, - "column": 122 - }, - "end": { - "line": 9, - "column": 126 - } - } - }, - "property": { - "type": "Identifier", - "start": 396, - "end": 403, - "loc": { - "start": { - "line": 9, - "column": 127 - }, - "end": { - "line": 9, - "column": 134 - }, - "identifierName": "REVERSE" - }, - "name": "REVERSE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 404, - "end": 410, - "loc": { - "start": { - "line": 9, - "column": 135 - }, - "end": { - "line": 9, - "column": 141 - } - }, - "extra": { - "rawValue": "\u001b[7m", - "raw": "\"\u001b[7m\"" - }, - "value": "\u001b[7m" - } - }, - { - "type": "AssignmentExpression", - "start": 411, - "end": 429, - "loc": { - "start": { - "line": 9, - "column": 142 - }, - "end": { - "line": 9, - "column": 160 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 411, - "end": 422, - "loc": { - "start": { - "line": 9, - "column": 142 - }, - "end": { - "line": 9, - "column": 153 - } - }, - "object": { - "type": "ThisExpression", - "start": 411, - "end": 415, - "loc": { - "start": { - "line": 9, - "column": 142 - }, - "end": { - "line": 9, - "column": 146 - } - } - }, - "property": { - "type": "Identifier", - "start": 416, - "end": 422, - "loc": { - "start": { - "line": 9, - "column": 147 - }, - "end": { - "line": 9, - "column": 153 - }, - "identifierName": "HIDDEN" - }, - "name": "HIDDEN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 423, - "end": 429, - "loc": { - "start": { - "line": 9, - "column": 154 - }, - "end": { - "line": 9, - "column": 160 - } - }, - "extra": { - "rawValue": "\u001b[8m", - "raw": "\"\u001b[8m\"" - }, - "value": "\u001b[8m" - } - }, - { - "type": "AssignmentExpression", - "start": 430, - "end": 451, - "loc": { - "start": { - "line": 9, - "column": 161 - }, - "end": { - "line": 9, - "column": 182 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 430, - "end": 443, - "loc": { - "start": { - "line": 9, - "column": 161 - }, - "end": { - "line": 9, - "column": 174 - } - }, - "object": { - "type": "ThisExpression", - "start": 430, - "end": 434, - "loc": { - "start": { - "line": 9, - "column": 161 - }, - "end": { - "line": 9, - "column": 165 - } - } - }, - "property": { - "type": "Identifier", - "start": 435, - "end": 443, - "loc": { - "start": { - "line": 9, - "column": 166 - }, - "end": { - "line": 9, - "column": 174 - }, - "identifierName": "FG_BLACK" - }, - "name": "FG_BLACK" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 444, - "end": 451, - "loc": { - "start": { - "line": 9, - "column": 175 - }, - "end": { - "line": 9, - "column": 182 - } - }, - "extra": { - "rawValue": "\u001b[30m", - "raw": "\"\u001b[30m\"" - }, - "value": "\u001b[30m" - } - }, - { - "type": "AssignmentExpression", - "start": 452, - "end": 471, - "loc": { - "start": { - "line": 9, - "column": 183 - }, - "end": { - "line": 9, - "column": 202 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 452, - "end": 463, - "loc": { - "start": { - "line": 9, - "column": 183 - }, - "end": { - "line": 9, - "column": 194 - } - }, - "object": { - "type": "ThisExpression", - "start": 452, - "end": 456, - "loc": { - "start": { - "line": 9, - "column": 183 - }, - "end": { - "line": 9, - "column": 187 - } - } - }, - "property": { - "type": "Identifier", - "start": 457, - "end": 463, - "loc": { - "start": { - "line": 9, - "column": 188 - }, - "end": { - "line": 9, - "column": 194 - }, - "identifierName": "FG_RED" - }, - "name": "FG_RED" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 464, - "end": 471, - "loc": { - "start": { - "line": 9, - "column": 195 - }, - "end": { - "line": 9, - "column": 202 - } - }, - "extra": { - "rawValue": "\u001b[31m", - "raw": "\"\u001b[31m\"" - }, - "value": "\u001b[31m" - } - }, - { - "type": "AssignmentExpression", - "start": 472, - "end": 493, - "loc": { - "start": { - "line": 9, - "column": 203 - }, - "end": { - "line": 9, - "column": 224 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 472, - "end": 485, - "loc": { - "start": { - "line": 9, - "column": 203 - }, - "end": { - "line": 9, - "column": 216 - } - }, - "object": { - "type": "ThisExpression", - "start": 472, - "end": 476, - "loc": { - "start": { - "line": 9, - "column": 203 - }, - "end": { - "line": 9, - "column": 207 - } - } - }, - "property": { - "type": "Identifier", - "start": 477, - "end": 485, - "loc": { - "start": { - "line": 9, - "column": 208 - }, - "end": { - "line": 9, - "column": 216 - }, - "identifierName": "FG_GREEN" - }, - "name": "FG_GREEN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 486, - "end": 493, - "loc": { - "start": { - "line": 9, - "column": 217 - }, - "end": { - "line": 9, - "column": 224 - } - }, - "extra": { - "rawValue": "\u001b[32m", - "raw": "\"\u001b[32m\"" - }, - "value": "\u001b[32m" - } - }, - { - "type": "AssignmentExpression", - "start": 494, - "end": 516, - "loc": { - "start": { - "line": 9, - "column": 225 - }, - "end": { - "line": 9, - "column": 247 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 494, - "end": 508, - "loc": { - "start": { - "line": 9, - "column": 225 - }, - "end": { - "line": 9, - "column": 239 - } - }, - "object": { - "type": "ThisExpression", - "start": 494, - "end": 498, - "loc": { - "start": { - "line": 9, - "column": 225 - }, - "end": { - "line": 9, - "column": 229 - } - } - }, - "property": { - "type": "Identifier", - "start": 499, - "end": 508, - "loc": { - "start": { - "line": 9, - "column": 230 - }, - "end": { - "line": 9, - "column": 239 - }, - "identifierName": "FG_YELLOW" - }, - "name": "FG_YELLOW" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 509, - "end": 516, - "loc": { - "start": { - "line": 9, - "column": 240 - }, - "end": { - "line": 9, - "column": 247 - } - }, - "extra": { - "rawValue": "\u001b[33m", - "raw": "\"\u001b[33m\"" - }, - "value": "\u001b[33m" - } - }, - { - "type": "AssignmentExpression", - "start": 517, - "end": 537, - "loc": { - "start": { - "line": 9, - "column": 248 - }, - "end": { - "line": 9, - "column": 268 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 517, - "end": 529, - "loc": { - "start": { - "line": 9, - "column": 248 - }, - "end": { - "line": 9, - "column": 260 - } - }, - "object": { - "type": "ThisExpression", - "start": 517, - "end": 521, - "loc": { - "start": { - "line": 9, - "column": 248 - }, - "end": { - "line": 9, - "column": 252 - } - } - }, - "property": { - "type": "Identifier", - "start": 522, - "end": 529, - "loc": { - "start": { - "line": 9, - "column": 253 - }, - "end": { - "line": 9, - "column": 260 - }, - "identifierName": "FG_BLUE" - }, - "name": "FG_BLUE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 530, - "end": 537, - "loc": { - "start": { - "line": 9, - "column": 261 - }, - "end": { - "line": 9, - "column": 268 - } - }, - "extra": { - "rawValue": "\u001b[34m", - "raw": "\"\u001b[34m\"" - }, - "value": "\u001b[34m" - } - }, - { - "type": "AssignmentExpression", - "start": 538, - "end": 561, - "loc": { - "start": { - "line": 9, - "column": 269 - }, - "end": { - "line": 9, - "column": 292 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 538, - "end": 553, - "loc": { - "start": { - "line": 9, - "column": 269 - }, - "end": { - "line": 9, - "column": 284 - } - }, - "object": { - "type": "ThisExpression", - "start": 538, - "end": 542, - "loc": { - "start": { - "line": 9, - "column": 269 - }, - "end": { - "line": 9, - "column": 273 - } - } - }, - "property": { - "type": "Identifier", - "start": 543, - "end": 553, - "loc": { - "start": { - "line": 9, - "column": 274 - }, - "end": { - "line": 9, - "column": 284 - }, - "identifierName": "FG_MAGENTA" - }, - "name": "FG_MAGENTA" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 554, - "end": 561, - "loc": { - "start": { - "line": 9, - "column": 285 - }, - "end": { - "line": 9, - "column": 292 - } - }, - "extra": { - "rawValue": "\u001b[35m", - "raw": "\"\u001b[35m\"" - }, - "value": "\u001b[35m" - } - }, - { - "type": "AssignmentExpression", - "start": 562, - "end": 582, - "loc": { - "start": { - "line": 9, - "column": 293 - }, - "end": { - "line": 9, - "column": 313 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 562, - "end": 574, - "loc": { - "start": { - "line": 9, - "column": 293 - }, - "end": { - "line": 9, - "column": 305 - } - }, - "object": { - "type": "ThisExpression", - "start": 562, - "end": 566, - "loc": { - "start": { - "line": 9, - "column": 293 - }, - "end": { - "line": 9, - "column": 297 - } - } - }, - "property": { - "type": "Identifier", - "start": 567, - "end": 574, - "loc": { - "start": { - "line": 9, - "column": 298 - }, - "end": { - "line": 9, - "column": 305 - }, - "identifierName": "FG_CYAN" - }, - "name": "FG_CYAN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 575, - "end": 582, - "loc": { - "start": { - "line": 9, - "column": 306 - }, - "end": { - "line": 9, - "column": 313 - } - }, - "extra": { - "rawValue": "\u001b[36m", - "raw": "\"\u001b[36m\"" - }, - "value": "\u001b[36m" - } - }, - { - "type": "AssignmentExpression", - "start": 583, - "end": 604, - "loc": { - "start": { - "line": 9, - "column": 314 - }, - "end": { - "line": 9, - "column": 335 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 583, - "end": 596, - "loc": { - "start": { - "line": 9, - "column": 314 - }, - "end": { - "line": 9, - "column": 327 - } - }, - "object": { - "type": "ThisExpression", - "start": 583, - "end": 587, - "loc": { - "start": { - "line": 9, - "column": 314 - }, - "end": { - "line": 9, - "column": 318 - } - } - }, - "property": { - "type": "Identifier", - "start": 588, - "end": 596, - "loc": { - "start": { - "line": 9, - "column": 319 - }, - "end": { - "line": 9, - "column": 327 - }, - "identifierName": "FG_WHITE" - }, - "name": "FG_WHITE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 597, - "end": 604, - "loc": { - "start": { - "line": 9, - "column": 328 - }, - "end": { - "line": 9, - "column": 335 - } - }, - "extra": { - "rawValue": "\u001b[37m", - "raw": "\"\u001b[37m\"" - }, - "value": "\u001b[37m" - } - }, - { - "type": "AssignmentExpression", - "start": 605, - "end": 625, - "loc": { - "start": { - "line": 9, - "column": 336 - }, - "end": { - "line": 9, - "column": 356 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 605, - "end": 617, - "loc": { - "start": { - "line": 9, - "column": 336 - }, - "end": { - "line": 9, - "column": 348 - } - }, - "object": { - "type": "ThisExpression", - "start": 605, - "end": 609, - "loc": { - "start": { - "line": 9, - "column": 336 - }, - "end": { - "line": 9, - "column": 340 - } - } - }, - "property": { - "type": "Identifier", - "start": 610, - "end": 617, - "loc": { - "start": { - "line": 9, - "column": 341 - }, - "end": { - "line": 9, - "column": 348 - }, - "identifierName": "FG_GRAY" - }, - "name": "FG_GRAY" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 618, - "end": 625, - "loc": { - "start": { - "line": 9, - "column": 349 - }, - "end": { - "line": 9, - "column": 356 - } - }, - "extra": { - "rawValue": "\u001b[90m", - "raw": "\"\u001b[90m\"" - }, - "value": "\u001b[90m" - } - }, - { - "type": "AssignmentExpression", - "start": 626, - "end": 647, - "loc": { - "start": { - "line": 9, - "column": 357 - }, - "end": { - "line": 9, - "column": 378 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 626, - "end": 639, - "loc": { - "start": { - "line": 9, - "column": 357 - }, - "end": { - "line": 9, - "column": 370 - } - }, - "object": { - "type": "ThisExpression", - "start": 626, - "end": 630, - "loc": { - "start": { - "line": 9, - "column": 357 - }, - "end": { - "line": 9, - "column": 361 - } - } - }, - "property": { - "type": "Identifier", - "start": 631, - "end": 639, - "loc": { - "start": { - "line": 9, - "column": 362 - }, - "end": { - "line": 9, - "column": 370 - }, - "identifierName": "BG_BLACK" - }, - "name": "BG_BLACK" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 640, - "end": 647, - "loc": { - "start": { - "line": 9, - "column": 371 - }, - "end": { - "line": 9, - "column": 378 - } - }, - "extra": { - "rawValue": "\u001b[40m", - "raw": "\"\u001b[40m\"" - }, - "value": "\u001b[40m" - } - }, - { - "type": "AssignmentExpression", - "start": 648, - "end": 667, - "loc": { - "start": { - "line": 9, - "column": 379 - }, - "end": { - "line": 9, - "column": 398 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 648, - "end": 659, - "loc": { - "start": { - "line": 9, - "column": 379 - }, - "end": { - "line": 9, - "column": 390 - } - }, - "object": { - "type": "ThisExpression", - "start": 648, - "end": 652, - "loc": { - "start": { - "line": 9, - "column": 379 - }, - "end": { - "line": 9, - "column": 383 - } - } - }, - "property": { - "type": "Identifier", - "start": 653, - "end": 659, - "loc": { - "start": { - "line": 9, - "column": 384 - }, - "end": { - "line": 9, - "column": 390 - }, - "identifierName": "BG_RED" - }, - "name": "BG_RED" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 660, - "end": 667, - "loc": { - "start": { - "line": 9, - "column": 391 - }, - "end": { - "line": 9, - "column": 398 - } - }, - "extra": { - "rawValue": "\u001b[41m", - "raw": "\"\u001b[41m\"" - }, - "value": "\u001b[41m" - } - }, - { - "type": "AssignmentExpression", - "start": 668, - "end": 689, - "loc": { - "start": { - "line": 9, - "column": 399 - }, - "end": { - "line": 9, - "column": 420 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 668, - "end": 681, - "loc": { - "start": { - "line": 9, - "column": 399 - }, - "end": { - "line": 9, - "column": 412 - } - }, - "object": { - "type": "ThisExpression", - "start": 668, - "end": 672, - "loc": { - "start": { - "line": 9, - "column": 399 - }, - "end": { - "line": 9, - "column": 403 - } - } - }, - "property": { - "type": "Identifier", - "start": 673, - "end": 681, - "loc": { - "start": { - "line": 9, - "column": 404 - }, - "end": { - "line": 9, - "column": 412 - }, - "identifierName": "BG_GREEN" - }, - "name": "BG_GREEN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 682, - "end": 689, - "loc": { - "start": { - "line": 9, - "column": 413 - }, - "end": { - "line": 9, - "column": 420 - } - }, - "extra": { - "rawValue": "\u001b[42m", - "raw": "\"\u001b[42m\"" - }, - "value": "\u001b[42m" - } - }, - { - "type": "AssignmentExpression", - "start": 690, - "end": 712, - "loc": { - "start": { - "line": 9, - "column": 421 - }, - "end": { - "line": 9, - "column": 443 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 690, - "end": 704, - "loc": { - "start": { - "line": 9, - "column": 421 - }, - "end": { - "line": 9, - "column": 435 - } - }, - "object": { - "type": "ThisExpression", - "start": 690, - "end": 694, - "loc": { - "start": { - "line": 9, - "column": 421 - }, - "end": { - "line": 9, - "column": 425 - } - } - }, - "property": { - "type": "Identifier", - "start": 695, - "end": 704, - "loc": { - "start": { - "line": 9, - "column": 426 - }, - "end": { - "line": 9, - "column": 435 - }, - "identifierName": "BG_YELLOW" - }, - "name": "BG_YELLOW" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 705, - "end": 712, - "loc": { - "start": { - "line": 9, - "column": 436 - }, - "end": { - "line": 9, - "column": 443 - } - }, - "extra": { - "rawValue": "\u001b[43m", - "raw": "\"\u001b[43m\"" - }, - "value": "\u001b[43m" - } - }, - { - "type": "AssignmentExpression", - "start": 713, - "end": 733, - "loc": { - "start": { - "line": 9, - "column": 444 - }, - "end": { - "line": 9, - "column": 464 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 713, - "end": 725, - "loc": { - "start": { - "line": 9, - "column": 444 - }, - "end": { - "line": 9, - "column": 456 - } - }, - "object": { - "type": "ThisExpression", - "start": 713, - "end": 717, - "loc": { - "start": { - "line": 9, - "column": 444 - }, - "end": { - "line": 9, - "column": 448 - } - } - }, - "property": { - "type": "Identifier", - "start": 718, - "end": 725, - "loc": { - "start": { - "line": 9, - "column": 449 - }, - "end": { - "line": 9, - "column": 456 - }, - "identifierName": "BG_BLUE" - }, - "name": "BG_BLUE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 726, - "end": 733, - "loc": { - "start": { - "line": 9, - "column": 457 - }, - "end": { - "line": 9, - "column": 464 - } - }, - "extra": { - "rawValue": "\u001b[44m", - "raw": "\"\u001b[44m\"" - }, - "value": "\u001b[44m" - } - }, - { - "type": "AssignmentExpression", - "start": 734, - "end": 757, - "loc": { - "start": { - "line": 9, - "column": 465 - }, - "end": { - "line": 9, - "column": 488 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 734, - "end": 749, - "loc": { - "start": { - "line": 9, - "column": 465 - }, - "end": { - "line": 9, - "column": 480 - } - }, - "object": { - "type": "ThisExpression", - "start": 734, - "end": 738, - "loc": { - "start": { - "line": 9, - "column": 465 - }, - "end": { - "line": 9, - "column": 469 - } - } - }, - "property": { - "type": "Identifier", - "start": 739, - "end": 749, - "loc": { - "start": { - "line": 9, - "column": 470 - }, - "end": { - "line": 9, - "column": 480 - }, - "identifierName": "BG_MAGENTA" - }, - "name": "BG_MAGENTA" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 750, - "end": 757, - "loc": { - "start": { - "line": 9, - "column": 481 - }, - "end": { - "line": 9, - "column": 488 - } - }, - "extra": { - "rawValue": "\u001b[45m", - "raw": "\"\u001b[45m\"" - }, - "value": "\u001b[45m" - } - }, - { - "type": "AssignmentExpression", - "start": 758, - "end": 778, - "loc": { - "start": { - "line": 9, - "column": 489 - }, - "end": { - "line": 9, - "column": 509 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 758, - "end": 770, - "loc": { - "start": { - "line": 9, - "column": 489 - }, - "end": { - "line": 9, - "column": 501 - } - }, - "object": { - "type": "ThisExpression", - "start": 758, - "end": 762, - "loc": { - "start": { - "line": 9, - "column": 489 - }, - "end": { - "line": 9, - "column": 493 - } - } - }, - "property": { - "type": "Identifier", - "start": 763, - "end": 770, - "loc": { - "start": { - "line": 9, - "column": 494 - }, - "end": { - "line": 9, - "column": 501 - }, - "identifierName": "BG_CYAN" - }, - "name": "BG_CYAN" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 771, - "end": 778, - "loc": { - "start": { - "line": 9, - "column": 502 - }, - "end": { - "line": 9, - "column": 509 - } - }, - "extra": { - "rawValue": "\u001b[46m", - "raw": "\"\u001b[46m\"" - }, - "value": "\u001b[46m" - } - }, - { - "type": "AssignmentExpression", - "start": 779, - "end": 800, - "loc": { - "start": { - "line": 9, - "column": 510 - }, - "end": { - "line": 9, - "column": 531 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 779, - "end": 792, - "loc": { - "start": { - "line": 9, - "column": 510 - }, - "end": { - "line": 9, - "column": 523 - } - }, - "object": { - "type": "ThisExpression", - "start": 779, - "end": 783, - "loc": { - "start": { - "line": 9, - "column": 510 - }, - "end": { - "line": 9, - "column": 514 - } - } - }, - "property": { - "type": "Identifier", - "start": 784, - "end": 792, - "loc": { - "start": { - "line": 9, - "column": 515 - }, - "end": { - "line": 9, - "column": 523 - }, - "identifierName": "BG_WHITE" - }, - "name": "BG_WHITE" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 793, - "end": 800, - "loc": { - "start": { - "line": 9, - "column": 524 - }, - "end": { - "line": 9, - "column": 531 - } - }, - "extra": { - "rawValue": "\u001b[47m", - "raw": "\"\u001b[47m\"" - }, - "value": "\u001b[47m" - } - }, - { - "type": "AssignmentExpression", - "start": 801, - "end": 822, - "loc": { - "start": { - "line": 9, - "column": 532 - }, - "end": { - "line": 9, - "column": 553 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 801, - "end": 813, - "loc": { - "start": { - "line": 9, - "column": 532 - }, - "end": { - "line": 9, - "column": 544 - } - }, - "object": { - "type": "ThisExpression", - "start": 801, - "end": 805, - "loc": { - "start": { - "line": 9, - "column": 532 - }, - "end": { - "line": 9, - "column": 536 - } - } - }, - "property": { - "type": "Identifier", - "start": 806, - "end": 813, - "loc": { - "start": { - "line": 9, - "column": 537 - }, - "end": { - "line": 9, - "column": 544 - }, - "identifierName": "BG_GRAY" - }, - "name": "BG_GRAY" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 814, - "end": 822, - "loc": { - "start": { - "line": 9, - "column": 545 - }, - "end": { - "line": 9, - "column": 553 - } - }, - "extra": { - "rawValue": "\u001b[100m", - "raw": "\"\u001b[100m\"" - }, - "value": "\u001b[100m" - } - }, - { - "type": "AssignmentExpression", - "start": 823, - "end": 849, - "loc": { - "start": { - "line": 9, - "column": 554 - }, - "end": { - "line": 9, - "column": 580 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 823, - "end": 846, - "loc": { - "start": { - "line": 9, - "column": 554 - }, - "end": { - "line": 9, - "column": 577 - } - }, - "object": { - "type": "ThisExpression", - "start": 823, - "end": 827, - "loc": { - "start": { - "line": 9, - "column": 554 - }, - "end": { - "line": 9, - "column": 558 - } - } - }, - "property": { - "type": "Identifier", - "start": 828, - "end": 846, - "loc": { - "start": { - "line": 9, - "column": 559 - }, - "end": { - "line": 9, - "column": 577 - }, - "identifierName": "TYPE_SPACER_LENGTH" - }, - "name": "TYPE_SPACER_LENGTH" - }, - "computed": false - }, - "right": { - "type": "NumericLiteral", - "start": 847, - "end": 849, - "loc": { - "start": { - "line": 9, - "column": 578 - }, - "end": { - "line": 9, - "column": 580 - } - }, - "extra": { - "rawValue": 13, - "raw": "13" - }, - "value": 13 - } - }, - { - "type": "AssignmentExpression", - "start": 850, - "end": 884, - "loc": { - "start": { - "line": 9, - "column": 581 - }, - "end": { - "line": 9, - "column": 615 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 850, - "end": 860, - "loc": { - "start": { - "line": 9, - "column": 581 - }, - "end": { - "line": 9, - "column": 591 - } - }, - "object": { - "type": "ThisExpression", - "start": 850, - "end": 854, - "loc": { - "start": { - "line": 9, - "column": 581 - }, - "end": { - "line": 9, - "column": 585 - } - } - }, - "property": { - "type": "Identifier", - "start": 855, - "end": 860, - "loc": { - "start": { - "line": 9, - "column": 586 - }, - "end": { - "line": 9, - "column": 591 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "right": { - "type": "ObjectExpression", - "start": 861, - "end": 884, - "loc": { - "start": { - "line": 9, - "column": 592 - }, - "end": { - "line": 9, - "column": 615 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 862, - "end": 883, - "loc": { - "start": { - "line": 9, - "column": 593 - }, - "end": { - "line": 9, - "column": 614 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 862, - "end": 869, - "loc": { - "start": { - "line": 9, - "column": 593 - }, - "end": { - "line": 9, - "column": 600 - }, - "identifierName": "default" - }, - "name": "default" - }, - "value": { - "type": "MemberExpression", - "start": 870, - "end": 883, - "loc": { - "start": { - "line": 9, - "column": 601 - }, - "end": { - "line": 9, - "column": 614 - } - }, - "object": { - "type": "ThisExpression", - "start": 870, - "end": 874, - "loc": { - "start": { - "line": 9, - "column": 601 - }, - "end": { - "line": 9, - "column": 605 - } - } - }, - "property": { - "type": "Identifier", - "start": 875, - "end": 883, - "loc": { - "start": { - "line": 9, - "column": 606 - }, - "end": { - "line": 9, - "column": 614 - }, - "identifierName": "FG_WHITE" - }, - "name": "FG_WHITE" - }, - "computed": false - } - } - ] - } - }, - { - "type": "AssignmentExpression", - "start": 885, - "end": 904, - "loc": { - "start": { - "line": 9, - "column": 616 - }, - "end": { - "line": 9, - "column": 635 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 885, - "end": 901, - "loc": { - "start": { - "line": 9, - "column": 616 - }, - "end": { - "line": 9, - "column": 632 - } - }, - "object": { - "type": "ThisExpression", - "start": 885, - "end": 889, - "loc": { - "start": { - "line": 9, - "column": 616 - }, - "end": { - "line": 9, - "column": 620 - } - } - }, - "property": { - "type": "Identifier", - "start": 890, - "end": 901, - "loc": { - "start": { - "line": 9, - "column": 621 - }, - "end": { - "line": 9, - "column": 632 - }, - "identifierName": "currentType" - }, - "name": "currentType" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 902, - "end": 904, - "loc": { - "start": { - "line": 9, - "column": 633 - }, - "end": { - "line": 9, - "column": 635 - } - }, - "extra": { - "rawValue": "", - "raw": "\"\"" - }, - "value": "" - } - }, - { - "type": "AssignmentExpression", - "start": 905, - "end": 924, - "loc": { - "start": { - "line": 9, - "column": 636 - }, - "end": { - "line": 9, - "column": 655 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 905, - "end": 920, - "loc": { - "start": { - "line": 9, - "column": 636 - }, - "end": { - "line": 9, - "column": 651 - } - }, - "object": { - "type": "ThisExpression", - "start": 905, - "end": 909, - "loc": { - "start": { - "line": 9, - "column": 636 - }, - "end": { - "line": 9, - "column": 640 - } - } - }, - "property": { - "type": "Identifier", - "start": 910, - "end": 920, - "loc": { - "start": { - "line": 9, - "column": 641 - }, - "end": { - "line": 9, - "column": 651 - }, - "identifierName": "SPACE_CHAR" - }, - "name": "SPACE_CHAR" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 921, - "end": 924, - "loc": { - "start": { - "line": 9, - "column": 652 - }, - "end": { - "line": 9, - "column": 655 - } - }, - "extra": { - "rawValue": " ", - "raw": "\" \"" - }, - "value": " " - } - }, - { - "type": "AssignmentExpression", - "start": 925, - "end": 942, - "loc": { - "start": { - "line": 9, - "column": 656 - }, - "end": { - "line": 9, - "column": 673 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 925, - "end": 939, - "loc": { - "start": { - "line": 9, - "column": 656 - }, - "end": { - "line": 9, - "column": 670 - } - }, - "object": { - "type": "ThisExpression", - "start": 925, - "end": 929, - "loc": { - "start": { - "line": 9, - "column": 656 - }, - "end": { - "line": 9, - "column": 660 - } - } - }, - "property": { - "type": "Identifier", - "start": 930, - "end": 939, - "loc": { - "start": { - "line": 9, - "column": 661 - }, - "end": { - "line": 9, - "column": 670 - }, - "identifierName": "FG_COLORS" - }, - "name": "FG_COLORS" - }, - "computed": false - }, - "right": { - "type": "ObjectExpression", - "start": 940, - "end": 942, - "loc": { - "start": { - "line": 9, - "column": 671 - }, - "end": { - "line": 9, - "column": 673 - } - }, - "properties": [] - } - } - ] - } - }, - { - "type": "ForStatement", - "start": 943, - "end": 1000, - "loc": { - "start": { - "line": 9, - "column": 674 - }, - "end": { - "line": 9, - "column": 731 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 947, - "end": 954, - "loc": { - "start": { - "line": 9, - "column": 678 - }, - "end": { - "line": 9, - "column": 685 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 951, - "end": 954, - "loc": { - "start": { - "line": 9, - "column": 682 - }, - "end": { - "line": 9, - "column": 685 - } - }, - "id": { - "type": "Identifier", - "start": 951, - "end": 952, - "loc": { - "start": { - "line": 9, - "column": 682 - }, - "end": { - "line": 9, - "column": 683 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "NumericLiteral", - "start": 953, - "end": 954, - "loc": { - "start": { - "line": 9, - "column": 684 - }, - "end": { - "line": 9, - "column": 685 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 955, - "end": 961, - "loc": { - "start": { - "line": 9, - "column": 686 - }, - "end": { - "line": 9, - "column": 692 - } - }, - "left": { - "type": "Identifier", - "start": 955, - "end": 956, - "loc": { - "start": { - "line": 9, - "column": 686 - }, - "end": { - "line": 9, - "column": 687 - }, - "identifierName": "s" - }, - "name": "s" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 958, - "end": 961, - "loc": { - "start": { - "line": 9, - "column": 689 - }, - "end": { - "line": 9, - "column": 692 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "update": { - "type": "UpdateExpression", - "start": 962, - "end": 965, - "loc": { - "start": { - "line": 9, - "column": 693 - }, - "end": { - "line": 9, - "column": 696 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 962, - "end": 963, - "loc": { - "start": { - "line": 9, - "column": 693 - }, - "end": { - "line": 9, - "column": 694 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "body": { - "type": "ExpressionStatement", - "start": 966, - "end": 1000, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 731 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 966, - "end": 999, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 730 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 966, - "end": 983, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 714 - } - }, - "object": { - "type": "MemberExpression", - "start": 966, - "end": 980, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 711 - } - }, - "object": { - "type": "ThisExpression", - "start": 966, - "end": 970, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 701 - } - } - }, - "property": { - "type": "Identifier", - "start": 971, - "end": 980, - "loc": { - "start": { - "line": 9, - "column": 702 - }, - "end": { - "line": 9, - "column": 711 - }, - "identifierName": "FG_COLORS" - }, - "name": "FG_COLORS" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 981, - "end": 982, - "loc": { - "start": { - "line": 9, - "column": 712 - }, - "end": { - "line": 9, - "column": 713 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "right": { - "type": "BinaryExpression", - "start": 984, - "end": 999, - "loc": { - "start": { - "line": 9, - "column": 715 - }, - "end": { - "line": 9, - "column": 730 - } - }, - "left": { - "type": "BinaryExpression", - "start": 984, - "end": 995, - "loc": { - "start": { - "line": 9, - "column": 715 - }, - "end": { - "line": 9, - "column": 726 - } - }, - "left": { - "type": "StringLiteral", - "start": 984, - "end": 993, - "loc": { - "start": { - "line": 9, - "column": 715 - }, - "end": { - "line": 9, - "column": 724 - } - }, - "extra": { - "rawValue": "\u001b[38;5;", - "raw": "\"\u001b[38;5;\"" - }, - "value": "\u001b[38;5;" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 994, - "end": 995, - "loc": { - "start": { - "line": 9, - "column": 725 - }, - "end": { - "line": 9, - "column": 726 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 996, - "end": 999, - "loc": { - "start": { - "line": 9, - "column": 727 - }, - "end": { - "line": 9, - "column": 730 - } - }, - "extra": { - "rawValue": "m", - "raw": "\"m\"" - }, - "value": "m" - } - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 1000, - "end": 1018, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 749 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1000, - "end": 1017, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 748 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1000, - "end": 1014, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 745 - } - }, - "object": { - "type": "ThisExpression", - "start": 1000, - "end": 1004, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 735 - } - } - }, - "property": { - "type": "Identifier", - "start": 1005, - "end": 1014, - "loc": { - "start": { - "line": 9, - "column": 736 - }, - "end": { - "line": 9, - "column": 745 - }, - "identifierName": "BG_COLORS" - }, - "name": "BG_COLORS" - }, - "computed": false - }, - "right": { - "type": "ObjectExpression", - "start": 1015, - "end": 1017, - "loc": { - "start": { - "line": 9, - "column": 746 - }, - "end": { - "line": 9, - "column": 748 - } - }, - "properties": [] - } - } - }, - { - "type": "ForStatement", - "start": 1018, - "end": 1075, - "loc": { - "start": { - "line": 9, - "column": 749 - }, - "end": { - "line": 9, - "column": 806 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 1022, - "end": 1029, - "loc": { - "start": { - "line": 9, - "column": 753 - }, - "end": { - "line": 9, - "column": 760 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1026, - "end": 1029, - "loc": { - "start": { - "line": 9, - "column": 757 - }, - "end": { - "line": 9, - "column": 760 - } - }, - "id": { - "type": "Identifier", - "start": 1026, - "end": 1027, - "loc": { - "start": { - "line": 9, - "column": 757 - }, - "end": { - "line": 9, - "column": 758 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "NumericLiteral", - "start": 1028, - "end": 1029, - "loc": { - "start": { - "line": 9, - "column": 759 - }, - "end": { - "line": 9, - "column": 760 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 1030, - "end": 1036, - "loc": { - "start": { - "line": 9, - "column": 761 - }, - "end": { - "line": 9, - "column": 767 - } - }, - "left": { - "type": "Identifier", - "start": 1030, - "end": 1031, - "loc": { - "start": { - "line": 9, - "column": 761 - }, - "end": { - "line": 9, - "column": 762 - }, - "identifierName": "s" - }, - "name": "s" - }, - "operator": "<=", - "right": { - "type": "NumericLiteral", - "start": 1033, - "end": 1036, - "loc": { - "start": { - "line": 9, - "column": 764 - }, - "end": { - "line": 9, - "column": 767 - } - }, - "extra": { - "rawValue": 255, - "raw": "255" - }, - "value": 255 - } - }, - "update": { - "type": "UpdateExpression", - "start": 1037, - "end": 1040, - "loc": { - "start": { - "line": 9, - "column": 768 - }, - "end": { - "line": 9, - "column": 771 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 1037, - "end": 1038, - "loc": { - "start": { - "line": 9, - "column": 768 - }, - "end": { - "line": 9, - "column": 769 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "body": { - "type": "ExpressionStatement", - "start": 1041, - "end": 1075, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 806 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1041, - "end": 1074, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 805 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1041, - "end": 1058, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 789 - } - }, - "object": { - "type": "MemberExpression", - "start": 1041, - "end": 1055, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 786 - } - }, - "object": { - "type": "ThisExpression", - "start": 1041, - "end": 1045, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 776 - } - } - }, - "property": { - "type": "Identifier", - "start": 1046, - "end": 1055, - "loc": { - "start": { - "line": 9, - "column": 777 - }, - "end": { - "line": 9, - "column": 786 - }, - "identifierName": "BG_COLORS" - }, - "name": "BG_COLORS" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1056, - "end": 1057, - "loc": { - "start": { - "line": 9, - "column": 787 - }, - "end": { - "line": 9, - "column": 788 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "right": { - "type": "BinaryExpression", - "start": 1059, - "end": 1074, - "loc": { - "start": { - "line": 9, - "column": 790 - }, - "end": { - "line": 9, - "column": 805 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1059, - "end": 1070, - "loc": { - "start": { - "line": 9, - "column": 790 - }, - "end": { - "line": 9, - "column": 801 - } - }, - "left": { - "type": "StringLiteral", - "start": 1059, - "end": 1068, - "loc": { - "start": { - "line": 9, - "column": 790 - }, - "end": { - "line": 9, - "column": 799 - } - }, - "extra": { - "rawValue": "\u001b[48;5;", - "raw": "\"\u001b[48;5;\"" - }, - "value": "\u001b[48;5;" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1069, - "end": 1070, - "loc": { - "start": { - "line": 9, - "column": 800 - }, - "end": { - "line": 9, - "column": 801 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 1071, - "end": 1074, - "loc": { - "start": { - "line": 9, - "column": 802 - }, - "end": { - "line": 9, - "column": 805 - } - }, - "extra": { - "rawValue": "m", - "raw": "\"m\"" - }, - "value": "m" - } - } - } - } - }, - { - "type": "ExpressionStatement", - "start": 1075, - "end": 1114, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 845 - } - }, - "expression": { - "type": "LogicalExpression", - "start": 1075, - "end": 1114, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 845 - } - }, - "left": { - "type": "CallExpression", - "start": 1075, - "end": 1091, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 822 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1075, - "end": 1088, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 819 - } - }, - "object": { - "type": "Identifier", - "start": 1075, - "end": 1080, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 811 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 1081, - "end": 1088, - "loc": { - "start": { - "line": 9, - "column": 812 - }, - "end": { - "line": 9, - "column": 819 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1089, - "end": 1090, - "loc": { - "start": { - "line": 9, - "column": 820 - }, - "end": { - "line": 9, - "column": 821 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - }, - "operator": "&&", - "right": { - "type": "CallExpression", - "start": 1093, - "end": 1114, - "loc": { - "start": { - "line": 9, - "column": 824 - }, - "end": { - "line": 9, - "column": 845 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1093, - "end": 1111, - "loc": { - "start": { - "line": 9, - "column": 824 - }, - "end": { - "line": 9, - "column": 842 - } - }, - "object": { - "type": "ThisExpression", - "start": 1093, - "end": 1097, - "loc": { - "start": { - "line": 9, - "column": 824 - }, - "end": { - "line": 9, - "column": 828 - } - } - }, - "property": { - "type": "Identifier", - "start": 1098, - "end": 1111, - "loc": { - "start": { - "line": 9, - "column": 829 - }, - "end": { - "line": 9, - "column": 842 - }, - "identifierName": "registerTypes" - }, - "name": "registerTypes" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1112, - "end": 1113, - "loc": { - "start": { - "line": 9, - "column": 843 - }, - "end": { - "line": 9, - "column": 844 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1115, - "end": 1177, - "loc": { - "start": { - "line": 9, - "column": 846 - }, - "end": { - "line": 9, - "column": 908 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1115, - "end": 1121, - "loc": { - "start": { - "line": 9, - "column": 846 - }, - "end": { - "line": 9, - "column": 852 - }, - "identifierName": "prefix" - }, - "name": "prefix" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1122, - "end": 1123, - "loc": { - "start": { - "line": 9, - "column": 853 - }, - "end": { - "line": 9, - "column": 854 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 1124, - "end": 1177, - "loc": { - "start": { - "line": 9, - "column": 855 - }, - "end": { - "line": 9, - "column": 908 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 1125, - "end": 1176, - "loc": { - "start": { - "line": 9, - "column": 856 - }, - "end": { - "line": 9, - "column": 907 - } - }, - "argument": { - "type": "SequenceExpression", - "start": 1131, - "end": 1176, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 907 - } - }, - "expressions": [ - { - "type": "LogicalExpression", - "start": 1131, - "end": 1171, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 902 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1131, - "end": 1149, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 880 - } - }, - "left": { - "type": "StringLiteral", - "start": 1131, - "end": 1139, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 870 - } - }, - "extra": { - "rawValue": "string", - "raw": "\"string\"" - }, - "value": "string" - }, - "operator": "==", - "right": { - "type": "UnaryExpression", - "start": 1141, - "end": 1149, - "loc": { - "start": { - "line": 9, - "column": 872 - }, - "end": { - "line": 9, - "column": 880 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 1148, - "end": 1149, - "loc": { - "start": { - "line": 9, - "column": 879 - }, - "end": { - "line": 9, - "column": 880 - }, - "identifierName": "s" - }, - "name": "s" - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - "operator": "&&", - "right": { - "type": "AssignmentExpression", - "start": 1152, - "end": 1170, - "loc": { - "start": { - "line": 9, - "column": 883 - }, - "end": { - "line": 9, - "column": 901 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1152, - "end": 1168, - "loc": { - "start": { - "line": 9, - "column": 883 - }, - "end": { - "line": 9, - "column": 899 - } - }, - "object": { - "type": "ThisExpression", - "start": 1152, - "end": 1156, - "loc": { - "start": { - "line": 9, - "column": 883 - }, - "end": { - "line": 9, - "column": 887 - } - } - }, - "property": { - "type": "Identifier", - "start": 1157, - "end": 1168, - "loc": { - "start": { - "line": 9, - "column": 888 - }, - "end": { - "line": 9, - "column": 899 - }, - "identifierName": "currentType" - }, - "name": "currentType" - }, - "computed": false - }, - "right": { - "type": "Identifier", - "start": 1169, - "end": 1170, - "loc": { - "start": { - "line": 9, - "column": 900 - }, - "end": { - "line": 9, - "column": 901 - }, - "identifierName": "s" - }, - "name": "s" - }, - "extra": { - "parenthesized": true, - "parenStart": 1151 - } - } - }, - { - "type": "ThisExpression", - "start": 1172, - "end": 1176, - "loc": { - "start": { - "line": 9, - "column": 903 - }, - "end": { - "line": 9, - "column": 907 - } - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1177, - "end": 1680, - "loc": { - "start": { - "line": 9, - "column": 908 - }, - "end": { - "line": 9, - "column": 1411 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1177, - "end": 1184, - "loc": { - "start": { - "line": 9, - "column": 908 - }, - "end": { - "line": 9, - "column": 915 - }, - "identifierName": "message" - }, - "name": "message" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "AssignmentPattern", - "start": 1185, - "end": 1192, - "loc": { - "start": { - "line": 9, - "column": 916 - }, - "end": { - "line": 9, - "column": 923 - } - }, - "left": { - "type": "Identifier", - "start": 1185, - "end": 1186, - "loc": { - "start": { - "line": 9, - "column": 916 - }, - "end": { - "line": 9, - "column": 917 - }, - "identifierName": "t" - }, - "name": "t" - }, - "right": { - "type": "StringLiteral", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 9, - "column": 918 - }, - "end": { - "line": 9, - "column": 923 - } - }, - "extra": { - "rawValue": "log", - "raw": "\"log\"" - }, - "value": "log" - } - }, - { - "type": "RestElement", - "start": 1193, - "end": 1197, - "loc": { - "start": { - "line": 9, - "column": 924 - }, - "end": { - "line": 9, - "column": 928 - } - }, - "argument": { - "type": "Identifier", - "start": 1196, - "end": 1197, - "loc": { - "start": { - "line": 9, - "column": 927 - }, - "end": { - "line": 9, - "column": 928 - }, - "identifierName": "e" - }, - "name": "e" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1198, - "end": 1680, - "loc": { - "start": { - "line": 9, - "column": 929 - }, - "end": { - "line": 9, - "column": 1411 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1199, - "end": 1226, - "loc": { - "start": { - "line": 9, - "column": 930 - }, - "end": { - "line": 9, - "column": 957 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1203, - "end": 1225, - "loc": { - "start": { - "line": 9, - "column": 934 - }, - "end": { - "line": 9, - "column": 956 - } - }, - "id": { - "type": "Identifier", - "start": 1203, - "end": 1204, - "loc": { - "start": { - "line": 9, - "column": 934 - }, - "end": { - "line": 9, - "column": 935 - }, - "identifierName": "i" - }, - "name": "i" - }, - "init": { - "type": "LogicalExpression", - "start": 1205, - "end": 1225, - "loc": { - "start": { - "line": 9, - "column": 936 - }, - "end": { - "line": 9, - "column": 956 - } - }, - "left": { - "type": "MemberExpression", - "start": 1205, - "end": 1221, - "loc": { - "start": { - "line": 9, - "column": 936 - }, - "end": { - "line": 9, - "column": 952 - } - }, - "object": { - "type": "ThisExpression", - "start": 1205, - "end": 1209, - "loc": { - "start": { - "line": 9, - "column": 936 - }, - "end": { - "line": 9, - "column": 940 - } - } - }, - "property": { - "type": "Identifier", - "start": 1210, - "end": 1221, - "loc": { - "start": { - "line": 9, - "column": 941 - }, - "end": { - "line": 9, - "column": 952 - }, - "identifierName": "currentType" - }, - "name": "currentType" - }, - "computed": false - }, - "operator": "||", - "right": { - "type": "StringLiteral", - "start": 1223, - "end": 1225, - "loc": { - "start": { - "line": 9, - "column": 954 - }, - "end": { - "line": 9, - "column": 956 - } - }, - "extra": { - "rawValue": "", - "raw": "\"\"" - }, - "value": "" - } - } - } - ], - "kind": "var" - }, - { - "type": "IfStatement", - "start": 1226, - "end": 1660, - "loc": { - "start": { - "line": 9, - "column": 957 - }, - "end": { - "line": 9, - "column": 1391 - } - }, - "test": { - "type": "BinaryExpression", - "start": 1229, - "end": 1241, - "loc": { - "start": { - "line": 9, - "column": 960 - }, - "end": { - "line": 9, - "column": 972 - } - }, - "left": { - "type": "NumericLiteral", - "start": 1229, - "end": 1230, - "loc": { - "start": { - "line": 9, - "column": 960 - }, - "end": { - "line": 9, - "column": 961 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - }, - "operator": "===", - "right": { - "type": "MemberExpression", - "start": 1233, - "end": 1241, - "loc": { - "start": { - "line": 9, - "column": 964 - }, - "end": { - "line": 9, - "column": 972 - } - }, - "object": { - "type": "Identifier", - "start": 1233, - "end": 1234, - "loc": { - "start": { - "line": 9, - "column": 964 - }, - "end": { - "line": 9, - "column": 965 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1235, - "end": 1241, - "loc": { - "start": { - "line": 9, - "column": 966 - }, - "end": { - "line": 9, - "column": 972 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "consequent": { - "type": "ExpressionStatement", - "start": 1242, - "end": 1259, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 990 - } - }, - "expression": { - "type": "CallExpression", - "start": 1242, - "end": 1258, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 989 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1242, - "end": 1252, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 983 - } - }, - "object": { - "type": "Identifier", - "start": 1242, - "end": 1249, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 980 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1250, - "end": 1251, - "loc": { - "start": { - "line": 9, - "column": 981 - }, - "end": { - "line": 9, - "column": 982 - }, - "identifierName": "t" - }, - "name": "t" - }, - "computed": true - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 1253, - "end": 1257, - "loc": { - "start": { - "line": 9, - "column": 984 - }, - "end": { - "line": 9, - "column": 988 - } - }, - "argument": { - "type": "Identifier", - "start": 1256, - "end": 1257, - "loc": { - "start": { - "line": 9, - "column": 987 - }, - "end": { - "line": 9, - "column": 988 - }, - "identifierName": "e" - }, - "name": "e" - } - } - ] - } - }, - "alternate": { - "type": "BlockStatement", - "start": 1263, - "end": 1660, - "loc": { - "start": { - "line": 9, - "column": 994 - }, - "end": { - "line": 9, - "column": 1391 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 1264, - "end": 1304, - "loc": { - "start": { - "line": 9, - "column": 995 - }, - "end": { - "line": 9, - "column": 1035 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1268, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 999 - }, - "end": { - "line": 9, - "column": 1034 - } - }, - "id": { - "type": "Identifier", - "start": 1268, - "end": 1269, - "loc": { - "start": { - "line": 9, - "column": 999 - }, - "end": { - "line": 9, - "column": 1000 - }, - "identifierName": "h" - }, - "name": "h" - }, - "init": { - "type": "BinaryExpression", - "start": 1270, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 1001 - }, - "end": { - "line": 9, - "column": 1034 - } - }, - "left": { - "type": "MemberExpression", - "start": 1270, - "end": 1278, - "loc": { - "start": { - "line": 9, - "column": 1001 - }, - "end": { - "line": 9, - "column": 1009 - } - }, - "object": { - "type": "Identifier", - "start": 1270, - "end": 1271, - "loc": { - "start": { - "line": 9, - "column": 1001 - }, - "end": { - "line": 9, - "column": 1002 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1272, - "end": 1278, - "loc": { - "start": { - "line": 9, - "column": 1003 - }, - "end": { - "line": 9, - "column": 1009 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - }, - "operator": ">=", - "right": { - "type": "MemberExpression", - "start": 1280, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 1011 - }, - "end": { - "line": 9, - "column": 1034 - } - }, - "object": { - "type": "ThisExpression", - "start": 1280, - "end": 1284, - "loc": { - "start": { - "line": 9, - "column": 1011 - }, - "end": { - "line": 9, - "column": 1015 - } - } - }, - "property": { - "type": "Identifier", - "start": 1285, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 1016 - }, - "end": { - "line": 9, - "column": 1034 - }, - "identifierName": "TYPE_SPACER_LENGTH" - }, - "name": "TYPE_SPACER_LENGTH" - }, - "computed": false - } - } - } - ], - "kind": "var" - }, - { - "type": "VariableDeclaration", - "start": 1304, - "end": 1385, - "loc": { - "start": { - "line": 9, - "column": 1035 - }, - "end": { - "line": 9, - "column": 1116 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1308, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1039 - }, - "end": { - "line": 9, - "column": 1115 - } - }, - "id": { - "type": "Identifier", - "start": 1308, - "end": 1309, - "loc": { - "start": { - "line": 9, - "column": 1039 - }, - "end": { - "line": 9, - "column": 1040 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "ConditionalExpression", - "start": 1310, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1115 - } - }, - "test": { - "type": "MemberExpression", - "start": 1310, - "end": 1337, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1068 - } - }, - "object": { - "type": "MemberExpression", - "start": 1310, - "end": 1320, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1051 - } - }, - "object": { - "type": "ThisExpression", - "start": 1310, - "end": 1314, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1045 - } - } - }, - "property": { - "type": "Identifier", - "start": 1315, - "end": 1320, - "loc": { - "start": { - "line": 9, - "column": 1046 - }, - "end": { - "line": 9, - "column": 1051 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "CallExpression", - "start": 1321, - "end": 1336, - "loc": { - "start": { - "line": 9, - "column": 1052 - }, - "end": { - "line": 9, - "column": 1067 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1321, - "end": 1334, - "loc": { - "start": { - "line": 9, - "column": 1052 - }, - "end": { - "line": 9, - "column": 1065 - } - }, - "object": { - "type": "Identifier", - "start": 1321, - "end": 1322, - "loc": { - "start": { - "line": 9, - "column": 1052 - }, - "end": { - "line": 9, - "column": 1053 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1323, - "end": 1334, - "loc": { - "start": { - "line": 9, - "column": 1054 - }, - "end": { - "line": 9, - "column": 1065 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - }, - "computed": true - }, - "consequent": { - "type": "MemberExpression", - "start": 1338, - "end": 1365, - "loc": { - "start": { - "line": 9, - "column": 1069 - }, - "end": { - "line": 9, - "column": 1096 - } - }, - "object": { - "type": "MemberExpression", - "start": 1338, - "end": 1348, - "loc": { - "start": { - "line": 9, - "column": 1069 - }, - "end": { - "line": 9, - "column": 1079 - } - }, - "object": { - "type": "ThisExpression", - "start": 1338, - "end": 1342, - "loc": { - "start": { - "line": 9, - "column": 1069 - }, - "end": { - "line": 9, - "column": 1073 - } - } - }, - "property": { - "type": "Identifier", - "start": 1343, - "end": 1348, - "loc": { - "start": { - "line": 9, - "column": 1074 - }, - "end": { - "line": 9, - "column": 1079 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "CallExpression", - "start": 1349, - "end": 1364, - "loc": { - "start": { - "line": 9, - "column": 1080 - }, - "end": { - "line": 9, - "column": 1095 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1349, - "end": 1362, - "loc": { - "start": { - "line": 9, - "column": 1080 - }, - "end": { - "line": 9, - "column": 1093 - } - }, - "object": { - "type": "Identifier", - "start": 1349, - "end": 1350, - "loc": { - "start": { - "line": 9, - "column": 1080 - }, - "end": { - "line": 9, - "column": 1081 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1351, - "end": 1362, - "loc": { - "start": { - "line": 9, - "column": 1082 - }, - "end": { - "line": 9, - "column": 1093 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - }, - "computed": true - }, - "alternate": { - "type": "MemberExpression", - "start": 1366, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1097 - }, - "end": { - "line": 9, - "column": 1115 - } - }, - "object": { - "type": "MemberExpression", - "start": 1366, - "end": 1376, - "loc": { - "start": { - "line": 9, - "column": 1097 - }, - "end": { - "line": 9, - "column": 1107 - } - }, - "object": { - "type": "ThisExpression", - "start": 1366, - "end": 1370, - "loc": { - "start": { - "line": 9, - "column": 1097 - }, - "end": { - "line": 9, - "column": 1101 - } - } - }, - "property": { - "type": "Identifier", - "start": 1371, - "end": 1376, - "loc": { - "start": { - "line": 9, - "column": 1102 - }, - "end": { - "line": 9, - "column": 1107 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1377, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1108 - }, - "end": { - "line": 9, - "column": 1115 - }, - "identifierName": "default" - }, - "name": "default" - }, - "computed": false - } - } - } - ], - "kind": "let" - }, - { - "type": "VariableDeclaration", - "start": 1385, - "end": 1407, - "loc": { - "start": { - "line": 9, - "column": 1116 - }, - "end": { - "line": 9, - "column": 1138 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 1389, - "end": 1406, - "loc": { - "start": { - "line": 9, - "column": 1120 - }, - "end": { - "line": 9, - "column": 1137 - } - }, - "id": { - "type": "Identifier", - "start": 1389, - "end": 1390, - "loc": { - "start": { - "line": 9, - "column": 1120 - }, - "end": { - "line": 9, - "column": 1121 - }, - "identifierName": "r" - }, - "name": "r" - }, - "init": { - "type": "CallExpression", - "start": 1391, - "end": 1406, - "loc": { - "start": { - "line": 9, - "column": 1122 - }, - "end": { - "line": 9, - "column": 1137 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1391, - "end": 1401, - "loc": { - "start": { - "line": 9, - "column": 1122 - }, - "end": { - "line": 9, - "column": 1132 - } - }, - "object": { - "type": "Identifier", - "start": 1391, - "end": 1392, - "loc": { - "start": { - "line": 9, - "column": 1122 - }, - "end": { - "line": 9, - "column": 1123 - }, - "identifierName": "s" - }, - "name": "s" - }, - "property": { - "type": "Identifier", - "start": 1393, - "end": 1401, - "loc": { - "start": { - "line": 9, - "column": 1124 - }, - "end": { - "line": 9, - "column": 1132 - }, - "identifierName": "includes" - }, - "name": "includes" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1402, - "end": 1405, - "loc": { - "start": { - "line": 9, - "column": 1133 - }, - "end": { - "line": 9, - "column": 1136 - } - }, - "extra": { - "rawValue": "\u001b", - "raw": "\"\u001b\"" - }, - "value": "\u001b" - } - ] - } - } - ], - "kind": "var" - }, - { - "type": "ExpressionStatement", - "start": 1407, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1390 - } - }, - "expression": { - "type": "SequenceExpression", - "start": 1407, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1390 - } - }, - "expressions": [ - { - "type": "LogicalExpression", - "start": 1407, - "end": 1425, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1156 - } - }, - "left": { - "type": "Identifier", - "start": 1407, - "end": 1408, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1139 - }, - "identifierName": "r" - }, - "name": "r" - }, - "operator": "||", - "right": { - "type": "AssignmentExpression", - "start": 1411, - "end": 1424, - "loc": { - "start": { - "line": 9, - "column": 1142 - }, - "end": { - "line": 9, - "column": 1155 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 1411, - "end": 1412, - "loc": { - "start": { - "line": 9, - "column": 1142 - }, - "end": { - "line": 9, - "column": 1143 - }, - "identifierName": "s" - }, - "name": "s" - }, - "right": { - "type": "BinaryExpression", - "start": 1413, - "end": 1424, - "loc": { - "start": { - "line": 9, - "column": 1144 - }, - "end": { - "line": 9, - "column": 1155 - } - }, - "left": { - "type": "StringLiteral", - "start": 1413, - "end": 1422, - "loc": { - "start": { - "line": 9, - "column": 1144 - }, - "end": { - "line": 9, - "column": 1153 - } - }, - "extra": { - "rawValue": "color: ", - "raw": "\"color: \"" - }, - "value": "color: " - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1423, - "end": 1424, - "loc": { - "start": { - "line": 9, - "column": 1154 - }, - "end": { - "line": 9, - "column": 1155 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "extra": { - "parenthesized": true, - "parenStart": 1410 - } - } - }, - { - "type": "ConditionalExpression", - "start": 1426, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1157 - }, - "end": { - "line": 9, - "column": 1390 - } - }, - "test": { - "type": "LogicalExpression", - "start": 1426, - "end": 1447, - "loc": { - "start": { - "line": 9, - "column": 1157 - }, - "end": { - "line": 9, - "column": 1178 - } - }, - "left": { - "type": "UnaryExpression", - "start": 1426, - "end": 1444, - "loc": { - "start": { - "line": 9, - "column": 1157 - }, - "end": { - "line": 9, - "column": 1175 - } - }, - "operator": "!", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 1427, - "end": 1444, - "loc": { - "start": { - "line": 9, - "column": 1158 - }, - "end": { - "line": 9, - "column": 1175 - } - }, - "object": { - "type": "Identifier", - "start": 1427, - "end": 1437, - "loc": { - "start": { - "line": 9, - "column": 1158 - }, - "end": { - "line": 9, - "column": 1168 - }, - "identifierName": "globalThis" - }, - "name": "globalThis" - }, - "property": { - "type": "Identifier", - "start": 1438, - "end": 1444, - "loc": { - "start": { - "line": 9, - "column": 1169 - }, - "end": { - "line": 9, - "column": 1175 - }, - "identifierName": "window" - }, - "name": "window" - }, - "computed": false - }, - "extra": { - "parenthesizedArgument": false - } - }, - "operator": "||", - "right": { - "type": "Identifier", - "start": 1446, - "end": 1447, - "loc": { - "start": { - "line": 9, - "column": 1177 - }, - "end": { - "line": 9, - "column": 1178 - }, - "identifierName": "r" - }, - "name": "r" - } - }, - "consequent": { - "type": "CallExpression", - "start": 1448, - "end": 1556, - "loc": { - "start": { - "line": 9, - "column": 1179 - }, - "end": { - "line": 9, - "column": 1287 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1448, - "end": 1458, - "loc": { - "start": { - "line": 9, - "column": 1179 - }, - "end": { - "line": 9, - "column": 1189 - } - }, - "object": { - "type": "Identifier", - "start": 1448, - "end": 1455, - "loc": { - "start": { - "line": 9, - "column": 1179 - }, - "end": { - "line": 9, - "column": 1186 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1456, - "end": 1457, - "loc": { - "start": { - "line": 9, - "column": 1187 - }, - "end": { - "line": 9, - "column": 1188 - }, - "identifierName": "t" - }, - "name": "t" - }, - "computed": true - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1459, - "end": 1550, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1281 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1459, - "end": 1539, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1270 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1459, - "end": 1535, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1266 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1459, - "end": 1462, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1193 - } - }, - "left": { - "type": "Identifier", - "start": 1459, - "end": 1460, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1191 - }, - "identifierName": "s" - }, - "name": "s" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1461, - "end": 1462, - "loc": { - "start": { - "line": 9, - "column": 1192 - }, - "end": { - "line": 9, - "column": 1193 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 1463, - "end": 1535, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1266 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1463, - "end": 1485, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1216 - } - }, - "object": { - "type": "MemberExpression", - "start": 1463, - "end": 1478, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1209 - } - }, - "object": { - "type": "ThisExpression", - "start": 1463, - "end": 1467, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1198 - } - } - }, - "property": { - "type": "Identifier", - "start": 1468, - "end": 1478, - "loc": { - "start": { - "line": 9, - "column": 1199 - }, - "end": { - "line": 9, - "column": 1209 - }, - "identifierName": "SPACE_CHAR" - }, - "name": "SPACE_CHAR" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1479, - "end": 1485, - "loc": { - "start": { - "line": 9, - "column": 1210 - }, - "end": { - "line": 9, - "column": 1216 - }, - "identifierName": "repeat" - }, - "name": "repeat" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1486, - "end": 1534, - "loc": { - "start": { - "line": 9, - "column": 1217 - }, - "end": { - "line": 9, - "column": 1265 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1486, - "end": 1494, - "loc": { - "start": { - "line": 9, - "column": 1217 - }, - "end": { - "line": 9, - "column": 1225 - } - }, - "object": { - "type": "Identifier", - "start": 1486, - "end": 1490, - "loc": { - "start": { - "line": 9, - "column": 1217 - }, - "end": { - "line": 9, - "column": 1221 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1491, - "end": 1494, - "loc": { - "start": { - "line": 9, - "column": 1222 - }, - "end": { - "line": 9, - "column": 1225 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1495, - "end": 1527, - "loc": { - "start": { - "line": 9, - "column": 1226 - }, - "end": { - "line": 9, - "column": 1258 - } - }, - "left": { - "type": "MemberExpression", - "start": 1495, - "end": 1518, - "loc": { - "start": { - "line": 9, - "column": 1226 - }, - "end": { - "line": 9, - "column": 1249 - } - }, - "object": { - "type": "ThisExpression", - "start": 1495, - "end": 1499, - "loc": { - "start": { - "line": 9, - "column": 1226 - }, - "end": { - "line": 9, - "column": 1230 - } - } - }, - "property": { - "type": "Identifier", - "start": 1500, - "end": 1518, - "loc": { - "start": { - "line": 9, - "column": 1231 - }, - "end": { - "line": 9, - "column": 1249 - }, - "identifierName": "TYPE_SPACER_LENGTH" - }, - "name": "TYPE_SPACER_LENGTH" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 1519, - "end": 1527, - "loc": { - "start": { - "line": 9, - "column": 1250 - }, - "end": { - "line": 9, - "column": 1258 - } - }, - "object": { - "type": "Identifier", - "start": 1519, - "end": 1520, - "loc": { - "start": { - "line": 9, - "column": 1250 - }, - "end": { - "line": 9, - "column": 1251 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1521, - "end": 1527, - "loc": { - "start": { - "line": 9, - "column": 1252 - }, - "end": { - "line": 9, - "column": 1258 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - { - "type": "ConditionalExpression", - "start": 1528, - "end": 1533, - "loc": { - "start": { - "line": 9, - "column": 1259 - }, - "end": { - "line": 9, - "column": 1264 - } - }, - "test": { - "type": "Identifier", - "start": 1528, - "end": 1529, - "loc": { - "start": { - "line": 9, - "column": 1259 - }, - "end": { - "line": 9, - "column": 1260 - }, - "identifierName": "h" - }, - "name": "h" - }, - "consequent": { - "type": "NumericLiteral", - "start": 1530, - "end": 1531, - "loc": { - "start": { - "line": 9, - "column": 1261 - }, - "end": { - "line": 9, - "column": 1262 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "alternate": { - "type": "NumericLiteral", - "start": 1532, - "end": 1533, - "loc": { - "start": { - "line": 9, - "column": 1263 - }, - "end": { - "line": 9, - "column": 1264 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ] - } - ] - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 1536, - "end": 1539, - "loc": { - "start": { - "line": 9, - "column": 1267 - }, - "end": { - "line": 9, - "column": 1270 - } - }, - "extra": { - "rawValue": "|", - "raw": "\"|\"" - }, - "value": "|" - } - }, - "operator": "+", - "right": { - "type": "MemberExpression", - "start": 1540, - "end": 1550, - "loc": { - "start": { - "line": 9, - "column": 1271 - }, - "end": { - "line": 9, - "column": 1281 - } - }, - "object": { - "type": "ThisExpression", - "start": 1540, - "end": 1544, - "loc": { - "start": { - "line": 9, - "column": 1271 - }, - "end": { - "line": 9, - "column": 1275 - } - } - }, - "property": { - "type": "Identifier", - "start": 1545, - "end": 1550, - "loc": { - "start": { - "line": 9, - "column": 1276 - }, - "end": { - "line": 9, - "column": 1281 - }, - "identifierName": "RESET" - }, - "name": "RESET" - }, - "computed": false - } - }, - { - "type": "SpreadElement", - "start": 1551, - "end": 1555, - "loc": { - "start": { - "line": 9, - "column": 1282 - }, - "end": { - "line": 9, - "column": 1286 - } - }, - "argument": { - "type": "Identifier", - "start": 1554, - "end": 1555, - "loc": { - "start": { - "line": 9, - "column": 1285 - }, - "end": { - "line": 9, - "column": 1286 - }, - "identifierName": "e" - }, - "name": "e" - } - } - ] - }, - "alternate": { - "type": "CallExpression", - "start": 1557, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1288 - }, - "end": { - "line": 9, - "column": 1390 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1557, - "end": 1567, - "loc": { - "start": { - "line": 9, - "column": 1288 - }, - "end": { - "line": 9, - "column": 1298 - } - }, - "object": { - "type": "Identifier", - "start": 1557, - "end": 1564, - "loc": { - "start": { - "line": 9, - "column": 1288 - }, - "end": { - "line": 9, - "column": 1295 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1565, - "end": 1566, - "loc": { - "start": { - "line": 9, - "column": 1296 - }, - "end": { - "line": 9, - "column": 1297 - }, - "identifierName": "t" - }, - "name": "t" - }, - "computed": true - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1568, - "end": 1651, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1382 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1568, - "end": 1647, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1378 - } - }, - "left": { - "type": "BinaryExpression", - "start": 1568, - "end": 1574, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1305 - } - }, - "left": { - "type": "StringLiteral", - "start": 1568, - "end": 1572, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1303 - } - }, - "extra": { - "rawValue": "%c", - "raw": "\"%c\"" - }, - "value": "%c" - }, - "operator": "+", - "right": { - "type": "Identifier", - "start": 1573, - "end": 1574, - "loc": { - "start": { - "line": 9, - "column": 1304 - }, - "end": { - "line": 9, - "column": 1305 - }, - "identifierName": "i" - }, - "name": "i" - } - }, - "operator": "+", - "right": { - "type": "CallExpression", - "start": 1575, - "end": 1647, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1378 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1575, - "end": 1597, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1328 - } - }, - "object": { - "type": "MemberExpression", - "start": 1575, - "end": 1590, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1321 - } - }, - "object": { - "type": "ThisExpression", - "start": 1575, - "end": 1579, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1310 - } - } - }, - "property": { - "type": "Identifier", - "start": 1580, - "end": 1590, - "loc": { - "start": { - "line": 9, - "column": 1311 - }, - "end": { - "line": 9, - "column": 1321 - }, - "identifierName": "SPACE_CHAR" - }, - "name": "SPACE_CHAR" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 1591, - "end": 1597, - "loc": { - "start": { - "line": 9, - "column": 1322 - }, - "end": { - "line": 9, - "column": 1328 - }, - "identifierName": "repeat" - }, - "name": "repeat" - }, - "computed": false - }, - "arguments": [ - { - "type": "CallExpression", - "start": 1598, - "end": 1646, - "loc": { - "start": { - "line": 9, - "column": 1329 - }, - "end": { - "line": 9, - "column": 1377 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1598, - "end": 1606, - "loc": { - "start": { - "line": 9, - "column": 1329 - }, - "end": { - "line": 9, - "column": 1337 - } - }, - "object": { - "type": "Identifier", - "start": 1598, - "end": 1602, - "loc": { - "start": { - "line": 9, - "column": 1329 - }, - "end": { - "line": 9, - "column": 1333 - }, - "identifierName": "Math" - }, - "name": "Math" - }, - "property": { - "type": "Identifier", - "start": 1603, - "end": 1606, - "loc": { - "start": { - "line": 9, - "column": 1334 - }, - "end": { - "line": 9, - "column": 1337 - }, - "identifierName": "max" - }, - "name": "max" - }, - "computed": false - }, - "arguments": [ - { - "type": "BinaryExpression", - "start": 1607, - "end": 1639, - "loc": { - "start": { - "line": 9, - "column": 1338 - }, - "end": { - "line": 9, - "column": 1370 - } - }, - "left": { - "type": "MemberExpression", - "start": 1607, - "end": 1630, - "loc": { - "start": { - "line": 9, - "column": 1338 - }, - "end": { - "line": 9, - "column": 1361 - } - }, - "object": { - "type": "ThisExpression", - "start": 1607, - "end": 1611, - "loc": { - "start": { - "line": 9, - "column": 1338 - }, - "end": { - "line": 9, - "column": 1342 - } - } - }, - "property": { - "type": "Identifier", - "start": 1612, - "end": 1630, - "loc": { - "start": { - "line": 9, - "column": 1343 - }, - "end": { - "line": 9, - "column": 1361 - }, - "identifierName": "TYPE_SPACER_LENGTH" - }, - "name": "TYPE_SPACER_LENGTH" - }, - "computed": false - }, - "operator": "-", - "right": { - "type": "MemberExpression", - "start": 1631, - "end": 1639, - "loc": { - "start": { - "line": 9, - "column": 1362 - }, - "end": { - "line": 9, - "column": 1370 - } - }, - "object": { - "type": "Identifier", - "start": 1631, - "end": 1632, - "loc": { - "start": { - "line": 9, - "column": 1362 - }, - "end": { - "line": 9, - "column": 1363 - }, - "identifierName": "i" - }, - "name": "i" - }, - "property": { - "type": "Identifier", - "start": 1633, - "end": 1639, - "loc": { - "start": { - "line": 9, - "column": 1364 - }, - "end": { - "line": 9, - "column": 1370 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - { - "type": "ConditionalExpression", - "start": 1640, - "end": 1645, - "loc": { - "start": { - "line": 9, - "column": 1371 - }, - "end": { - "line": 9, - "column": 1376 - } - }, - "test": { - "type": "Identifier", - "start": 1640, - "end": 1641, - "loc": { - "start": { - "line": 9, - "column": 1371 - }, - "end": { - "line": 9, - "column": 1372 - }, - "identifierName": "h" - }, - "name": "h" - }, - "consequent": { - "type": "NumericLiteral", - "start": 1642, - "end": 1643, - "loc": { - "start": { - "line": 9, - "column": 1373 - }, - "end": { - "line": 9, - "column": 1374 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - }, - "alternate": { - "type": "NumericLiteral", - "start": 1644, - "end": 1645, - "loc": { - "start": { - "line": 9, - "column": 1375 - }, - "end": { - "line": 9, - "column": 1376 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ] - } - ] - } - }, - "operator": "+", - "right": { - "type": "StringLiteral", - "start": 1648, - "end": 1651, - "loc": { - "start": { - "line": 9, - "column": 1379 - }, - "end": { - "line": 9, - "column": 1382 - } - }, - "extra": { - "rawValue": "|", - "raw": "\"|\"" - }, - "value": "|" - } - }, - { - "type": "Identifier", - "start": 1652, - "end": 1653, - "loc": { - "start": { - "line": 9, - "column": 1383 - }, - "end": { - "line": 9, - "column": 1384 - }, - "identifierName": "s" - }, - "name": "s" - }, - { - "type": "SpreadElement", - "start": 1654, - "end": 1658, - "loc": { - "start": { - "line": 9, - "column": 1385 - }, - "end": { - "line": 9, - "column": 1389 - } - }, - "argument": { - "type": "Identifier", - "start": 1657, - "end": 1658, - "loc": { - "start": { - "line": 9, - "column": 1388 - }, - "end": { - "line": 9, - "column": 1389 - }, - "identifierName": "e" - }, - "name": "e" - } - } - ] - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ExpressionStatement", - "start": 1660, - "end": 1679, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1410 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 1660, - "end": 1679, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1410 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 1660, - "end": 1676, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1407 - } - }, - "object": { - "type": "ThisExpression", - "start": 1660, - "end": 1664, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1395 - } - } - }, - "property": { - "type": "Identifier", - "start": 1665, - "end": 1676, - "loc": { - "start": { - "line": 9, - "column": 1396 - }, - "end": { - "line": 9, - "column": 1407 - }, - "identifierName": "currentType" - }, - "name": "currentType" - }, - "computed": false - }, - "right": { - "type": "StringLiteral", - "start": 1677, - "end": 1679, - "loc": { - "start": { - "line": 9, - "column": 1408 - }, - "end": { - "line": 9, - "column": 1410 - } - }, - "extra": { - "rawValue": "", - "raw": "\"\"" - }, - "value": "" - } - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1680, - "end": 1715, - "loc": { - "start": { - "line": 9, - "column": 1411 - }, - "end": { - "line": 9, - "column": 1446 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1680, - "end": 1683, - "loc": { - "start": { - "line": 9, - "column": 1411 - }, - "end": { - "line": 9, - "column": 1414 - }, - "identifierName": "log" - }, - "name": "log" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1684, - "end": 1688, - "loc": { - "start": { - "line": 9, - "column": 1415 - }, - "end": { - "line": 9, - "column": 1419 - } - }, - "argument": { - "type": "Identifier", - "start": 1687, - "end": 1688, - "loc": { - "start": { - "line": 9, - "column": 1418 - }, - "end": { - "line": 9, - "column": 1419 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1689, - "end": 1715, - "loc": { - "start": { - "line": 9, - "column": 1420 - }, - "end": { - "line": 9, - "column": 1446 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1690, - "end": 1714, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1445 - } - }, - "expression": { - "type": "CallExpression", - "start": 1690, - "end": 1714, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1445 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1690, - "end": 1702, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1433 - } - }, - "object": { - "type": "ThisExpression", - "start": 1690, - "end": 1694, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1425 - } - } - }, - "property": { - "type": "Identifier", - "start": 1695, - "end": 1702, - "loc": { - "start": { - "line": 9, - "column": 1426 - }, - "end": { - "line": 9, - "column": 1433 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1703, - "end": 1708, - "loc": { - "start": { - "line": 9, - "column": 1434 - }, - "end": { - "line": 9, - "column": 1439 - } - }, - "extra": { - "rawValue": "log", - "raw": "\"log\"" - }, - "value": "log" - }, - { - "type": "SpreadElement", - "start": 1709, - "end": 1713, - "loc": { - "start": { - "line": 9, - "column": 1440 - }, - "end": { - "line": 9, - "column": 1444 - } - }, - "argument": { - "type": "Identifier", - "start": 1712, - "end": 1713, - "loc": { - "start": { - "line": 9, - "column": 1443 - }, - "end": { - "line": 9, - "column": 1444 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1715, - "end": 1752, - "loc": { - "start": { - "line": 9, - "column": 1446 - }, - "end": { - "line": 9, - "column": 1483 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1715, - "end": 1719, - "loc": { - "start": { - "line": 9, - "column": 1446 - }, - "end": { - "line": 9, - "column": 1450 - }, - "identifierName": "info" - }, - "name": "info" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1720, - "end": 1724, - "loc": { - "start": { - "line": 9, - "column": 1451 - }, - "end": { - "line": 9, - "column": 1455 - } - }, - "argument": { - "type": "Identifier", - "start": 1723, - "end": 1724, - "loc": { - "start": { - "line": 9, - "column": 1454 - }, - "end": { - "line": 9, - "column": 1455 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1725, - "end": 1752, - "loc": { - "start": { - "line": 9, - "column": 1456 - }, - "end": { - "line": 9, - "column": 1483 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1726, - "end": 1751, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1482 - } - }, - "expression": { - "type": "CallExpression", - "start": 1726, - "end": 1751, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1482 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1726, - "end": 1738, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1469 - } - }, - "object": { - "type": "ThisExpression", - "start": 1726, - "end": 1730, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1461 - } - } - }, - "property": { - "type": "Identifier", - "start": 1731, - "end": 1738, - "loc": { - "start": { - "line": 9, - "column": 1462 - }, - "end": { - "line": 9, - "column": 1469 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1739, - "end": 1745, - "loc": { - "start": { - "line": 9, - "column": 1470 - }, - "end": { - "line": 9, - "column": 1476 - } - }, - "extra": { - "rawValue": "info", - "raw": "\"info\"" - }, - "value": "info" - }, - { - "type": "SpreadElement", - "start": 1746, - "end": 1750, - "loc": { - "start": { - "line": 9, - "column": 1477 - }, - "end": { - "line": 9, - "column": 1481 - } - }, - "argument": { - "type": "Identifier", - "start": 1749, - "end": 1750, - "loc": { - "start": { - "line": 9, - "column": 1480 - }, - "end": { - "line": 9, - "column": 1481 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1752, - "end": 1791, - "loc": { - "start": { - "line": 9, - "column": 1483 - }, - "end": { - "line": 9, - "column": 1522 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1752, - "end": 1757, - "loc": { - "start": { - "line": 9, - "column": 1483 - }, - "end": { - "line": 9, - "column": 1488 - }, - "identifierName": "error" - }, - "name": "error" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1758, - "end": 1762, - "loc": { - "start": { - "line": 9, - "column": 1489 - }, - "end": { - "line": 9, - "column": 1493 - } - }, - "argument": { - "type": "Identifier", - "start": 1761, - "end": 1762, - "loc": { - "start": { - "line": 9, - "column": 1492 - }, - "end": { - "line": 9, - "column": 1493 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1763, - "end": 1791, - "loc": { - "start": { - "line": 9, - "column": 1494 - }, - "end": { - "line": 9, - "column": 1522 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1764, - "end": 1790, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1521 - } - }, - "expression": { - "type": "CallExpression", - "start": 1764, - "end": 1790, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1521 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1764, - "end": 1776, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1507 - } - }, - "object": { - "type": "ThisExpression", - "start": 1764, - "end": 1768, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1499 - } - } - }, - "property": { - "type": "Identifier", - "start": 1769, - "end": 1776, - "loc": { - "start": { - "line": 9, - "column": 1500 - }, - "end": { - "line": 9, - "column": 1507 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1777, - "end": 1784, - "loc": { - "start": { - "line": 9, - "column": 1508 - }, - "end": { - "line": 9, - "column": 1515 - } - }, - "extra": { - "rawValue": "error", - "raw": "\"error\"" - }, - "value": "error" - }, - { - "type": "SpreadElement", - "start": 1785, - "end": 1789, - "loc": { - "start": { - "line": 9, - "column": 1516 - }, - "end": { - "line": 9, - "column": 1520 - } - }, - "argument": { - "type": "Identifier", - "start": 1788, - "end": 1789, - "loc": { - "start": { - "line": 9, - "column": 1519 - }, - "end": { - "line": 9, - "column": 1520 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1791, - "end": 1828, - "loc": { - "start": { - "line": 9, - "column": 1522 - }, - "end": { - "line": 9, - "column": 1559 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1791, - "end": 1795, - "loc": { - "start": { - "line": 9, - "column": 1522 - }, - "end": { - "line": 9, - "column": 1526 - }, - "identifierName": "warn" - }, - "name": "warn" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1796, - "end": 1800, - "loc": { - "start": { - "line": 9, - "column": 1527 - }, - "end": { - "line": 9, - "column": 1531 - } - }, - "argument": { - "type": "Identifier", - "start": 1799, - "end": 1800, - "loc": { - "start": { - "line": 9, - "column": 1530 - }, - "end": { - "line": 9, - "column": 1531 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1801, - "end": 1828, - "loc": { - "start": { - "line": 9, - "column": 1532 - }, - "end": { - "line": 9, - "column": 1559 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1802, - "end": 1827, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1558 - } - }, - "expression": { - "type": "CallExpression", - "start": 1802, - "end": 1827, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1558 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1802, - "end": 1814, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1545 - } - }, - "object": { - "type": "ThisExpression", - "start": 1802, - "end": 1806, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1537 - } - } - }, - "property": { - "type": "Identifier", - "start": 1807, - "end": 1814, - "loc": { - "start": { - "line": 9, - "column": 1538 - }, - "end": { - "line": 9, - "column": 1545 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1815, - "end": 1821, - "loc": { - "start": { - "line": 9, - "column": 1546 - }, - "end": { - "line": 9, - "column": 1552 - } - }, - "extra": { - "rawValue": "warn", - "raw": "\"warn\"" - }, - "value": "warn" - }, - { - "type": "SpreadElement", - "start": 1822, - "end": 1826, - "loc": { - "start": { - "line": 9, - "column": 1553 - }, - "end": { - "line": 9, - "column": 1557 - } - }, - "argument": { - "type": "Identifier", - "start": 1825, - "end": 1826, - "loc": { - "start": { - "line": 9, - "column": 1556 - }, - "end": { - "line": 9, - "column": 1557 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1828, - "end": 1862, - "loc": { - "start": { - "line": 9, - "column": 1559 - }, - "end": { - "line": 9, - "column": 1593 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1828, - "end": 1834, - "loc": { - "start": { - "line": 9, - "column": 1559 - }, - "end": { - "line": 9, - "column": 1565 - }, - "identifierName": "assert" - }, - "name": "assert" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1835, - "end": 1839, - "loc": { - "start": { - "line": 9, - "column": 1566 - }, - "end": { - "line": 9, - "column": 1570 - } - }, - "argument": { - "type": "Identifier", - "start": 1838, - "end": 1839, - "loc": { - "start": { - "line": 9, - "column": 1569 - }, - "end": { - "line": 9, - "column": 1570 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1840, - "end": 1862, - "loc": { - "start": { - "line": 9, - "column": 1571 - }, - "end": { - "line": 9, - "column": 1593 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1841, - "end": 1861, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1592 - } - }, - "expression": { - "type": "CallExpression", - "start": 1841, - "end": 1861, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1592 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1841, - "end": 1855, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1586 - } - }, - "object": { - "type": "Identifier", - "start": 1841, - "end": 1848, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1579 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1849, - "end": 1855, - "loc": { - "start": { - "line": 9, - "column": 1580 - }, - "end": { - "line": 9, - "column": 1586 - }, - "identifierName": "assert" - }, - "name": "assert" - }, - "computed": false - }, - "arguments": [ - { - "type": "SpreadElement", - "start": 1856, - "end": 1860, - "loc": { - "start": { - "line": 9, - "column": 1587 - }, - "end": { - "line": 9, - "column": 1591 - } - }, - "argument": { - "type": "Identifier", - "start": 1859, - "end": 1860, - "loc": { - "start": { - "line": 9, - "column": 1590 - }, - "end": { - "line": 9, - "column": 1591 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1862, - "end": 1901, - "loc": { - "start": { - "line": 9, - "column": 1593 - }, - "end": { - "line": 9, - "column": 1632 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 9, - "column": 1593 - }, - "end": { - "line": 9, - "column": 1598 - }, - "identifierName": "debug" - }, - "name": "debug" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 1868, - "end": 1872, - "loc": { - "start": { - "line": 9, - "column": 1599 - }, - "end": { - "line": 9, - "column": 1603 - } - }, - "argument": { - "type": "Identifier", - "start": 1871, - "end": 1872, - "loc": { - "start": { - "line": 9, - "column": 1602 - }, - "end": { - "line": 9, - "column": 1603 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 1873, - "end": 1901, - "loc": { - "start": { - "line": 9, - "column": 1604 - }, - "end": { - "line": 9, - "column": 1632 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1874, - "end": 1900, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1631 - } - }, - "expression": { - "type": "CallExpression", - "start": 1874, - "end": 1900, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1631 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1874, - "end": 1886, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1617 - } - }, - "object": { - "type": "ThisExpression", - "start": 1874, - "end": 1878, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1609 - } - } - }, - "property": { - "type": "Identifier", - "start": 1879, - "end": 1886, - "loc": { - "start": { - "line": 9, - "column": 1610 - }, - "end": { - "line": 9, - "column": 1617 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 1887, - "end": 1894, - "loc": { - "start": { - "line": 9, - "column": 1618 - }, - "end": { - "line": 9, - "column": 1625 - } - }, - "extra": { - "rawValue": "debug", - "raw": "\"debug\"" - }, - "value": "debug" - }, - { - "type": "SpreadElement", - "start": 1895, - "end": 1899, - "loc": { - "start": { - "line": 9, - "column": 1626 - }, - "end": { - "line": 9, - "column": 1630 - } - }, - "argument": { - "type": "Identifier", - "start": 1898, - "end": 1899, - "loc": { - "start": { - "line": 9, - "column": 1629 - }, - "end": { - "line": 9, - "column": 1630 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1901, - "end": 1927, - "loc": { - "start": { - "line": 9, - "column": 1632 - }, - "end": { - "line": 9, - "column": 1658 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1901, - "end": 1906, - "loc": { - "start": { - "line": 9, - "column": 1632 - }, - "end": { - "line": 9, - "column": 1637 - }, - "identifierName": "count" - }, - "name": "count" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1907, - "end": 1908, - "loc": { - "start": { - "line": 9, - "column": 1638 - }, - "end": { - "line": 9, - "column": 1639 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 1909, - "end": 1927, - "loc": { - "start": { - "line": 9, - "column": 1640 - }, - "end": { - "line": 9, - "column": 1658 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1910, - "end": 1926, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1657 - } - }, - "expression": { - "type": "CallExpression", - "start": 1910, - "end": 1926, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1657 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1910, - "end": 1923, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1654 - } - }, - "object": { - "type": "Identifier", - "start": 1910, - "end": 1917, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1648 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1918, - "end": 1923, - "loc": { - "start": { - "line": 9, - "column": 1649 - }, - "end": { - "line": 9, - "column": 1654 - }, - "identifierName": "count" - }, - "name": "count" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1924, - "end": 1925, - "loc": { - "start": { - "line": 9, - "column": 1655 - }, - "end": { - "line": 9, - "column": 1656 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1927, - "end": 1963, - "loc": { - "start": { - "line": 9, - "column": 1658 - }, - "end": { - "line": 9, - "column": 1694 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1927, - "end": 1937, - "loc": { - "start": { - "line": 9, - "column": 1658 - }, - "end": { - "line": 9, - "column": 1668 - }, - "identifierName": "countReset" - }, - "name": "countReset" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1938, - "end": 1939, - "loc": { - "start": { - "line": 9, - "column": 1669 - }, - "end": { - "line": 9, - "column": 1670 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 1940, - "end": 1963, - "loc": { - "start": { - "line": 9, - "column": 1671 - }, - "end": { - "line": 9, - "column": 1694 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1941, - "end": 1962, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1693 - } - }, - "expression": { - "type": "CallExpression", - "start": 1941, - "end": 1962, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1693 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1941, - "end": 1959, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1690 - } - }, - "object": { - "type": "Identifier", - "start": 1941, - "end": 1948, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1679 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1949, - "end": 1959, - "loc": { - "start": { - "line": 9, - "column": 1680 - }, - "end": { - "line": 9, - "column": 1690 - }, - "identifierName": "countReset" - }, - "name": "countReset" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1960, - "end": 1961, - "loc": { - "start": { - "line": 9, - "column": 1691 - }, - "end": { - "line": 9, - "column": 1692 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1963, - "end": 1993, - "loc": { - "start": { - "line": 9, - "column": 1694 - }, - "end": { - "line": 9, - "column": 1724 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1963, - "end": 1968, - "loc": { - "start": { - "line": 9, - "column": 1694 - }, - "end": { - "line": 9, - "column": 1699 - }, - "identifierName": "table" - }, - "name": "table" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1969, - "end": 1970, - "loc": { - "start": { - "line": 9, - "column": 1700 - }, - "end": { - "line": 9, - "column": 1701 - }, - "identifierName": "s" - }, - "name": "s" - }, - { - "type": "Identifier", - "start": 1971, - "end": 1972, - "loc": { - "start": { - "line": 9, - "column": 1702 - }, - "end": { - "line": 9, - "column": 1703 - }, - "identifierName": "t" - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 1973, - "end": 1993, - "loc": { - "start": { - "line": 9, - "column": 1704 - }, - "end": { - "line": 9, - "column": 1724 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 1974, - "end": 1992, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1723 - } - }, - "expression": { - "type": "CallExpression", - "start": 1974, - "end": 1992, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1723 - } - }, - "callee": { - "type": "MemberExpression", - "start": 1974, - "end": 1987, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1718 - } - }, - "object": { - "type": "Identifier", - "start": 1974, - "end": 1981, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1712 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 1982, - "end": 1987, - "loc": { - "start": { - "line": 9, - "column": 1713 - }, - "end": { - "line": 9, - "column": 1718 - }, - "identifierName": "table" - }, - "name": "table" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 1988, - "end": 1989, - "loc": { - "start": { - "line": 9, - "column": 1719 - }, - "end": { - "line": 9, - "column": 1720 - }, - "identifierName": "s" - }, - "name": "s" - }, - { - "type": "Identifier", - "start": 1990, - "end": 1991, - "loc": { - "start": { - "line": 9, - "column": 1721 - }, - "end": { - "line": 9, - "column": 1722 - }, - "identifierName": "t" - }, - "name": "t" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 1993, - "end": 2024, - "loc": { - "start": { - "line": 9, - "column": 1724 - }, - "end": { - "line": 9, - "column": 1755 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 1993, - "end": 1997, - "loc": { - "start": { - "line": 9, - "column": 1724 - }, - "end": { - "line": 9, - "column": 1728 - }, - "identifierName": "time" - }, - "name": "time" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 1998, - "end": 1999, - "loc": { - "start": { - "line": 9, - "column": 1729 - }, - "end": { - "line": 9, - "column": 1730 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2000, - "end": 2024, - "loc": { - "start": { - "line": 9, - "column": 1731 - }, - "end": { - "line": 9, - "column": 1755 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2001, - "end": 2023, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1754 - } - }, - "expression": { - "type": "CallExpression", - "start": 2001, - "end": 2023, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1754 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2001, - "end": 2013, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1744 - } - }, - "object": { - "type": "ThisExpression", - "start": 2001, - "end": 2005, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1736 - } - } - }, - "property": { - "type": "Identifier", - "start": 2006, - "end": 2013, - "loc": { - "start": { - "line": 9, - "column": 1737 - }, - "end": { - "line": 9, - "column": 1744 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2014, - "end": 2020, - "loc": { - "start": { - "line": 9, - "column": 1745 - }, - "end": { - "line": 9, - "column": 1751 - } - }, - "extra": { - "rawValue": "time", - "raw": "\"time\"" - }, - "value": "time" - }, - { - "type": "Identifier", - "start": 2021, - "end": 2022, - "loc": { - "start": { - "line": 9, - "column": 1752 - }, - "end": { - "line": 9, - "column": 1753 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2024, - "end": 2061, - "loc": { - "start": { - "line": 9, - "column": 1755 - }, - "end": { - "line": 9, - "column": 1792 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2024, - "end": 2031, - "loc": { - "start": { - "line": 9, - "column": 1755 - }, - "end": { - "line": 9, - "column": 1762 - }, - "identifierName": "timeLog" - }, - "name": "timeLog" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2032, - "end": 2033, - "loc": { - "start": { - "line": 9, - "column": 1763 - }, - "end": { - "line": 9, - "column": 1764 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2034, - "end": 2061, - "loc": { - "start": { - "line": 9, - "column": 1765 - }, - "end": { - "line": 9, - "column": 1792 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2035, - "end": 2060, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1791 - } - }, - "expression": { - "type": "CallExpression", - "start": 2035, - "end": 2060, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1791 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2035, - "end": 2047, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1778 - } - }, - "object": { - "type": "ThisExpression", - "start": 2035, - "end": 2039, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1770 - } - } - }, - "property": { - "type": "Identifier", - "start": 2040, - "end": 2047, - "loc": { - "start": { - "line": 9, - "column": 1771 - }, - "end": { - "line": 9, - "column": 1778 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2048, - "end": 2057, - "loc": { - "start": { - "line": 9, - "column": 1779 - }, - "end": { - "line": 9, - "column": 1788 - } - }, - "extra": { - "rawValue": "timeLog", - "raw": "\"timeLog\"" - }, - "value": "timeLog" - }, - { - "type": "Identifier", - "start": 2058, - "end": 2059, - "loc": { - "start": { - "line": 9, - "column": 1789 - }, - "end": { - "line": 9, - "column": 1790 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2061, - "end": 2098, - "loc": { - "start": { - "line": 9, - "column": 1792 - }, - "end": { - "line": 9, - "column": 1829 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2061, - "end": 2068, - "loc": { - "start": { - "line": 9, - "column": 1792 - }, - "end": { - "line": 9, - "column": 1799 - }, - "identifierName": "timeEnd" - }, - "name": "timeEnd" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2069, - "end": 2070, - "loc": { - "start": { - "line": 9, - "column": 1800 - }, - "end": { - "line": 9, - "column": 1801 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2071, - "end": 2098, - "loc": { - "start": { - "line": 9, - "column": 1802 - }, - "end": { - "line": 9, - "column": 1829 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2072, - "end": 2097, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1828 - } - }, - "expression": { - "type": "CallExpression", - "start": 2072, - "end": 2097, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1828 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2072, - "end": 2084, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1815 - } - }, - "object": { - "type": "ThisExpression", - "start": 2072, - "end": 2076, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1807 - } - } - }, - "property": { - "type": "Identifier", - "start": 2077, - "end": 2084, - "loc": { - "start": { - "line": 9, - "column": 1808 - }, - "end": { - "line": 9, - "column": 1815 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2085, - "end": 2094, - "loc": { - "start": { - "line": 9, - "column": 1816 - }, - "end": { - "line": 9, - "column": 1825 - } - }, - "extra": { - "rawValue": "timeEnd", - "raw": "\"timeEnd\"" - }, - "value": "timeEnd" - }, - { - "type": "Identifier", - "start": 2095, - "end": 2096, - "loc": { - "start": { - "line": 9, - "column": 1826 - }, - "end": { - "line": 9, - "column": 1827 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2098, - "end": 2137, - "loc": { - "start": { - "line": 9, - "column": 1829 - }, - "end": { - "line": 9, - "column": 1868 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2098, - "end": 2103, - "loc": { - "start": { - "line": 9, - "column": 1829 - }, - "end": { - "line": 9, - "column": 1834 - }, - "identifierName": "trace" - }, - "name": "trace" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "RestElement", - "start": 2104, - "end": 2108, - "loc": { - "start": { - "line": 9, - "column": 1835 - }, - "end": { - "line": 9, - "column": 1839 - } - }, - "argument": { - "type": "Identifier", - "start": 2107, - "end": 2108, - "loc": { - "start": { - "line": 9, - "column": 1838 - }, - "end": { - "line": 9, - "column": 1839 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 2109, - "end": 2137, - "loc": { - "start": { - "line": 9, - "column": 1840 - }, - "end": { - "line": 9, - "column": 1868 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2110, - "end": 2136, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1867 - } - }, - "expression": { - "type": "CallExpression", - "start": 2110, - "end": 2136, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1867 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2110, - "end": 2122, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1853 - } - }, - "object": { - "type": "ThisExpression", - "start": 2110, - "end": 2114, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1845 - } - } - }, - "property": { - "type": "Identifier", - "start": 2115, - "end": 2122, - "loc": { - "start": { - "line": 9, - "column": 1846 - }, - "end": { - "line": 9, - "column": 1853 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2123, - "end": 2130, - "loc": { - "start": { - "line": 9, - "column": 1854 - }, - "end": { - "line": 9, - "column": 1861 - } - }, - "extra": { - "rawValue": "trace", - "raw": "\"trace\"" - }, - "value": "trace" - }, - { - "type": "SpreadElement", - "start": 2131, - "end": 2135, - "loc": { - "start": { - "line": 9, - "column": 1862 - }, - "end": { - "line": 9, - "column": 1866 - } - }, - "argument": { - "type": "Identifier", - "start": 2134, - "end": 2135, - "loc": { - "start": { - "line": 9, - "column": 1865 - }, - "end": { - "line": 9, - "column": 1866 - }, - "identifierName": "s" - }, - "name": "s" - } - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2137, - "end": 2170, - "loc": { - "start": { - "line": 9, - "column": 1868 - }, - "end": { - "line": 9, - "column": 1901 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2137, - "end": 2142, - "loc": { - "start": { - "line": 9, - "column": 1868 - }, - "end": { - "line": 9, - "column": 1873 - }, - "identifierName": "group" - }, - "name": "group" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2143, - "end": 2144, - "loc": { - "start": { - "line": 9, - "column": 1874 - }, - "end": { - "line": 9, - "column": 1875 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2145, - "end": 2170, - "loc": { - "start": { - "line": 9, - "column": 1876 - }, - "end": { - "line": 9, - "column": 1901 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2146, - "end": 2169, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1900 - } - }, - "expression": { - "type": "CallExpression", - "start": 2146, - "end": 2169, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1900 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2146, - "end": 2158, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1889 - } - }, - "object": { - "type": "ThisExpression", - "start": 2146, - "end": 2150, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1881 - } - } - }, - "property": { - "type": "Identifier", - "start": 2151, - "end": 2158, - "loc": { - "start": { - "line": 9, - "column": 1882 - }, - "end": { - "line": 9, - "column": 1889 - }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "arguments": [ - { - "type": "StringLiteral", - "start": 2159, - "end": 2166, - "loc": { - "start": { - "line": 9, - "column": 1890 - }, - "end": { - "line": 9, - "column": 1897 - } - }, - "extra": { - "rawValue": "group", - "raw": "\"group\"" - }, - "value": "group" - }, - { - "type": "Identifier", - "start": 2167, - "end": 2168, - "loc": { - "start": { - "line": 9, - "column": 1898 - }, - "end": { - "line": 9, - "column": 1899 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2170, - "end": 2214, - "loc": { - "start": { - "line": 9, - "column": 1901 - }, - "end": { - "line": 9, - "column": 1945 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2170, - "end": 2184, - "loc": { - "start": { - "line": 9, - "column": 1901 - }, - "end": { - "line": 9, - "column": 1915 - }, - "identifierName": "groupCollapsed" - }, - "name": "groupCollapsed" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2185, - "end": 2186, - "loc": { - "start": { - "line": 9, - "column": 1916 - }, - "end": { - "line": 9, - "column": 1917 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2187, - "end": 2214, - "loc": { - "start": { - "line": 9, - "column": 1918 - }, - "end": { - "line": 9, - "column": 1945 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2188, - "end": 2213, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1944 - } - }, - "expression": { - "type": "CallExpression", - "start": 2188, - "end": 2213, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1944 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2188, - "end": 2210, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1941 - } - }, - "object": { - "type": "Identifier", - "start": 2188, - "end": 2195, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1926 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 2196, - "end": 2210, - "loc": { - "start": { - "line": 9, - "column": 1927 - }, - "end": { - "line": 9, - "column": 1941 - }, - "identifierName": "groupCollapsed" - }, - "name": "groupCollapsed" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2211, - "end": 2212, - "loc": { - "start": { - "line": 9, - "column": 1942 - }, - "end": { - "line": 9, - "column": 1943 - }, - "identifierName": "s" - }, - "name": "s" - } - ] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2214, - "end": 2244, - "loc": { - "start": { - "line": 9, - "column": 1945 - }, - "end": { - "line": 9, - "column": 1975 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2214, - "end": 2222, - "loc": { - "start": { - "line": 9, - "column": 1945 - }, - "end": { - "line": 9, - "column": 1953 - }, - "identifierName": "groupEnd" - }, - "name": "groupEnd" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 2224, - "end": 2244, - "loc": { - "start": { - "line": 9, - "column": 1955 - }, - "end": { - "line": 9, - "column": 1975 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2225, - "end": 2243, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1974 - } - }, - "expression": { - "type": "CallExpression", - "start": 2225, - "end": 2243, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1974 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2225, - "end": 2241, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1972 - } - }, - "object": { - "type": "Identifier", - "start": 2225, - "end": 2232, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1963 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 2233, - "end": 2241, - "loc": { - "start": { - "line": 9, - "column": 1964 - }, - "end": { - "line": 9, - "column": 1972 - }, - "identifierName": "groupEnd" - }, - "name": "groupEnd" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2244, - "end": 2268, - "loc": { - "start": { - "line": 9, - "column": 1975 - }, - "end": { - "line": 9, - "column": 1999 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2244, - "end": 2249, - "loc": { - "start": { - "line": 9, - "column": 1975 - }, - "end": { - "line": 9, - "column": 1980 - }, - "identifierName": "clear" - }, - "name": "clear" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 2251, - "end": 2268, - "loc": { - "start": { - "line": 9, - "column": 1982 - }, - "end": { - "line": 9, - "column": 1999 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2252, - "end": 2267, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1998 - } - }, - "expression": { - "type": "CallExpression", - "start": 2252, - "end": 2267, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1998 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2252, - "end": 2265, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1996 - } - }, - "object": { - "type": "Identifier", - "start": 2252, - "end": 2259, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1990 - }, - "identifierName": "console" - }, - "name": "console" - }, - "property": { - "type": "Identifier", - "start": 2260, - "end": 2265, - "loc": { - "start": { - "line": 9, - "column": 1991 - }, - "end": { - "line": 9, - "column": 1996 - }, - "identifierName": "clear" - }, - "name": "clear" - }, - "computed": false - }, - "arguments": [] - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2268, - "end": 2373, - "loc": { - "start": { - "line": 9, - "column": 1999 - }, - "end": { - "line": 9, - "column": 2104 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2268, - "end": 2280, - "loc": { - "start": { - "line": 9, - "column": 1999 - }, - "end": { - "line": 9, - "column": 2011 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2281, - "end": 2282, - "loc": { - "start": { - "line": 9, - "column": 2012 - }, - "end": { - "line": 9, - "column": 2013 - }, - "identifierName": "s" - }, - "name": "s" - }, - { - "type": "Identifier", - "start": 2283, - "end": 2284, - "loc": { - "start": { - "line": 9, - "column": 2014 - }, - "end": { - "line": 9, - "column": 2015 - }, - "identifierName": "t" - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 2285, - "end": 2373, - "loc": { - "start": { - "line": 9, - "column": 2016 - }, - "end": { - "line": 9, - "column": 2104 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2286, - "end": 2372, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2103 - } - }, - "expression": { - "type": "LogicalExpression", - "start": 2286, - "end": 2372, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2103 - } - }, - "left": { - "type": "MemberExpression", - "start": 2286, - "end": 2299, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2030 - } - }, - "object": { - "type": "MemberExpression", - "start": 2286, - "end": 2296, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2027 - } - }, - "object": { - "type": "ThisExpression", - "start": 2286, - "end": 2290, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2021 - } - } - }, - "property": { - "type": "Identifier", - "start": 2291, - "end": 2296, - "loc": { - "start": { - "line": 9, - "column": 2022 - }, - "end": { - "line": 9, - "column": 2027 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2297, - "end": 2298, - "loc": { - "start": { - "line": 9, - "column": 2028 - }, - "end": { - "line": 9, - "column": 2029 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "operator": "||", - "right": { - "type": "LogicalExpression", - "start": 2301, - "end": 2372, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2103 - } - }, - "left": { - "type": "LogicalExpression", - "start": 2301, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2070 - } - }, - "left": { - "type": "BinaryExpression", - "start": 2301, - "end": 2319, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2050 - } - }, - "left": { - "type": "StringLiteral", - "start": 2301, - "end": 2309, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2040 - } - }, - "extra": { - "rawValue": "string", - "raw": "\"string\"" - }, - "value": "string" - }, - "operator": "==", - "right": { - "type": "UnaryExpression", - "start": 2311, - "end": 2319, - "loc": { - "start": { - "line": 9, - "column": 2042 - }, - "end": { - "line": 9, - "column": 2050 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2318, - "end": 2319, - "loc": { - "start": { - "line": 9, - "column": 2049 - }, - "end": { - "line": 9, - "column": 2050 - }, - "identifierName": "s" - }, - "name": "s" - }, - "extra": { - "parenthesizedArgument": false - } - } - }, - "operator": "&&", - "right": { - "type": "BinaryExpression", - "start": 2321, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2052 - }, - "end": { - "line": 9, - "column": 2070 - } - }, - "left": { - "type": "StringLiteral", - "start": 2321, - "end": 2329, - "loc": { - "start": { - "line": 9, - "column": 2052 - }, - "end": { - "line": 9, - "column": 2060 - } - }, - "extra": { - "rawValue": "string", - "raw": "\"string\"" - }, - "value": "string" - }, - "operator": "==", - "right": { - "type": "UnaryExpression", - "start": 2331, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2062 - }, - "end": { - "line": 9, - "column": 2070 - } - }, - "operator": "typeof", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 2338, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2069 - }, - "end": { - "line": 9, - "column": 2070 - }, - "identifierName": "t" - }, - "name": "t" - }, - "extra": { - "parenthesizedArgument": false - } - } - } - }, - "operator": "&&", - "right": { - "type": "AssignmentExpression", - "start": 2342, - "end": 2371, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2102 - } - }, - "operator": "=", - "left": { - "type": "MemberExpression", - "start": 2342, - "end": 2369, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2100 - } - }, - "object": { - "type": "MemberExpression", - "start": 2342, - "end": 2352, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2083 - } - }, - "object": { - "type": "ThisExpression", - "start": 2342, - "end": 2346, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2077 - } - } - }, - "property": { - "type": "Identifier", - "start": 2347, - "end": 2352, - "loc": { - "start": { - "line": 9, - "column": 2078 - }, - "end": { - "line": 9, - "column": 2083 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "CallExpression", - "start": 2353, - "end": 2368, - "loc": { - "start": { - "line": 9, - "column": 2084 - }, - "end": { - "line": 9, - "column": 2099 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2353, - "end": 2366, - "loc": { - "start": { - "line": 9, - "column": 2084 - }, - "end": { - "line": 9, - "column": 2097 - } - }, - "object": { - "type": "Identifier", - "start": 2353, - "end": 2354, - "loc": { - "start": { - "line": 9, - "column": 2084 - }, - "end": { - "line": 9, - "column": 2085 - }, - "identifierName": "s" - }, - "name": "s" - }, - "property": { - "type": "Identifier", - "start": 2355, - "end": 2366, - "loc": { - "start": { - "line": 9, - "column": 2086 - }, - "end": { - "line": 9, - "column": 2097 - }, - "identifierName": "toLowerCase" - }, - "name": "toLowerCase" - }, - "computed": false - }, - "arguments": [] - }, - "computed": true - }, - "right": { - "type": "Identifier", - "start": 2370, - "end": 2371, - "loc": { - "start": { - "line": 9, - "column": 2101 - }, - "end": { - "line": 9, - "column": 2102 - }, - "identifierName": "t" - }, - "name": "t" - }, - "extra": { - "parenthesized": true, - "parenStart": 2341 - } - } - } - } - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2373, - "end": 2476, - "loc": { - "start": { - "line": 9, - "column": 2104 - }, - "end": { - "line": 9, - "column": 2207 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2373, - "end": 2386, - "loc": { - "start": { - "line": 9, - "column": 2104 - }, - "end": { - "line": 9, - "column": 2117 - }, - "identifierName": "registerTypes" - }, - "name": "registerTypes" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2387, - "end": 2388, - "loc": { - "start": { - "line": 9, - "column": 2118 - }, - "end": { - "line": 9, - "column": 2119 - }, - "identifierName": "t" - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 2389, - "end": 2476, - "loc": { - "start": { - "line": 9, - "column": 2120 - }, - "end": { - "line": 9, - "column": 2207 - } - }, - "body": [ - { - "type": "IfStatement", - "start": 2390, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2121 - }, - "end": { - "line": 9, - "column": 2206 - } - }, - "test": { - "type": "CallExpression", - "start": 2393, - "end": 2409, - "loc": { - "start": { - "line": 9, - "column": 2124 - }, - "end": { - "line": 9, - "column": 2140 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2393, - "end": 2406, - "loc": { - "start": { - "line": 9, - "column": 2124 - }, - "end": { - "line": 9, - "column": 2137 - } - }, - "object": { - "type": "Identifier", - "start": 2393, - "end": 2398, - "loc": { - "start": { - "line": 9, - "column": 2124 - }, - "end": { - "line": 9, - "column": 2129 - }, - "identifierName": "Array" - }, - "name": "Array" - }, - "property": { - "type": "Identifier", - "start": 2399, - "end": 2406, - "loc": { - "start": { - "line": 9, - "column": 2130 - }, - "end": { - "line": 9, - "column": 2137 - }, - "identifierName": "isArray" - }, - "name": "isArray" - }, - "computed": false - }, - "arguments": [ - { - "type": "Identifier", - "start": 2407, - "end": 2408, - "loc": { - "start": { - "line": 9, - "column": 2138 - }, - "end": { - "line": 9, - "column": 2139 - }, - "identifierName": "t" - }, - "name": "t" - } - ] - }, - "consequent": { - "type": "ForStatement", - "start": 2410, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2141 - }, - "end": { - "line": 9, - "column": 2206 - } - }, - "init": { - "type": "VariableDeclaration", - "start": 2414, - "end": 2421, - "loc": { - "start": { - "line": 9, - "column": 2145 - }, - "end": { - "line": 9, - "column": 2152 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 2418, - "end": 2421, - "loc": { - "start": { - "line": 9, - "column": 2149 - }, - "end": { - "line": 9, - "column": 2152 - } - }, - "id": { - "type": "Identifier", - "start": 2418, - "end": 2419, - "loc": { - "start": { - "line": 9, - "column": 2149 - }, - "end": { - "line": 9, - "column": 2150 - }, - "identifierName": "s" - }, - "name": "s" - }, - "init": { - "type": "NumericLiteral", - "start": 2420, - "end": 2421, - "loc": { - "start": { - "line": 9, - "column": 2151 - }, - "end": { - "line": 9, - "column": 2152 - } - }, - "extra": { - "rawValue": 0, - "raw": "0" - }, - "value": 0 - } - } - ], - "kind": "let" - }, - "test": { - "type": "BinaryExpression", - "start": 2422, - "end": 2432, - "loc": { - "start": { - "line": 9, - "column": 2153 - }, - "end": { - "line": 9, - "column": 2163 - } - }, - "left": { - "type": "Identifier", - "start": 2422, - "end": 2423, - "loc": { - "start": { - "line": 9, - "column": 2153 - }, - "end": { - "line": 9, - "column": 2154 - }, - "identifierName": "s" - }, - "name": "s" - }, - "operator": "<", - "right": { - "type": "MemberExpression", - "start": 2424, - "end": 2432, - "loc": { - "start": { - "line": 9, - "column": 2155 - }, - "end": { - "line": 9, - "column": 2163 - } - }, - "object": { - "type": "Identifier", - "start": 2424, - "end": 2425, - "loc": { - "start": { - "line": 9, - "column": 2155 - }, - "end": { - "line": 9, - "column": 2156 - }, - "identifierName": "t" - }, - "name": "t" - }, - "property": { - "type": "Identifier", - "start": 2426, - "end": 2432, - "loc": { - "start": { - "line": 9, - "column": 2157 - }, - "end": { - "line": 9, - "column": 2163 - }, - "identifierName": "length" - }, - "name": "length" - }, - "computed": false - } - }, - "update": { - "type": "UpdateExpression", - "start": 2433, - "end": 2436, - "loc": { - "start": { - "line": 9, - "column": 2164 - }, - "end": { - "line": 9, - "column": 2167 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 2433, - "end": 2434, - "loc": { - "start": { - "line": 9, - "column": 2164 - }, - "end": { - "line": 9, - "column": 2165 - }, - "identifierName": "s" - }, - "name": "s" - } - }, - "body": { - "type": "ExpressionStatement", - "start": 2437, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2206 - } - }, - "expression": { - "type": "CallExpression", - "start": 2437, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2206 - } - }, - "callee": { - "type": "MemberExpression", - "start": 2437, - "end": 2454, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2185 - } - }, - "object": { - "type": "ThisExpression", - "start": 2437, - "end": 2441, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2172 - } - } - }, - "property": { - "type": "Identifier", - "start": 2442, - "end": 2454, - "loc": { - "start": { - "line": 9, - "column": 2173 - }, - "end": { - "line": 9, - "column": 2185 - }, - "identifierName": "registerType" - }, - "name": "registerType" - }, - "computed": false - }, - "arguments": [ - { - "type": "MemberExpression", - "start": 2455, - "end": 2464, - "loc": { - "start": { - "line": 9, - "column": 2186 - }, - "end": { - "line": 9, - "column": 2195 - } - }, - "object": { - "type": "MemberExpression", - "start": 2455, - "end": 2459, - "loc": { - "start": { - "line": 9, - "column": 2186 - }, - "end": { - "line": 9, - "column": 2190 - } - }, - "object": { - "type": "Identifier", - "start": 2455, - "end": 2456, - "loc": { - "start": { - "line": 9, - "column": 2186 - }, - "end": { - "line": 9, - "column": 2187 - }, - "identifierName": "t" - }, - "name": "t" - }, - "property": { - "type": "Identifier", - "start": 2457, - "end": 2458, - "loc": { - "start": { - "line": 9, - "column": 2188 - }, - "end": { - "line": 9, - "column": 2189 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 2460, - "end": 2464, - "loc": { - "start": { - "line": 9, - "column": 2191 - }, - "end": { - "line": 9, - "column": 2195 - }, - "identifierName": "type" - }, - "name": "type" - }, - "computed": false - }, - { - "type": "MemberExpression", - "start": 2465, - "end": 2474, - "loc": { - "start": { - "line": 9, - "column": 2196 - }, - "end": { - "line": 9, - "column": 2205 - } - }, - "object": { - "type": "MemberExpression", - "start": 2465, - "end": 2469, - "loc": { - "start": { - "line": 9, - "column": 2196 - }, - "end": { - "line": 9, - "column": 2200 - } - }, - "object": { - "type": "Identifier", - "start": 2465, - "end": 2466, - "loc": { - "start": { - "line": 9, - "column": 2196 - }, - "end": { - "line": 9, - "column": 2197 - }, - "identifierName": "t" - }, - "name": "t" - }, - "property": { - "type": "Identifier", - "start": 2467, - "end": 2468, - "loc": { - "start": { - "line": 9, - "column": 2198 - }, - "end": { - "line": 9, - "column": 2199 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "property": { - "type": "Identifier", - "start": 2470, - "end": 2474, - "loc": { - "start": { - "line": 9, - "column": 2201 - }, - "end": { - "line": 9, - "column": 2205 - }, - "identifierName": "ansi" - }, - "name": "ansi" - }, - "computed": false - } - ] - } - } - }, - "alternate": null - } - ], - "directives": [] - } - }, - { - "type": "ClassMethod", - "start": 2476, - "end": 2530, - "loc": { - "start": { - "line": 9, - "column": 2207 - }, - "end": { - "line": 9, - "column": 2261 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 2476, - "end": 2490, - "loc": { - "start": { - "line": 9, - "column": 2207 - }, - "end": { - "line": 9, - "column": 2221 - }, - "identifierName": "unregisterType" - }, - "name": "unregisterType" - }, - "kind": "method", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [ - { - "type": "Identifier", - "start": 2491, - "end": 2492, - "loc": { - "start": { - "line": 9, - "column": 2222 - }, - "end": { - "line": 9, - "column": 2223 - }, - "identifierName": "s" - }, - "name": "s" - } - ], - "body": { - "type": "BlockStatement", - "start": 2493, - "end": 2530, - "loc": { - "start": { - "line": 9, - "column": 2224 - }, - "end": { - "line": 9, - "column": 2261 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 2494, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2260 - } - }, - "expression": { - "type": "LogicalExpression", - "start": 2494, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2260 - } - }, - "left": { - "type": "MemberExpression", - "start": 2494, - "end": 2507, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2238 - } - }, - "object": { - "type": "MemberExpression", - "start": 2494, - "end": 2504, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2235 - } - }, - "object": { - "type": "ThisExpression", - "start": 2494, - "end": 2498, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2229 - } - } - }, - "property": { - "type": "Identifier", - "start": 2499, - "end": 2504, - "loc": { - "start": { - "line": 9, - "column": 2230 - }, - "end": { - "line": 9, - "column": 2235 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2505, - "end": 2506, - "loc": { - "start": { - "line": 9, - "column": 2236 - }, - "end": { - "line": 9, - "column": 2237 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "operator": "&&", - "right": { - "type": "UnaryExpression", - "start": 2509, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2240 - }, - "end": { - "line": 9, - "column": 2260 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "MemberExpression", - "start": 2516, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2247 - }, - "end": { - "line": 9, - "column": 2260 - } - }, - "object": { - "type": "MemberExpression", - "start": 2516, - "end": 2526, - "loc": { - "start": { - "line": 9, - "column": 2247 - }, - "end": { - "line": 9, - "column": 2257 - } - }, - "object": { - "type": "ThisExpression", - "start": 2516, - "end": 2520, - "loc": { - "start": { - "line": 9, - "column": 2247 - }, - "end": { - "line": 9, - "column": 2251 - } - } - }, - "property": { - "type": "Identifier", - "start": 2521, - "end": 2526, - "loc": { - "start": { - "line": 9, - "column": 2252 - }, - "end": { - "line": 9, - "column": 2257 - }, - "identifierName": "types" - }, - "name": "types" - }, - "computed": false - }, - "property": { - "type": "Identifier", - "start": 2527, - "end": 2528, - "loc": { - "start": { - "line": 9, - "column": 2258 - }, - "end": { - "line": 9, - "column": 2259 - }, - "identifierName": "s" - }, - "name": "s" - }, - "computed": true - }, - "extra": { - "parenthesizedArgument": false - } - } - } - } - ], - "directives": [] - } - } - ] - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "* \r\n * @file A small library to class up log messages.\r\n * \r\n * @version 1.0.0\r\n * @author https://github.com/doubleactii\r\n * @copyright Copyright (c) 2022 Evitca Studio\r\n * @license Logger does not have a license at this time. For licensing contact the author\r\n ", - "start": 0, - "end": 267, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 8, - "column": 3 - } - } - } - ], - "__PseudoExport__": false, - "trailingComments": [] - }, - "specifiers": null, - "source": null, - "leadingComments": null - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "* \r\n * @file A small library to class up log messages.\r\n * \r\n * @version 1.0.0\r\n * @author https://github.com/doubleactii\r\n * @copyright Copyright (c) 2022 Evitca Studio\r\n * @license Logger does not have a license at this time. For licensing contact the author\r\n ", - "start": 0, - "end": 267, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 8, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": "CommentBlock", - "value": "* \r\n * @file A small library to class up log messages.\r\n * \r\n * @version 1.0.0\r\n * @author https://github.com/doubleactii\r\n * @copyright Copyright (c) 2022 Evitca Studio\r\n * @license Logger does not have a license at this time. For licensing contact the author\r\n ", - "start": 0, - "end": 267, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 8, - "column": 3 - } - } - }, - { - "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": 269, - "end": 274, - "loc": { - "start": { - "line": 9, - "column": 0 - }, - "end": { - "line": 9, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Logger", - "start": 275, - "end": 281, - "loc": { - "start": { - "line": 9, - "column": 6 - }, - "end": { - "line": 9, - "column": 12 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 281, - "end": 282, - "loc": { - "start": { - "line": 9, - "column": 12 - }, - "end": { - "line": 9, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "constructor", - "start": 282, - "end": 293, - "loc": { - "start": { - "line": 9, - "column": 13 - }, - "end": { - "line": 9, - "column": 24 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 293, - "end": 294, - "loc": { - "start": { - "line": 9, - "column": 24 - }, - "end": { - "line": 9, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 294, - "end": 295, - "loc": { - "start": { - "line": 9, - "column": 25 - }, - "end": { - "line": 9, - "column": 26 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 295, - "end": 296, - "loc": { - "start": { - "line": 9, - "column": 26 - }, - "end": { - "line": 9, - "column": 27 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 296, - "end": 297, - "loc": { - "start": { - "line": 9, - "column": 27 - }, - "end": { - "line": 9, - "column": 28 - } - } - }, - { - "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": 297, - "end": 301, - "loc": { - "start": { - "line": 9, - "column": 28 - }, - "end": { - "line": 9, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 301, - "end": 302, - "loc": { - "start": { - "line": 9, - "column": 32 - }, - "end": { - "line": 9, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "RESET", - "start": 302, - "end": 307, - "loc": { - "start": { - "line": 9, - "column": 33 - }, - "end": { - "line": 9, - "column": 38 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 307, - "end": 308, - "loc": { - "start": { - "line": 9, - "column": 38 - }, - "end": { - "line": 9, - "column": 39 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[0m", - "start": 308, - "end": 314, - "loc": { - "start": { - "line": 9, - "column": 39 - }, - "end": { - "line": 9, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 314, - "end": 315, - "loc": { - "start": { - "line": 9, - "column": 45 - }, - "end": { - "line": 9, - "column": 46 - } - } - }, - { - "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": 315, - "end": 319, - "loc": { - "start": { - "line": 9, - "column": 46 - }, - "end": { - "line": 9, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 319, - "end": 320, - "loc": { - "start": { - "line": 9, - "column": 50 - }, - "end": { - "line": 9, - "column": 51 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BRIGHT", - "start": 320, - "end": 326, - "loc": { - "start": { - "line": 9, - "column": 51 - }, - "end": { - "line": 9, - "column": 57 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 326, - "end": 327, - "loc": { - "start": { - "line": 9, - "column": 57 - }, - "end": { - "line": 9, - "column": 58 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[1m", - "start": 327, - "end": 333, - "loc": { - "start": { - "line": 9, - "column": 58 - }, - "end": { - "line": 9, - "column": 64 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 333, - "end": 334, - "loc": { - "start": { - "line": 9, - "column": 64 - }, - "end": { - "line": 9, - "column": 65 - } - } - }, - { - "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": 334, - "end": 338, - "loc": { - "start": { - "line": 9, - "column": 65 - }, - "end": { - "line": 9, - "column": 69 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 338, - "end": 339, - "loc": { - "start": { - "line": 9, - "column": 69 - }, - "end": { - "line": 9, - "column": 70 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "DIM", - "start": 339, - "end": 342, - "loc": { - "start": { - "line": 9, - "column": 70 - }, - "end": { - "line": 9, - "column": 73 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 342, - "end": 343, - "loc": { - "start": { - "line": 9, - "column": 73 - }, - "end": { - "line": 9, - "column": 74 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[2m", - "start": 343, - "end": 349, - "loc": { - "start": { - "line": 9, - "column": 74 - }, - "end": { - "line": 9, - "column": 80 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 349, - "end": 350, - "loc": { - "start": { - "line": 9, - "column": 80 - }, - "end": { - "line": 9, - "column": 81 - } - } - }, - { - "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": 350, - "end": 354, - "loc": { - "start": { - "line": 9, - "column": 81 - }, - "end": { - "line": 9, - "column": 85 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 354, - "end": 355, - "loc": { - "start": { - "line": 9, - "column": 85 - }, - "end": { - "line": 9, - "column": 86 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "UNDERSCORE", - "start": 355, - "end": 365, - "loc": { - "start": { - "line": 9, - "column": 86 - }, - "end": { - "line": 9, - "column": 96 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 365, - "end": 366, - "loc": { - "start": { - "line": 9, - "column": 96 - }, - "end": { - "line": 9, - "column": 97 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[4m", - "start": 366, - "end": 372, - "loc": { - "start": { - "line": 9, - "column": 97 - }, - "end": { - "line": 9, - "column": 103 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 372, - "end": 373, - "loc": { - "start": { - "line": 9, - "column": 103 - }, - "end": { - "line": 9, - "column": 104 - } - } - }, - { - "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": 373, - "end": 377, - "loc": { - "start": { - "line": 9, - "column": 104 - }, - "end": { - "line": 9, - "column": 108 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 377, - "end": 378, - "loc": { - "start": { - "line": 9, - "column": 108 - }, - "end": { - "line": 9, - "column": 109 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BLINK", - "start": 378, - "end": 383, - "loc": { - "start": { - "line": 9, - "column": 109 - }, - "end": { - "line": 9, - "column": 114 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 383, - "end": 384, - "loc": { - "start": { - "line": 9, - "column": 114 - }, - "end": { - "line": 9, - "column": 115 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[5m", - "start": 384, - "end": 390, - "loc": { - "start": { - "line": 9, - "column": 115 - }, - "end": { - "line": 9, - "column": 121 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 390, - "end": 391, - "loc": { - "start": { - "line": 9, - "column": 121 - }, - "end": { - "line": 9, - "column": 122 - } - } - }, - { - "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": 391, - "end": 395, - "loc": { - "start": { - "line": 9, - "column": 122 - }, - "end": { - "line": 9, - "column": 126 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 395, - "end": 396, - "loc": { - "start": { - "line": 9, - "column": 126 - }, - "end": { - "line": 9, - "column": 127 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "REVERSE", - "start": 396, - "end": 403, - "loc": { - "start": { - "line": 9, - "column": 127 - }, - "end": { - "line": 9, - "column": 134 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 403, - "end": 404, - "loc": { - "start": { - "line": 9, - "column": 134 - }, - "end": { - "line": 9, - "column": 135 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[7m", - "start": 404, - "end": 410, - "loc": { - "start": { - "line": 9, - "column": 135 - }, - "end": { - "line": 9, - "column": 141 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 410, - "end": 411, - "loc": { - "start": { - "line": 9, - "column": 141 - }, - "end": { - "line": 9, - "column": 142 - } - } - }, - { - "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": 411, - "end": 415, - "loc": { - "start": { - "line": 9, - "column": 142 - }, - "end": { - "line": 9, - "column": 146 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 415, - "end": 416, - "loc": { - "start": { - "line": 9, - "column": 146 - }, - "end": { - "line": 9, - "column": 147 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "HIDDEN", - "start": 416, - "end": 422, - "loc": { - "start": { - "line": 9, - "column": 147 - }, - "end": { - "line": 9, - "column": 153 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 422, - "end": 423, - "loc": { - "start": { - "line": 9, - "column": 153 - }, - "end": { - "line": 9, - "column": 154 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[8m", - "start": 423, - "end": 429, - "loc": { - "start": { - "line": 9, - "column": 154 - }, - "end": { - "line": 9, - "column": 160 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 429, - "end": 430, - "loc": { - "start": { - "line": 9, - "column": 160 - }, - "end": { - "line": 9, - "column": 161 - } - } - }, - { - "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": 430, - "end": 434, - "loc": { - "start": { - "line": 9, - "column": 161 - }, - "end": { - "line": 9, - "column": 165 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 434, - "end": 435, - "loc": { - "start": { - "line": 9, - "column": 165 - }, - "end": { - "line": 9, - "column": 166 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_BLACK", - "start": 435, - "end": 443, - "loc": { - "start": { - "line": 9, - "column": 166 - }, - "end": { - "line": 9, - "column": 174 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 443, - "end": 444, - "loc": { - "start": { - "line": 9, - "column": 174 - }, - "end": { - "line": 9, - "column": 175 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[30m", - "start": 444, - "end": 451, - "loc": { - "start": { - "line": 9, - "column": 175 - }, - "end": { - "line": 9, - "column": 182 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 451, - "end": 452, - "loc": { - "start": { - "line": 9, - "column": 182 - }, - "end": { - "line": 9, - "column": 183 - } - } - }, - { - "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": 452, - "end": 456, - "loc": { - "start": { - "line": 9, - "column": 183 - }, - "end": { - "line": 9, - "column": 187 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 456, - "end": 457, - "loc": { - "start": { - "line": 9, - "column": 187 - }, - "end": { - "line": 9, - "column": 188 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_RED", - "start": 457, - "end": 463, - "loc": { - "start": { - "line": 9, - "column": 188 - }, - "end": { - "line": 9, - "column": 194 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 463, - "end": 464, - "loc": { - "start": { - "line": 9, - "column": 194 - }, - "end": { - "line": 9, - "column": 195 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[31m", - "start": 464, - "end": 471, - "loc": { - "start": { - "line": 9, - "column": 195 - }, - "end": { - "line": 9, - "column": 202 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 471, - "end": 472, - "loc": { - "start": { - "line": 9, - "column": 202 - }, - "end": { - "line": 9, - "column": 203 - } - } - }, - { - "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": 472, - "end": 476, - "loc": { - "start": { - "line": 9, - "column": 203 - }, - "end": { - "line": 9, - "column": 207 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 476, - "end": 477, - "loc": { - "start": { - "line": 9, - "column": 207 - }, - "end": { - "line": 9, - "column": 208 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_GREEN", - "start": 477, - "end": 485, - "loc": { - "start": { - "line": 9, - "column": 208 - }, - "end": { - "line": 9, - "column": 216 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 485, - "end": 486, - "loc": { - "start": { - "line": 9, - "column": 216 - }, - "end": { - "line": 9, - "column": 217 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[32m", - "start": 486, - "end": 493, - "loc": { - "start": { - "line": 9, - "column": 217 - }, - "end": { - "line": 9, - "column": 224 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 493, - "end": 494, - "loc": { - "start": { - "line": 9, - "column": 224 - }, - "end": { - "line": 9, - "column": 225 - } - } - }, - { - "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": 494, - "end": 498, - "loc": { - "start": { - "line": 9, - "column": 225 - }, - "end": { - "line": 9, - "column": 229 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 498, - "end": 499, - "loc": { - "start": { - "line": 9, - "column": 229 - }, - "end": { - "line": 9, - "column": 230 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_YELLOW", - "start": 499, - "end": 508, - "loc": { - "start": { - "line": 9, - "column": 230 - }, - "end": { - "line": 9, - "column": 239 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 508, - "end": 509, - "loc": { - "start": { - "line": 9, - "column": 239 - }, - "end": { - "line": 9, - "column": 240 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[33m", - "start": 509, - "end": 516, - "loc": { - "start": { - "line": 9, - "column": 240 - }, - "end": { - "line": 9, - "column": 247 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 516, - "end": 517, - "loc": { - "start": { - "line": 9, - "column": 247 - }, - "end": { - "line": 9, - "column": 248 - } - } - }, - { - "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": 517, - "end": 521, - "loc": { - "start": { - "line": 9, - "column": 248 - }, - "end": { - "line": 9, - "column": 252 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 521, - "end": 522, - "loc": { - "start": { - "line": 9, - "column": 252 - }, - "end": { - "line": 9, - "column": 253 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_BLUE", - "start": 522, - "end": 529, - "loc": { - "start": { - "line": 9, - "column": 253 - }, - "end": { - "line": 9, - "column": 260 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 529, - "end": 530, - "loc": { - "start": { - "line": 9, - "column": 260 - }, - "end": { - "line": 9, - "column": 261 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[34m", - "start": 530, - "end": 537, - "loc": { - "start": { - "line": 9, - "column": 261 - }, - "end": { - "line": 9, - "column": 268 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 537, - "end": 538, - "loc": { - "start": { - "line": 9, - "column": 268 - }, - "end": { - "line": 9, - "column": 269 - } - } - }, - { - "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": 538, - "end": 542, - "loc": { - "start": { - "line": 9, - "column": 269 - }, - "end": { - "line": 9, - "column": 273 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 542, - "end": 543, - "loc": { - "start": { - "line": 9, - "column": 273 - }, - "end": { - "line": 9, - "column": 274 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_MAGENTA", - "start": 543, - "end": 553, - "loc": { - "start": { - "line": 9, - "column": 274 - }, - "end": { - "line": 9, - "column": 284 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 553, - "end": 554, - "loc": { - "start": { - "line": 9, - "column": 284 - }, - "end": { - "line": 9, - "column": 285 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[35m", - "start": 554, - "end": 561, - "loc": { - "start": { - "line": 9, - "column": 285 - }, - "end": { - "line": 9, - "column": 292 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 561, - "end": 562, - "loc": { - "start": { - "line": 9, - "column": 292 - }, - "end": { - "line": 9, - "column": 293 - } - } - }, - { - "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": 562, - "end": 566, - "loc": { - "start": { - "line": 9, - "column": 293 - }, - "end": { - "line": 9, - "column": 297 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 566, - "end": 567, - "loc": { - "start": { - "line": 9, - "column": 297 - }, - "end": { - "line": 9, - "column": 298 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_CYAN", - "start": 567, - "end": 574, - "loc": { - "start": { - "line": 9, - "column": 298 - }, - "end": { - "line": 9, - "column": 305 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 574, - "end": 575, - "loc": { - "start": { - "line": 9, - "column": 305 - }, - "end": { - "line": 9, - "column": 306 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[36m", - "start": 575, - "end": 582, - "loc": { - "start": { - "line": 9, - "column": 306 - }, - "end": { - "line": 9, - "column": 313 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 582, - "end": 583, - "loc": { - "start": { - "line": 9, - "column": 313 - }, - "end": { - "line": 9, - "column": 314 - } - } - }, - { - "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": 583, - "end": 587, - "loc": { - "start": { - "line": 9, - "column": 314 - }, - "end": { - "line": 9, - "column": 318 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 587, - "end": 588, - "loc": { - "start": { - "line": 9, - "column": 318 - }, - "end": { - "line": 9, - "column": 319 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_WHITE", - "start": 588, - "end": 596, - "loc": { - "start": { - "line": 9, - "column": 319 - }, - "end": { - "line": 9, - "column": 327 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 596, - "end": 597, - "loc": { - "start": { - "line": 9, - "column": 327 - }, - "end": { - "line": 9, - "column": 328 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[37m", - "start": 597, - "end": 604, - "loc": { - "start": { - "line": 9, - "column": 328 - }, - "end": { - "line": 9, - "column": 335 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 604, - "end": 605, - "loc": { - "start": { - "line": 9, - "column": 335 - }, - "end": { - "line": 9, - "column": 336 - } - } - }, - { - "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": 605, - "end": 609, - "loc": { - "start": { - "line": 9, - "column": 336 - }, - "end": { - "line": 9, - "column": 340 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 609, - "end": 610, - "loc": { - "start": { - "line": 9, - "column": 340 - }, - "end": { - "line": 9, - "column": 341 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_GRAY", - "start": 610, - "end": 617, - "loc": { - "start": { - "line": 9, - "column": 341 - }, - "end": { - "line": 9, - "column": 348 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 617, - "end": 618, - "loc": { - "start": { - "line": 9, - "column": 348 - }, - "end": { - "line": 9, - "column": 349 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[90m", - "start": 618, - "end": 625, - "loc": { - "start": { - "line": 9, - "column": 349 - }, - "end": { - "line": 9, - "column": 356 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 625, - "end": 626, - "loc": { - "start": { - "line": 9, - "column": 356 - }, - "end": { - "line": 9, - "column": 357 - } - } - }, - { - "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": 626, - "end": 630, - "loc": { - "start": { - "line": 9, - "column": 357 - }, - "end": { - "line": 9, - "column": 361 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 630, - "end": 631, - "loc": { - "start": { - "line": 9, - "column": 361 - }, - "end": { - "line": 9, - "column": 362 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_BLACK", - "start": 631, - "end": 639, - "loc": { - "start": { - "line": 9, - "column": 362 - }, - "end": { - "line": 9, - "column": 370 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 639, - "end": 640, - "loc": { - "start": { - "line": 9, - "column": 370 - }, - "end": { - "line": 9, - "column": 371 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[40m", - "start": 640, - "end": 647, - "loc": { - "start": { - "line": 9, - "column": 371 - }, - "end": { - "line": 9, - "column": 378 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 647, - "end": 648, - "loc": { - "start": { - "line": 9, - "column": 378 - }, - "end": { - "line": 9, - "column": 379 - } - } - }, - { - "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": 648, - "end": 652, - "loc": { - "start": { - "line": 9, - "column": 379 - }, - "end": { - "line": 9, - "column": 383 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 652, - "end": 653, - "loc": { - "start": { - "line": 9, - "column": 383 - }, - "end": { - "line": 9, - "column": 384 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_RED", - "start": 653, - "end": 659, - "loc": { - "start": { - "line": 9, - "column": 384 - }, - "end": { - "line": 9, - "column": 390 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 659, - "end": 660, - "loc": { - "start": { - "line": 9, - "column": 390 - }, - "end": { - "line": 9, - "column": 391 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[41m", - "start": 660, - "end": 667, - "loc": { - "start": { - "line": 9, - "column": 391 - }, - "end": { - "line": 9, - "column": 398 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 667, - "end": 668, - "loc": { - "start": { - "line": 9, - "column": 398 - }, - "end": { - "line": 9, - "column": 399 - } - } - }, - { - "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": 668, - "end": 672, - "loc": { - "start": { - "line": 9, - "column": 399 - }, - "end": { - "line": 9, - "column": 403 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 672, - "end": 673, - "loc": { - "start": { - "line": 9, - "column": 403 - }, - "end": { - "line": 9, - "column": 404 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_GREEN", - "start": 673, - "end": 681, - "loc": { - "start": { - "line": 9, - "column": 404 - }, - "end": { - "line": 9, - "column": 412 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 681, - "end": 682, - "loc": { - "start": { - "line": 9, - "column": 412 - }, - "end": { - "line": 9, - "column": 413 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[42m", - "start": 682, - "end": 689, - "loc": { - "start": { - "line": 9, - "column": 413 - }, - "end": { - "line": 9, - "column": 420 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 689, - "end": 690, - "loc": { - "start": { - "line": 9, - "column": 420 - }, - "end": { - "line": 9, - "column": 421 - } - } - }, - { - "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": 690, - "end": 694, - "loc": { - "start": { - "line": 9, - "column": 421 - }, - "end": { - "line": 9, - "column": 425 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 694, - "end": 695, - "loc": { - "start": { - "line": 9, - "column": 425 - }, - "end": { - "line": 9, - "column": 426 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_YELLOW", - "start": 695, - "end": 704, - "loc": { - "start": { - "line": 9, - "column": 426 - }, - "end": { - "line": 9, - "column": 435 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 704, - "end": 705, - "loc": { - "start": { - "line": 9, - "column": 435 - }, - "end": { - "line": 9, - "column": 436 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[43m", - "start": 705, - "end": 712, - "loc": { - "start": { - "line": 9, - "column": 436 - }, - "end": { - "line": 9, - "column": 443 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 712, - "end": 713, - "loc": { - "start": { - "line": 9, - "column": 443 - }, - "end": { - "line": 9, - "column": 444 - } - } - }, - { - "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": 713, - "end": 717, - "loc": { - "start": { - "line": 9, - "column": 444 - }, - "end": { - "line": 9, - "column": 448 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 717, - "end": 718, - "loc": { - "start": { - "line": 9, - "column": 448 - }, - "end": { - "line": 9, - "column": 449 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_BLUE", - "start": 718, - "end": 725, - "loc": { - "start": { - "line": 9, - "column": 449 - }, - "end": { - "line": 9, - "column": 456 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 725, - "end": 726, - "loc": { - "start": { - "line": 9, - "column": 456 - }, - "end": { - "line": 9, - "column": 457 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[44m", - "start": 726, - "end": 733, - "loc": { - "start": { - "line": 9, - "column": 457 - }, - "end": { - "line": 9, - "column": 464 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 733, - "end": 734, - "loc": { - "start": { - "line": 9, - "column": 464 - }, - "end": { - "line": 9, - "column": 465 - } - } - }, - { - "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": 734, - "end": 738, - "loc": { - "start": { - "line": 9, - "column": 465 - }, - "end": { - "line": 9, - "column": 469 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 738, - "end": 739, - "loc": { - "start": { - "line": 9, - "column": 469 - }, - "end": { - "line": 9, - "column": 470 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_MAGENTA", - "start": 739, - "end": 749, - "loc": { - "start": { - "line": 9, - "column": 470 - }, - "end": { - "line": 9, - "column": 480 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 749, - "end": 750, - "loc": { - "start": { - "line": 9, - "column": 480 - }, - "end": { - "line": 9, - "column": 481 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[45m", - "start": 750, - "end": 757, - "loc": { - "start": { - "line": 9, - "column": 481 - }, - "end": { - "line": 9, - "column": 488 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 757, - "end": 758, - "loc": { - "start": { - "line": 9, - "column": 488 - }, - "end": { - "line": 9, - "column": 489 - } - } - }, - { - "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": 758, - "end": 762, - "loc": { - "start": { - "line": 9, - "column": 489 - }, - "end": { - "line": 9, - "column": 493 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 762, - "end": 763, - "loc": { - "start": { - "line": 9, - "column": 493 - }, - "end": { - "line": 9, - "column": 494 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_CYAN", - "start": 763, - "end": 770, - "loc": { - "start": { - "line": 9, - "column": 494 - }, - "end": { - "line": 9, - "column": 501 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 770, - "end": 771, - "loc": { - "start": { - "line": 9, - "column": 501 - }, - "end": { - "line": 9, - "column": 502 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[46m", - "start": 771, - "end": 778, - "loc": { - "start": { - "line": 9, - "column": 502 - }, - "end": { - "line": 9, - "column": 509 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 778, - "end": 779, - "loc": { - "start": { - "line": 9, - "column": 509 - }, - "end": { - "line": 9, - "column": 510 - } - } - }, - { - "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": 779, - "end": 783, - "loc": { - "start": { - "line": 9, - "column": 510 - }, - "end": { - "line": 9, - "column": 514 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 783, - "end": 784, - "loc": { - "start": { - "line": 9, - "column": 514 - }, - "end": { - "line": 9, - "column": 515 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_WHITE", - "start": 784, - "end": 792, - "loc": { - "start": { - "line": 9, - "column": 515 - }, - "end": { - "line": 9, - "column": 523 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 792, - "end": 793, - "loc": { - "start": { - "line": 9, - "column": 523 - }, - "end": { - "line": 9, - "column": 524 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[47m", - "start": 793, - "end": 800, - "loc": { - "start": { - "line": 9, - "column": 524 - }, - "end": { - "line": 9, - "column": 531 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 800, - "end": 801, - "loc": { - "start": { - "line": 9, - "column": 531 - }, - "end": { - "line": 9, - "column": 532 - } - } - }, - { - "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": 801, - "end": 805, - "loc": { - "start": { - "line": 9, - "column": 532 - }, - "end": { - "line": 9, - "column": 536 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 805, - "end": 806, - "loc": { - "start": { - "line": 9, - "column": 536 - }, - "end": { - "line": 9, - "column": 537 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_GRAY", - "start": 806, - "end": 813, - "loc": { - "start": { - "line": 9, - "column": 537 - }, - "end": { - "line": 9, - "column": 544 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 813, - "end": 814, - "loc": { - "start": { - "line": 9, - "column": 544 - }, - "end": { - "line": 9, - "column": 545 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[100m", - "start": 814, - "end": 822, - "loc": { - "start": { - "line": 9, - "column": 545 - }, - "end": { - "line": 9, - "column": 553 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 822, - "end": 823, - "loc": { - "start": { - "line": 9, - "column": 553 - }, - "end": { - "line": 9, - "column": 554 - } - } - }, - { - "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": 823, - "end": 827, - "loc": { - "start": { - "line": 9, - "column": 554 - }, - "end": { - "line": 9, - "column": 558 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 827, - "end": 828, - "loc": { - "start": { - "line": 9, - "column": 558 - }, - "end": { - "line": 9, - "column": 559 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "TYPE_SPACER_LENGTH", - "start": 828, - "end": 846, - "loc": { - "start": { - "line": 9, - "column": 559 - }, - "end": { - "line": 9, - "column": 577 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 846, - "end": 847, - "loc": { - "start": { - "line": 9, - "column": 577 - }, - "end": { - "line": 9, - "column": 578 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 13, - "start": 847, - "end": 849, - "loc": { - "start": { - "line": 9, - "column": 578 - }, - "end": { - "line": 9, - "column": 580 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 849, - "end": 850, - "loc": { - "start": { - "line": 9, - "column": 580 - }, - "end": { - "line": 9, - "column": 581 - } - } - }, - { - "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": 850, - "end": 854, - "loc": { - "start": { - "line": 9, - "column": 581 - }, - "end": { - "line": 9, - "column": 585 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 854, - "end": 855, - "loc": { - "start": { - "line": 9, - "column": 585 - }, - "end": { - "line": 9, - "column": 586 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 855, - "end": 860, - "loc": { - "start": { - "line": 9, - "column": 586 - }, - "end": { - "line": 9, - "column": 591 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 860, - "end": 861, - "loc": { - "start": { - "line": 9, - "column": 591 - }, - "end": { - "line": 9, - "column": 592 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 861, - "end": 862, - "loc": { - "start": { - "line": 9, - "column": 592 - }, - "end": { - "line": 9, - "column": 593 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 862, - "end": 869, - "loc": { - "start": { - "line": 9, - "column": 593 - }, - "end": { - "line": 9, - "column": 600 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 869, - "end": 870, - "loc": { - "start": { - "line": 9, - "column": 600 - }, - "end": { - "line": 9, - "column": 601 - } - } - }, - { - "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": 870, - "end": 874, - "loc": { - "start": { - "line": 9, - "column": 601 - }, - "end": { - "line": 9, - "column": 605 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 874, - "end": 875, - "loc": { - "start": { - "line": 9, - "column": 605 - }, - "end": { - "line": 9, - "column": 606 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_WHITE", - "start": 875, - "end": 883, - "loc": { - "start": { - "line": 9, - "column": 606 - }, - "end": { - "line": 9, - "column": 614 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 883, - "end": 884, - "loc": { - "start": { - "line": 9, - "column": 614 - }, - "end": { - "line": 9, - "column": 615 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 884, - "end": 885, - "loc": { - "start": { - "line": 9, - "column": 615 - }, - "end": { - "line": 9, - "column": 616 - } - } - }, - { - "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": 885, - "end": 889, - "loc": { - "start": { - "line": 9, - "column": 616 - }, - "end": { - "line": 9, - "column": 620 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 889, - "end": 890, - "loc": { - "start": { - "line": 9, - "column": 620 - }, - "end": { - "line": 9, - "column": 621 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currentType", - "start": 890, - "end": 901, - "loc": { - "start": { - "line": 9, - "column": 621 - }, - "end": { - "line": 9, - "column": 632 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 901, - "end": 902, - "loc": { - "start": { - "line": 9, - "column": 632 - }, - "end": { - "line": 9, - "column": 633 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 902, - "end": 904, - "loc": { - "start": { - "line": 9, - "column": 633 - }, - "end": { - "line": 9, - "column": 635 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 904, - "end": 905, - "loc": { - "start": { - "line": 9, - "column": 635 - }, - "end": { - "line": 9, - "column": 636 - } - } - }, - { - "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": 905, - "end": 909, - "loc": { - "start": { - "line": 9, - "column": 636 - }, - "end": { - "line": 9, - "column": 640 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 909, - "end": 910, - "loc": { - "start": { - "line": 9, - "column": 640 - }, - "end": { - "line": 9, - "column": 641 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "SPACE_CHAR", - "start": 910, - "end": 920, - "loc": { - "start": { - "line": 9, - "column": 641 - }, - "end": { - "line": 9, - "column": 651 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 920, - "end": 921, - "loc": { - "start": { - "line": 9, - "column": 651 - }, - "end": { - "line": 9, - "column": 652 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": " ", - "start": 921, - "end": 924, - "loc": { - "start": { - "line": 9, - "column": 652 - }, - "end": { - "line": 9, - "column": 655 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 924, - "end": 925, - "loc": { - "start": { - "line": 9, - "column": 655 - }, - "end": { - "line": 9, - "column": 656 - } - } - }, - { - "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": 925, - "end": 929, - "loc": { - "start": { - "line": 9, - "column": 656 - }, - "end": { - "line": 9, - "column": 660 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 929, - "end": 930, - "loc": { - "start": { - "line": 9, - "column": 660 - }, - "end": { - "line": 9, - "column": 661 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_COLORS", - "start": 930, - "end": 939, - "loc": { - "start": { - "line": 9, - "column": 661 - }, - "end": { - "line": 9, - "column": 670 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 939, - "end": 940, - "loc": { - "start": { - "line": 9, - "column": 670 - }, - "end": { - "line": 9, - "column": 671 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 940, - "end": 941, - "loc": { - "start": { - "line": 9, - "column": 671 - }, - "end": { - "line": 9, - "column": 672 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 941, - "end": 942, - "loc": { - "start": { - "line": 9, - "column": 672 - }, - "end": { - "line": 9, - "column": 673 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 942, - "end": 943, - "loc": { - "start": { - "line": 9, - "column": 673 - }, - "end": { - "line": 9, - "column": 674 - } - } - }, - { - "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": 943, - "end": 946, - "loc": { - "start": { - "line": 9, - "column": 674 - }, - "end": { - "line": 9, - "column": 677 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 946, - "end": 947, - "loc": { - "start": { - "line": 9, - "column": 677 - }, - "end": { - "line": 9, - "column": 678 - } - } - }, - { - "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": 947, - "end": 950, - "loc": { - "start": { - "line": 9, - "column": 678 - }, - "end": { - "line": 9, - "column": 681 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 951, - "end": 952, - "loc": { - "start": { - "line": 9, - "column": 682 - }, - "end": { - "line": 9, - "column": 683 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 952, - "end": 953, - "loc": { - "start": { - "line": 9, - "column": 683 - }, - "end": { - "line": 9, - "column": 684 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 953, - "end": 954, - "loc": { - "start": { - "line": 9, - "column": 684 - }, - "end": { - "line": 9, - "column": 685 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 954, - "end": 955, - "loc": { - "start": { - "line": 9, - "column": 685 - }, - "end": { - "line": 9, - "column": 686 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 955, - "end": 956, - "loc": { - "start": { - "line": 9, - "column": 686 - }, - "end": { - "line": 9, - "column": 687 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 956, - "end": 958, - "loc": { - "start": { - "line": 9, - "column": 687 - }, - "end": { - "line": 9, - "column": 689 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 958, - "end": 961, - "loc": { - "start": { - "line": 9, - "column": 689 - }, - "end": { - "line": 9, - "column": 692 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 961, - "end": 962, - "loc": { - "start": { - "line": 9, - "column": 692 - }, - "end": { - "line": 9, - "column": 693 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 962, - "end": 963, - "loc": { - "start": { - "line": 9, - "column": 693 - }, - "end": { - "line": 9, - "column": 694 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 963, - "end": 965, - "loc": { - "start": { - "line": 9, - "column": 694 - }, - "end": { - "line": 9, - "column": 696 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 965, - "end": 966, - "loc": { - "start": { - "line": 9, - "column": 696 - }, - "end": { - "line": 9, - "column": 697 - } - } - }, - { - "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": 966, - "end": 970, - "loc": { - "start": { - "line": 9, - "column": 697 - }, - "end": { - "line": 9, - "column": 701 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 970, - "end": 971, - "loc": { - "start": { - "line": 9, - "column": 701 - }, - "end": { - "line": 9, - "column": 702 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "FG_COLORS", - "start": 971, - "end": 980, - "loc": { - "start": { - "line": 9, - "column": 702 - }, - "end": { - "line": 9, - "column": 711 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 980, - "end": 981, - "loc": { - "start": { - "line": 9, - "column": 711 - }, - "end": { - "line": 9, - "column": 712 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 981, - "end": 982, - "loc": { - "start": { - "line": 9, - "column": 712 - }, - "end": { - "line": 9, - "column": 713 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 982, - "end": 983, - "loc": { - "start": { - "line": 9, - "column": 713 - }, - "end": { - "line": 9, - "column": 714 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 983, - "end": 984, - "loc": { - "start": { - "line": 9, - "column": 714 - }, - "end": { - "line": 9, - "column": 715 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[38;5;", - "start": 984, - "end": 993, - "loc": { - "start": { - "line": 9, - "column": 715 - }, - "end": { - "line": 9, - "column": 724 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 993, - "end": 994, - "loc": { - "start": { - "line": 9, - "column": 724 - }, - "end": { - "line": 9, - "column": 725 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 994, - "end": 995, - "loc": { - "start": { - "line": 9, - "column": 725 - }, - "end": { - "line": 9, - "column": 726 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 995, - "end": 996, - "loc": { - "start": { - "line": 9, - "column": 726 - }, - "end": { - "line": 9, - "column": 727 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "m", - "start": 996, - "end": 999, - "loc": { - "start": { - "line": 9, - "column": 727 - }, - "end": { - "line": 9, - "column": 730 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 999, - "end": 1000, - "loc": { - "start": { - "line": 9, - "column": 730 - }, - "end": { - "line": 9, - "column": 731 - } - } - }, - { - "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": 1000, - "end": 1004, - "loc": { - "start": { - "line": 9, - "column": 731 - }, - "end": { - "line": 9, - "column": 735 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1004, - "end": 1005, - "loc": { - "start": { - "line": 9, - "column": 735 - }, - "end": { - "line": 9, - "column": 736 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_COLORS", - "start": 1005, - "end": 1014, - "loc": { - "start": { - "line": 9, - "column": 736 - }, - "end": { - "line": 9, - "column": 745 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1014, - "end": 1015, - "loc": { - "start": { - "line": 9, - "column": 745 - }, - "end": { - "line": 9, - "column": 746 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1015, - "end": 1016, - "loc": { - "start": { - "line": 9, - "column": 746 - }, - "end": { - "line": 9, - "column": 747 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1016, - "end": 1017, - "loc": { - "start": { - "line": 9, - "column": 747 - }, - "end": { - "line": 9, - "column": 748 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1017, - "end": 1018, - "loc": { - "start": { - "line": 9, - "column": 748 - }, - "end": { - "line": 9, - "column": 749 - } - } - }, - { - "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": 1018, - "end": 1021, - "loc": { - "start": { - "line": 9, - "column": 749 - }, - "end": { - "line": 9, - "column": 752 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1021, - "end": 1022, - "loc": { - "start": { - "line": 9, - "column": 752 - }, - "end": { - "line": 9, - "column": 753 - } - } - }, - { - "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": 1022, - "end": 1025, - "loc": { - "start": { - "line": 9, - "column": 753 - }, - "end": { - "line": 9, - "column": 756 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1026, - "end": 1027, - "loc": { - "start": { - "line": 9, - "column": 757 - }, - "end": { - "line": 9, - "column": 758 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1027, - "end": 1028, - "loc": { - "start": { - "line": 9, - "column": 758 - }, - "end": { - "line": 9, - "column": 759 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1028, - "end": 1029, - "loc": { - "start": { - "line": 9, - "column": 759 - }, - "end": { - "line": 9, - "column": 760 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1029, - "end": 1030, - "loc": { - "start": { - "line": 9, - "column": 760 - }, - "end": { - "line": 9, - "column": 761 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1030, - "end": 1031, - "loc": { - "start": { - "line": 9, - "column": 761 - }, - "end": { - "line": 9, - "column": 762 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<=", - "start": 1031, - "end": 1033, - "loc": { - "start": { - "line": 9, - "column": 762 - }, - "end": { - "line": 9, - "column": 764 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 255, - "start": 1033, - "end": 1036, - "loc": { - "start": { - "line": 9, - "column": 764 - }, - "end": { - "line": 9, - "column": 767 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1036, - "end": 1037, - "loc": { - "start": { - "line": 9, - "column": 767 - }, - "end": { - "line": 9, - "column": 768 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1037, - "end": 1038, - "loc": { - "start": { - "line": 9, - "column": 768 - }, - "end": { - "line": 9, - "column": 769 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 1038, - "end": 1040, - "loc": { - "start": { - "line": 9, - "column": 769 - }, - "end": { - "line": 9, - "column": 771 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1040, - "end": 1041, - "loc": { - "start": { - "line": 9, - "column": 771 - }, - "end": { - "line": 9, - "column": 772 - } - } - }, - { - "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": 1041, - "end": 1045, - "loc": { - "start": { - "line": 9, - "column": 772 - }, - "end": { - "line": 9, - "column": 776 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1045, - "end": 1046, - "loc": { - "start": { - "line": 9, - "column": 776 - }, - "end": { - "line": 9, - "column": 777 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "BG_COLORS", - "start": 1046, - "end": 1055, - "loc": { - "start": { - "line": 9, - "column": 777 - }, - "end": { - "line": 9, - "column": 786 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1055, - "end": 1056, - "loc": { - "start": { - "line": 9, - "column": 786 - }, - "end": { - "line": 9, - "column": 787 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1056, - "end": 1057, - "loc": { - "start": { - "line": 9, - "column": 787 - }, - "end": { - "line": 9, - "column": 788 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1057, - "end": 1058, - "loc": { - "start": { - "line": 9, - "column": 788 - }, - "end": { - "line": 9, - "column": 789 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1058, - "end": 1059, - "loc": { - "start": { - "line": 9, - "column": 789 - }, - "end": { - "line": 9, - "column": 790 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b[48;5;", - "start": 1059, - "end": 1068, - "loc": { - "start": { - "line": 9, - "column": 790 - }, - "end": { - "line": 9, - "column": 799 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1068, - "end": 1069, - "loc": { - "start": { - "line": 9, - "column": 799 - }, - "end": { - "line": 9, - "column": 800 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1069, - "end": 1070, - "loc": { - "start": { - "line": 9, - "column": 800 - }, - "end": { - "line": 9, - "column": 801 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1070, - "end": 1071, - "loc": { - "start": { - "line": 9, - "column": 801 - }, - "end": { - "line": 9, - "column": 802 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "m", - "start": 1071, - "end": 1074, - "loc": { - "start": { - "line": 9, - "column": 802 - }, - "end": { - "line": 9, - "column": 805 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1074, - "end": 1075, - "loc": { - "start": { - "line": 9, - "column": 805 - }, - "end": { - "line": 9, - "column": 806 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 1075, - "end": 1080, - "loc": { - "start": { - "line": 9, - "column": 806 - }, - "end": { - "line": 9, - "column": 811 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1080, - "end": 1081, - "loc": { - "start": { - "line": 9, - "column": 811 - }, - "end": { - "line": 9, - "column": 812 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 1081, - "end": 1088, - "loc": { - "start": { - "line": 9, - "column": 812 - }, - "end": { - "line": 9, - "column": 819 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1088, - "end": 1089, - "loc": { - "start": { - "line": 9, - "column": 819 - }, - "end": { - "line": 9, - "column": 820 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1089, - "end": 1090, - "loc": { - "start": { - "line": 9, - "column": 820 - }, - "end": { - "line": 9, - "column": 821 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1090, - "end": 1091, - "loc": { - "start": { - "line": 9, - "column": 821 - }, - "end": { - "line": 9, - "column": 822 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 1091, - "end": 1093, - "loc": { - "start": { - "line": 9, - "column": 822 - }, - "end": { - "line": 9, - "column": 824 - } - } - }, - { - "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": 1093, - "end": 1097, - "loc": { - "start": { - "line": 9, - "column": 824 - }, - "end": { - "line": 9, - "column": 828 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1097, - "end": 1098, - "loc": { - "start": { - "line": 9, - "column": 828 - }, - "end": { - "line": 9, - "column": 829 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "registerTypes", - "start": 1098, - "end": 1111, - "loc": { - "start": { - "line": 9, - "column": 829 - }, - "end": { - "line": 9, - "column": 842 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1111, - "end": 1112, - "loc": { - "start": { - "line": 9, - "column": 842 - }, - "end": { - "line": 9, - "column": 843 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1112, - "end": 1113, - "loc": { - "start": { - "line": 9, - "column": 843 - }, - "end": { - "line": 9, - "column": 844 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1113, - "end": 1114, - "loc": { - "start": { - "line": 9, - "column": 844 - }, - "end": { - "line": 9, - "column": 845 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1114, - "end": 1115, - "loc": { - "start": { - "line": 9, - "column": 845 - }, - "end": { - "line": 9, - "column": 846 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "prefix", - "start": 1115, - "end": 1121, - "loc": { - "start": { - "line": 9, - "column": 846 - }, - "end": { - "line": 9, - "column": 852 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1121, - "end": 1122, - "loc": { - "start": { - "line": 9, - "column": 852 - }, - "end": { - "line": 9, - "column": 853 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1122, - "end": 1123, - "loc": { - "start": { - "line": 9, - "column": 853 - }, - "end": { - "line": 9, - "column": 854 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1123, - "end": 1124, - "loc": { - "start": { - "line": 9, - "column": 854 - }, - "end": { - "line": 9, - "column": 855 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1124, - "end": 1125, - "loc": { - "start": { - "line": 9, - "column": 855 - }, - "end": { - "line": 9, - "column": 856 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "return", - "start": 1125, - "end": 1131, - "loc": { - "start": { - "line": 9, - "column": 856 - }, - "end": { - "line": 9, - "column": 862 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "string", - "start": 1131, - "end": 1139, - "loc": { - "start": { - "line": 9, - "column": 862 - }, - "end": { - "line": 9, - "column": 870 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "==", - "start": 1139, - "end": 1141, - "loc": { - "start": { - "line": 9, - "column": 870 - }, - "end": { - "line": 9, - "column": 872 - } - } - }, - { - "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": 1141, - "end": 1147, - "loc": { - "start": { - "line": 9, - "column": 872 - }, - "end": { - "line": 9, - "column": 878 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1148, - "end": 1149, - "loc": { - "start": { - "line": 9, - "column": 879 - }, - "end": { - "line": 9, - "column": 880 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 1149, - "end": 1151, - "loc": { - "start": { - "line": 9, - "column": 880 - }, - "end": { - "line": 9, - "column": 882 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1151, - "end": 1152, - "loc": { - "start": { - "line": 9, - "column": 882 - }, - "end": { - "line": 9, - "column": 883 - } - } - }, - { - "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": 1152, - "end": 1156, - "loc": { - "start": { - "line": 9, - "column": 883 - }, - "end": { - "line": 9, - "column": 887 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1156, - "end": 1157, - "loc": { - "start": { - "line": 9, - "column": 887 - }, - "end": { - "line": 9, - "column": 888 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currentType", - "start": 1157, - "end": 1168, - "loc": { - "start": { - "line": 9, - "column": 888 - }, - "end": { - "line": 9, - "column": 899 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1168, - "end": 1169, - "loc": { - "start": { - "line": 9, - "column": 899 - }, - "end": { - "line": 9, - "column": 900 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1169, - "end": 1170, - "loc": { - "start": { - "line": 9, - "column": 900 - }, - "end": { - "line": 9, - "column": 901 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1170, - "end": 1171, - "loc": { - "start": { - "line": 9, - "column": 901 - }, - "end": { - "line": 9, - "column": 902 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1171, - "end": 1172, - "loc": { - "start": { - "line": 9, - "column": 902 - }, - "end": { - "line": 9, - "column": 903 - } - } - }, - { - "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": 1172, - "end": 1176, - "loc": { - "start": { - "line": 9, - "column": 903 - }, - "end": { - "line": 9, - "column": 907 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1176, - "end": 1177, - "loc": { - "start": { - "line": 9, - "column": 907 - }, - "end": { - "line": 9, - "column": 908 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 1177, - "end": 1184, - "loc": { - "start": { - "line": 9, - "column": 908 - }, - "end": { - "line": 9, - "column": 915 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1184, - "end": 1185, - "loc": { - "start": { - "line": 9, - "column": 915 - }, - "end": { - "line": 9, - "column": 916 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 1185, - "end": 1186, - "loc": { - "start": { - "line": 9, - "column": 916 - }, - "end": { - "line": 9, - "column": 917 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1186, - "end": 1187, - "loc": { - "start": { - "line": 9, - "column": 917 - }, - "end": { - "line": 9, - "column": 918 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "log", - "start": 1187, - "end": 1192, - "loc": { - "start": { - "line": 9, - "column": 918 - }, - "end": { - "line": 9, - "column": 923 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1192, - "end": 1193, - "loc": { - "start": { - "line": 9, - "column": 923 - }, - "end": { - "line": 9, - "column": 924 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1193, - "end": 1196, - "loc": { - "start": { - "line": 9, - "column": 924 - }, - "end": { - "line": 9, - "column": 927 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "e", - "start": 1196, - "end": 1197, - "loc": { - "start": { - "line": 9, - "column": 927 - }, - "end": { - "line": 9, - "column": 928 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1197, - "end": 1198, - "loc": { - "start": { - "line": 9, - "column": 928 - }, - "end": { - "line": 9, - "column": 929 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1198, - "end": 1199, - "loc": { - "start": { - "line": 9, - "column": 929 - }, - "end": { - "line": 9, - "column": 930 - } - } - }, - { - "type": { - "label": "var", - "keyword": "var", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "var", - "start": 1199, - "end": 1202, - "loc": { - "start": { - "line": 9, - "column": 930 - }, - "end": { - "line": 9, - "column": 933 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1203, - "end": 1204, - "loc": { - "start": { - "line": 9, - "column": 934 - }, - "end": { - "line": 9, - "column": 935 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1204, - "end": 1205, - "loc": { - "start": { - "line": 9, - "column": 935 - }, - "end": { - "line": 9, - "column": 936 - } - } - }, - { - "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": 1205, - "end": 1209, - "loc": { - "start": { - "line": 9, - "column": 936 - }, - "end": { - "line": 9, - "column": 940 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1209, - "end": 1210, - "loc": { - "start": { - "line": 9, - "column": 940 - }, - "end": { - "line": 9, - "column": 941 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currentType", - "start": 1210, - "end": 1221, - "loc": { - "start": { - "line": 9, - "column": 941 - }, - "end": { - "line": 9, - "column": 952 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 1221, - "end": 1223, - "loc": { - "start": { - "line": 9, - "column": 952 - }, - "end": { - "line": 9, - "column": 954 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1223, - "end": 1225, - "loc": { - "start": { - "line": 9, - "column": 954 - }, - "end": { - "line": 9, - "column": 956 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1225, - "end": 1226, - "loc": { - "start": { - "line": 9, - "column": 956 - }, - "end": { - "line": 9, - "column": 957 - } - } - }, - { - "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": 1226, - "end": 1228, - "loc": { - "start": { - "line": 9, - "column": 957 - }, - "end": { - "line": 9, - "column": 959 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1228, - "end": 1229, - "loc": { - "start": { - "line": 9, - "column": 959 - }, - "end": { - "line": 9, - "column": 960 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1229, - "end": 1230, - "loc": { - "start": { - "line": 9, - "column": 960 - }, - "end": { - "line": 9, - "column": 961 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 1230, - "end": 1233, - "loc": { - "start": { - "line": 9, - "column": 961 - }, - "end": { - "line": 9, - "column": 964 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1233, - "end": 1234, - "loc": { - "start": { - "line": 9, - "column": 964 - }, - "end": { - "line": 9, - "column": 965 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1234, - "end": 1235, - "loc": { - "start": { - "line": 9, - "column": 965 - }, - "end": { - "line": 9, - "column": 966 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 1235, - "end": 1241, - "loc": { - "start": { - "line": 9, - "column": 966 - }, - "end": { - "line": 9, - "column": 972 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1241, - "end": 1242, - "loc": { - "start": { - "line": 9, - "column": 972 - }, - "end": { - "line": 9, - "column": 973 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 1242, - "end": 1249, - "loc": { - "start": { - "line": 9, - "column": 973 - }, - "end": { - "line": 9, - "column": 980 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1249, - "end": 1250, - "loc": { - "start": { - "line": 9, - "column": 980 - }, - "end": { - "line": 9, - "column": 981 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 1250, - "end": 1251, - "loc": { - "start": { - "line": 9, - "column": 981 - }, - "end": { - "line": 9, - "column": 982 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1251, - "end": 1252, - "loc": { - "start": { - "line": 9, - "column": 982 - }, - "end": { - "line": 9, - "column": 983 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1252, - "end": 1253, - "loc": { - "start": { - "line": 9, - "column": 983 - }, - "end": { - "line": 9, - "column": 984 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1253, - "end": 1256, - "loc": { - "start": { - "line": 9, - "column": 984 - }, - "end": { - "line": 9, - "column": 987 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "e", - "start": 1256, - "end": 1257, - "loc": { - "start": { - "line": 9, - "column": 987 - }, - "end": { - "line": 9, - "column": 988 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1257, - "end": 1258, - "loc": { - "start": { - "line": 9, - "column": 988 - }, - "end": { - "line": 9, - "column": 989 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1258, - "end": 1259, - "loc": { - "start": { - "line": 9, - "column": 989 - }, - "end": { - "line": 9, - "column": 990 - } - } - }, - { - "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": 1259, - "end": 1263, - "loc": { - "start": { - "line": 9, - "column": 990 - }, - "end": { - "line": 9, - "column": 994 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1263, - "end": 1264, - "loc": { - "start": { - "line": 9, - "column": 994 - }, - "end": { - "line": 9, - "column": 995 - } - } - }, - { - "type": { - "label": "var", - "keyword": "var", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "var", - "start": 1264, - "end": 1267, - "loc": { - "start": { - "line": 9, - "column": 995 - }, - "end": { - "line": 9, - "column": 998 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "h", - "start": 1268, - "end": 1269, - "loc": { - "start": { - "line": 9, - "column": 999 - }, - "end": { - "line": 9, - "column": 1000 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1269, - "end": 1270, - "loc": { - "start": { - "line": 9, - "column": 1000 - }, - "end": { - "line": 9, - "column": 1001 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1270, - "end": 1271, - "loc": { - "start": { - "line": 9, - "column": 1001 - }, - "end": { - "line": 9, - "column": 1002 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1271, - "end": 1272, - "loc": { - "start": { - "line": 9, - "column": 1002 - }, - "end": { - "line": 9, - "column": 1003 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 1272, - "end": 1278, - "loc": { - "start": { - "line": 9, - "column": 1003 - }, - "end": { - "line": 9, - "column": 1009 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": ">=", - "start": 1278, - "end": 1280, - "loc": { - "start": { - "line": 9, - "column": 1009 - }, - "end": { - "line": 9, - "column": 1011 - } - } - }, - { - "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": 1280, - "end": 1284, - "loc": { - "start": { - "line": 9, - "column": 1011 - }, - "end": { - "line": 9, - "column": 1015 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1284, - "end": 1285, - "loc": { - "start": { - "line": 9, - "column": 1015 - }, - "end": { - "line": 9, - "column": 1016 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "TYPE_SPACER_LENGTH", - "start": 1285, - "end": 1303, - "loc": { - "start": { - "line": 9, - "column": 1016 - }, - "end": { - "line": 9, - "column": 1034 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1303, - "end": 1304, - "loc": { - "start": { - "line": 9, - "column": 1034 - }, - "end": { - "line": 9, - "column": 1035 - } - } - }, - { - "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": 1304, - "end": 1307, - "loc": { - "start": { - "line": 9, - "column": 1035 - }, - "end": { - "line": 9, - "column": 1038 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1308, - "end": 1309, - "loc": { - "start": { - "line": 9, - "column": 1039 - }, - "end": { - "line": 9, - "column": 1040 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1309, - "end": 1310, - "loc": { - "start": { - "line": 9, - "column": 1040 - }, - "end": { - "line": 9, - "column": 1041 - } - } - }, - { - "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": 1310, - "end": 1314, - "loc": { - "start": { - "line": 9, - "column": 1041 - }, - "end": { - "line": 9, - "column": 1045 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1314, - "end": 1315, - "loc": { - "start": { - "line": 9, - "column": 1045 - }, - "end": { - "line": 9, - "column": 1046 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 1315, - "end": 1320, - "loc": { - "start": { - "line": 9, - "column": 1046 - }, - "end": { - "line": 9, - "column": 1051 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1320, - "end": 1321, - "loc": { - "start": { - "line": 9, - "column": 1051 - }, - "end": { - "line": 9, - "column": 1052 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1321, - "end": 1322, - "loc": { - "start": { - "line": 9, - "column": 1052 - }, - "end": { - "line": 9, - "column": 1053 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1322, - "end": 1323, - "loc": { - "start": { - "line": 9, - "column": 1053 - }, - "end": { - "line": 9, - "column": 1054 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 1323, - "end": 1334, - "loc": { - "start": { - "line": 9, - "column": 1054 - }, - "end": { - "line": 9, - "column": 1065 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1334, - "end": 1335, - "loc": { - "start": { - "line": 9, - "column": 1065 - }, - "end": { - "line": 9, - "column": 1066 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1335, - "end": 1336, - "loc": { - "start": { - "line": 9, - "column": 1066 - }, - "end": { - "line": 9, - "column": 1067 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1336, - "end": 1337, - "loc": { - "start": { - "line": 9, - "column": 1067 - }, - "end": { - "line": 9, - "column": 1068 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1337, - "end": 1338, - "loc": { - "start": { - "line": 9, - "column": 1068 - }, - "end": { - "line": 9, - "column": 1069 - } - } - }, - { - "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": 1338, - "end": 1342, - "loc": { - "start": { - "line": 9, - "column": 1069 - }, - "end": { - "line": 9, - "column": 1073 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1342, - "end": 1343, - "loc": { - "start": { - "line": 9, - "column": 1073 - }, - "end": { - "line": 9, - "column": 1074 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 1343, - "end": 1348, - "loc": { - "start": { - "line": 9, - "column": 1074 - }, - "end": { - "line": 9, - "column": 1079 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1348, - "end": 1349, - "loc": { - "start": { - "line": 9, - "column": 1079 - }, - "end": { - "line": 9, - "column": 1080 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1349, - "end": 1350, - "loc": { - "start": { - "line": 9, - "column": 1080 - }, - "end": { - "line": 9, - "column": 1081 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1350, - "end": 1351, - "loc": { - "start": { - "line": 9, - "column": 1081 - }, - "end": { - "line": 9, - "column": 1082 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 1351, - "end": 1362, - "loc": { - "start": { - "line": 9, - "column": 1082 - }, - "end": { - "line": 9, - "column": 1093 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1362, - "end": 1363, - "loc": { - "start": { - "line": 9, - "column": 1093 - }, - "end": { - "line": 9, - "column": 1094 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1363, - "end": 1364, - "loc": { - "start": { - "line": 9, - "column": 1094 - }, - "end": { - "line": 9, - "column": 1095 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1364, - "end": 1365, - "loc": { - "start": { - "line": 9, - "column": 1095 - }, - "end": { - "line": 9, - "column": 1096 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1365, - "end": 1366, - "loc": { - "start": { - "line": 9, - "column": 1096 - }, - "end": { - "line": 9, - "column": 1097 - } - } - }, - { - "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": 1366, - "end": 1370, - "loc": { - "start": { - "line": 9, - "column": 1097 - }, - "end": { - "line": 9, - "column": 1101 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1370, - "end": 1371, - "loc": { - "start": { - "line": 9, - "column": 1101 - }, - "end": { - "line": 9, - "column": 1102 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 1371, - "end": 1376, - "loc": { - "start": { - "line": 9, - "column": 1102 - }, - "end": { - "line": 9, - "column": 1107 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1376, - "end": 1377, - "loc": { - "start": { - "line": 9, - "column": 1107 - }, - "end": { - "line": 9, - "column": 1108 - } - } - }, - { - "type": { - "label": "default", - "keyword": "default", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "default", - "start": 1377, - "end": 1384, - "loc": { - "start": { - "line": 9, - "column": 1108 - }, - "end": { - "line": 9, - "column": 1115 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1384, - "end": 1385, - "loc": { - "start": { - "line": 9, - "column": 1115 - }, - "end": { - "line": 9, - "column": 1116 - } - } - }, - { - "type": { - "label": "var", - "keyword": "var", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "var", - "start": 1385, - "end": 1388, - "loc": { - "start": { - "line": 9, - "column": 1116 - }, - "end": { - "line": 9, - "column": 1119 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 1389, - "end": 1390, - "loc": { - "start": { - "line": 9, - "column": 1120 - }, - "end": { - "line": 9, - "column": 1121 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1390, - "end": 1391, - "loc": { - "start": { - "line": 9, - "column": 1121 - }, - "end": { - "line": 9, - "column": 1122 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1391, - "end": 1392, - "loc": { - "start": { - "line": 9, - "column": 1122 - }, - "end": { - "line": 9, - "column": 1123 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1392, - "end": 1393, - "loc": { - "start": { - "line": 9, - "column": 1123 - }, - "end": { - "line": 9, - "column": 1124 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "includes", - "start": 1393, - "end": 1401, - "loc": { - "start": { - "line": 9, - "column": 1124 - }, - "end": { - "line": 9, - "column": 1132 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1401, - "end": 1402, - "loc": { - "start": { - "line": 9, - "column": 1132 - }, - "end": { - "line": 9, - "column": 1133 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "\u001b", - "start": 1402, - "end": 1405, - "loc": { - "start": { - "line": 9, - "column": 1133 - }, - "end": { - "line": 9, - "column": 1136 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1405, - "end": 1406, - "loc": { - "start": { - "line": 9, - "column": 1136 - }, - "end": { - "line": 9, - "column": 1137 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1406, - "end": 1407, - "loc": { - "start": { - "line": 9, - "column": 1137 - }, - "end": { - "line": 9, - "column": 1138 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 1407, - "end": 1408, - "loc": { - "start": { - "line": 9, - "column": 1138 - }, - "end": { - "line": 9, - "column": 1139 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 1408, - "end": 1410, - "loc": { - "start": { - "line": 9, - "column": 1139 - }, - "end": { - "line": 9, - "column": 1141 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1410, - "end": 1411, - "loc": { - "start": { - "line": 9, - "column": 1141 - }, - "end": { - "line": 9, - "column": 1142 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1411, - "end": 1412, - "loc": { - "start": { - "line": 9, - "column": 1142 - }, - "end": { - "line": 9, - "column": 1143 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1412, - "end": 1413, - "loc": { - "start": { - "line": 9, - "column": 1143 - }, - "end": { - "line": 9, - "column": 1144 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "color: ", - "start": 1413, - "end": 1422, - "loc": { - "start": { - "line": 9, - "column": 1144 - }, - "end": { - "line": 9, - "column": 1153 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1422, - "end": 1423, - "loc": { - "start": { - "line": 9, - "column": 1153 - }, - "end": { - "line": 9, - "column": 1154 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1423, - "end": 1424, - "loc": { - "start": { - "line": 9, - "column": 1154 - }, - "end": { - "line": 9, - "column": 1155 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1424, - "end": 1425, - "loc": { - "start": { - "line": 9, - "column": 1155 - }, - "end": { - "line": 9, - "column": 1156 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1425, - "end": 1426, - "loc": { - "start": { - "line": 9, - "column": 1156 - }, - "end": { - "line": 9, - "column": 1157 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 1426, - "end": 1427, - "loc": { - "start": { - "line": 9, - "column": 1157 - }, - "end": { - "line": 9, - "column": 1158 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "globalThis", - "start": 1427, - "end": 1437, - "loc": { - "start": { - "line": 9, - "column": 1158 - }, - "end": { - "line": 9, - "column": 1168 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1437, - "end": 1438, - "loc": { - "start": { - "line": 9, - "column": 1168 - }, - "end": { - "line": 9, - "column": 1169 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "window", - "start": 1438, - "end": 1444, - "loc": { - "start": { - "line": 9, - "column": 1169 - }, - "end": { - "line": 9, - "column": 1175 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 1444, - "end": 1446, - "loc": { - "start": { - "line": 9, - "column": 1175 - }, - "end": { - "line": 9, - "column": 1177 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "r", - "start": 1446, - "end": 1447, - "loc": { - "start": { - "line": 9, - "column": 1177 - }, - "end": { - "line": 9, - "column": 1178 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1447, - "end": 1448, - "loc": { - "start": { - "line": 9, - "column": 1178 - }, - "end": { - "line": 9, - "column": 1179 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 1448, - "end": 1455, - "loc": { - "start": { - "line": 9, - "column": 1179 - }, - "end": { - "line": 9, - "column": 1186 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1455, - "end": 1456, - "loc": { - "start": { - "line": 9, - "column": 1186 - }, - "end": { - "line": 9, - "column": 1187 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 1456, - "end": 1457, - "loc": { - "start": { - "line": 9, - "column": 1187 - }, - "end": { - "line": 9, - "column": 1188 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1457, - "end": 1458, - "loc": { - "start": { - "line": 9, - "column": 1188 - }, - "end": { - "line": 9, - "column": 1189 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1458, - "end": 1459, - "loc": { - "start": { - "line": 9, - "column": 1189 - }, - "end": { - "line": 9, - "column": 1190 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1459, - "end": 1460, - "loc": { - "start": { - "line": 9, - "column": 1190 - }, - "end": { - "line": 9, - "column": 1191 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1460, - "end": 1461, - "loc": { - "start": { - "line": 9, - "column": 1191 - }, - "end": { - "line": 9, - "column": 1192 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1461, - "end": 1462, - "loc": { - "start": { - "line": 9, - "column": 1192 - }, - "end": { - "line": 9, - "column": 1193 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1462, - "end": 1463, - "loc": { - "start": { - "line": 9, - "column": 1193 - }, - "end": { - "line": 9, - "column": 1194 - } - } - }, - { - "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": 1463, - "end": 1467, - "loc": { - "start": { - "line": 9, - "column": 1194 - }, - "end": { - "line": 9, - "column": 1198 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1467, - "end": 1468, - "loc": { - "start": { - "line": 9, - "column": 1198 - }, - "end": { - "line": 9, - "column": 1199 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "SPACE_CHAR", - "start": 1468, - "end": 1478, - "loc": { - "start": { - "line": 9, - "column": 1199 - }, - "end": { - "line": 9, - "column": 1209 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1478, - "end": 1479, - "loc": { - "start": { - "line": 9, - "column": 1209 - }, - "end": { - "line": 9, - "column": 1210 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "repeat", - "start": 1479, - "end": 1485, - "loc": { - "start": { - "line": 9, - "column": 1210 - }, - "end": { - "line": 9, - "column": 1216 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1485, - "end": 1486, - "loc": { - "start": { - "line": 9, - "column": 1216 - }, - "end": { - "line": 9, - "column": 1217 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1486, - "end": 1490, - "loc": { - "start": { - "line": 9, - "column": 1217 - }, - "end": { - "line": 9, - "column": 1221 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1490, - "end": 1491, - "loc": { - "start": { - "line": 9, - "column": 1221 - }, - "end": { - "line": 9, - "column": 1222 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "max", - "start": 1491, - "end": 1494, - "loc": { - "start": { - "line": 9, - "column": 1222 - }, - "end": { - "line": 9, - "column": 1225 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1494, - "end": 1495, - "loc": { - "start": { - "line": 9, - "column": 1225 - }, - "end": { - "line": 9, - "column": 1226 - } - } - }, - { - "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": 1495, - "end": 1499, - "loc": { - "start": { - "line": 9, - "column": 1226 - }, - "end": { - "line": 9, - "column": 1230 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1499, - "end": 1500, - "loc": { - "start": { - "line": 9, - "column": 1230 - }, - "end": { - "line": 9, - "column": 1231 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "TYPE_SPACER_LENGTH", - "start": 1500, - "end": 1518, - "loc": { - "start": { - "line": 9, - "column": 1231 - }, - "end": { - "line": 9, - "column": 1249 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 1518, - "end": 1519, - "loc": { - "start": { - "line": 9, - "column": 1249 - }, - "end": { - "line": 9, - "column": 1250 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1519, - "end": 1520, - "loc": { - "start": { - "line": 9, - "column": 1250 - }, - "end": { - "line": 9, - "column": 1251 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1520, - "end": 1521, - "loc": { - "start": { - "line": 9, - "column": 1251 - }, - "end": { - "line": 9, - "column": 1252 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 1521, - "end": 1527, - "loc": { - "start": { - "line": 9, - "column": 1252 - }, - "end": { - "line": 9, - "column": 1258 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1527, - "end": 1528, - "loc": { - "start": { - "line": 9, - "column": 1258 - }, - "end": { - "line": 9, - "column": 1259 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "h", - "start": 1528, - "end": 1529, - "loc": { - "start": { - "line": 9, - "column": 1259 - }, - "end": { - "line": 9, - "column": 1260 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1529, - "end": 1530, - "loc": { - "start": { - "line": 9, - "column": 1260 - }, - "end": { - "line": 9, - "column": 1261 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1530, - "end": 1531, - "loc": { - "start": { - "line": 9, - "column": 1261 - }, - "end": { - "line": 9, - "column": 1262 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1531, - "end": 1532, - "loc": { - "start": { - "line": 9, - "column": 1262 - }, - "end": { - "line": 9, - "column": 1263 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1532, - "end": 1533, - "loc": { - "start": { - "line": 9, - "column": 1263 - }, - "end": { - "line": 9, - "column": 1264 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1533, - "end": 1534, - "loc": { - "start": { - "line": 9, - "column": 1264 - }, - "end": { - "line": 9, - "column": 1265 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1534, - "end": 1535, - "loc": { - "start": { - "line": 9, - "column": 1265 - }, - "end": { - "line": 9, - "column": 1266 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1535, - "end": 1536, - "loc": { - "start": { - "line": 9, - "column": 1266 - }, - "end": { - "line": 9, - "column": 1267 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "|", - "start": 1536, - "end": 1539, - "loc": { - "start": { - "line": 9, - "column": 1267 - }, - "end": { - "line": 9, - "column": 1270 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1539, - "end": 1540, - "loc": { - "start": { - "line": 9, - "column": 1270 - }, - "end": { - "line": 9, - "column": 1271 - } - } - }, - { - "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": 1540, - "end": 1544, - "loc": { - "start": { - "line": 9, - "column": 1271 - }, - "end": { - "line": 9, - "column": 1275 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1544, - "end": 1545, - "loc": { - "start": { - "line": 9, - "column": 1275 - }, - "end": { - "line": 9, - "column": 1276 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "RESET", - "start": 1545, - "end": 1550, - "loc": { - "start": { - "line": 9, - "column": 1276 - }, - "end": { - "line": 9, - "column": 1281 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1550, - "end": 1551, - "loc": { - "start": { - "line": 9, - "column": 1281 - }, - "end": { - "line": 9, - "column": 1282 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1551, - "end": 1554, - "loc": { - "start": { - "line": 9, - "column": 1282 - }, - "end": { - "line": 9, - "column": 1285 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "e", - "start": 1554, - "end": 1555, - "loc": { - "start": { - "line": 9, - "column": 1285 - }, - "end": { - "line": 9, - "column": 1286 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1555, - "end": 1556, - "loc": { - "start": { - "line": 9, - "column": 1286 - }, - "end": { - "line": 9, - "column": 1287 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1556, - "end": 1557, - "loc": { - "start": { - "line": 9, - "column": 1287 - }, - "end": { - "line": 9, - "column": 1288 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 1557, - "end": 1564, - "loc": { - "start": { - "line": 9, - "column": 1288 - }, - "end": { - "line": 9, - "column": 1295 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1564, - "end": 1565, - "loc": { - "start": { - "line": 9, - "column": 1295 - }, - "end": { - "line": 9, - "column": 1296 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 1565, - "end": 1566, - "loc": { - "start": { - "line": 9, - "column": 1296 - }, - "end": { - "line": 9, - "column": 1297 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1566, - "end": 1567, - "loc": { - "start": { - "line": 9, - "column": 1297 - }, - "end": { - "line": 9, - "column": 1298 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1567, - "end": 1568, - "loc": { - "start": { - "line": 9, - "column": 1298 - }, - "end": { - "line": 9, - "column": 1299 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "%c", - "start": 1568, - "end": 1572, - "loc": { - "start": { - "line": 9, - "column": 1299 - }, - "end": { - "line": 9, - "column": 1303 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1572, - "end": 1573, - "loc": { - "start": { - "line": 9, - "column": 1303 - }, - "end": { - "line": 9, - "column": 1304 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1573, - "end": 1574, - "loc": { - "start": { - "line": 9, - "column": 1304 - }, - "end": { - "line": 9, - "column": 1305 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1574, - "end": 1575, - "loc": { - "start": { - "line": 9, - "column": 1305 - }, - "end": { - "line": 9, - "column": 1306 - } - } - }, - { - "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": 1575, - "end": 1579, - "loc": { - "start": { - "line": 9, - "column": 1306 - }, - "end": { - "line": 9, - "column": 1310 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1579, - "end": 1580, - "loc": { - "start": { - "line": 9, - "column": 1310 - }, - "end": { - "line": 9, - "column": 1311 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "SPACE_CHAR", - "start": 1580, - "end": 1590, - "loc": { - "start": { - "line": 9, - "column": 1311 - }, - "end": { - "line": 9, - "column": 1321 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1590, - "end": 1591, - "loc": { - "start": { - "line": 9, - "column": 1321 - }, - "end": { - "line": 9, - "column": 1322 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "repeat", - "start": 1591, - "end": 1597, - "loc": { - "start": { - "line": 9, - "column": 1322 - }, - "end": { - "line": 9, - "column": 1328 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1597, - "end": 1598, - "loc": { - "start": { - "line": 9, - "column": 1328 - }, - "end": { - "line": 9, - "column": 1329 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Math", - "start": 1598, - "end": 1602, - "loc": { - "start": { - "line": 9, - "column": 1329 - }, - "end": { - "line": 9, - "column": 1333 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1602, - "end": 1603, - "loc": { - "start": { - "line": 9, - "column": 1333 - }, - "end": { - "line": 9, - "column": 1334 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "max", - "start": 1603, - "end": 1606, - "loc": { - "start": { - "line": 9, - "column": 1334 - }, - "end": { - "line": 9, - "column": 1337 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1606, - "end": 1607, - "loc": { - "start": { - "line": 9, - "column": 1337 - }, - "end": { - "line": 9, - "column": 1338 - } - } - }, - { - "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": 1607, - "end": 1611, - "loc": { - "start": { - "line": 9, - "column": 1338 - }, - "end": { - "line": 9, - "column": 1342 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1611, - "end": 1612, - "loc": { - "start": { - "line": 9, - "column": 1342 - }, - "end": { - "line": 9, - "column": 1343 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "TYPE_SPACER_LENGTH", - "start": 1612, - "end": 1630, - "loc": { - "start": { - "line": 9, - "column": 1343 - }, - "end": { - "line": 9, - "column": 1361 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "-", - "start": 1630, - "end": 1631, - "loc": { - "start": { - "line": 9, - "column": 1361 - }, - "end": { - "line": 9, - "column": 1362 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "i", - "start": 1631, - "end": 1632, - "loc": { - "start": { - "line": 9, - "column": 1362 - }, - "end": { - "line": 9, - "column": 1363 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1632, - "end": 1633, - "loc": { - "start": { - "line": 9, - "column": 1363 - }, - "end": { - "line": 9, - "column": 1364 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 1633, - "end": 1639, - "loc": { - "start": { - "line": 9, - "column": 1364 - }, - "end": { - "line": 9, - "column": 1370 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1639, - "end": 1640, - "loc": { - "start": { - "line": 9, - "column": 1370 - }, - "end": { - "line": 9, - "column": 1371 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "h", - "start": 1640, - "end": 1641, - "loc": { - "start": { - "line": 9, - "column": 1371 - }, - "end": { - "line": 9, - "column": 1372 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1641, - "end": 1642, - "loc": { - "start": { - "line": 9, - "column": 1372 - }, - "end": { - "line": 9, - "column": 1373 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 1, - "start": 1642, - "end": 1643, - "loc": { - "start": { - "line": 9, - "column": 1373 - }, - "end": { - "line": 9, - "column": 1374 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1643, - "end": 1644, - "loc": { - "start": { - "line": 9, - "column": 1374 - }, - "end": { - "line": 9, - "column": 1375 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 1644, - "end": 1645, - "loc": { - "start": { - "line": 9, - "column": 1375 - }, - "end": { - "line": 9, - "column": 1376 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1645, - "end": 1646, - "loc": { - "start": { - "line": 9, - "column": 1376 - }, - "end": { - "line": 9, - "column": 1377 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1646, - "end": 1647, - "loc": { - "start": { - "line": 9, - "column": 1377 - }, - "end": { - "line": 9, - "column": 1378 - } - } - }, - { - "type": { - "label": "+/-", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": 9, - "updateContext": null - }, - "value": "+", - "start": 1647, - "end": 1648, - "loc": { - "start": { - "line": 9, - "column": 1378 - }, - "end": { - "line": 9, - "column": 1379 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "|", - "start": 1648, - "end": 1651, - "loc": { - "start": { - "line": 9, - "column": 1379 - }, - "end": { - "line": 9, - "column": 1382 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1651, - "end": 1652, - "loc": { - "start": { - "line": 9, - "column": 1382 - }, - "end": { - "line": 9, - "column": 1383 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1652, - "end": 1653, - "loc": { - "start": { - "line": 9, - "column": 1383 - }, - "end": { - "line": 9, - "column": 1384 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1653, - "end": 1654, - "loc": { - "start": { - "line": 9, - "column": 1384 - }, - "end": { - "line": 9, - "column": 1385 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1654, - "end": 1657, - "loc": { - "start": { - "line": 9, - "column": 1385 - }, - "end": { - "line": 9, - "column": 1388 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "e", - "start": 1657, - "end": 1658, - "loc": { - "start": { - "line": 9, - "column": 1388 - }, - "end": { - "line": 9, - "column": 1389 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1658, - "end": 1659, - "loc": { - "start": { - "line": 9, - "column": 1389 - }, - "end": { - "line": 9, - "column": 1390 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1659, - "end": 1660, - "loc": { - "start": { - "line": 9, - "column": 1390 - }, - "end": { - "line": 9, - "column": 1391 - } - } - }, - { - "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": 1660, - "end": 1664, - "loc": { - "start": { - "line": 9, - "column": 1391 - }, - "end": { - "line": 9, - "column": 1395 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1664, - "end": 1665, - "loc": { - "start": { - "line": 9, - "column": 1395 - }, - "end": { - "line": 9, - "column": 1396 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "currentType", - "start": 1665, - "end": 1676, - "loc": { - "start": { - "line": 9, - "column": 1396 - }, - "end": { - "line": 9, - "column": 1407 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 1676, - "end": 1677, - "loc": { - "start": { - "line": 9, - "column": 1407 - }, - "end": { - "line": 9, - "column": 1408 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 1677, - "end": 1679, - "loc": { - "start": { - "line": 9, - "column": 1408 - }, - "end": { - "line": 9, - "column": 1410 - } - } - }, - { - "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": 9, - "column": 1410 - }, - "end": { - "line": 9, - "column": 1411 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "log", - "start": 1680, - "end": 1683, - "loc": { - "start": { - "line": 9, - "column": 1411 - }, - "end": { - "line": 9, - "column": 1414 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1683, - "end": 1684, - "loc": { - "start": { - "line": 9, - "column": 1414 - }, - "end": { - "line": 9, - "column": 1415 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1684, - "end": 1687, - "loc": { - "start": { - "line": 9, - "column": 1415 - }, - "end": { - "line": 9, - "column": 1418 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1687, - "end": 1688, - "loc": { - "start": { - "line": 9, - "column": 1418 - }, - "end": { - "line": 9, - "column": 1419 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1688, - "end": 1689, - "loc": { - "start": { - "line": 9, - "column": 1419 - }, - "end": { - "line": 9, - "column": 1420 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1689, - "end": 1690, - "loc": { - "start": { - "line": 9, - "column": 1420 - }, - "end": { - "line": 9, - "column": 1421 - } - } - }, - { - "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": 1690, - "end": 1694, - "loc": { - "start": { - "line": 9, - "column": 1421 - }, - "end": { - "line": 9, - "column": 1425 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1694, - "end": 1695, - "loc": { - "start": { - "line": 9, - "column": 1425 - }, - "end": { - "line": 9, - "column": 1426 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 1695, - "end": 1702, - "loc": { - "start": { - "line": 9, - "column": 1426 - }, - "end": { - "line": 9, - "column": 1433 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1702, - "end": 1703, - "loc": { - "start": { - "line": 9, - "column": 1433 - }, - "end": { - "line": 9, - "column": 1434 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "log", - "start": 1703, - "end": 1708, - "loc": { - "start": { - "line": 9, - "column": 1434 - }, - "end": { - "line": 9, - "column": 1439 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1708, - "end": 1709, - "loc": { - "start": { - "line": 9, - "column": 1439 - }, - "end": { - "line": 9, - "column": 1440 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1709, - "end": 1712, - "loc": { - "start": { - "line": 9, - "column": 1440 - }, - "end": { - "line": 9, - "column": 1443 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1712, - "end": 1713, - "loc": { - "start": { - "line": 9, - "column": 1443 - }, - "end": { - "line": 9, - "column": 1444 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1713, - "end": 1714, - "loc": { - "start": { - "line": 9, - "column": 1444 - }, - "end": { - "line": 9, - "column": 1445 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1714, - "end": 1715, - "loc": { - "start": { - "line": 9, - "column": 1445 - }, - "end": { - "line": 9, - "column": 1446 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "info", - "start": 1715, - "end": 1719, - "loc": { - "start": { - "line": 9, - "column": 1446 - }, - "end": { - "line": 9, - "column": 1450 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1719, - "end": 1720, - "loc": { - "start": { - "line": 9, - "column": 1450 - }, - "end": { - "line": 9, - "column": 1451 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1720, - "end": 1723, - "loc": { - "start": { - "line": 9, - "column": 1451 - }, - "end": { - "line": 9, - "column": 1454 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1723, - "end": 1724, - "loc": { - "start": { - "line": 9, - "column": 1454 - }, - "end": { - "line": 9, - "column": 1455 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1724, - "end": 1725, - "loc": { - "start": { - "line": 9, - "column": 1455 - }, - "end": { - "line": 9, - "column": 1456 - } - } - }, - { - "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": 9, - "column": 1456 - }, - "end": { - "line": 9, - "column": 1457 - } - } - }, - { - "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": 1726, - "end": 1730, - "loc": { - "start": { - "line": 9, - "column": 1457 - }, - "end": { - "line": 9, - "column": 1461 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1730, - "end": 1731, - "loc": { - "start": { - "line": 9, - "column": 1461 - }, - "end": { - "line": 9, - "column": 1462 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 1731, - "end": 1738, - "loc": { - "start": { - "line": 9, - "column": 1462 - }, - "end": { - "line": 9, - "column": 1469 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1738, - "end": 1739, - "loc": { - "start": { - "line": 9, - "column": 1469 - }, - "end": { - "line": 9, - "column": 1470 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "info", - "start": 1739, - "end": 1745, - "loc": { - "start": { - "line": 9, - "column": 1470 - }, - "end": { - "line": 9, - "column": 1476 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1745, - "end": 1746, - "loc": { - "start": { - "line": 9, - "column": 1476 - }, - "end": { - "line": 9, - "column": 1477 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1746, - "end": 1749, - "loc": { - "start": { - "line": 9, - "column": 1477 - }, - "end": { - "line": 9, - "column": 1480 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1749, - "end": 1750, - "loc": { - "start": { - "line": 9, - "column": 1480 - }, - "end": { - "line": 9, - "column": 1481 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1750, - "end": 1751, - "loc": { - "start": { - "line": 9, - "column": 1481 - }, - "end": { - "line": 9, - "column": 1482 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1751, - "end": 1752, - "loc": { - "start": { - "line": 9, - "column": 1482 - }, - "end": { - "line": 9, - "column": 1483 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 1752, - "end": 1757, - "loc": { - "start": { - "line": 9, - "column": 1483 - }, - "end": { - "line": 9, - "column": 1488 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1757, - "end": 1758, - "loc": { - "start": { - "line": 9, - "column": 1488 - }, - "end": { - "line": 9, - "column": 1489 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1758, - "end": 1761, - "loc": { - "start": { - "line": 9, - "column": 1489 - }, - "end": { - "line": 9, - "column": 1492 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1761, - "end": 1762, - "loc": { - "start": { - "line": 9, - "column": 1492 - }, - "end": { - "line": 9, - "column": 1493 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1762, - "end": 1763, - "loc": { - "start": { - "line": 9, - "column": 1493 - }, - "end": { - "line": 9, - "column": 1494 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1763, - "end": 1764, - "loc": { - "start": { - "line": 9, - "column": 1494 - }, - "end": { - "line": 9, - "column": 1495 - } - } - }, - { - "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": 1764, - "end": 1768, - "loc": { - "start": { - "line": 9, - "column": 1495 - }, - "end": { - "line": 9, - "column": 1499 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1768, - "end": 1769, - "loc": { - "start": { - "line": 9, - "column": 1499 - }, - "end": { - "line": 9, - "column": 1500 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 1769, - "end": 1776, - "loc": { - "start": { - "line": 9, - "column": 1500 - }, - "end": { - "line": 9, - "column": 1507 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1776, - "end": 1777, - "loc": { - "start": { - "line": 9, - "column": 1507 - }, - "end": { - "line": 9, - "column": 1508 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "error", - "start": 1777, - "end": 1784, - "loc": { - "start": { - "line": 9, - "column": 1508 - }, - "end": { - "line": 9, - "column": 1515 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1784, - "end": 1785, - "loc": { - "start": { - "line": 9, - "column": 1515 - }, - "end": { - "line": 9, - "column": 1516 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1785, - "end": 1788, - "loc": { - "start": { - "line": 9, - "column": 1516 - }, - "end": { - "line": 9, - "column": 1519 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1788, - "end": 1789, - "loc": { - "start": { - "line": 9, - "column": 1519 - }, - "end": { - "line": 9, - "column": 1520 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1789, - "end": 1790, - "loc": { - "start": { - "line": 9, - "column": 1520 - }, - "end": { - "line": 9, - "column": 1521 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1790, - "end": 1791, - "loc": { - "start": { - "line": 9, - "column": 1521 - }, - "end": { - "line": 9, - "column": 1522 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "warn", - "start": 1791, - "end": 1795, - "loc": { - "start": { - "line": 9, - "column": 1522 - }, - "end": { - "line": 9, - "column": 1526 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1795, - "end": 1796, - "loc": { - "start": { - "line": 9, - "column": 1526 - }, - "end": { - "line": 9, - "column": 1527 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1796, - "end": 1799, - "loc": { - "start": { - "line": 9, - "column": 1527 - }, - "end": { - "line": 9, - "column": 1530 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1799, - "end": 1800, - "loc": { - "start": { - "line": 9, - "column": 1530 - }, - "end": { - "line": 9, - "column": 1531 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1800, - "end": 1801, - "loc": { - "start": { - "line": 9, - "column": 1531 - }, - "end": { - "line": 9, - "column": 1532 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1801, - "end": 1802, - "loc": { - "start": { - "line": 9, - "column": 1532 - }, - "end": { - "line": 9, - "column": 1533 - } - } - }, - { - "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": 1802, - "end": 1806, - "loc": { - "start": { - "line": 9, - "column": 1533 - }, - "end": { - "line": 9, - "column": 1537 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1806, - "end": 1807, - "loc": { - "start": { - "line": 9, - "column": 1537 - }, - "end": { - "line": 9, - "column": 1538 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 1807, - "end": 1814, - "loc": { - "start": { - "line": 9, - "column": 1538 - }, - "end": { - "line": 9, - "column": 1545 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1814, - "end": 1815, - "loc": { - "start": { - "line": 9, - "column": 1545 - }, - "end": { - "line": 9, - "column": 1546 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "warn", - "start": 1815, - "end": 1821, - "loc": { - "start": { - "line": 9, - "column": 1546 - }, - "end": { - "line": 9, - "column": 1552 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1821, - "end": 1822, - "loc": { - "start": { - "line": 9, - "column": 1552 - }, - "end": { - "line": 9, - "column": 1553 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1822, - "end": 1825, - "loc": { - "start": { - "line": 9, - "column": 1553 - }, - "end": { - "line": 9, - "column": 1556 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1825, - "end": 1826, - "loc": { - "start": { - "line": 9, - "column": 1556 - }, - "end": { - "line": 9, - "column": 1557 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1826, - "end": 1827, - "loc": { - "start": { - "line": 9, - "column": 1557 - }, - "end": { - "line": 9, - "column": 1558 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1827, - "end": 1828, - "loc": { - "start": { - "line": 9, - "column": 1558 - }, - "end": { - "line": 9, - "column": 1559 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assert", - "start": 1828, - "end": 1834, - "loc": { - "start": { - "line": 9, - "column": 1559 - }, - "end": { - "line": 9, - "column": 1565 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1834, - "end": 1835, - "loc": { - "start": { - "line": 9, - "column": 1565 - }, - "end": { - "line": 9, - "column": 1566 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1835, - "end": 1838, - "loc": { - "start": { - "line": 9, - "column": 1566 - }, - "end": { - "line": 9, - "column": 1569 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1838, - "end": 1839, - "loc": { - "start": { - "line": 9, - "column": 1569 - }, - "end": { - "line": 9, - "column": 1570 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1839, - "end": 1840, - "loc": { - "start": { - "line": 9, - "column": 1570 - }, - "end": { - "line": 9, - "column": 1571 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1840, - "end": 1841, - "loc": { - "start": { - "line": 9, - "column": 1571 - }, - "end": { - "line": 9, - "column": 1572 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 1841, - "end": 1848, - "loc": { - "start": { - "line": 9, - "column": 1572 - }, - "end": { - "line": 9, - "column": 1579 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1848, - "end": 1849, - "loc": { - "start": { - "line": 9, - "column": 1579 - }, - "end": { - "line": 9, - "column": 1580 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "assert", - "start": 1849, - "end": 1855, - "loc": { - "start": { - "line": 9, - "column": 1580 - }, - "end": { - "line": 9, - "column": 1586 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1855, - "end": 1856, - "loc": { - "start": { - "line": 9, - "column": 1586 - }, - "end": { - "line": 9, - "column": 1587 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1856, - "end": 1859, - "loc": { - "start": { - "line": 9, - "column": 1587 - }, - "end": { - "line": 9, - "column": 1590 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1859, - "end": 1860, - "loc": { - "start": { - "line": 9, - "column": 1590 - }, - "end": { - "line": 9, - "column": 1591 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1860, - "end": 1861, - "loc": { - "start": { - "line": 9, - "column": 1591 - }, - "end": { - "line": 9, - "column": 1592 - } - } - }, - { - "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": 9, - "column": 1592 - }, - "end": { - "line": 9, - "column": 1593 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "debug", - "start": 1862, - "end": 1867, - "loc": { - "start": { - "line": 9, - "column": 1593 - }, - "end": { - "line": 9, - "column": 1598 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1867, - "end": 1868, - "loc": { - "start": { - "line": 9, - "column": 1598 - }, - "end": { - "line": 9, - "column": 1599 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1868, - "end": 1871, - "loc": { - "start": { - "line": 9, - "column": 1599 - }, - "end": { - "line": 9, - "column": 1602 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1871, - "end": 1872, - "loc": { - "start": { - "line": 9, - "column": 1602 - }, - "end": { - "line": 9, - "column": 1603 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1872, - "end": 1873, - "loc": { - "start": { - "line": 9, - "column": 1603 - }, - "end": { - "line": 9, - "column": 1604 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1873, - "end": 1874, - "loc": { - "start": { - "line": 9, - "column": 1604 - }, - "end": { - "line": 9, - "column": 1605 - } - } - }, - { - "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": 1874, - "end": 1878, - "loc": { - "start": { - "line": 9, - "column": 1605 - }, - "end": { - "line": 9, - "column": 1609 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1878, - "end": 1879, - "loc": { - "start": { - "line": 9, - "column": 1609 - }, - "end": { - "line": 9, - "column": 1610 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 1879, - "end": 1886, - "loc": { - "start": { - "line": 9, - "column": 1610 - }, - "end": { - "line": 9, - "column": 1617 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1886, - "end": 1887, - "loc": { - "start": { - "line": 9, - "column": 1617 - }, - "end": { - "line": 9, - "column": 1618 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "debug", - "start": 1887, - "end": 1894, - "loc": { - "start": { - "line": 9, - "column": 1618 - }, - "end": { - "line": 9, - "column": 1625 - } - } - }, - { - "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": 9, - "column": 1625 - }, - "end": { - "line": 9, - "column": 1626 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1895, - "end": 1898, - "loc": { - "start": { - "line": 9, - "column": 1626 - }, - "end": { - "line": 9, - "column": 1629 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1898, - "end": 1899, - "loc": { - "start": { - "line": 9, - "column": 1629 - }, - "end": { - "line": 9, - "column": 1630 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1899, - "end": 1900, - "loc": { - "start": { - "line": 9, - "column": 1630 - }, - "end": { - "line": 9, - "column": 1631 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1900, - "end": 1901, - "loc": { - "start": { - "line": 9, - "column": 1631 - }, - "end": { - "line": 9, - "column": 1632 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "count", - "start": 1901, - "end": 1906, - "loc": { - "start": { - "line": 9, - "column": 1632 - }, - "end": { - "line": 9, - "column": 1637 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1906, - "end": 1907, - "loc": { - "start": { - "line": 9, - "column": 1637 - }, - "end": { - "line": 9, - "column": 1638 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1907, - "end": 1908, - "loc": { - "start": { - "line": 9, - "column": 1638 - }, - "end": { - "line": 9, - "column": 1639 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1908, - "end": 1909, - "loc": { - "start": { - "line": 9, - "column": 1639 - }, - "end": { - "line": 9, - "column": 1640 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1909, - "end": 1910, - "loc": { - "start": { - "line": 9, - "column": 1640 - }, - "end": { - "line": 9, - "column": 1641 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 1910, - "end": 1917, - "loc": { - "start": { - "line": 9, - "column": 1641 - }, - "end": { - "line": 9, - "column": 1648 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1917, - "end": 1918, - "loc": { - "start": { - "line": 9, - "column": 1648 - }, - "end": { - "line": 9, - "column": 1649 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "count", - "start": 1918, - "end": 1923, - "loc": { - "start": { - "line": 9, - "column": 1649 - }, - "end": { - "line": 9, - "column": 1654 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1923, - "end": 1924, - "loc": { - "start": { - "line": 9, - "column": 1654 - }, - "end": { - "line": 9, - "column": 1655 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1924, - "end": 1925, - "loc": { - "start": { - "line": 9, - "column": 1655 - }, - "end": { - "line": 9, - "column": 1656 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1925, - "end": 1926, - "loc": { - "start": { - "line": 9, - "column": 1656 - }, - "end": { - "line": 9, - "column": 1657 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1926, - "end": 1927, - "loc": { - "start": { - "line": 9, - "column": 1657 - }, - "end": { - "line": 9, - "column": 1658 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "countReset", - "start": 1927, - "end": 1937, - "loc": { - "start": { - "line": 9, - "column": 1658 - }, - "end": { - "line": 9, - "column": 1668 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1937, - "end": 1938, - "loc": { - "start": { - "line": 9, - "column": 1668 - }, - "end": { - "line": 9, - "column": 1669 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1938, - "end": 1939, - "loc": { - "start": { - "line": 9, - "column": 1669 - }, - "end": { - "line": 9, - "column": 1670 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1939, - "end": 1940, - "loc": { - "start": { - "line": 9, - "column": 1670 - }, - "end": { - "line": 9, - "column": 1671 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1940, - "end": 1941, - "loc": { - "start": { - "line": 9, - "column": 1671 - }, - "end": { - "line": 9, - "column": 1672 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 1941, - "end": 1948, - "loc": { - "start": { - "line": 9, - "column": 1672 - }, - "end": { - "line": 9, - "column": 1679 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1948, - "end": 1949, - "loc": { - "start": { - "line": 9, - "column": 1679 - }, - "end": { - "line": 9, - "column": 1680 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "countReset", - "start": 1949, - "end": 1959, - "loc": { - "start": { - "line": 9, - "column": 1680 - }, - "end": { - "line": 9, - "column": 1690 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1959, - "end": 1960, - "loc": { - "start": { - "line": 9, - "column": 1690 - }, - "end": { - "line": 9, - "column": 1691 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1960, - "end": 1961, - "loc": { - "start": { - "line": 9, - "column": 1691 - }, - "end": { - "line": 9, - "column": 1692 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1961, - "end": 1962, - "loc": { - "start": { - "line": 9, - "column": 1692 - }, - "end": { - "line": 9, - "column": 1693 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1962, - "end": 1963, - "loc": { - "start": { - "line": 9, - "column": 1693 - }, - "end": { - "line": 9, - "column": 1694 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "table", - "start": 1963, - "end": 1968, - "loc": { - "start": { - "line": 9, - "column": 1694 - }, - "end": { - "line": 9, - "column": 1699 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1968, - "end": 1969, - "loc": { - "start": { - "line": 9, - "column": 1699 - }, - "end": { - "line": 9, - "column": 1700 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1969, - "end": 1970, - "loc": { - "start": { - "line": 9, - "column": 1700 - }, - "end": { - "line": 9, - "column": 1701 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1970, - "end": 1971, - "loc": { - "start": { - "line": 9, - "column": 1701 - }, - "end": { - "line": 9, - "column": 1702 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 1971, - "end": 1972, - "loc": { - "start": { - "line": 9, - "column": 1702 - }, - "end": { - "line": 9, - "column": 1703 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1972, - "end": 1973, - "loc": { - "start": { - "line": 9, - "column": 1703 - }, - "end": { - "line": 9, - "column": 1704 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1973, - "end": 1974, - "loc": { - "start": { - "line": 9, - "column": 1704 - }, - "end": { - "line": 9, - "column": 1705 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 1974, - "end": 1981, - "loc": { - "start": { - "line": 9, - "column": 1705 - }, - "end": { - "line": 9, - "column": 1712 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1981, - "end": 1982, - "loc": { - "start": { - "line": 9, - "column": 1712 - }, - "end": { - "line": 9, - "column": 1713 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "table", - "start": 1982, - "end": 1987, - "loc": { - "start": { - "line": 9, - "column": 1713 - }, - "end": { - "line": 9, - "column": 1718 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1987, - "end": 1988, - "loc": { - "start": { - "line": 9, - "column": 1718 - }, - "end": { - "line": 9, - "column": 1719 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1988, - "end": 1989, - "loc": { - "start": { - "line": 9, - "column": 1719 - }, - "end": { - "line": 9, - "column": 1720 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 1989, - "end": 1990, - "loc": { - "start": { - "line": 9, - "column": 1720 - }, - "end": { - "line": 9, - "column": 1721 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 1990, - "end": 1991, - "loc": { - "start": { - "line": 9, - "column": 1721 - }, - "end": { - "line": 9, - "column": 1722 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1991, - "end": 1992, - "loc": { - "start": { - "line": 9, - "column": 1722 - }, - "end": { - "line": 9, - "column": 1723 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1992, - "end": 1993, - "loc": { - "start": { - "line": 9, - "column": 1723 - }, - "end": { - "line": 9, - "column": 1724 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "time", - "start": 1993, - "end": 1997, - "loc": { - "start": { - "line": 9, - "column": 1724 - }, - "end": { - "line": 9, - "column": 1728 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1997, - "end": 1998, - "loc": { - "start": { - "line": 9, - "column": 1728 - }, - "end": { - "line": 9, - "column": 1729 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 1998, - "end": 1999, - "loc": { - "start": { - "line": 9, - "column": 1729 - }, - "end": { - "line": 9, - "column": 1730 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 1999, - "end": 2000, - "loc": { - "start": { - "line": 9, - "column": 1730 - }, - "end": { - "line": 9, - "column": 1731 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2000, - "end": 2001, - "loc": { - "start": { - "line": 9, - "column": 1731 - }, - "end": { - "line": 9, - "column": 1732 - } - } - }, - { - "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": 2001, - "end": 2005, - "loc": { - "start": { - "line": 9, - "column": 1732 - }, - "end": { - "line": 9, - "column": 1736 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2005, - "end": 2006, - "loc": { - "start": { - "line": 9, - "column": 1736 - }, - "end": { - "line": 9, - "column": 1737 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 2006, - "end": 2013, - "loc": { - "start": { - "line": 9, - "column": 1737 - }, - "end": { - "line": 9, - "column": 1744 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2013, - "end": 2014, - "loc": { - "start": { - "line": 9, - "column": 1744 - }, - "end": { - "line": 9, - "column": 1745 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "time", - "start": 2014, - "end": 2020, - "loc": { - "start": { - "line": 9, - "column": 1745 - }, - "end": { - "line": 9, - "column": 1751 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2020, - "end": 2021, - "loc": { - "start": { - "line": 9, - "column": 1751 - }, - "end": { - "line": 9, - "column": 1752 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2021, - "end": 2022, - "loc": { - "start": { - "line": 9, - "column": 1752 - }, - "end": { - "line": 9, - "column": 1753 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2022, - "end": 2023, - "loc": { - "start": { - "line": 9, - "column": 1753 - }, - "end": { - "line": 9, - "column": 1754 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2023, - "end": 2024, - "loc": { - "start": { - "line": 9, - "column": 1754 - }, - "end": { - "line": 9, - "column": 1755 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeLog", - "start": 2024, - "end": 2031, - "loc": { - "start": { - "line": 9, - "column": 1755 - }, - "end": { - "line": 9, - "column": 1762 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2031, - "end": 2032, - "loc": { - "start": { - "line": 9, - "column": 1762 - }, - "end": { - "line": 9, - "column": 1763 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2032, - "end": 2033, - "loc": { - "start": { - "line": 9, - "column": 1763 - }, - "end": { - "line": 9, - "column": 1764 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2033, - "end": 2034, - "loc": { - "start": { - "line": 9, - "column": 1764 - }, - "end": { - "line": 9, - "column": 1765 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2034, - "end": 2035, - "loc": { - "start": { - "line": 9, - "column": 1765 - }, - "end": { - "line": 9, - "column": 1766 - } - } - }, - { - "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": 2035, - "end": 2039, - "loc": { - "start": { - "line": 9, - "column": 1766 - }, - "end": { - "line": 9, - "column": 1770 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2039, - "end": 2040, - "loc": { - "start": { - "line": 9, - "column": 1770 - }, - "end": { - "line": 9, - "column": 1771 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 2040, - "end": 2047, - "loc": { - "start": { - "line": 9, - "column": 1771 - }, - "end": { - "line": 9, - "column": 1778 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2047, - "end": 2048, - "loc": { - "start": { - "line": 9, - "column": 1778 - }, - "end": { - "line": 9, - "column": 1779 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "timeLog", - "start": 2048, - "end": 2057, - "loc": { - "start": { - "line": 9, - "column": 1779 - }, - "end": { - "line": 9, - "column": 1788 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2057, - "end": 2058, - "loc": { - "start": { - "line": 9, - "column": 1788 - }, - "end": { - "line": 9, - "column": 1789 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2058, - "end": 2059, - "loc": { - "start": { - "line": 9, - "column": 1789 - }, - "end": { - "line": 9, - "column": 1790 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2059, - "end": 2060, - "loc": { - "start": { - "line": 9, - "column": 1790 - }, - "end": { - "line": 9, - "column": 1791 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2060, - "end": 2061, - "loc": { - "start": { - "line": 9, - "column": 1791 - }, - "end": { - "line": 9, - "column": 1792 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "timeEnd", - "start": 2061, - "end": 2068, - "loc": { - "start": { - "line": 9, - "column": 1792 - }, - "end": { - "line": 9, - "column": 1799 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2068, - "end": 2069, - "loc": { - "start": { - "line": 9, - "column": 1799 - }, - "end": { - "line": 9, - "column": 1800 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2069, - "end": 2070, - "loc": { - "start": { - "line": 9, - "column": 1800 - }, - "end": { - "line": 9, - "column": 1801 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2070, - "end": 2071, - "loc": { - "start": { - "line": 9, - "column": 1801 - }, - "end": { - "line": 9, - "column": 1802 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2071, - "end": 2072, - "loc": { - "start": { - "line": 9, - "column": 1802 - }, - "end": { - "line": 9, - "column": 1803 - } - } - }, - { - "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": 2072, - "end": 2076, - "loc": { - "start": { - "line": 9, - "column": 1803 - }, - "end": { - "line": 9, - "column": 1807 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2076, - "end": 2077, - "loc": { - "start": { - "line": 9, - "column": 1807 - }, - "end": { - "line": 9, - "column": 1808 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 2077, - "end": 2084, - "loc": { - "start": { - "line": 9, - "column": 1808 - }, - "end": { - "line": 9, - "column": 1815 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2084, - "end": 2085, - "loc": { - "start": { - "line": 9, - "column": 1815 - }, - "end": { - "line": 9, - "column": 1816 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "timeEnd", - "start": 2085, - "end": 2094, - "loc": { - "start": { - "line": 9, - "column": 1816 - }, - "end": { - "line": 9, - "column": 1825 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2094, - "end": 2095, - "loc": { - "start": { - "line": 9, - "column": 1825 - }, - "end": { - "line": 9, - "column": 1826 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2095, - "end": 2096, - "loc": { - "start": { - "line": 9, - "column": 1826 - }, - "end": { - "line": 9, - "column": 1827 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2096, - "end": 2097, - "loc": { - "start": { - "line": 9, - "column": 1827 - }, - "end": { - "line": 9, - "column": 1828 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2097, - "end": 2098, - "loc": { - "start": { - "line": 9, - "column": 1828 - }, - "end": { - "line": 9, - "column": 1829 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "trace", - "start": 2098, - "end": 2103, - "loc": { - "start": { - "line": 9, - "column": 1829 - }, - "end": { - "line": 9, - "column": 1834 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2103, - "end": 2104, - "loc": { - "start": { - "line": 9, - "column": 1834 - }, - "end": { - "line": 9, - "column": 1835 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2104, - "end": 2107, - "loc": { - "start": { - "line": 9, - "column": 1835 - }, - "end": { - "line": 9, - "column": 1838 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2107, - "end": 2108, - "loc": { - "start": { - "line": 9, - "column": 1838 - }, - "end": { - "line": 9, - "column": 1839 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2108, - "end": 2109, - "loc": { - "start": { - "line": 9, - "column": 1839 - }, - "end": { - "line": 9, - "column": 1840 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2109, - "end": 2110, - "loc": { - "start": { - "line": 9, - "column": 1840 - }, - "end": { - "line": 9, - "column": 1841 - } - } - }, - { - "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": 2110, - "end": 2114, - "loc": { - "start": { - "line": 9, - "column": 1841 - }, - "end": { - "line": 9, - "column": 1845 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2114, - "end": 2115, - "loc": { - "start": { - "line": 9, - "column": 1845 - }, - "end": { - "line": 9, - "column": 1846 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 2115, - "end": 2122, - "loc": { - "start": { - "line": 9, - "column": 1846 - }, - "end": { - "line": 9, - "column": 1853 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2122, - "end": 2123, - "loc": { - "start": { - "line": 9, - "column": 1853 - }, - "end": { - "line": 9, - "column": 1854 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "trace", - "start": 2123, - "end": 2130, - "loc": { - "start": { - "line": 9, - "column": 1854 - }, - "end": { - "line": 9, - "column": 1861 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2130, - "end": 2131, - "loc": { - "start": { - "line": 9, - "column": 1861 - }, - "end": { - "line": 9, - "column": 1862 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2131, - "end": 2134, - "loc": { - "start": { - "line": 9, - "column": 1862 - }, - "end": { - "line": 9, - "column": 1865 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2134, - "end": 2135, - "loc": { - "start": { - "line": 9, - "column": 1865 - }, - "end": { - "line": 9, - "column": 1866 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2135, - "end": 2136, - "loc": { - "start": { - "line": 9, - "column": 1866 - }, - "end": { - "line": 9, - "column": 1867 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2136, - "end": 2137, - "loc": { - "start": { - "line": 9, - "column": 1867 - }, - "end": { - "line": 9, - "column": 1868 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "group", - "start": 2137, - "end": 2142, - "loc": { - "start": { - "line": 9, - "column": 1868 - }, - "end": { - "line": 9, - "column": 1873 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2142, - "end": 2143, - "loc": { - "start": { - "line": 9, - "column": 1873 - }, - "end": { - "line": 9, - "column": 1874 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2143, - "end": 2144, - "loc": { - "start": { - "line": 9, - "column": 1874 - }, - "end": { - "line": 9, - "column": 1875 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2144, - "end": 2145, - "loc": { - "start": { - "line": 9, - "column": 1875 - }, - "end": { - "line": 9, - "column": 1876 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2145, - "end": 2146, - "loc": { - "start": { - "line": 9, - "column": 1876 - }, - "end": { - "line": 9, - "column": 1877 - } - } - }, - { - "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": 2146, - "end": 2150, - "loc": { - "start": { - "line": 9, - "column": 1877 - }, - "end": { - "line": 9, - "column": 1881 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2150, - "end": 2151, - "loc": { - "start": { - "line": 9, - "column": 1881 - }, - "end": { - "line": 9, - "column": 1882 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 2151, - "end": 2158, - "loc": { - "start": { - "line": 9, - "column": 1882 - }, - "end": { - "line": 9, - "column": 1889 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2158, - "end": 2159, - "loc": { - "start": { - "line": 9, - "column": 1889 - }, - "end": { - "line": 9, - "column": 1890 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "group", - "start": 2159, - "end": 2166, - "loc": { - "start": { - "line": 9, - "column": 1890 - }, - "end": { - "line": 9, - "column": 1897 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2166, - "end": 2167, - "loc": { - "start": { - "line": 9, - "column": 1897 - }, - "end": { - "line": 9, - "column": 1898 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2167, - "end": 2168, - "loc": { - "start": { - "line": 9, - "column": 1898 - }, - "end": { - "line": 9, - "column": 1899 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2168, - "end": 2169, - "loc": { - "start": { - "line": 9, - "column": 1899 - }, - "end": { - "line": 9, - "column": 1900 - } - } - }, - { - "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": 9, - "column": 1900 - }, - "end": { - "line": 9, - "column": 1901 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "groupCollapsed", - "start": 2170, - "end": 2184, - "loc": { - "start": { - "line": 9, - "column": 1901 - }, - "end": { - "line": 9, - "column": 1915 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2184, - "end": 2185, - "loc": { - "start": { - "line": 9, - "column": 1915 - }, - "end": { - "line": 9, - "column": 1916 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2185, - "end": 2186, - "loc": { - "start": { - "line": 9, - "column": 1916 - }, - "end": { - "line": 9, - "column": 1917 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2186, - "end": 2187, - "loc": { - "start": { - "line": 9, - "column": 1917 - }, - "end": { - "line": 9, - "column": 1918 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2187, - "end": 2188, - "loc": { - "start": { - "line": 9, - "column": 1918 - }, - "end": { - "line": 9, - "column": 1919 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 2188, - "end": 2195, - "loc": { - "start": { - "line": 9, - "column": 1919 - }, - "end": { - "line": 9, - "column": 1926 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2195, - "end": 2196, - "loc": { - "start": { - "line": 9, - "column": 1926 - }, - "end": { - "line": 9, - "column": 1927 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "groupCollapsed", - "start": 2196, - "end": 2210, - "loc": { - "start": { - "line": 9, - "column": 1927 - }, - "end": { - "line": 9, - "column": 1941 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2210, - "end": 2211, - "loc": { - "start": { - "line": 9, - "column": 1941 - }, - "end": { - "line": 9, - "column": 1942 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2211, - "end": 2212, - "loc": { - "start": { - "line": 9, - "column": 1942 - }, - "end": { - "line": 9, - "column": 1943 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2212, - "end": 2213, - "loc": { - "start": { - "line": 9, - "column": 1943 - }, - "end": { - "line": 9, - "column": 1944 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2213, - "end": 2214, - "loc": { - "start": { - "line": 9, - "column": 1944 - }, - "end": { - "line": 9, - "column": 1945 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "groupEnd", - "start": 2214, - "end": 2222, - "loc": { - "start": { - "line": 9, - "column": 1945 - }, - "end": { - "line": 9, - "column": 1953 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2222, - "end": 2223, - "loc": { - "start": { - "line": 9, - "column": 1953 - }, - "end": { - "line": 9, - "column": 1954 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2223, - "end": 2224, - "loc": { - "start": { - "line": 9, - "column": 1954 - }, - "end": { - "line": 9, - "column": 1955 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2224, - "end": 2225, - "loc": { - "start": { - "line": 9, - "column": 1955 - }, - "end": { - "line": 9, - "column": 1956 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 2225, - "end": 2232, - "loc": { - "start": { - "line": 9, - "column": 1956 - }, - "end": { - "line": 9, - "column": 1963 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2232, - "end": 2233, - "loc": { - "start": { - "line": 9, - "column": 1963 - }, - "end": { - "line": 9, - "column": 1964 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "groupEnd", - "start": 2233, - "end": 2241, - "loc": { - "start": { - "line": 9, - "column": 1964 - }, - "end": { - "line": 9, - "column": 1972 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2241, - "end": 2242, - "loc": { - "start": { - "line": 9, - "column": 1972 - }, - "end": { - "line": 9, - "column": 1973 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2242, - "end": 2243, - "loc": { - "start": { - "line": 9, - "column": 1973 - }, - "end": { - "line": 9, - "column": 1974 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2243, - "end": 2244, - "loc": { - "start": { - "line": 9, - "column": 1974 - }, - "end": { - "line": 9, - "column": 1975 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clear", - "start": 2244, - "end": 2249, - "loc": { - "start": { - "line": 9, - "column": 1975 - }, - "end": { - "line": 9, - "column": 1980 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2249, - "end": 2250, - "loc": { - "start": { - "line": 9, - "column": 1980 - }, - "end": { - "line": 9, - "column": 1981 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2250, - "end": 2251, - "loc": { - "start": { - "line": 9, - "column": 1981 - }, - "end": { - "line": 9, - "column": 1982 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2251, - "end": 2252, - "loc": { - "start": { - "line": 9, - "column": 1982 - }, - "end": { - "line": 9, - "column": 1983 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "console", - "start": 2252, - "end": 2259, - "loc": { - "start": { - "line": 9, - "column": 1983 - }, - "end": { - "line": 9, - "column": 1990 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2259, - "end": 2260, - "loc": { - "start": { - "line": 9, - "column": 1990 - }, - "end": { - "line": 9, - "column": 1991 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "clear", - "start": 2260, - "end": 2265, - "loc": { - "start": { - "line": 9, - "column": 1991 - }, - "end": { - "line": 9, - "column": 1996 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2265, - "end": 2266, - "loc": { - "start": { - "line": 9, - "column": 1996 - }, - "end": { - "line": 9, - "column": 1997 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2266, - "end": 2267, - "loc": { - "start": { - "line": 9, - "column": 1997 - }, - "end": { - "line": 9, - "column": 1998 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2267, - "end": 2268, - "loc": { - "start": { - "line": 9, - "column": 1998 - }, - "end": { - "line": 9, - "column": 1999 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "registerType", - "start": 2268, - "end": 2280, - "loc": { - "start": { - "line": 9, - "column": 1999 - }, - "end": { - "line": 9, - "column": 2011 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2280, - "end": 2281, - "loc": { - "start": { - "line": 9, - "column": 2011 - }, - "end": { - "line": 9, - "column": 2012 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2281, - "end": 2282, - "loc": { - "start": { - "line": 9, - "column": 2012 - }, - "end": { - "line": 9, - "column": 2013 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2282, - "end": 2283, - "loc": { - "start": { - "line": 9, - "column": 2013 - }, - "end": { - "line": 9, - "column": 2014 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 2283, - "end": 2284, - "loc": { - "start": { - "line": 9, - "column": 2014 - }, - "end": { - "line": 9, - "column": 2015 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2284, - "end": 2285, - "loc": { - "start": { - "line": 9, - "column": 2015 - }, - "end": { - "line": 9, - "column": 2016 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2285, - "end": 2286, - "loc": { - "start": { - "line": 9, - "column": 2016 - }, - "end": { - "line": 9, - "column": 2017 - } - } - }, - { - "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": 2286, - "end": 2290, - "loc": { - "start": { - "line": 9, - "column": 2017 - }, - "end": { - "line": 9, - "column": 2021 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2290, - "end": 2291, - "loc": { - "start": { - "line": 9, - "column": 2021 - }, - "end": { - "line": 9, - "column": 2022 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 2291, - "end": 2296, - "loc": { - "start": { - "line": 9, - "column": 2022 - }, - "end": { - "line": 9, - "column": 2027 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2296, - "end": 2297, - "loc": { - "start": { - "line": 9, - "column": 2027 - }, - "end": { - "line": 9, - "column": 2028 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2297, - "end": 2298, - "loc": { - "start": { - "line": 9, - "column": 2028 - }, - "end": { - "line": 9, - "column": 2029 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2298, - "end": 2299, - "loc": { - "start": { - "line": 9, - "column": 2029 - }, - "end": { - "line": 9, - "column": 2030 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 2299, - "end": 2301, - "loc": { - "start": { - "line": 9, - "column": 2030 - }, - "end": { - "line": 9, - "column": 2032 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "string", - "start": 2301, - "end": 2309, - "loc": { - "start": { - "line": 9, - "column": 2032 - }, - "end": { - "line": 9, - "column": 2040 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "==", - "start": 2309, - "end": 2311, - "loc": { - "start": { - "line": 9, - "column": 2040 - }, - "end": { - "line": 9, - "column": 2042 - } - } - }, - { - "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": 2311, - "end": 2317, - "loc": { - "start": { - "line": 9, - "column": 2042 - }, - "end": { - "line": 9, - "column": 2048 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2318, - "end": 2319, - "loc": { - "start": { - "line": 9, - "column": 2049 - }, - "end": { - "line": 9, - "column": 2050 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 2319, - "end": 2321, - "loc": { - "start": { - "line": 9, - "column": 2050 - }, - "end": { - "line": 9, - "column": 2052 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "string", - "start": 2321, - "end": 2329, - "loc": { - "start": { - "line": 9, - "column": 2052 - }, - "end": { - "line": 9, - "column": 2060 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "==", - "start": 2329, - "end": 2331, - "loc": { - "start": { - "line": 9, - "column": 2060 - }, - "end": { - "line": 9, - "column": 2062 - } - } - }, - { - "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": 2331, - "end": 2337, - "loc": { - "start": { - "line": 9, - "column": 2062 - }, - "end": { - "line": 9, - "column": 2068 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 2338, - "end": 2339, - "loc": { - "start": { - "line": 9, - "column": 2069 - }, - "end": { - "line": 9, - "column": 2070 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 2339, - "end": 2341, - "loc": { - "start": { - "line": 9, - "column": 2070 - }, - "end": { - "line": 9, - "column": 2072 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2341, - "end": 2342, - "loc": { - "start": { - "line": 9, - "column": 2072 - }, - "end": { - "line": 9, - "column": 2073 - } - } - }, - { - "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": 2342, - "end": 2346, - "loc": { - "start": { - "line": 9, - "column": 2073 - }, - "end": { - "line": 9, - "column": 2077 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2346, - "end": 2347, - "loc": { - "start": { - "line": 9, - "column": 2077 - }, - "end": { - "line": 9, - "column": 2078 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 2347, - "end": 2352, - "loc": { - "start": { - "line": 9, - "column": 2078 - }, - "end": { - "line": 9, - "column": 2083 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2352, - "end": 2353, - "loc": { - "start": { - "line": 9, - "column": 2083 - }, - "end": { - "line": 9, - "column": 2084 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2353, - "end": 2354, - "loc": { - "start": { - "line": 9, - "column": 2084 - }, - "end": { - "line": 9, - "column": 2085 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2354, - "end": 2355, - "loc": { - "start": { - "line": 9, - "column": 2085 - }, - "end": { - "line": 9, - "column": 2086 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "toLowerCase", - "start": 2355, - "end": 2366, - "loc": { - "start": { - "line": 9, - "column": 2086 - }, - "end": { - "line": 9, - "column": 2097 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2366, - "end": 2367, - "loc": { - "start": { - "line": 9, - "column": 2097 - }, - "end": { - "line": 9, - "column": 2098 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2367, - "end": 2368, - "loc": { - "start": { - "line": 9, - "column": 2098 - }, - "end": { - "line": 9, - "column": 2099 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2368, - "end": 2369, - "loc": { - "start": { - "line": 9, - "column": 2099 - }, - "end": { - "line": 9, - "column": 2100 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2369, - "end": 2370, - "loc": { - "start": { - "line": 9, - "column": 2100 - }, - "end": { - "line": 9, - "column": 2101 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 2370, - "end": 2371, - "loc": { - "start": { - "line": 9, - "column": 2101 - }, - "end": { - "line": 9, - "column": 2102 - } - } - }, - { - "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": 9, - "column": 2102 - }, - "end": { - "line": 9, - "column": 2103 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2372, - "end": 2373, - "loc": { - "start": { - "line": 9, - "column": 2103 - }, - "end": { - "line": 9, - "column": 2104 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "registerTypes", - "start": 2373, - "end": 2386, - "loc": { - "start": { - "line": 9, - "column": 2104 - }, - "end": { - "line": 9, - "column": 2117 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2386, - "end": 2387, - "loc": { - "start": { - "line": 9, - "column": 2117 - }, - "end": { - "line": 9, - "column": 2118 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 2387, - "end": 2388, - "loc": { - "start": { - "line": 9, - "column": 2118 - }, - "end": { - "line": 9, - "column": 2119 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2388, - "end": 2389, - "loc": { - "start": { - "line": 9, - "column": 2119 - }, - "end": { - "line": 9, - "column": 2120 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2389, - "end": 2390, - "loc": { - "start": { - "line": 9, - "column": 2120 - }, - "end": { - "line": 9, - "column": 2121 - } - } - }, - { - "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": 2390, - "end": 2392, - "loc": { - "start": { - "line": 9, - "column": 2121 - }, - "end": { - "line": 9, - "column": 2123 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2392, - "end": 2393, - "loc": { - "start": { - "line": 9, - "column": 2123 - }, - "end": { - "line": 9, - "column": 2124 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Array", - "start": 2393, - "end": 2398, - "loc": { - "start": { - "line": 9, - "column": 2124 - }, - "end": { - "line": 9, - "column": 2129 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2398, - "end": 2399, - "loc": { - "start": { - "line": 9, - "column": 2129 - }, - "end": { - "line": 9, - "column": 2130 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "isArray", - "start": 2399, - "end": 2406, - "loc": { - "start": { - "line": 9, - "column": 2130 - }, - "end": { - "line": 9, - "column": 2137 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2406, - "end": 2407, - "loc": { - "start": { - "line": 9, - "column": 2137 - }, - "end": { - "line": 9, - "column": 2138 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 2407, - "end": 2408, - "loc": { - "start": { - "line": 9, - "column": 2138 - }, - "end": { - "line": 9, - "column": 2139 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2408, - "end": 2409, - "loc": { - "start": { - "line": 9, - "column": 2139 - }, - "end": { - "line": 9, - "column": 2140 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2409, - "end": 2410, - "loc": { - "start": { - "line": 9, - "column": 2140 - }, - "end": { - "line": 9, - "column": 2141 - } - } - }, - { - "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": 2410, - "end": 2413, - "loc": { - "start": { - "line": 9, - "column": 2141 - }, - "end": { - "line": 9, - "column": 2144 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2413, - "end": 2414, - "loc": { - "start": { - "line": 9, - "column": 2144 - }, - "end": { - "line": 9, - "column": 2145 - } - } - }, - { - "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": 2414, - "end": 2417, - "loc": { - "start": { - "line": 9, - "column": 2145 - }, - "end": { - "line": 9, - "column": 2148 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2418, - "end": 2419, - "loc": { - "start": { - "line": 9, - "column": 2149 - }, - "end": { - "line": 9, - "column": 2150 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 2419, - "end": 2420, - "loc": { - "start": { - "line": 9, - "column": 2150 - }, - "end": { - "line": 9, - "column": 2151 - } - } - }, - { - "type": { - "label": "num", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": 0, - "start": 2420, - "end": 2421, - "loc": { - "start": { - "line": 9, - "column": 2151 - }, - "end": { - "line": 9, - "column": 2152 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2421, - "end": 2422, - "loc": { - "start": { - "line": 9, - "column": 2152 - }, - "end": { - "line": 9, - "column": 2153 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2422, - "end": 2423, - "loc": { - "start": { - "line": 9, - "column": 2153 - }, - "end": { - "line": 9, - "column": 2154 - } - } - }, - { - "type": { - "label": "", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 7, - "updateContext": null - }, - "value": "<", - "start": 2423, - "end": 2424, - "loc": { - "start": { - "line": 9, - "column": 2154 - }, - "end": { - "line": 9, - "column": 2155 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 2424, - "end": 2425, - "loc": { - "start": { - "line": 9, - "column": 2155 - }, - "end": { - "line": 9, - "column": 2156 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2425, - "end": 2426, - "loc": { - "start": { - "line": 9, - "column": 2156 - }, - "end": { - "line": 9, - "column": 2157 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "length", - "start": 2426, - "end": 2432, - "loc": { - "start": { - "line": 9, - "column": 2157 - }, - "end": { - "line": 9, - "column": 2163 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2432, - "end": 2433, - "loc": { - "start": { - "line": 9, - "column": 2163 - }, - "end": { - "line": 9, - "column": 2164 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2433, - "end": 2434, - "loc": { - "start": { - "line": 9, - "column": 2164 - }, - "end": { - "line": 9, - "column": 2165 - } - } - }, - { - "type": { - "label": "++/--", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": true, - "binop": null - }, - "value": "++", - "start": 2434, - "end": 2436, - "loc": { - "start": { - "line": 9, - "column": 2165 - }, - "end": { - "line": 9, - "column": 2167 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2436, - "end": 2437, - "loc": { - "start": { - "line": 9, - "column": 2167 - }, - "end": { - "line": 9, - "column": 2168 - } - } - }, - { - "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": 2437, - "end": 2441, - "loc": { - "start": { - "line": 9, - "column": 2168 - }, - "end": { - "line": 9, - "column": 2172 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2441, - "end": 2442, - "loc": { - "start": { - "line": 9, - "column": 2172 - }, - "end": { - "line": 9, - "column": 2173 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "registerType", - "start": 2442, - "end": 2454, - "loc": { - "start": { - "line": 9, - "column": 2173 - }, - "end": { - "line": 9, - "column": 2185 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2454, - "end": 2455, - "loc": { - "start": { - "line": 9, - "column": 2185 - }, - "end": { - "line": 9, - "column": 2186 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 2455, - "end": 2456, - "loc": { - "start": { - "line": 9, - "column": 2186 - }, - "end": { - "line": 9, - "column": 2187 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2456, - "end": 2457, - "loc": { - "start": { - "line": 9, - "column": 2187 - }, - "end": { - "line": 9, - "column": 2188 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2457, - "end": 2458, - "loc": { - "start": { - "line": 9, - "column": 2188 - }, - "end": { - "line": 9, - "column": 2189 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2458, - "end": 2459, - "loc": { - "start": { - "line": 9, - "column": 2189 - }, - "end": { - "line": 9, - "column": 2190 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2459, - "end": 2460, - "loc": { - "start": { - "line": 9, - "column": 2190 - }, - "end": { - "line": 9, - "column": 2191 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "type", - "start": 2460, - "end": 2464, - "loc": { - "start": { - "line": 9, - "column": 2191 - }, - "end": { - "line": 9, - "column": 2195 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2464, - "end": 2465, - "loc": { - "start": { - "line": 9, - "column": 2195 - }, - "end": { - "line": 9, - "column": 2196 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "t", - "start": 2465, - "end": 2466, - "loc": { - "start": { - "line": 9, - "column": 2196 - }, - "end": { - "line": 9, - "column": 2197 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2466, - "end": 2467, - "loc": { - "start": { - "line": 9, - "column": 2197 - }, - "end": { - "line": 9, - "column": 2198 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2467, - "end": 2468, - "loc": { - "start": { - "line": 9, - "column": 2198 - }, - "end": { - "line": 9, - "column": 2199 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2468, - "end": 2469, - "loc": { - "start": { - "line": 9, - "column": 2199 - }, - "end": { - "line": 9, - "column": 2200 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2469, - "end": 2470, - "loc": { - "start": { - "line": 9, - "column": 2200 - }, - "end": { - "line": 9, - "column": 2201 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "ansi", - "start": 2470, - "end": 2474, - "loc": { - "start": { - "line": 9, - "column": 2201 - }, - "end": { - "line": 9, - "column": 2205 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2474, - "end": 2475, - "loc": { - "start": { - "line": 9, - "column": 2205 - }, - "end": { - "line": 9, - "column": 2206 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2475, - "end": 2476, - "loc": { - "start": { - "line": 9, - "column": 2206 - }, - "end": { - "line": 9, - "column": 2207 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "unregisterType", - "start": 2476, - "end": 2490, - "loc": { - "start": { - "line": 9, - "column": 2207 - }, - "end": { - "line": 9, - "column": 2221 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2490, - "end": 2491, - "loc": { - "start": { - "line": 9, - "column": 2221 - }, - "end": { - "line": 9, - "column": 2222 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2491, - "end": 2492, - "loc": { - "start": { - "line": 9, - "column": 2222 - }, - "end": { - "line": 9, - "column": 2223 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2492, - "end": 2493, - "loc": { - "start": { - "line": 9, - "column": 2223 - }, - "end": { - "line": 9, - "column": 2224 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2493, - "end": 2494, - "loc": { - "start": { - "line": 9, - "column": 2224 - }, - "end": { - "line": 9, - "column": 2225 - } - } - }, - { - "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": 2494, - "end": 2498, - "loc": { - "start": { - "line": 9, - "column": 2225 - }, - "end": { - "line": 9, - "column": 2229 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2498, - "end": 2499, - "loc": { - "start": { - "line": 9, - "column": 2229 - }, - "end": { - "line": 9, - "column": 2230 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 2499, - "end": 2504, - "loc": { - "start": { - "line": 9, - "column": 2230 - }, - "end": { - "line": 9, - "column": 2235 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2504, - "end": 2505, - "loc": { - "start": { - "line": 9, - "column": 2235 - }, - "end": { - "line": 9, - "column": 2236 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2505, - "end": 2506, - "loc": { - "start": { - "line": 9, - "column": 2236 - }, - "end": { - "line": 9, - "column": 2237 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2506, - "end": 2507, - "loc": { - "start": { - "line": 9, - "column": 2237 - }, - "end": { - "line": 9, - "column": 2238 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 2507, - "end": 2509, - "loc": { - "start": { - "line": 9, - "column": 2238 - }, - "end": { - "line": 9, - "column": 2240 - } - } - }, - { - "type": { - "label": "delete", - "keyword": "delete", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "delete", - "start": 2509, - "end": 2515, - "loc": { - "start": { - "line": 9, - "column": 2240 - }, - "end": { - "line": 9, - "column": 2246 - } - } - }, - { - "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": 2516, - "end": 2520, - "loc": { - "start": { - "line": 9, - "column": 2247 - }, - "end": { - "line": 9, - "column": 2251 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2520, - "end": 2521, - "loc": { - "start": { - "line": 9, - "column": 2251 - }, - "end": { - "line": 9, - "column": 2252 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 2521, - "end": 2526, - "loc": { - "start": { - "line": 9, - "column": 2252 - }, - "end": { - "line": 9, - "column": 2257 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2526, - "end": 2527, - "loc": { - "start": { - "line": 9, - "column": 2257 - }, - "end": { - "line": 9, - "column": 2258 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "s", - "start": 2527, - "end": 2528, - "loc": { - "start": { - "line": 9, - "column": 2258 - }, - "end": { - "line": 9, - "column": 2259 - } - } - }, - { - "type": { - "label": "]", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2528, - "end": 2529, - "loc": { - "start": { - "line": 9, - "column": 2259 - }, - "end": { - "line": 9, - "column": 2260 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2529, - "end": 2530, - "loc": { - "start": { - "line": 9, - "column": 2260 - }, - "end": { - "line": 9, - "column": 2261 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2530, - "end": 2531, - "loc": { - "start": { - "line": 9, - "column": 2261 - }, - "end": { - "line": 9, - "column": 2262 - } - } - }, - { - "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": 2531, - "end": 2537, - "loc": { - "start": { - "line": 9, - "column": 2262 - }, - "end": { - "line": 9, - "column": 2268 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2537, - "end": 2538, - "loc": { - "start": { - "line": 9, - "column": 2268 - }, - "end": { - "line": 9, - "column": 2269 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Logger", - "start": 2538, - "end": 2544, - "loc": { - "start": { - "line": 9, - "column": 2269 - }, - "end": { - "line": 9, - "column": 2275 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2544, - "end": 2545, - "loc": { - "start": { - "line": 9, - "column": 2275 - }, - "end": { - "line": 9, - "column": 2276 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2545, - "end": 2546, - "loc": { - "start": { - "line": 9, - "column": 2276 - }, - "end": { - "line": 9, - "column": 2277 - } - } - }, - { - "type": { - "label": "eof", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 2546, - "end": 2546, - "loc": { - "start": { - "line": 9, - "column": 2277 - }, - "end": { - "line": 9, - "column": 2277 - } - } - } - ] -} \ No newline at end of file diff --git a/docs/class/src/eutils.js~EUtilsSingleton.html b/docs/class/src/eutils.js~EUtilsSingleton.html deleted file mode 100644 index 44037d6..0000000 --- a/docs/class/src/eutils.js~EUtilsSingleton.html +++ /dev/null @@ -1,3858 +0,0 @@ - - - - - - EUtilsSingleton | EUtils - - - - - - - -
- - - Reference - Source - - -
- - - -
-
- public - class - - - - | source -
- -
-

EUtilsSingleton

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

A utilities class

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

Static Member Summary

- - - - - - - - - -
Static Public Members
- public - static - - - - -
-

- - - - version: * -

-
-
- - -

The version of the library

-
-
-
- - -
-
- -

Constructor Summary

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

- - - - constructor() -

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

Member Summary

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

- - - - storedIDs: Array -

-
-
- - -

An array storing all the reserved unique IDS

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

- - - - transitions: Object -

-
-
- - -

Object storing all color objects being transitioned at the moment

-
-
-
- - -
-
-

Method Summary

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

- - - - addIntensity(pColor: string | number, pPercent: number): * -

-
-
- - -

Add intensity to this color to get a brighter or dimmer effect

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

- - - - cancelTransitionColor(pID: string) -

-
-
- - -

Cancels an ongoing transition

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

- - - - clamp(pNumber: number, pMin: number, pMax: number): number -

-
-
- - -

Clamps a number between a minimum and maximum value.

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

- - - - decimalRand(pNum1: number, pNum2: number, pPlaces: number): number -

-
-
- - -

Generates a random decimal number between two numbers with a specified number of decimal places.

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

- - - - decimalToHex(pDecimal: number, pChars: number): * -

-
-
- - -

Converts a color in decimal format into hex format

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

- - - - degreesToRadians(pDegrees: number): number -

-
-
- - -

Converts degrees to radians.

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

- - - - flooredLerp(pStart: number, pEnd: number, pAmount: number): number -

-
-
- - -

Linearly interpolates between two values by a specified amount and returns the result as a floored integer.

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

- - - - formatIntegerWithCommas(pNum: number): string -

-
-
- - -

Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.

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

- - - - generateID(pIDLength: string): * -

-
-
- - -

Generates a unique id

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

- - - - getAngleFromDir(pDir: string): number -

-
-
- - -

Calculates the angle (in radians) from a given direction.

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

- - - - getInverseDir(pDir: string): string -

-
-
- - -

Gets the inverse direction of the direction passed

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

- - - - getPercentage(pValue: number, pTotalValue: number): number -

-
-
- - -

Calculates the percentage of a value relative to a total value.

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

- - - - getPointRotated(pRect: object, pTheta: number, pPoint: object): object -

-
-
- - -

Calculates the position of a point after rotating it around a center point by a given angle.

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

- - - - getPointsOfRotatedRect(pRect: object, pTheta: number): object -

-
-
- - -

Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.

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

- - - - getRandomColor(): string -

-
-
- - -

Gets a random color

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

- - - - getRandomColorBetween(pColor1: number | string, pColor2: number | string, pAmount: number): string -

-
-
- - -

Gets a random color between two colors

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

- - - - grabColor(pSwitch: string | number, g: number, b: number): ColorObject -

-
-
- - -

Convert a color to different formats or get a random color

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

- - - - hexToDecimal(pHex: string): number -

-
-
- - -

Converts a hexadecimal color value to a decimal value.

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

- - - - hexToRgb(pHex: string): Array -

-
-
- - -

Converts a hexadecimal color value to an RGB color value.

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

- - - - lerp(pStart: number, pEnd: number, pAmount: number): number -

-
-
- - -

Linearly interpolates between two values by a specified amount.

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

- - - - normalize(pVal: number, pMin: number, pMax: number): number -

-
-
- - -

Normalizes a value between a minimum and maximum value.

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

- - - - pick(pArray: Array): * -

-
-
- - -

Returns a random element from the given array.

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

- - - - prob(pChance: number): boolean -

-
-
- - -

Returns true with probability proportional to the given number.

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

- - - - radiansToDegrees(pRadians: number): number -

-
-
- - -

Converts radians to degrees.

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

- - - - rand(pNum1: number, pNum2: number): number -

-
-
- - -

Generates a random decimal number between two numbers with a specified number of decimal places.

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

- - - - removeProperties(pObject: object, pExclude: Array) -

-
-
- - -

Removes properties from an object except those listed in the exclude array.

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

- - - - rgbToDecimal(pR: number, pG: number, pB: number): * -

-
-
- - -

Converts RGB color values to a decimal value.

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

- - - - rgbToHex(pR: number, pG: number, pB: number): * -

-
-
- - -

Converts an RGB color value to a hexadecimal color value.

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

- - - - round(pNumber: number, pPlace: number): number -

-
-
- - -

Rounds a number to a specified number of decimal places.

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

- - - - transitionColor(pInstance: Object, pStartColor: string | number, pEndColor: string | number, pDuration: number, pIterativeCallback: Function, pEndCallback: Function): * -

-
-
- - -

Transition a color to another color in pDuration time.

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

- - - - within(pVal: number, pMin: number, pMax: number): boolean -

-
-
- - -

Checks if a value is within a range of minimum and maximum values (inclusive).

-
-
-
- - -
-
- - - -

Static Public Members

- -
-

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

- - - - -

The version of the library

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

Public Constructors

- -
-

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

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

Public Members

- -
-

- public - - - - - - storedIDs: Array - - - - source - -

- - - - -

An array storing all the reserved unique IDS

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

- public - - - - - - transitions: Object - - - - source - -

- - - - -

Object storing all color objects being transitioned at the moment

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

Public Methods

- -
-

- public - - - - - - addIntensity(pColor: string | number, pPercent: number): * - - - - source - -

- - - - -

Add intensity to this color to get a brighter or dimmer effect

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pColorstring | number

Color in hex format or decimal format

-
pPercentnumber

The percent of brightness to add to this color

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - cancelTransitionColor(pID: string) - - - - source - -

- - - - -

Cancels an ongoing transition

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pIDstring

The ID of the ongoing transition to cancel

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

- public - - - - - - clamp(pNumber: number, pMin: number, pMax: number): number - - - - source - -

- - - - -

Clamps a number between a minimum and maximum value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumbernumber

The number to clamp.

-
pMinnumber
  • optional
  • -
  • default: 0

The minimum value to clamp the number to. Defaults to 0 if not provided.

-
pMaxnumber
  • optional
  • -
  • default: 1

The maximum value to clamp the number to. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

The clamped number between the minimum and maximum values.

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

- public - - - - - - decimalRand(pNum1: number, pNum2: number, pPlaces: number): number - - - - source - -

- - - - -

Generates a random decimal number between two numbers with a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNum1number

The first number to use for generating the random decimal number.

-
pNum2number

The second number to use for generating the random decimal number.

-
pPlacesnumber
  • optional
  • -
  • default: 1

The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

A random decimal number between the two numbers with the specified number of decimal places.

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

- public - - - - - - decimalToHex(pDecimal: number, pChars: number): * - - - - source - -

- - - - -

Converts a color in decimal format into hex format

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pDecimalnumber

The color in decimal format

-
pCharsnumber

The length to make the hex string

-
-
-
- -
-

Return:

- - - - - - - -
*

The decimal color converted into hex format

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

- public - - - - - - degreesToRadians(pDegrees: number): number - - - - source - -

- - - - -

Converts degrees to radians.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDegreesnumber

The angle in degrees.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle in radians.

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

- public - - - - - - flooredLerp(pStart: number, pEnd: number, pAmount: number): number - - - - source - -

- - - - -

Linearly interpolates between two values by a specified amount and returns the result as a floored integer.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartnumber

The start value to interpolate from.

-
pEndnumber

The end value to interpolate to.

-
pAmountnumber

The amount to interpolate between the start and end values.

-
-
-
- -
-

Return:

- - - - - - - -
number

The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.

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

- public - - - - - - formatIntegerWithCommas(pNum: number): string - - - - source - -

- - - - -

Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumnumber

The number to format.

-
-
-
- -
-

Return:

- - - - - - - -
string

A string representation of the formatted number.

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

- public - - - - - - generateID(pIDLength: string): * - - - - source - -

- - - - -

Generates a unique id

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pIDLengthstring

The length of the ID to create

-
-
-
- -
-

Return:

- - - - - - - -
*

A unique ID

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

- public - - - - - - getAngleFromDir(pDir: string): number - - - - source - -

- - - - -

Calculates the angle (in radians) from a given direction.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDirstring

The direction to calculate the angle from.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle (in radians) associated with the given direction.

-
-
-
-
- - - - - -
-

Throw:

- - - - - - - - -

Error

Throws an error if the direction is not recognized.

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

- public - - - - - - getInverseDir(pDir: string): string - - - - source - -

- - - - -

Gets the inverse direction of the direction passed

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDirstring

The direction to get the inverse of.

-
-
-
- -
-

Return:

- - - - - - - -
string

The inverse direction

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

- public - - - - - - getPercentage(pValue: number, pTotalValue: number): number - - - - source - -

- - - - -

Calculates the percentage of a value relative to a total value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValuenumber

The value to calculate the percentage of.

-
pTotalValuenumber

The total value to calculate the percentage relative to.

-
-
-
- -
-

Return:

- - - - - - - -
number

The percentage of the value relative to the total value.

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

- public - - - - - - getPointRotated(pRect: object, pTheta: number, pPoint: object): object - - - - source - -

- - - - -

Calculates the position of a point after rotating it around a center point by a given angle.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRectobject

The rectangle object to rotate the point around. -pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.

-
pThetanumber

The angle (in radians) to rotate the point by.

-
pPointobject

The point object to rotate around the center of the rectangle.

-
pPoint.xnumber

The x-coordinate of the point to rotate.

-
pPoint.ynumber

The y-coordinate of the point to rotate.

-
-
-
- -
-

Return:

- - - - - - - -
object

An object with the rotated point's new x and y coordinates.

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

- public - - - - - - getPointsOfRotatedRect(pRect: object, pTheta: number): object - - - - source - -

- - - - -

Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRectobject

The rectangle object to rotate the point around. -pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.

-
pThetanumber

The angle (in radians) to rotate the point by.

-
-
-
- -
-

Return:

- - - - - - - -
object

An object with the rotated rectangle's new corner points and center points.

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

- public - - - - - - getRandomColor(): string - - - - source - -

- - - - -

Gets a random color

-
- - - -
-
- -
-

Return:

- - - - - - - -
string

A random color in the hex format

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

- public - - - - - - getRandomColorBetween(pColor1: number | string, pColor2: number | string, pAmount: number): string - - - - source - -

- - - - -

Gets a random color between two colors

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pColor1number | string

The first color to get a color between

-
pColor2number | string

The second color to get a color between

-
pAmountnumber
  • optional
  • -
  • default: 0.5

The closer the random color will be to either input colors on a range of 0-1 -0 to 0.5 (closer to pColor1) -0.5 to 1 (closer to pColor2)

-
-
-
- -
-

Return:

- - - - - - - -
string

A random color in the decimal format

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

- public - - - - - - grabColor(pSwitch: string | number, g: number, b: number): ColorObject - - - - source - -

- - - - -

Convert a color to different formats or get a random color

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pSwitchstring | number

A hex string representing a color (with or without the tag) -A color formatted in the decimal format. Or the r value of a rgb color.

-
gnumber
  • optional

g value of a rgb color

-
bnumber
  • optional

b value of a rgb color

-
-
-
- -
-

Return:

- - - - - - - -
ColorObject

A color object with various different export options. -hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.

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

- public - - - - - - hexToDecimal(pHex: string): number - - - - source - -

- - - - -

Converts a hexadecimal color value to a decimal value.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pHexstring

The hexadecimal color value to convert (e.g. "#FF0000" for red).

-
-
-
- -
-

Return:

- - - - - - - -
number

The decimal representation of the hexadecimal color value.

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

- public - - - - - - hexToRgb(pHex: string): Array - - - - source - -

- - - - -

Converts a hexadecimal color value to an RGB color value.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pHexstring

The hexadecimal color value to convert (e.g. "#FF0000" for red).

-
-
-
- -
-

Return:

- - - - - - - -
Array

An array containing the red, green, and blue components of the RGB color value.

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

- public - - - - - - lerp(pStart: number, pEnd: number, pAmount: number): number - - - - source - -

- - - - -

Linearly interpolates between two values by a specified amount.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartnumber

The start value to interpolate from.

-
pEndnumber

The end value to interpolate to.

-
pAmountnumber

The amount to interpolate between the start and end values.

-
-
-
- -
-

Return:

- - - - - - - -
number

The interpolated value between the start and end values based on the specified amount.

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

- public - - - - - - normalize(pVal: number, pMin: number, pMax: number): number - - - - source - -

- - - - -

Normalizes a value between a minimum and maximum value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValnumber

The value to normalize.

-
pMinnumber

The minimum value for normalization.

-
pMaxnumber

The maximum value for normalization.

-
-
-
- -
-

Return:

- - - - - - - -
number

The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values. -If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.

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

- public - - - - - - pick(pArray: Array): * - - - - source - -

- - - - -

Returns a random element from the given array.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pArrayArray

The input array.

-
-
-
- -
-

Return:

- - - - - - - -
*

A random element from the array.

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

- public - - - - - - prob(pChance: number): boolean - - - - source - -

- - - - -

Returns true with probability proportional to the given number. -The higher the number, the higher the chance of returning true.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pChancenumber

The probability value, between 0 and 100 (inclusive).

-
-
-
- -
-

Return:

- - - - - - - -
boolean

Returns true or false, based on the probability value.

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

- public - - - - - - radiansToDegrees(pRadians: number): number - - - - source - -

- - - - -

Converts radians to degrees.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pRadiansnumber

The angle in radians.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle in degrees.

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

- public - - - - - - rand(pNum1: number, pNum2: number): number - - - - source - -

- - - - -

Generates a random decimal number between two numbers with a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNum1number

The first number to use for generating the random decimal number.

-
pNum2number

The second number to use for generating the random decimal number.

-
-
-
- -
-

Return:

- - - - - - - -
number

A random decimal number between the two numbers with the specified number of decimal places.

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

- public - - - - - - removeProperties(pObject: object, pExclude: Array) - - - - source - -

- - - - -

Removes properties from an object except those listed in the exclude array.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pObjectobject

The object to remove properties from.

-
pExcludeArray

The array of property names to exclude from removal.

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

- public - - - - - - rgbToDecimal(pR: number, pG: number, pB: number): * - - - - source - -

- - - - -

Converts RGB color values to a decimal value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRnumber

The red component of the RGB color value (0-255).

-
pGnumber

The green component of the RGB color value (0-255).

-
pBnumber

The blue component of the RGB color value (0-255).

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - rgbToHex(pR: number, pG: number, pB: number): * - - - - source - -

- - - - -

Converts an RGB color value to a hexadecimal color value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRnumber

The red component of the RGB color value (0-255).

-
pGnumber

The green component of the RGB color value (0-255).

-
pBnumber

The blue component of the RGB color value (0-255).

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - round(pNumber: number, pPlace: number): number - - - - source - -

- - - - -

Rounds a number to a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumbernumber

The number to round.

-
pPlacenumber
  • optional
  • -
  • default: 1

The number of decimal places to round to. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

The rounded number to the specified number of decimal places.

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

- public - - - - - - transitionColor(pInstance: Object, pStartColor: string | number, pEndColor: string | number, pDuration: number, pIterativeCallback: Function, pEndCallback: Function): * - - - - source - -

- - - - -

Transition a color to another color in pDuration time.

-
- - - -
-

Params:

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

The instance to transition it's color property. -pInstance's color will be transitioned either via pInstance.color = newColor -or -pInstance.color.tint = newColor (if the color is defined as an object)

-
pStartColorstring | number

The start color

-
pEndColorstring | number

The end color

-
pDurationnumber

The duration of the transition

-
pIterativeCallbackFunction

Callback to call every tick of the transition

-
pEndCallbackFunction

Callback to call at the end of the transition

-
-
-
- -
-

Return:

- - - - - - - -
*

An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.

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

- public - - - - - - within(pVal: number, pMin: number, pMax: number): boolean - - - - source - -

- - - - -

Checks if a value is within a range of minimum and maximum values (inclusive).

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValnumber

The value to check.

-
pMinnumber

The minimum value of the range to check against.

-
pMaxnumber

The maximum value of the range to check against.

-
-
-
- -
-

Return:

- - - - - - - -
boolean

True if the value is within the range (inclusive), false otherwise.

-
-
-
-
- - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - diff --git a/docs/class/src/eutils.mjs~EUtilsSingleton.html b/docs/class/src/eutils.mjs~EUtilsSingleton.html deleted file mode 100644 index 29bf9b1..0000000 --- a/docs/class/src/eutils.mjs~EUtilsSingleton.html +++ /dev/null @@ -1,3858 +0,0 @@ - - - - - - EUtilsSingleton | EUtils - - - - - - - -
- - - Reference - Source - - -
- - - -
-
- public - class - - - - | source -
- -
-

EUtilsSingleton

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

A utilities class

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

Static Member Summary

- - - - - - - - - -
Static Public Members
- public - static - - - - -
-

- - - - version: * -

-
-
- - -

The version of the library

-
-
-
- - -
-
- -

Constructor Summary

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

- - - - constructor() -

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

Member Summary

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

- - - - storedIDs: Array -

-
-
- - -

An array storing all the reserved unique IDS

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

- - - - transitions: Object -

-
-
- - -

Object storing all color objects being transitioned at the moment

-
-
-
- - -
-
-

Method Summary

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

- - - - addIntensity(pColor: string | number, pPercent: number): * -

-
-
- - -

Add intensity to this color to get a brighter or dimmer effect

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

- - - - cancelTransitionColor(pID: string) -

-
-
- - -

Cancels an ongoing transition

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

- - - - clamp(pNumber: number, pMin: number, pMax: number): number -

-
-
- - -

Clamps a number between a minimum and maximum value.

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

- - - - decimalRand(pNum1: number, pNum2: number, pPlaces: number): number -

-
-
- - -

Generates a random decimal number between two numbers with a specified number of decimal places.

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

- - - - decimalToHex(pDecimal: number, pChars: number): * -

-
-
- - -

Converts a color in decimal format into hex format

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

- - - - degreesToRadians(pDegrees: number): number -

-
-
- - -

Converts degrees to radians.

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

- - - - flooredLerp(pStart: number, pEnd: number, pAmount: number): number -

-
-
- - -

Linearly interpolates between two values by a specified amount and returns the result as a floored integer.

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

- - - - formatIntegerWithCommas(pNum: number): string -

-
-
- - -

Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.

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

- - - - generateID(pIDLength: string): * -

-
-
- - -

Generates a unique id

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

- - - - getAngleFromDir(pDir: string): number -

-
-
- - -

Calculates the angle (in radians) from a given direction.

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

- - - - getInverseDir(pDir: string): string -

-
-
- - -

Gets the inverse direction of the direction passed

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

- - - - getPercentage(pValue: number, pTotalValue: number): number -

-
-
- - -

Calculates the percentage of a value relative to a total value.

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

- - - - getPointRotated(pRect: object, pTheta: number, pPoint: object): object -

-
-
- - -

Calculates the position of a point after rotating it around a center point by a given angle.

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

- - - - getPointsOfRotatedRect(pRect: object, pTheta: number): object -

-
-
- - -

Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.

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

- - - - getRandomColor(): string -

-
-
- - -

Gets a random color

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

- - - - getRandomColorBetween(pColor1: number | string, pColor2: number | string, pAmount: number): string -

-
-
- - -

Gets a random color between two colors

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

- - - - grabColor(pSwitch: string | number, g: number, b: number): ColorObject -

-
-
- - -

Convert a color to different formats or get a random color

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

- - - - hexToDecimal(pHex: string): number -

-
-
- - -

Converts a hexadecimal color value to a decimal value.

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

- - - - hexToRgb(pHex: string): Array -

-
-
- - -

Converts a hexadecimal color value to an RGB color value.

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

- - - - lerp(pStart: number, pEnd: number, pAmount: number): number -

-
-
- - -

Linearly interpolates between two values by a specified amount.

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

- - - - normalize(pVal: number, pMin: number, pMax: number): number -

-
-
- - -

Normalizes a value between a minimum and maximum value.

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

- - - - pick(pArray: Array): * -

-
-
- - -

Returns a random element from the given array.

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

- - - - prob(pChance: number): boolean -

-
-
- - -

Returns true with probability proportional to the given number.

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

- - - - radiansToDegrees(pRadians: number): number -

-
-
- - -

Converts radians to degrees.

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

- - - - rand(pNum1: number, pNum2: number): number -

-
-
- - -

Generates a random decimal number between two numbers with a specified number of decimal places.

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

- - - - removeProperties(pObject: object, pExclude: Array) -

-
-
- - -

Removes properties from an object except those listed in the exclude array.

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

- - - - rgbToDecimal(pR: number, pG: number, pB: number): * -

-
-
- - -

Converts RGB color values to a decimal value.

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

- - - - rgbToHex(pR: number, pG: number, pB: number): * -

-
-
- - -

Converts an RGB color value to a hexadecimal color value.

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

- - - - round(pNumber: number, pPlace: number): number -

-
-
- - -

Rounds a number to a specified number of decimal places.

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

- - - - transitionColor(pInstance: Object, pStartColor: string | number, pEndColor: string | number, pDuration: number, pIterativeCallback: Function, pEndCallback: Function): * -

-
-
- - -

Transition a color to another color in pDuration time.

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

- - - - within(pVal: number, pMin: number, pMax: number): boolean -

-
-
- - -

Checks if a value is within a range of minimum and maximum values (inclusive).

-
-
-
- - -
-
- - - -

Static Public Members

- -
-

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

- - - - -

The version of the library

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

Public Constructors

- -
-

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

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

Public Members

- -
-

- public - - - - - - storedIDs: Array - - - - source - -

- - - - -

An array storing all the reserved unique IDS

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

- public - - - - - - transitions: Object - - - - source - -

- - - - -

Object storing all color objects being transitioned at the moment

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

Public Methods

- -
-

- public - - - - - - addIntensity(pColor: string | number, pPercent: number): * - - - - source - -

- - - - -

Add intensity to this color to get a brighter or dimmer effect

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pColorstring | number

Color in hex format or decimal format

-
pPercentnumber

The percent of brightness to add to this color

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - cancelTransitionColor(pID: string) - - - - source - -

- - - - -

Cancels an ongoing transition

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pIDstring

The ID of the ongoing transition to cancel

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

- public - - - - - - clamp(pNumber: number, pMin: number, pMax: number): number - - - - source - -

- - - - -

Clamps a number between a minimum and maximum value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumbernumber

The number to clamp.

-
pMinnumber
  • optional
  • -
  • default: 0

The minimum value to clamp the number to. Defaults to 0 if not provided.

-
pMaxnumber
  • optional
  • -
  • default: 1

The maximum value to clamp the number to. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

The clamped number between the minimum and maximum values.

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

- public - - - - - - decimalRand(pNum1: number, pNum2: number, pPlaces: number): number - - - - source - -

- - - - -

Generates a random decimal number between two numbers with a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNum1number

The first number to use for generating the random decimal number.

-
pNum2number

The second number to use for generating the random decimal number.

-
pPlacesnumber
  • optional
  • -
  • default: 1

The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

A random decimal number between the two numbers with the specified number of decimal places.

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

- public - - - - - - decimalToHex(pDecimal: number, pChars: number): * - - - - source - -

- - - - -

Converts a color in decimal format into hex format

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pDecimalnumber

The color in decimal format

-
pCharsnumber

The length to make the hex string

-
-
-
- -
-

Return:

- - - - - - - -
*

The decimal color converted into hex format

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

- public - - - - - - degreesToRadians(pDegrees: number): number - - - - source - -

- - - - -

Converts degrees to radians.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDegreesnumber

The angle in degrees.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle in radians.

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

- public - - - - - - flooredLerp(pStart: number, pEnd: number, pAmount: number): number - - - - source - -

- - - - -

Linearly interpolates between two values by a specified amount and returns the result as a floored integer.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartnumber

The start value to interpolate from.

-
pEndnumber

The end value to interpolate to.

-
pAmountnumber

The amount to interpolate between the start and end values.

-
-
-
- -
-

Return:

- - - - - - - -
number

The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.

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

- public - - - - - - formatIntegerWithCommas(pNum: number): string - - - - source - -

- - - - -

Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumnumber

The number to format.

-
-
-
- -
-

Return:

- - - - - - - -
string

A string representation of the formatted number.

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

- public - - - - - - generateID(pIDLength: string): * - - - - source - -

- - - - -

Generates a unique id

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pIDLengthstring

The length of the ID to create

-
-
-
- -
-

Return:

- - - - - - - -
*

A unique ID

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

- public - - - - - - getAngleFromDir(pDir: string): number - - - - source - -

- - - - -

Calculates the angle (in radians) from a given direction.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDirstring

The direction to calculate the angle from.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle (in radians) associated with the given direction.

-
-
-
-
- - - - - -
-

Throw:

- - - - - - - - -

Error

Throws an error if the direction is not recognized.

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

- public - - - - - - getInverseDir(pDir: string): string - - - - source - -

- - - - -

Gets the inverse direction of the direction passed

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDirstring

The direction to get the inverse of.

-
-
-
- -
-

Return:

- - - - - - - -
string

The inverse direction

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

- public - - - - - - getPercentage(pValue: number, pTotalValue: number): number - - - - source - -

- - - - -

Calculates the percentage of a value relative to a total value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValuenumber

The value to calculate the percentage of.

-
pTotalValuenumber

The total value to calculate the percentage relative to.

-
-
-
- -
-

Return:

- - - - - - - -
number

The percentage of the value relative to the total value.

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

- public - - - - - - getPointRotated(pRect: object, pTheta: number, pPoint: object): object - - - - source - -

- - - - -

Calculates the position of a point after rotating it around a center point by a given angle.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRectobject

The rectangle object to rotate the point around. -pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.

-
pThetanumber

The angle (in radians) to rotate the point by.

-
pPointobject

The point object to rotate around the center of the rectangle.

-
pPoint.xnumber

The x-coordinate of the point to rotate.

-
pPoint.ynumber

The y-coordinate of the point to rotate.

-
-
-
- -
-

Return:

- - - - - - - -
object

An object with the rotated point's new x and y coordinates.

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

- public - - - - - - getPointsOfRotatedRect(pRect: object, pTheta: number): object - - - - source - -

- - - - -

Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRectobject

The rectangle object to rotate the point around. -pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.

-
pThetanumber

The angle (in radians) to rotate the point by.

-
-
-
- -
-

Return:

- - - - - - - -
object

An object with the rotated rectangle's new corner points and center points.

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

- public - - - - - - getRandomColor(): string - - - - source - -

- - - - -

Gets a random color

-
- - - -
-
- -
-

Return:

- - - - - - - -
string

A random color in the hex format

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

- public - - - - - - getRandomColorBetween(pColor1: number | string, pColor2: number | string, pAmount: number): string - - - - source - -

- - - - -

Gets a random color between two colors

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pColor1number | string

The first color to get a color between

-
pColor2number | string

The second color to get a color between

-
pAmountnumber
  • optional
  • -
  • default: 0.5

The closer the random color will be to either input colors on a range of 0-1 -0 to 0.5 (closer to pColor1) -0.5 to 1 (closer to pColor2)

-
-
-
- -
-

Return:

- - - - - - - -
string

A random color in the decimal format

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

- public - - - - - - grabColor(pSwitch: string | number, g: number, b: number): ColorObject - - - - source - -

- - - - -

Convert a color to different formats or get a random color

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pSwitchstring | number

A hex string representing a color (with or without the tag) -A color formatted in the decimal format. Or the r value of a rgb color.

-
gnumber
  • optional

g value of a rgb color

-
bnumber
  • optional

b value of a rgb color

-
-
-
- -
-

Return:

- - - - - - - -
ColorObject

A color object with various different export options. -hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.

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

- public - - - - - - hexToDecimal(pHex: string): number - - - - source - -

- - - - -

Converts a hexadecimal color value to a decimal value.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pHexstring

The hexadecimal color value to convert (e.g. "#FF0000" for red).

-
-
-
- -
-

Return:

- - - - - - - -
number

The decimal representation of the hexadecimal color value.

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

- public - - - - - - hexToRgb(pHex: string): Array - - - - source - -

- - - - -

Converts a hexadecimal color value to an RGB color value.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pHexstring

The hexadecimal color value to convert (e.g. "#FF0000" for red).

-
-
-
- -
-

Return:

- - - - - - - -
Array

An array containing the red, green, and blue components of the RGB color value.

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

- public - - - - - - lerp(pStart: number, pEnd: number, pAmount: number): number - - - - source - -

- - - - -

Linearly interpolates between two values by a specified amount.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartnumber

The start value to interpolate from.

-
pEndnumber

The end value to interpolate to.

-
pAmountnumber

The amount to interpolate between the start and end values.

-
-
-
- -
-

Return:

- - - - - - - -
number

The interpolated value between the start and end values based on the specified amount.

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

- public - - - - - - normalize(pVal: number, pMin: number, pMax: number): number - - - - source - -

- - - - -

Normalizes a value between a minimum and maximum value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValnumber

The value to normalize.

-
pMinnumber

The minimum value for normalization.

-
pMaxnumber

The maximum value for normalization.

-
-
-
- -
-

Return:

- - - - - - - -
number

The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values. -If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.

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

- public - - - - - - pick(pArray: Array): * - - - - source - -

- - - - -

Returns a random element from the given array.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pArrayArray

The input array.

-
-
-
- -
-

Return:

- - - - - - - -
*

A random element from the array.

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

- public - - - - - - prob(pChance: number): boolean - - - - source - -

- - - - -

Returns true with probability proportional to the given number. -The higher the number, the higher the chance of returning true.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pChancenumber

The probability value, between 0 and 100 (inclusive).

-
-
-
- -
-

Return:

- - - - - - - -
boolean

Returns true or false, based on the probability value.

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

- public - - - - - - radiansToDegrees(pRadians: number): number - - - - source - -

- - - - -

Converts radians to degrees.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pRadiansnumber

The angle in radians.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle in degrees.

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

- public - - - - - - rand(pNum1: number, pNum2: number): number - - - - source - -

- - - - -

Generates a random decimal number between two numbers with a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNum1number

The first number to use for generating the random decimal number.

-
pNum2number

The second number to use for generating the random decimal number.

-
-
-
- -
-

Return:

- - - - - - - -
number

A random decimal number between the two numbers with the specified number of decimal places.

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

- public - - - - - - removeProperties(pObject: object, pExclude: Array) - - - - source - -

- - - - -

Removes properties from an object except those listed in the exclude array.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pObjectobject

The object to remove properties from.

-
pExcludeArray

The array of property names to exclude from removal.

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

- public - - - - - - rgbToDecimal(pR: number, pG: number, pB: number): * - - - - source - -

- - - - -

Converts RGB color values to a decimal value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRnumber

The red component of the RGB color value (0-255).

-
pGnumber

The green component of the RGB color value (0-255).

-
pBnumber

The blue component of the RGB color value (0-255).

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - rgbToHex(pR: number, pG: number, pB: number): * - - - - source - -

- - - - -

Converts an RGB color value to a hexadecimal color value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRnumber

The red component of the RGB color value (0-255).

-
pGnumber

The green component of the RGB color value (0-255).

-
pBnumber

The blue component of the RGB color value (0-255).

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - round(pNumber: number, pPlace: number): number - - - - source - -

- - - - -

Rounds a number to a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumbernumber

The number to round.

-
pPlacenumber
  • optional
  • -
  • default: 1

The number of decimal places to round to. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

The rounded number to the specified number of decimal places.

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

- public - - - - - - transitionColor(pInstance: Object, pStartColor: string | number, pEndColor: string | number, pDuration: number, pIterativeCallback: Function, pEndCallback: Function): * - - - - source - -

- - - - -

Transition a color to another color in pDuration time.

-
- - - -
-

Params:

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

The instance to transition it's color property. -pInstance's color will be transitioned either via pInstance.color = newColor -or -pInstance.color.tint = newColor (if the color is defined as an object)

-
pStartColorstring | number

The start color

-
pEndColorstring | number

The end color

-
pDurationnumber

The duration of the transition

-
pIterativeCallbackFunction

Callback to call every tick of the transition

-
pEndCallbackFunction

Callback to call at the end of the transition

-
-
-
- -
-

Return:

- - - - - - - -
*

An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.

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

- public - - - - - - within(pVal: number, pMin: number, pMax: number): boolean - - - - source - -

- - - - -

Checks if a value is within a range of minimum and maximum values (inclusive).

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValnumber

The value to check.

-
pMinnumber

The minimum value of the range to check against.

-
pMaxnumber

The maximum value of the range to check against.

-
-
-
- -
-

Return:

- - - - - - - -
boolean

True if the value is within the range (inclusive), false otherwise.

-
-
-
-
- - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - diff --git a/docs/class/src/utils.mjs~UtilsSingleton.html b/docs/class/src/utils.mjs~UtilsSingleton.html deleted file mode 100644 index abf4019..0000000 --- a/docs/class/src/utils.mjs~UtilsSingleton.html +++ /dev/null @@ -1,5442 +0,0 @@ - - - - - - UtilsSingleton | Utils - - - - - - - -
- - - Reference - Source - - -
- - - -
-
- public - class - - - - | source -
- -
-

UtilsSingleton

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

A utilities class

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

Constructor Summary

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

- - - - constructor() -

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

Member Summary

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

- - - - version: * -

-
-
- - -

The version of the module.

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

- - - - logger: Object -

-
-
- - -

The logger module this module uses to log errors / logs

-
-
-
- - -
- private - - - - - -
-

- - - - storedIDs: Array -

-
-
- - -

An array storing all the reserved unique IDS

-
-
-
- - -
- private - - - - - -
-

- - - - transitions: Object -

-
-
- - -

Object storing all color objects being transitioned at the moment

-
-
-
- - -
-
-

Method Summary

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

- - - - addIntensity(pColor: string | number, pPercent: number): * -

-
-
- - -

Add intensity to this color to get a brighter or dimmer effect

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

- - - - calculateIconOffset(pIconSize: Object, pAnchor: Object, pScale: Object): Object -

-
-
- - -

Calculate the icon offset to compensate for a non-zero anchor.

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

- - - - calculateNewPositionFromDistanceAndAngle(pPoint: Object, pDistance: number, pAngle: number): Object -

-
-
- - -

Calculates the new position of a point based on distance and angle.

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

- - - - calculateProportionalLength(pCurrent: number, pMax: number, pTotalLength: number): number -

-
-
- - -

Calculates the proportional length based on a current value, a maximum value, and a specified total length.

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

- - - - cancelTransitionColor(pID: string) -

-
-
- - -

Cancels an ongoing transition

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

- - - - centerRectangleOnParent(pChildWidth: number, pChildHeight: number, pParentWidth: number, pParentHeight: number, pParentX: number, pParentY: number): Object -

-
-
- - -

Centers a rectangle (defined by its dimensions) within a parent rectangle.

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

- - - - clamp(pNumber: number, pMin: number, pMax: number): number -

-
-
- - -

Clamps a number between a minimum and maximum value.

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

- - - - convertRaWAngleToVyloCoords(pAngle: number): * -

-
-
- - -

Converts a raw angle to be the proper angle in Vylocity.

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

- - - - decimalRand(pNum1: number, pNum2: number, pPlaces: number): number -

-
-
- - -

Generates a random decimal number between two numbers with a specified number of decimal places.

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

- - - - decimalToHex(pDecimal: number, pChars: number): * -

-
-
- - -

Converts a color in decimal format into hex format

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

- - - - flooredLerp(pStart: number, pEnd: number, pAmount: number): number -

-
-
- - -

Linearly interpolates between two values by a specified amount and returns the result as a floored integer.

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

- - - - formatIntegerWithCommas(pNum: number): string -

-
-
- - -

Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.

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

- - - - generateID(pIDLength: string): * -

-
-
- - -

Generates a unique id

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

- - - - getAngle(pStartPoint: Object, pEndPoint: Object): number -

-
-
- - -

Gets the angle between two points

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

- - - - getAngle2(pStartPoint: Object, pEndPoint: Object): number -

-
-
- - -

Gets the angle between two points but in VYLO / PIXI coordinate space.

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

- - - - getAngleFromDirection(pDirection: string): number -

-
-
- - -

Calculates the angle (in radians) from a given direction.

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

- - - - getDirection(pAngle: number): string -

-
-
- - -

Calculates the compass direction based on the given angle.

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

- - - - getDistance(pStartPoint: Object, pEndPoint: Object): number -

-
-
- - -

Calculates the Euclidean distance between two points in a two-dimensional space.

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

- - - - getInverseDirection(pDirection: string): string -

-
-
- - -

Gets the inverse direction of the direction passed

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

- - - - getPercentage(pValue: number, pTotalValue: number): number -

-
-
- - -

Calculates the percentage of a value relative to a total value.

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

- - - - getPointRotated(pRect: object, pTheta: number, pPoint: object): object -

-
-
- - -

Calculates the position of a point after rotating it around a center point by a given angle.

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

- - - - getPointsOfRotatedRect(pRect: object, pTheta: number): object -

-
-
- - -

Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.

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

- - - - getRandomAngle(): number -

-
-
- - -

Generates a random angle in radians.

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

- - - - getRandomColor(): string -

-
-
- - -

Gets a random color

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

- - - - getRandomColorBetween(pColor1: number | string, pColor2: number | string, pAmount: number): string -

-
-
- - -

Gets a random color between two colors

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

- - - - grabColor(pSwitch: string | number, g: number, b: number): ColorObject -

-
-
- - -

Convert a color to different formats or get a random color

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

- - - - hexToDecimal(pHex: string): number -

-
-
- - -

Converts a hexadecimal color value to a decimal value.

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

- - - - hexToRgb(pHex: string): Array -

-
-
- - -

Converts a hexadecimal color value to an RGB color value.

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

- - - - lerp(pStart: number, pEnd: number, pAmount: number): number -

-
-
- - -

Linearly interpolates between two values by a specified amount.

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

- - - - linearDecay(pInitialValue: number, pCurrentTime: number, pMaxTime: number, pDecayRate: number): number -

-
-
- - -

Calculates the linear decay of a variable over time.

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

- - - - normalize(pVal: number, pMin: number, pMax: number): number -

-
-
- - -

Normalizes a value between a minimum and maximum value.

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

- - - - normalizeRanged(pVal: number, pMin: number, pMax: number): number -

-
-
- - -

Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.

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

- - - - pick(pArray: Array): * -

-
-
- - -

Returns a random element from the given array.

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

- - - - prob(pChance: number): boolean -

-
-
- - -

Returns true with probability proportional to the given number.

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

- - - - rand(pNum1: number, pNum2: number): number -

-
-
- - -

Generates a random decimal number between two numbers with a specified number of decimal places.

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

- - - - removeProperties(pObject: object, pExclude: Array) -

-
-
- - -

Removes properties from an object except those listed in the exclude array.

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

- - - - rgbToDecimal(pR: number, pG: number, pB: number): * -

-
-
- - -

Converts RGB color values to a decimal value.

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

- - - - rgbToHex(pR: number, pG: number, pB: number): * -

-
-
- - -

Converts an RGB color value to a hexadecimal color value.

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

- - - - round(pNumber: number, pPlace: number): number -

-
-
- - -

Rounds a number to a specified number of decimal places.

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

- - - - toDegrees(pRadians: number): number -

-
-
- - -

Converts radians to degrees.

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

- - - - toRadians(pDegrees: number): number -

-
-
- - -

Converts degrees to radians.

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

- - - - transitionColor(pInstance: Object, pStartColor: string | number, pEndColor: string | number, pDuration: number, pIterativeCallback: Function, pEndCallback: Function): * -

-
-
- - -

Transition a color to another color in pDuration time.

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

- - - - within(pVal: number, pMin: number, pMax: number): boolean -

-
-
- - -

Checks if a value is within a range of minimum and maximum values (inclusive).

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

Public Constructors

- -
-

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

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

Public Members

- -
-

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

- - - - -

The version of the module.

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

Private Members

- -
-

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

- - - - -

The logger module this module uses to log errors / logs

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

- private - - - - - - storedIDs: Array - - - - source - -

- - - - -

An array storing all the reserved unique IDS

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

- private - - - - - - transitions: Object - - - - source - -

- - - - -

Object storing all color objects being transitioned at the moment

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

Public Methods

- -
-

- public - - - - - - addIntensity(pColor: string | number, pPercent: number): * - - - - source - -

- - - - -

Add intensity to this color to get a brighter or dimmer effect

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pColorstring | number

Color in hex format or decimal format

-
pPercentnumber

The percent of brightness to add to this color

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - calculateIconOffset(pIconSize: Object, pAnchor: Object, pScale: Object): Object - - - - source - -

- - - - -

Calculate the icon offset to compensate for a non-zero anchor.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pIconSizeObject
  • optional

The size of the icon with properties .x and .y.

-
pIconSize.widthnumber
  • optional
  • -
  • default: 32

The size of the icon's width.

-
pIconSize.heightnumber
  • optional
  • -
  • default: 32

The size of the icon's height'.

-
pAnchorObject
  • optional

The anchor point with properties .x and .y.

-
pAnchor.xnumber
  • optional
  • -
  • default: 0.5

The anchor's x value.

-
pAnchor.ynumber
  • optional
  • -
  • default: 0.5

The anchor's y value.

-
pScaleObject
  • optional

The scale factor applied to the object with properties .x and .y.

-
pScale.xnumber
  • optional
  • -
  • default: 1

The scale's y value.

-
pScale.ynumber
  • optional
  • -
  • default: 1

The scale's y value.

-
-
-
- -
-

Return:

- - - - - - - -
Object

The calculated icon offset with properties .x and .y.

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

- public - - - - - - calculateNewPositionFromDistanceAndAngle(pPoint: Object, pDistance: number, pAngle: number): Object - - - - source - -

- - - - -

Calculates the new position of a point based on distance and angle.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pPointObject

The initial position of the point with x and y coordinates.

-
pPoint.xnumber

The initial x-coordinate of the point.

-
pPoint.ynumber

The initial y-coordinate of the point.

-
pDistancenumber

The distance by which to move the point.

-
pAnglenumber

The angle (in radians) at which to move the point.

-
-
-
- -
-

Return:

- - - - - - - -
Object

The new position of the point after moving by the specified distance and angle.

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

Example:

- -
- -
const initialPosition = { x: 10, y: 20 };
-const distance = 5;
-const angleInRadians = 0.785398; // 45 degrees
-const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);
-// Returns the new position of the point after moving by 5 units at a 45-degree angle.
-
-
- - - - - -
-
-

- public - - - - - - calculateProportionalLength(pCurrent: number, pMax: number, pTotalLength: number): number - - - - source - -

- - - - -

Calculates the proportional length based on a current value, a maximum value, and a specified total length.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pCurrentnumber

The current value to be scaled.

-
pMaxnumber

The maximum value for scaling.

-
pTotalLengthnumber

The specified total length.

-
-
-
- -
-

Return:

- - - - - - - -
number

The proportional length based on the current value, maximum value, and total length.

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

Example:

- -
- -
const current = 25;
-const max = 50;
-const totalLength = 100;
-const proportionalLength = calculateProportionalLength(current, max, totalLength); // 50
-// Returns the proportional length based on the current value, maximum value, and total length.
-
-
- - - - - -
-
-

- public - - - - - - cancelTransitionColor(pID: string) - - - - source - -

- - - - -

Cancels an ongoing transition

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pIDstring

The ID of the ongoing transition to cancel

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

- public - - - - - - centerRectangleOnParent(pChildWidth: number, pChildHeight: number, pParentWidth: number, pParentHeight: number, pParentX: number, pParentY: number): Object - - - - source - -

- - - - -

Centers a rectangle (defined by its dimensions) within a parent rectangle.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pChildWidthnumber

The width of the child rectangle.

-
pChildHeightnumber

The height of the child rectangle.

-
pParentWidthnumber

The width of the parent rectangle.

-
pParentHeightnumber

The height of the parent rectangle.

-
pParentXnumber

The x-coordinate of the parent rectangle.

-
pParentYnumber

The y-coordinate of the parent rectangle.

-
-
-
- -
-

Return:

- - - - - - - -
Object

An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.

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

Example:

- -
- -
const childWidth = 50;
-const childHeight = 30;
-const parentWidth = 100;
-const parentHeight = 80;
-const parentX = 20;
-const parentY = 10;
-const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);
-// Returns {x: 45, y: 35}
-
-
- - - - - -
-
-

- public - - - - - - clamp(pNumber: number, pMin: number, pMax: number): number - - - - source - -

- - - - -

Clamps a number between a minimum and maximum value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumbernumber

The number to clamp.

-
pMinnumber
  • optional
  • -
  • default: 0

The minimum value to clamp the number to. Defaults to 0 if not provided.

-
pMaxnumber
  • optional
  • -
  • default: 1

The maximum value to clamp the number to. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

The clamped number between the minimum and maximum values.

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

- public - - - - - - convertRaWAngleToVyloCoords(pAngle: number): * - - - - source - -

- - - - -

Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pAnglenumber

The angle to convert.

-
-
-
- -
-

Return:

- - - - - - - -
*

The converted angle

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

- public - - - - - - decimalRand(pNum1: number, pNum2: number, pPlaces: number): number - - - - source - -

- - - - -

Generates a random decimal number between two numbers with a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNum1number

The first number to use for generating the random decimal number.

-
pNum2number

The second number to use for generating the random decimal number.

-
pPlacesnumber
  • optional
  • -
  • default: 1

The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

A random decimal number between the two numbers with the specified number of decimal places.

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

- public - - - - - - decimalToHex(pDecimal: number, pChars: number): * - - - - source - -

- - - - -

Converts a color in decimal format into hex format

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pDecimalnumber

The color in decimal format

-
pCharsnumber

The length to make the hex string

-
-
-
- -
-

Return:

- - - - - - - -
*

The decimal color converted into hex format

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

- public - - - - - - flooredLerp(pStart: number, pEnd: number, pAmount: number): number - - - - source - -

- - - - -

Linearly interpolates between two values by a specified amount and returns the result as a floored integer.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartnumber

The start value to interpolate from.

-
pEndnumber

The end value to interpolate to.

-
pAmountnumber

The amount to interpolate between the start and end values.

-
-
-
- -
-

Return:

- - - - - - - -
number

The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.

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

- public - - - - - - formatIntegerWithCommas(pNum: number): string - - - - source - -

- - - - -

Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumnumber

The number to format.

-
-
-
- -
-

Return:

- - - - - - - -
string

A string representation of the formatted number.

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

- public - - - - - - generateID(pIDLength: string): * - - - - source - -

- - - - -

Generates a unique id

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pIDLengthstring

The length of the ID to create

-
-
-
- -
-

Return:

- - - - - - - -
*

A unique ID

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

- public - - - - - - getAngle(pStartPoint: Object, pEndPoint: Object): number - - - - source - -

- - - - -

Gets the angle between two points

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartPointObject

The starting point

-
pEndPointObject

The ending point

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle between the starting point and the ending point

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

- public - - - - - - getAngle2(pStartPoint: Object, pEndPoint: Object): number - - - - source - -

- - - - -

Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartPointObject

The starting point

-
pEndPointObject

The ending point

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle between the starting point and the ending point

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

- public - - - - - - getAngleFromDirection(pDirection: string): number - - - - source - -

- - - - -

Calculates the angle (in radians) from a given direction.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDirectionstring

The direction to calculate the angle from.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle (in radians) associated with the given direction.

-
-
-
-
- - - - - -
-

Throw:

- - - - - - - - -

Error

Throws an error if the direction is not recognized.

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

- public - - - - - - getDirection(pAngle: number): string - - - - source - -

- - - - -

Calculates the compass direction based on the given angle.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pAnglenumber

The angle in radians.

-
-
-
- -
-

Return:

- - - - - - - -
string

The compass direction (e.g., 'east', 'southeast', 'south', etc.).

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

Example:

- -
- -
const angle = Math.PI / 4; // 45 degrees in radians
-const direction = getDirection(angle); // Returns 'northeast'
-
-
- - - - - -
-
-

- public - - - - - - getDistance(pStartPoint: Object, pEndPoint: Object): number - - - - source - -

- - - - -

Calculates the Euclidean distance between two points in a two-dimensional space.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartPointObject

The starting point with x and y coordinates.

-
pStartPoint.xnumber

The x-coordinate of the starting point.

-
pStartPoint.ynumber

The y-coordinate of the starting point.

-
pEndPointObject

The ending point with x and y coordinates.

-
pEndPoint.xnumber

The x-coordinate of the ending point.

-
pEndPoint.ynumber

The y-coordinate of the ending point.

-
-
-
- -
-

Return:

- - - - - - - -
number

The Euclidean distance between the two points.

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

Example:

- -
- -
const startPoint = { x: 1, y: 2 };
-const endPoint = { x: 4, y: 6 };
-const distance = getDistance(startPoint, endPoint); // 5
-// Returns the Euclidean distance between the points (1, 2) and (4, 6).
-
-
- - - - - -
-
-

- public - - - - - - getInverseDirection(pDirection: string): string - - - - source - -

- - - - -

Gets the inverse direction of the direction passed

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDirectionstring

The direction to get the inverse of.

-
-
-
- -
-

Return:

- - - - - - - -
string

The inverse direction

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

- public - - - - - - getPercentage(pValue: number, pTotalValue: number): number - - - - source - -

- - - - -

Calculates the percentage of a value relative to a total value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValuenumber

The value to calculate the percentage of.

-
pTotalValuenumber

The total value to calculate the percentage relative to.

-
-
-
- -
-

Return:

- - - - - - - -
number

The percentage of the value relative to the total value.

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

- public - - - - - - getPointRotated(pRect: object, pTheta: number, pPoint: object): object - - - - source - -

- - - - -

Calculates the position of a point after rotating it around a center point by a given angle.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRectobject

The rectangle object to rotate the point around. -pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.

-
pThetanumber

The angle (in radians) to rotate the point by.

-
pPointobject

The point object to rotate around the center of the rectangle.

-
pPoint.xnumber

The x-coordinate of the point to rotate.

-
pPoint.ynumber

The y-coordinate of the point to rotate.

-
-
-
- -
-

Return:

- - - - - - - -
object

An object with the rotated point's new x and y coordinates.

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

- public - - - - - - getPointsOfRotatedRect(pRect: object, pTheta: number): object - - - - source - -

- - - - -

Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRectobject

The rectangle object to rotate the point around. -pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.

-
pThetanumber

The angle (in radians) to rotate the point by.

-
-
-
- -
-

Return:

- - - - - - - -
object

An object with the rotated rectangle's new corner points and center points.

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

- public - - - - - - getRandomAngle(): number - - - - source - -

- - - - -

Generates a random angle in radians.

-
- - - -
-
- -
-

Return:

- - - - - - - -
number

A random angle in radians.

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

- public - - - - - - getRandomColor(): string - - - - source - -

- - - - -

Gets a random color

-
- - - -
-
- -
-

Return:

- - - - - - - -
string

A random color in the hex format

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

- public - - - - - - getRandomColorBetween(pColor1: number | string, pColor2: number | string, pAmount: number): string - - - - source - -

- - - - -

Gets a random color between two colors

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pColor1number | string

The first color to get a color between

-
pColor2number | string

The second color to get a color between

-
pAmountnumber
  • optional
  • -
  • default: 0.5

The closer the random color will be to either input colors on a range of 0-1 -0 to 0.5 (closer to pColor1) -0.5 to 1 (closer to pColor2)

-
-
-
- -
-

Return:

- - - - - - - -
string

A random color in the decimal format

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

- public - - - - - - grabColor(pSwitch: string | number, g: number, b: number): ColorObject - - - - source - -

- - - - -

Convert a color to different formats or get a random color

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pSwitchstring | number

A hex string representing a color (with or without the tag) -A color formatted in the decimal format. Or the r value of a rgb color.

-
gnumber
  • optional

g value of a rgb color

-
bnumber
  • optional

b value of a rgb color

-
-
-
- -
-

Return:

- - - - - - - -
ColorObject

A color object with various different export options. -hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.

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

- public - - - - - - hexToDecimal(pHex: string): number - - - - source - -

- - - - -

Converts a hexadecimal color value to a decimal value.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pHexstring

The hexadecimal color value to convert (e.g. "#FF0000" for red).

-
-
-
- -
-

Return:

- - - - - - - -
number

The decimal representation of the hexadecimal color value.

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

- public - - - - - - hexToRgb(pHex: string): Array - - - - source - -

- - - - -

Converts a hexadecimal color value to an RGB color value.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pHexstring

The hexadecimal color value to convert (e.g. "#FF0000" for red).

-
-
-
- -
-

Return:

- - - - - - - -
Array

An array containing the red, green, and blue components of the RGB color value.

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

- public - - - - - - lerp(pStart: number, pEnd: number, pAmount: number): number - - - - source - -

- - - - -

Linearly interpolates between two values by a specified amount.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pStartnumber

The start value to interpolate from.

-
pEndnumber

The end value to interpolate to.

-
pAmountnumber

The amount to interpolate between the start and end values.

-
-
-
- -
-

Return:

- - - - - - - -
number

The interpolated value between the start and end values based on the specified amount.

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

- public - - - - - - linearDecay(pInitialValue: number, pCurrentTime: number, pMaxTime: number, pDecayRate: number): number - - - - source - -

- - - - -

Calculates the linear decay of a variable over time.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pInitialValuenumber

The initial value of the variable.

-
pCurrentTimenumber

The current time at which to calculate the variable value.

-
pMaxTimenumber

The maximum time for the decay process.

-
pDecayRatenumber
  • optional
  • -
  • default: 0.5

The decay rate (default is 0.5).

-
-
-
- -
-

Return:

- - - - - - - -
number

The remaining value of the variable after linear decay.

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

Example:

- -
- -
const initialValue = 100;
-const currentTime = 50;
-const maxTime = 1000;
-const decayRate = 0.3;
-const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);
-// Returns the remaining value after linear decay.
-
-
- - - - - -
-
-

- public - - - - - - normalize(pVal: number, pMin: number, pMax: number): number - - - - source - -

- - - - -

Normalizes a value between a minimum and maximum value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValnumber

The value to normalize.

-
pMinnumber

The minimum value for normalization.

-
pMaxnumber

The maximum value for normalization.

-
-
-
- -
-

Return:

- - - - - - - -
number

The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values. -If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.

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

- public - - - - - - normalizeRanged(pVal: number, pMin: number, pMax: number): number - - - - source - -

- - - - -

Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValnumber

The value to normalize.

-
pMinnumber

The minimum value for normalization.

-
pMaxnumber

The maximum value for normalization.

-
-
-
- -
-

Return:

- - - - - - - -
number

The normalized and clamped value between -1 and 1 based on the input value's -position between the minimum and maximum values. If the difference between pMax and pMin is 0, -returns 1 to avoid dividing by zero.

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

- public - - - - - - pick(pArray: Array): * - - - - source - -

- - - - -

Returns a random element from the given array.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pArrayArray

The input array.

-
-
-
- -
-

Return:

- - - - - - - -
*

A random element from the array.

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

- public - - - - - - prob(pChance: number): boolean - - - - source - -

- - - - -

Returns true with probability proportional to the given number. -The higher the number, the higher the chance of returning true.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pChancenumber

The probability value, between 0 and 100 (inclusive).

-
-
-
- -
-

Return:

- - - - - - - -
boolean

Returns true or false, based on the probability value.

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

- public - - - - - - rand(pNum1: number, pNum2: number): number - - - - source - -

- - - - -

Generates a random decimal number between two numbers with a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNum1number

The first number to use for generating the random decimal number.

-
pNum2number

The second number to use for generating the random decimal number.

-
-
-
- -
-

Return:

- - - - - - - -
number

A random decimal number between the two numbers with the specified number of decimal places.

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

- public - - - - - - removeProperties(pObject: object, pExclude: Array) - - - - source - -

- - - - -

Removes properties from an object except those listed in the exclude array.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pObjectobject

The object to remove properties from.

-
pExcludeArray

The array of property names to exclude from removal.

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

- public - - - - - - rgbToDecimal(pR: number, pG: number, pB: number): * - - - - source - -

- - - - -

Converts RGB color values to a decimal value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRnumber

The red component of the RGB color value (0-255).

-
pGnumber

The green component of the RGB color value (0-255).

-
pBnumber

The blue component of the RGB color value (0-255).

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - rgbToHex(pR: number, pG: number, pB: number): * - - - - source - -

- - - - -

Converts an RGB color value to a hexadecimal color value.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pRnumber

The red component of the RGB color value (0-255).

-
pGnumber

The green component of the RGB color value (0-255).

-
pBnumber

The blue component of the RGB color value (0-255).

-
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - round(pNumber: number, pPlace: number): number - - - - source - -

- - - - -

Rounds a number to a specified number of decimal places.

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pNumbernumber

The number to round.

-
pPlacenumber
  • optional
  • -
  • default: 1

The number of decimal places to round to. Defaults to 1 if not provided.

-
-
-
- -
-

Return:

- - - - - - - -
number

The rounded number to the specified number of decimal places.

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

- public - - - - - - toDegrees(pRadians: number): number - - - - source - -

- - - - -

Converts radians to degrees.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pRadiansnumber

The angle in radians.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle in degrees.

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

- public - - - - - - toRadians(pDegrees: number): number - - - - source - -

- - - - -

Converts degrees to radians.

-
- - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
pDegreesnumber

The angle in degrees.

-
-
-
- -
-

Return:

- - - - - - - -
number

The angle in radians.

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

- public - - - - - - transitionColor(pInstance: Object, pStartColor: string | number, pEndColor: string | number, pDuration: number, pIterativeCallback: Function, pEndCallback: Function): * - - - - source - -

- - - - -

Transition a color to another color in pDuration time.

-
- - - -
-

Params:

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

The instance to transition it's color property. -pInstance's color will be transitioned either via pInstance.color = newColor -or -pInstance.color.tint = newColor (if the color is defined as an object)

-
pStartColorstring | number

The start color

-
pEndColorstring | number

The end color

-
pDurationnumber

The duration of the transition

-
pIterativeCallbackFunction

Callback to call every tick of the transition

-
pEndCallbackFunction

Callback to call at the end of the transition

-
-
-
- -
-

Return:

- - - - - - - -
*

An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.

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

- public - - - - - - within(pVal: number, pMin: number, pMax: number): boolean - - - - source - -

- - - - -

Checks if a value is within a range of minimum and maximum values (inclusive).

-
- - - -
-

Params:

- - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
pValnumber

The value to check.

-
pMinnumber

The minimum value of the range to check against.

-
pMaxnumber

The maximum value of the range to check against.

-
-
-
- -
-

Return:

- - - - - - - -
boolean

True if the value is within the range (inclusive), false otherwise.

-
-
-
-
- - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - diff --git a/docs/class/src/vendor/logger.min.mjs~Logger.html b/docs/class/src/vendor/logger.min.mjs~Logger.html deleted file mode 100644 index 8a6e5f6..0000000 --- a/docs/class/src/vendor/logger.min.mjs~Logger.html +++ /dev/null @@ -1,2255 +0,0 @@ - - - - - - Logger | Utils - - - - - - - -
- - - Reference - Source - - -
- - - -
-
import {Logger} from 'utils/src/vendor/logger.min.mjs'
- public - class - - | version 1.0.0 - - | source -
- -
-

Logger

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

Constructor Summary

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

- - - - constructor() -

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

Member Summary

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

- - - - BG_COLORS: {} -

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

- - - - currentType: string -

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

Method Summary

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

- - - - assert(s: ...*) -

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

- - - - clear() -

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

- - - - count(s: *) -

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

- - - - countReset(s: *) -

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

- - - - debug(s: ...*) -

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

- - - - error(s: ...*) -

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

- - - - group(s: *) -

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

- - - - groupCollapsed(s: *) -

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

- - - - groupEnd() -

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

- - - - info(s: ...*) -

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

- - - - log(s: ...*) -

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

- - - - message(t: string, e: ...*) -

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

- - - - prefix(s: *): * -

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

- - - - registerType(s: *, t: *) -

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

- - - - registerTypes(t: *) -

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

- - - - table(s: *, t: *) -

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

- - - - time(s: *) -

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

- - - - timeEnd(s: *) -

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

- - - - timeLog(s: *) -

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

- - - - trace(s: ...*) -

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

- - - - unregisterType(s: *) -

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

- - - - warn(s: ...*) -

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

Public Constructors

- -
-

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

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

Public Members

- -
-

- public - - - - - - BG_COLORS: {} - - - - source - -

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

- public - - - - - - currentType: string - - - - source - -

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

Public Methods

- -
-

- public - - - - - - assert(s: ...*) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s...*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - clear() - - - - source - -

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

- public - - - - - - count(s: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - countReset(s: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - debug(s: ...*) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s...*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - error(s: ...*) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s...*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - group(s: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - groupCollapsed(s: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - groupEnd() - - - - source - -

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

- public - - - - - - info(s: ...*) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s...*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - log(s: ...*) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s...*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - message(t: string, e: ...*) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
tstring
  • optional
  • -
  • default: log
e...*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - prefix(s: *): * - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- -
-

Return:

- - - - - - - -
*
-
-
-
- - - - - - - - - - - - - - - -
-
-

- public - - - - - - registerType(s: *, t: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
t*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - registerTypes(t: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
t*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - table(s: *, t: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
t*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - time(s: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - timeEnd(s: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - timeLog(s: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - trace(s: ...*) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s...*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - unregisterType(s: *) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s*
-
-
- - - - - - - - - - - - - - - - - -
-
-

- public - - - - - - warn(s: ...*) - - - - source - -

- - - - - - - - -
-

Params:

- - - - - - - - - - - - - -
NameTypeAttributeDescription
s...*
-
-
- - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - - - 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/eutils.js.html b/docs/file/src/eutils.js.html deleted file mode 100644 index b9db724..0000000 --- a/docs/file/src/eutils.js.html +++ /dev/null @@ -1,631 +0,0 @@ - - - - - - src/eutils.js | EUtils - - - - - - - -
- - - Reference - Source - - -
- - - -

src/eutils.js

-

-/**
-* A utilities class
-* @class EUtilsSingleton
-* @license EUtils does not have a license at this time. For licensing contact the author
-* @author https://github.com/doubleactii
-* Copyright (c) 2023 Evitca Studio
-*/
-class EUtilsSingleton {
-	/**
-	 * The version of the library
-	 */
-	static version = '1.0.0';
-	constructor() {
-		/**
-		 * Object storing all color objects being transitioned at the moment
-		 * 
-		 * @type {Object}
-		 */
-		this.transitions = {};
-		/**
-		 * An array storing all the reserved unique IDS
-		 * 
-		 * @type {Array}
-		 */
-		this.storedIDs = [];
-	}
-	/**
-	 * Generates a random decimal number between two numbers with a specified number of decimal places.
-	 * 
-	 * @param {number} pNum1 - The first number to use for generating the random decimal number.
-	 * @param {number} pNum2 - The second number to use for generating the random decimal number.
-	 * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.
-	 * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.
-	 */
-	decimalRand(pNum1, pNum2, pPlaces = 1) {
-		const result = Number((Math.random() * (pNum1 - pNum2) + pNum2).toFixed(pPlaces));
-		return (result >= 1 ? Math.floor(result) : result);
-	}
-	/**
-	 * Generates a random decimal number between two numbers with a specified number of decimal places.
-	 * 
-	 * @param {number} pNum1 - The first number to use for generating the random decimal number.
-	 * @param {number} pNum2 - The second number to use for generating the random decimal number.
-	 * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.
-	 */
-	rand(pNum1, pNum2) {
-		const result = Number((Math.random() * (pNum1 - pNum2) + pNum2));
-		return Math.round(result);
-	}
-	/**
-	 * Calculates the percentage of a value relative to a total value.
-	 * 
-	 * @param {number} pValue - The value to calculate the percentage of.
-	 * @param {number} pTotalValue - The total value to calculate the percentage relative to.
-	 * @returns {number} The percentage of the value relative to the total value.
-	 */
-	getPercentage(pValue, pTotalValue) {
-		return (100 * pValue) / pTotalValue;
-	}
-	/**
-	 * Clamps a number between a minimum and maximum value.
-	 * 
-	 * @param {number} pNumber - The number to clamp.
-	 * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.
-	 * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.
-	 * @returns {number} The clamped number between the minimum and maximum values.
-	 */
-	clamp(pNumber, pMin = 0, pMax = 1) {
-		return Math.max(pMin, Math.min(pNumber, pMax));
-	}
-	/**
-	 * Linearly interpolates between two values by a specified amount.
-	 * 
-	 * @param {number} pStart - The start value to interpolate from.
-	 * @param {number} pEnd - The end value to interpolate to.
-	 * @param {number} pAmount - The amount to interpolate between the start and end values.
-	 * @returns {number} The interpolated value between the start and end values based on the specified amount.
-	 */
-	lerp(pStart, pEnd, pAmount) {
-		return (1-pAmount)*pStart+pAmount*pEnd;
-	}
-	/**
-	 * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.
-	 * 
-	 * @param {number} pStart - The start value to interpolate from.
-	 * @param {number} pEnd - The end value to interpolate to.
-	 * @param {number} pAmount - The amount to interpolate between the start and end values.
-	 * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.
-	 */
-	flooredLerp(pStart, pEnd, pAmount) {
-		return Math.floor(this.lerp(pStart, pEnd, pAmount));
-	}
-	/**
-	 * Rounds a number to a specified number of decimal places.
-	 * 
-	 * @param {number} pNumber - The number to round.
-	 * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.
-	 * @returns {number} The rounded number to the specified number of decimal places.
-	 */
-	round(pNumber, pPlace=1) {
-		return Math.round(pPlace * pNumber) / pPlace;
-	}
-	/**
-	 * Normalizes a value between a minimum and maximum value.
-	 * 
-	 * @param {number} pVal - The value to normalize.
-	 * @param {number} pMin - The minimum value for normalization.
-	 * @param {number} pMax - The maximum value for normalization.
-	 * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.
-	 * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.
-	 */
-	normalize(pVal, pMin, pMax) {
-		if (pMax - pMin === 0) return 1;
-		return (pVal - pMin) / (pMax - pMin);
-	}
-	/**
-	 * Checks if a value is within a range of minimum and maximum values (inclusive).
-	 * 
-	 * @param {number} pVal - The value to check.
-	 * @param {number} pMin - The minimum value of the range to check against.
-	 * @param {number} pMax - The maximum value of the range to check against.
-	 * @returns {boolean} True if the value is within the range (inclusive), false otherwise.
-	 */
-	within(pVal, pMin, pMax) {
-		return pVal >= pMin && pVal <= pMax;
-	}
-	/**
-	 * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.
-	 * 
-	 * @param {number} pNum - The number to format.
-	 * @returns {string} A string representation of the formatted number.
-	 */
-	formatIntegerWithCommas(pNum) {
-		return pNum.toFixed().toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');
-	}
-	/**
-	 * Converts degrees to radians.
-	 * 
-	 * @param {number} pDegrees - The angle in degrees.
-	 * @returns {number} The angle in radians.
-	 */
-	degreesToRadians(pDegrees) {
-		return pDegrees * (Math.PI / 180);
-	}
-	/**
-	 * Converts radians to degrees.
-	 * 
-	 * @param {number} pRadians - The angle in radians.
-	 * @returns {number} The angle in degrees.
-	 */
-	radiansToDegrees(pRadians) {
-		return pRadians * (180 / Math.PI);
-	}
-	/**
-	 * Returns a random element from the given array.
-	 * 
-	 * @param {Array} pArray - The input array.
-	 * @returns {*} A random element from the array.
-	 */
-	pick(pArray) {
-		const randomIndex = Math.floor(Math.random() * pArray.length);
-		return pArray[randomIndex];
-	}
-	/**
-	 * Removes properties from an object except those listed in the exclude array.
-	 * 
-	 * @param {object} pObject - The object to remove properties from.
-	 * @param {Array} pExclude - The array of property names to exclude from removal.
-	*/
-	removeProperties(pObject, pExclude) {
-		if (typeof(pObject) === 'object') {
-			for (const prop in pObject) {
-				// Do not reset these properties.
-				if (Array.isArray(pExclude) && pExclude.includes(prop)) continue;
-				if (pObject.hasOwnProperty(prop)) {
-					delete pObject[prop];
-				}
-			}
-		}	
-	}
-	/**
-	 * Returns true with probability proportional to the given number.
-	 * The higher the number, the higher the chance of returning true.
-	 * 
-	 * @param {number} pChance - The probability value, between 0 and 100 (inclusive).
-	 * @returns {boolean} - Returns true or false, based on the probability value.
-	 */
-	prob(pChance) {
-		if (pChance <= 0) {
-			return false;
-		}
-		if (pChance >= 100) {
-			return true;
-		}
-		const randomNumber = Math.floor(Math.random() * 100) + 1;
-		return randomNumber <= pChance;
-	}
-	/**
-	 * Gets the inverse direction of the direction passed
-	 * 
-	 * @param {string} pDir - The direction to get the inverse of.
-	 * @returns {string} The inverse direction
-	 */
-	getInverseDir(pDir) {
-		switch (pDir) {
-			case 'north':
-				return 'south';
-			case 'south':
-				return 'north';
-			case 'east':
-				return 'west';
-			case 'west':
-				return 'east';
-			case 'northeast':
-				return 'southwest';
-			case 'northwest':
-				return 'southeast';
-			case 'southeast':
-				return 'northwest';
-			case 'southwest':
-				return 'northeast';
-			default:
-				console.error(`The direction ${pDir} is not supported.`);
-		}
-	}
-	/**
-	 * Calculates the angle (in radians) from a given direction.
-	 * 
-	 * @param {string} pDir - The direction to calculate the angle from.
-	 * @returns {number} The angle (in radians) associated with the given direction.
-	 * @throws {Error} Throws an error if the direction is not recognized.
-	 */
-	getAngleFromDir(pDir) {
-		switch (pDir) {
-			case 'north':
-				return (Math.PI / 2);
-			case 'south':
-				return (Math.PI * 3) / 2;
-			case 'east':
-				return (Math.PI * 2);
-			case 'west':
-				return Math.PI;
-			case 'northwest':
-				return (Math.PI * 3) / 4;
-			case 'northeast':
-				return Math.PI / 4;
-			case 'southwest':
-				return (Math.PI * 5) / 4;
-			case 'southeast':
-				return (Math.PI * 7) / 4;
-			default:
-				console.error(`The direction ${pDir} is not supported.`);
-		}
-	}
-	/**
-	 * Generates a unique id
-	 * 
-	 * @param {string} pIDLength - The length of the ID to create 
-	 * @returns A unique ID
-	 */
-	generateID(pIDLength = 7) {
-		const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
-		const makeID = function() {
-			let ID = '';
-			for (let i = 0; i < pIDLength; i++) {
-				ID += chars.charAt(Math.floor(Math.random() * chars.length));
-			}
-			return ID;
-		}
-		let ID = makeID();
-		while(this.storedIDs.includes(ID)) {
-			ID = makeID();
-		}
-		this.storedIDs.push(ID);
-		return ID;
-	}
-	/**
-	 * Converts a color in decimal format into hex format
-	 * 
-	 * @param {number} pDecimal - The color in decimal format
-	 * @param {number} pChars - The length to make the hex string
-	 * @returns The decimal color converted into hex format
-	 */
-	decimalToHex(pDecimal, pChars = 6) {
-		return '#' + (pDecimal + Math.pow(16, pChars)).toString(16).slice(-pChars).toUpperCase();
-	}
-	/**
-	 * Add intensity to this color to get a brighter or dimmer effect
-	 * 
-	 * @param {string|number} pColor - Color in hex format or decimal format
-	 * @param {number} pPercent - The percent of brightness to add to this color
-	 * @returns 
-	 */
-	addIntensity(pColor, pPercent) {
-		const rgb = this.grabColor(pColor).rgbArray;
-		const r = rgb[0];
-		const g = rgb[1];
-		const b = rgb[2];
-		let rr = 0;
-		let rg = 0;
-		let rb = 0;
-		const black = (r === 0 && g === 0 && b === 0) ? true : false;
-		if (r || black) rr = r + Math.floor((255 * pPercent) / 100);
-		if (g || black) rg = g + Math.floor((255 * pPercent) / 100);
-		if (b || black) rb = b + Math.floor((255 * pPercent) / 100);
-		return this.grabColor(this.clamp(rr, 0, 255), this.clamp(rg, 0, 255), this.clamp(rb, 0, 255)).hex
-	}
-	/**
-	 * Converts an RGB color value to a hexadecimal color value.
-	 * 
-	 * @param {number} pR - The red component of the RGB color value (0-255).
-	 * @param {number} pG - The green component of the RGB color value (0-255).
-	 * @param {number} pB - The blue component of the RGB color value (0-255).
-	*/
-	rgbToHex(pR, pG, pB) {
-		const r = this.clamp(pR, 0, 255);
-		const g = this.clamp(pG, 0, 255);
-		const b = this.clamp(pB, 0, 255);
-		const craftString = function(pColor) {
-			return pColor.toString(16).padStart(2, '0');
-		}
-		const hex = '#' + [r, g, b].map(craftString).join('');
-		return hex;		
-	}
-	/**
-	 * Converts a hexadecimal color value to an RGB color value.
-	 * 
-	 * @param {string} pHex - The hexadecimal color value to convert (e.g. "#FF0000" for red).
-	 * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.
-	*/
-	hexToRgb(pHex) {
-		pHex = pHex.replace('#', '');
-		if (pHex.length === 3) {
-			pHex = pHex.replace(new RegExp('(.)', 'g'), '$1$1');
-		}
-		pHex = pHex.match(new RegExp('..', 'g'));
-		const r = this.clamp(parseInt(pHex[0], 16), 0, 255);
-		const g = this.clamp(parseInt(pHex[1], 16), 0, 255);
-		const b = this.clamp(parseInt(pHex[2], 16), 0, 255);
-		return [r, g, b];
-	}
-	/**
-	 * Converts RGB color values to a decimal value.
-	 * 
-	 * @param {number} pR - The red component of the RGB color value (0-255).
-	 * @param {number} pG - The green component of the RGB color value (0-255).
-	 * @param {number} pB - The blue component of the RGB color value (0-255).
-	*/
-	rgbToDecimal(pR, pG, pB) {
-		return (pR << 16 | pG << 8 | pB);
-	}
-	/**
-	 * Converts a hexadecimal color value to a decimal value.
-	 * 
-	 * @param {string} pHex - The hexadecimal color value to convert (e.g. "#FF0000" for red).
-	 * @returns {number} - The decimal representation of the hexadecimal color value.
-	*/
-	hexToDecimal(pHex) {
-		pHex = pHex.replace('#', '');
-		return parseInt(pHex, 16);
-	}
-	/**
-	 * Convert a color to different formats or get a random color
-	 * 
-	 * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)
-	 * A color formatted in the decimal format. Or the r value of a rgb color.
-	 * @param {number} [g] g value of a rgb color
-	 * @param {number} [b] b value of a rgb color
-	 * @returns {ColorObject} A color object with various different export options.
-	 * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.
-	 */
-	grabColor(pSwitch = this.getRandomColor(), pG, pB) {
-		let hex, rgb;
-		// Convert rgb to hex
-		if (typeof(pSwitch) === 'number' && typeof(pG) === 'number' && typeof(pB) === 'number') {
-			hex = this.rgbToHex(pSwitch, pG, pB);
-		} else {
-			// Convert decimal to hex
-			if (typeof(pSwitch) === 'number') {
-				pSwitch = this.decimalToHex(pSwitch);
-			}
-			hex = pSwitch;
-			// Convert hex to rgb
-			rgb = this.hexToRgb(hex);
-		}
-		return { 
-			'hex': hex.toLowerCase(), 
-			'hexTagless': hex.replace('#', '').toLowerCase(), 
-			'rgb': 'rgb('+rgb[0]+','+rgb[1]+','+rgb[2]+')', 
-			'rgbArray': rgb, 
-			'rgbObject': { 'r': rgb[0], 'g': rgb[1], 'b': rgb[2] }, 
-			'rgbNormal': [Math.round(rgb[0]/255 * 100) / 100, Math.round(rgb[1]/255 * 100) / 100, Math.round(rgb[2]/255 * 100) / 100], 
-			'decimal': this.hexToDecimal(hex) 
-		};
-	}
-	/**
-	 * Gets a random color
-	 * 
-	 * @returns {string} A random color in the hex format
-	 */
-	getRandomColor() {
-		const chars = '0123456789ABCDEF';
-		let color = '#';
-		for (let i = 0; i < 6; i++) {
-			color += chars[Math.floor(Math.random() * 16)];
-		}
-		return color;
-	}
-	/**
-	 * Gets a random color between two colors
-	 * 
-	 * @param {number|string} pColor1 - The first color to get a color between
-	 * @param {number|string} pColor2 - The second color to get a color between
-	 * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1
-	 * 0 to 0.5 (closer to pColor1)
-	 * 0.5 to 1 (closer to pColor2)
-	 * @returns {string} A random color in the decimal format
-	 */
-	getRandomColorBetween(pColor1, pColor2, pAmount = 0.5) {
-		// u is the amount of the lerp 0-1
-		return this.flooredLerp(this.grabColor(pColor1).decimal, this.grabColor(pColor2).decimal, pAmount);
-	}
-	/**
-	 * Transition a color to another color in pDuration time.
-	 * 
-	 * @param {Object} pInstance - The instance to transition it's color property.
-	 * pInstance's color will be transitioned either via pInstance.color = newColor
-	 * or
-	 * pInstance.color.tint = newColor (if the color is defined as an object)
-	 * @param {string|number} pStartColor - The start color
-	 * @param {string|number} pEndColor - The end color
-	 * @param {number} pDuration - The duration of the transition
-	 * @param {Function} pIterativeCallback - Callback to call every tick of the transition
-	 * @param {Function} pEndCallback - Callback to call at the end of the transition
-	 * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.
-	 */
-	transitionColor(pInstance, pStartColor='#000', pEndColor='#fff', pDuration=1000, pIterativeCallback, pEndCallback) {
-		// Cannot use this API on the server
-		if (!globalThis.window) return;
-		const iterativeCallback = typeof(pIterativeCallback) === 'function' ? pIterativeCallback : null;
-		const endCallback = typeof(pEndCallback) === 'function' ? pEndCallback : null;
-		let id;
-		let isParticle;
-		let isTintObject;
-
-		if (pInstance) {
-			id = pInstance.id ? pInstance.id : this.generateID();
-			isParticle = (pInstance.type === 'GeneratedParticle');
-			isTintObject = (typeof(pInstance.color) === 'object' && pInstance.color.constructor === Object ? true : false);
-			if (this.transitions[id]) this.cancelTransitionColor(id);
-		} else {
-			id = this.generateID();
-		}
-			
-		this.transitions[id] = {
-			'duration': pDuration,
-			'timeTracker': isParticle ? pInstance.info.lifetime : 0
-		};
-
-		const rgbStartColor = this.grabColor(pStartColor).rgbArray;
-		const rgbEndColor = this.grabColor(pEndColor).rgbArray;
-
-		const self = this;
-		this.transitions[id].step = (pTimeStamp) => {
-			if (self.transitions[id]) {
-				if (isParticle) {
-					if (pInstance.info) {
-						if (pInstance.info.owner) {
-							if (pInstance.info.owner.settings.paused) {
-								return;
-							}
-						}
-					} else {
-						if (self.transitions[id]) this.cancelTransitionColor(id);
-						return;				
-					}
-				}
-
-				const now = pTimeStamp;
-				if (!self.transitions[id].lastTime) self.transitions[id].lastTime = now;
-				const elapsed = now - self.transitions[id].lastTime;
-				// Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)
-				self.transitions[id].timeTracker += elapsed;
-				// The max value of percentage is 1, so we clamp it at 1
-				const percentage = Math.min(self.transitions[id].timeTracker / self.transitions[id].duration, 1);
-				
-				const r = parseInt(self.lerp(rgbStartColor[0], rgbEndColor[0], percentage), 10);
-				const g = parseInt(self.lerp(rgbStartColor[1], rgbEndColor[1], percentage), 10);
-				const b = parseInt(self.lerp(rgbStartColor[2], rgbEndColor[2], percentage), 10);
-				const color = self.grabColor(r, g, b);
-
-				if (iterativeCallback) iterativeCallback(color);
-
-				if (pInstance) {
-					if (isTintObject) {
-						pInstance.color.tint = color.decimal;
-						pInstance.color = pInstance.color;
-					} else {
-						pInstance.color = color.hex;
-					}
-				}
-
-				if (percentage >= 1 || self.transitions[id].timeTracker >= pDuration) {
-					if (self.transitions[id]) this.cancelTransitionColor(id);
-					if (endCallback) endCallback(color);
-					return;
-				}
-				self.transitions[id].req = globalThis.requestAnimationFrame(self.transitions[id].step);
-				self.transitions[id].lastTime = now;
-			}
-		}
-
-		this.transitions[id].req = globalThis.requestAnimationFrame(this.transitions[id].step);
-		return id;
-	}
-	/**
-	 * Cancels an ongoing transition
-	 * 
-	 * @param {string} pID - The ID of the ongoing transition to cancel
-	 */
-	cancelTransitionColor(pID) {
-		if (this.transitions[pID]) {
-			globalThis.cancelAnimationFrame(this.transitions[pID].req);
-			delete this.transitions[pID];
-		}
-	}
-	/**
-	 * Calculates the position of a point after rotating it around a center point by a given angle.
-	 * 
-	 * @param {object} pRect - The rectangle object to rotate the point around.
-	 * pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.
-	 * @param {number} pTheta - The angle (in radians) to rotate the point by.
-	 * @param {object} pPoint - The point object to rotate around the center of the rectangle.
-	 * @param {number} pPoint.x - The x-coordinate of the point to rotate.
-	 * @param {number} pPoint.y - The y-coordinate of the point to rotate.
-	 * @returns {object} An object with the rotated point's new x and y coordinates.
-	 */
-	getPointRotated(pRect, pTheta, pPoint) {
-		// cx, cy - center of square coordinates
-		// x, y - coordinates of a corner point of the square
-		// theta is the angle of rotation
-		const cx = pRect.x + pRect.width * (typeof(pRect.anchor) === 'object' && pRect.anchor.x ? pRect.anchor.x : 0.5);
-		const cy = pRect.y + pRect.height * (typeof(pRect.anchor) === 'object' && pRect.anchor.y ? pRect.anchor.y : 0.5);
-
-		// translate point to origin
-		const tempX = pPoint.x - cx;
-		const tempY = pPoint.y - cy;
-
-		// now apply rotation
-		const rotatedX = tempX*Math.cos(pTheta) - tempY*(-Math.sin(pTheta));
-		const rotatedY = tempX*(-Math.sin(pTheta)) + tempY*Math.cos(pTheta);
-
-		// translate back
-		const x = rotatedX + cx;
-		const y = rotatedY + cy;
-		return { 'x': x, 'y': y };
-	}
-	/**
-	 * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.
-	 * 
-	 * @param {object} pRect - The rectangle object to rotate the point around.
-	 * pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.
-	 * @param {number} pTheta - The angle (in radians) to rotate the point by.
-	 * @returns {object} An object with the rotated rectangle's new corner points and center points.
-	 */
-	getPointsOfRotatedRect(pRect, pTheta) {
-		const tl = this.getPointRotated(pRect, pTheta, { 'x': pRect.x, 'y': pRect.y });
-		const tr = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width, 'y': pRect.y });
-		const bl = this.getPointRotated(pRect, pTheta, { 'x': pRect.x, 'y': pRect.y + pRect.height });
-		const br = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width, 'y': pRect.y + pRect.height });
-		const center = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width / 2, 'y': pRect.y + pRect.height / 2 });
-		return { 'tl': tl, 'tr': tr, 'bl': bl, 'br': br, 'center': center };
-	}
-}
-export const EUtils = new EUtilsSingleton();
-
- -
- - - - - - - - - - - - diff --git a/docs/file/src/eutils.mjs.html b/docs/file/src/eutils.mjs.html deleted file mode 100644 index 8fb5526..0000000 --- a/docs/file/src/eutils.mjs.html +++ /dev/null @@ -1,631 +0,0 @@ - - - - - - src/eutils.mjs | EUtils - - - - - - - -
- - - Reference - Source - - -
- - - -

src/eutils.mjs

-

-/**
-* A utilities class
-* @class EUtilsSingleton
-* @license EUtils does not have a license at this time. For licensing contact the author
-* @author https://github.com/doubleactii
-* Copyright (c) 2023 Evitca Studio
-*/
-class EUtilsSingleton {
-	/**
-	 * The version of the library
-	 */
-	static version = '1.0.0';
-	constructor() {
-		/**
-		 * Object storing all color objects being transitioned at the moment
-		 * 
-		 * @type {Object}
-		 */
-		this.transitions = {};
-		/**
-		 * An array storing all the reserved unique IDS
-		 * 
-		 * @type {Array}
-		 */
-		this.storedIDs = [];
-	}
-	/**
-	 * Generates a random decimal number between two numbers with a specified number of decimal places.
-	 * 
-	 * @param {number} pNum1 - The first number to use for generating the random decimal number.
-	 * @param {number} pNum2 - The second number to use for generating the random decimal number.
-	 * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.
-	 * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.
-	 */
-	decimalRand(pNum1, pNum2, pPlaces = 1) {
-		const result = Number((Math.random() * (pNum1 - pNum2) + pNum2).toFixed(pPlaces));
-		return (result >= 1 ? Math.floor(result) : result);
-	}
-	/**
-	 * Generates a random decimal number between two numbers with a specified number of decimal places.
-	 * 
-	 * @param {number} pNum1 - The first number to use for generating the random decimal number.
-	 * @param {number} pNum2 - The second number to use for generating the random decimal number.
-	 * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.
-	 */
-	rand(pNum1, pNum2) {
-		const result = Number((Math.random() * (pNum1 - pNum2) + pNum2));
-		return Math.round(result);
-	}
-	/**
-	 * Calculates the percentage of a value relative to a total value.
-	 * 
-	 * @param {number} pValue - The value to calculate the percentage of.
-	 * @param {number} pTotalValue - The total value to calculate the percentage relative to.
-	 * @returns {number} The percentage of the value relative to the total value.
-	 */
-	getPercentage(pValue, pTotalValue) {
-		return (100 * pValue) / pTotalValue;
-	}
-	/**
-	 * Clamps a number between a minimum and maximum value.
-	 * 
-	 * @param {number} pNumber - The number to clamp.
-	 * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.
-	 * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.
-	 * @returns {number} The clamped number between the minimum and maximum values.
-	 */
-	clamp(pNumber, pMin = 0, pMax = 1) {
-		return Math.max(pMin, Math.min(pNumber, pMax));
-	}
-	/**
-	 * Linearly interpolates between two values by a specified amount.
-	 * 
-	 * @param {number} pStart - The start value to interpolate from.
-	 * @param {number} pEnd - The end value to interpolate to.
-	 * @param {number} pAmount - The amount to interpolate between the start and end values.
-	 * @returns {number} The interpolated value between the start and end values based on the specified amount.
-	 */
-	lerp(pStart, pEnd, pAmount) {
-		return (1-pAmount)*pStart+pAmount*pEnd;
-	}
-	/**
-	 * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.
-	 * 
-	 * @param {number} pStart - The start value to interpolate from.
-	 * @param {number} pEnd - The end value to interpolate to.
-	 * @param {number} pAmount - The amount to interpolate between the start and end values.
-	 * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.
-	 */
-	flooredLerp(pStart, pEnd, pAmount) {
-		return Math.floor(this.lerp(pStart, pEnd, pAmount));
-	}
-	/**
-	 * Rounds a number to a specified number of decimal places.
-	 * 
-	 * @param {number} pNumber - The number to round.
-	 * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.
-	 * @returns {number} The rounded number to the specified number of decimal places.
-	 */
-	round(pNumber, pPlace=1) {
-		return Math.round(pPlace * pNumber) / pPlace;
-	}
-	/**
-	 * Normalizes a value between a minimum and maximum value.
-	 * 
-	 * @param {number} pVal - The value to normalize.
-	 * @param {number} pMin - The minimum value for normalization.
-	 * @param {number} pMax - The maximum value for normalization.
-	 * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.
-	 * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.
-	 */
-	normalize(pVal, pMin, pMax) {
-		if (pMax - pMin === 0) return 1;
-		return (pVal - pMin) / (pMax - pMin);
-	}
-	/**
-	 * Checks if a value is within a range of minimum and maximum values (inclusive).
-	 * 
-	 * @param {number} pVal - The value to check.
-	 * @param {number} pMin - The minimum value of the range to check against.
-	 * @param {number} pMax - The maximum value of the range to check against.
-	 * @returns {boolean} True if the value is within the range (inclusive), false otherwise.
-	 */
-	within(pVal, pMin, pMax) {
-		return pVal >= pMin && pVal <= pMax;
-	}
-	/**
-	 * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.
-	 * 
-	 * @param {number} pNum - The number to format.
-	 * @returns {string} A string representation of the formatted number.
-	 */
-	formatIntegerWithCommas(pNum) {
-		return pNum.toFixed().toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');
-	}
-	/**
-	 * Converts degrees to radians.
-	 * 
-	 * @param {number} pDegrees - The angle in degrees.
-	 * @returns {number} The angle in radians.
-	 */
-	degreesToRadians(pDegrees) {
-		return pDegrees * (Math.PI / 180);
-	}
-	/**
-	 * Converts radians to degrees.
-	 * 
-	 * @param {number} pRadians - The angle in radians.
-	 * @returns {number} The angle in degrees.
-	 */
-	radiansToDegrees(pRadians) {
-		return pRadians * (180 / Math.PI);
-	}
-	/**
-	 * Returns a random element from the given array.
-	 * 
-	 * @param {Array} pArray - The input array.
-	 * @returns {*} A random element from the array.
-	 */
-	pick(pArray) {
-		const randomIndex = Math.floor(Math.random() * pArray.length);
-		return pArray[randomIndex];
-	}
-	/**
-	 * Removes properties from an object except those listed in the exclude array.
-	 * 
-	 * @param {object} pObject - The object to remove properties from.
-	 * @param {Array} pExclude - The array of property names to exclude from removal.
-	*/
-	removeProperties(pObject, pExclude) {
-		if (typeof(pObject) === 'object') {
-			for (const prop in pObject) {
-				// Do not reset these properties.
-				if (Array.isArray(pExclude) && pExclude.includes(prop)) continue;
-				if (pObject.hasOwnProperty(prop)) {
-					delete pObject[prop];
-				}
-			}
-		}	
-	}
-	/**
-	 * Returns true with probability proportional to the given number.
-	 * The higher the number, the higher the chance of returning true.
-	 * 
-	 * @param {number} pChance - The probability value, between 0 and 100 (inclusive).
-	 * @returns {boolean} - Returns true or false, based on the probability value.
-	 */
-	prob(pChance) {
-		if (pChance <= 0) {
-			return false;
-		}
-		if (pChance >= 100) {
-			return true;
-		}
-		const randomNumber = Math.floor(Math.random() * 100) + 1;
-		return randomNumber <= pChance;
-	}
-	/**
-	 * Gets the inverse direction of the direction passed
-	 * 
-	 * @param {string} pDir - The direction to get the inverse of.
-	 * @returns {string} The inverse direction
-	 */
-	getInverseDir(pDir) {
-		switch (pDir) {
-			case 'north':
-				return 'south';
-			case 'south':
-				return 'north';
-			case 'east':
-				return 'west';
-			case 'west':
-				return 'east';
-			case 'northeast':
-				return 'southwest';
-			case 'northwest':
-				return 'southeast';
-			case 'southeast':
-				return 'northwest';
-			case 'southwest':
-				return 'northeast';
-			default:
-				console.error(`The direction ${pDir} is not supported.`);
-		}
-	}
-	/**
-	 * Calculates the angle (in radians) from a given direction.
-	 * 
-	 * @param {string} pDir - The direction to calculate the angle from.
-	 * @returns {number} The angle (in radians) associated with the given direction.
-	 * @throws {Error} Throws an error if the direction is not recognized.
-	 */
-	getAngleFromDir(pDir) {
-		switch (pDir) {
-			case 'north':
-				return (Math.PI / 2);
-			case 'south':
-				return (Math.PI * 3) / 2;
-			case 'east':
-				return (Math.PI * 2);
-			case 'west':
-				return Math.PI;
-			case 'northwest':
-				return (Math.PI * 3) / 4;
-			case 'northeast':
-				return Math.PI / 4;
-			case 'southwest':
-				return (Math.PI * 5) / 4;
-			case 'southeast':
-				return (Math.PI * 7) / 4;
-			default:
-				console.error(`The direction ${pDir} is not supported.`);
-		}
-	}
-	/**
-	 * Generates a unique id
-	 * 
-	 * @param {string} pIDLength - The length of the ID to create 
-	 * @returns A unique ID
-	 */
-	generateID(pIDLength = 7) {
-		const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
-		const makeID = function() {
-			let ID = '';
-			for (let i = 0; i < pIDLength; i++) {
-				ID += chars.charAt(Math.floor(Math.random() * chars.length));
-			}
-			return ID;
-		}
-		let ID = makeID();
-		while(this.storedIDs.includes(ID)) {
-			ID = makeID();
-		}
-		this.storedIDs.push(ID);
-		return ID;
-	}
-	/**
-	 * Converts a color in decimal format into hex format
-	 * 
-	 * @param {number} pDecimal - The color in decimal format
-	 * @param {number} pChars - The length to make the hex string
-	 * @returns The decimal color converted into hex format
-	 */
-	decimalToHex(pDecimal, pChars = 6) {
-		return '#' + (pDecimal + Math.pow(16, pChars)).toString(16).slice(-pChars).toUpperCase();
-	}
-	/**
-	 * Add intensity to this color to get a brighter or dimmer effect
-	 * 
-	 * @param {string|number} pColor - Color in hex format or decimal format
-	 * @param {number} pPercent - The percent of brightness to add to this color
-	 * @returns 
-	 */
-	addIntensity(pColor, pPercent) {
-		const rgb = this.grabColor(pColor).rgbArray;
-		const r = rgb[0];
-		const g = rgb[1];
-		const b = rgb[2];
-		let rr = 0;
-		let rg = 0;
-		let rb = 0;
-		const black = (r === 0 && g === 0 && b === 0) ? true : false;
-		if (r || black) rr = r + Math.floor((255 * pPercent) / 100);
-		if (g || black) rg = g + Math.floor((255 * pPercent) / 100);
-		if (b || black) rb = b + Math.floor((255 * pPercent) / 100);
-		return this.grabColor(this.clamp(rr, 0, 255), this.clamp(rg, 0, 255), this.clamp(rb, 0, 255)).hex
-	}
-	/**
-	 * Converts an RGB color value to a hexadecimal color value.
-	 * 
-	 * @param {number} pR - The red component of the RGB color value (0-255).
-	 * @param {number} pG - The green component of the RGB color value (0-255).
-	 * @param {number} pB - The blue component of the RGB color value (0-255).
-	*/
-	rgbToHex(pR, pG, pB) {
-		const r = this.clamp(pR, 0, 255);
-		const g = this.clamp(pG, 0, 255);
-		const b = this.clamp(pB, 0, 255);
-		const craftString = function(pColor) {
-			return pColor.toString(16).padStart(2, '0');
-		}
-		const hex = '#' + [r, g, b].map(craftString).join('');
-		return hex;		
-	}
-	/**
-	 * Converts a hexadecimal color value to an RGB color value.
-	 * 
-	 * @param {string} pHex - The hexadecimal color value to convert (e.g. "#FF0000" for red).
-	 * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.
-	*/
-	hexToRgb(pHex) {
-		pHex = pHex.replace('#', '');
-		if (pHex.length === 3) {
-			pHex = pHex.replace(new RegExp('(.)', 'g'), '$1$1');
-		}
-		pHex = pHex.match(new RegExp('..', 'g'));
-		const r = this.clamp(parseInt(pHex[0], 16), 0, 255);
-		const g = this.clamp(parseInt(pHex[1], 16), 0, 255);
-		const b = this.clamp(parseInt(pHex[2], 16), 0, 255);
-		return [r, g, b];
-	}
-	/**
-	 * Converts RGB color values to a decimal value.
-	 * 
-	 * @param {number} pR - The red component of the RGB color value (0-255).
-	 * @param {number} pG - The green component of the RGB color value (0-255).
-	 * @param {number} pB - The blue component of the RGB color value (0-255).
-	*/
-	rgbToDecimal(pR, pG, pB) {
-		return (pR << 16 | pG << 8 | pB);
-	}
-	/**
-	 * Converts a hexadecimal color value to a decimal value.
-	 * 
-	 * @param {string} pHex - The hexadecimal color value to convert (e.g. "#FF0000" for red).
-	 * @returns {number} - The decimal representation of the hexadecimal color value.
-	*/
-	hexToDecimal(pHex) {
-		pHex = pHex.replace('#', '');
-		return parseInt(pHex, 16);
-	}
-	/**
-	 * Convert a color to different formats or get a random color
-	 * 
-	 * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)
-	 * A color formatted in the decimal format. Or the r value of a rgb color.
-	 * @param {number} [g] g value of a rgb color
-	 * @param {number} [b] b value of a rgb color
-	 * @returns {ColorObject} A color object with various different export options.
-	 * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.
-	 */
-	grabColor(pSwitch = this.getRandomColor(), pG, pB) {
-		let hex, rgb;
-		// Convert rgb to hex
-		if (typeof(pSwitch) === 'number' && typeof(pG) === 'number' && typeof(pB) === 'number') {
-			hex = this.rgbToHex(pSwitch, pG, pB);
-		} else {
-			// Convert decimal to hex
-			if (typeof(pSwitch) === 'number') {
-				pSwitch = this.decimalToHex(pSwitch);
-			}
-			hex = pSwitch;
-			// Convert hex to rgb
-			rgb = this.hexToRgb(hex);
-		}
-		return { 
-			'hex': hex.toLowerCase(), 
-			'hexTagless': hex.replace('#', '').toLowerCase(), 
-			'rgb': 'rgb('+rgb[0]+','+rgb[1]+','+rgb[2]+')', 
-			'rgbArray': rgb, 
-			'rgbObject': { 'r': rgb[0], 'g': rgb[1], 'b': rgb[2] }, 
-			'rgbNormal': [Math.round(rgb[0]/255 * 100) / 100, Math.round(rgb[1]/255 * 100) / 100, Math.round(rgb[2]/255 * 100) / 100], 
-			'decimal': this.hexToDecimal(hex) 
-		};
-	}
-	/**
-	 * Gets a random color
-	 * 
-	 * @returns {string} A random color in the hex format
-	 */
-	getRandomColor() {
-		const chars = '0123456789ABCDEF';
-		let color = '#';
-		for (let i = 0; i < 6; i++) {
-			color += chars[Math.floor(Math.random() * 16)];
-		}
-		return color;
-	}
-	/**
-	 * Gets a random color between two colors
-	 * 
-	 * @param {number|string} pColor1 - The first color to get a color between
-	 * @param {number|string} pColor2 - The second color to get a color between
-	 * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1
-	 * 0 to 0.5 (closer to pColor1)
-	 * 0.5 to 1 (closer to pColor2)
-	 * @returns {string} A random color in the decimal format
-	 */
-	getRandomColorBetween(pColor1, pColor2, pAmount = 0.5) {
-		// u is the amount of the lerp 0-1
-		return this.flooredLerp(this.grabColor(pColor1).decimal, this.grabColor(pColor2).decimal, pAmount);
-	}
-	/**
-	 * Transition a color to another color in pDuration time.
-	 * 
-	 * @param {Object} pInstance - The instance to transition it's color property.
-	 * pInstance's color will be transitioned either via pInstance.color = newColor
-	 * or
-	 * pInstance.color.tint = newColor (if the color is defined as an object)
-	 * @param {string|number} pStartColor - The start color
-	 * @param {string|number} pEndColor - The end color
-	 * @param {number} pDuration - The duration of the transition
-	 * @param {Function} pIterativeCallback - Callback to call every tick of the transition
-	 * @param {Function} pEndCallback - Callback to call at the end of the transition
-	 * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.
-	 */
-	transitionColor(pInstance, pStartColor='#000', pEndColor='#fff', pDuration=1000, pIterativeCallback, pEndCallback) {
-		// Cannot use this API on the server
-		if (!globalThis.window) return;
-		const iterativeCallback = typeof(pIterativeCallback) === 'function' ? pIterativeCallback : null;
-		const endCallback = typeof(pEndCallback) === 'function' ? pEndCallback : null;
-		let id;
-		let isParticle;
-		let isTintObject;
-
-		if (pInstance) {
-			id = pInstance.id ? pInstance.id : this.generateID();
-			isParticle = (pInstance.type === 'GeneratedParticle');
-			isTintObject = (typeof(pInstance.color) === 'object' && pInstance.color.constructor === Object ? true : false);
-			if (this.transitions[id]) this.cancelTransitionColor(id);
-		} else {
-			id = this.generateID();
-		}
-			
-		this.transitions[id] = {
-			'duration': pDuration,
-			'timeTracker': isParticle ? pInstance.info.lifetime : 0
-		};
-
-		const rgbStartColor = this.grabColor(pStartColor).rgbArray;
-		const rgbEndColor = this.grabColor(pEndColor).rgbArray;
-
-		const self = this;
-		this.transitions[id].step = (pTimeStamp) => {
-			if (self.transitions[id]) {
-				if (isParticle) {
-					if (pInstance.info) {
-						if (pInstance.info.owner) {
-							if (pInstance.info.owner.settings.paused) {
-								return;
-							}
-						}
-					} else {
-						if (self.transitions[id]) this.cancelTransitionColor(id);
-						return;				
-					}
-				}
-
-				const now = pTimeStamp;
-				if (!self.transitions[id].lastTime) self.transitions[id].lastTime = now;
-				const elapsed = now - self.transitions[id].lastTime;
-				// Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)
-				self.transitions[id].timeTracker += elapsed;
-				// The max value of percentage is 1, so we clamp it at 1
-				const percentage = Math.min(self.transitions[id].timeTracker / self.transitions[id].duration, 1);
-				
-				const r = parseInt(self.lerp(rgbStartColor[0], rgbEndColor[0], percentage), 10);
-				const g = parseInt(self.lerp(rgbStartColor[1], rgbEndColor[1], percentage), 10);
-				const b = parseInt(self.lerp(rgbStartColor[2], rgbEndColor[2], percentage), 10);
-				const color = self.grabColor(r, g, b);
-
-				if (iterativeCallback) iterativeCallback(color);
-
-				if (pInstance) {
-					if (isTintObject) {
-						pInstance.color.tint = color.decimal;
-						pInstance.color = pInstance.color;
-					} else {
-						pInstance.color = color.hex;
-					}
-				}
-
-				if (percentage >= 1 || self.transitions[id].timeTracker >= pDuration) {
-					if (self.transitions[id]) this.cancelTransitionColor(id);
-					if (endCallback) endCallback(color);
-					return;
-				}
-				self.transitions[id].req = globalThis.requestAnimationFrame(self.transitions[id].step);
-				self.transitions[id].lastTime = now;
-			}
-		}
-
-		this.transitions[id].req = globalThis.requestAnimationFrame(this.transitions[id].step);
-		return id;
-	}
-	/**
-	 * Cancels an ongoing transition
-	 * 
-	 * @param {string} pID - The ID of the ongoing transition to cancel
-	 */
-	cancelTransitionColor(pID) {
-		if (this.transitions[pID]) {
-			globalThis.cancelAnimationFrame(this.transitions[pID].req);
-			delete this.transitions[pID];
-		}
-	}
-	/**
-	 * Calculates the position of a point after rotating it around a center point by a given angle.
-	 * 
-	 * @param {object} pRect - The rectangle object to rotate the point around.
-	 * pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.
-	 * @param {number} pTheta - The angle (in radians) to rotate the point by.
-	 * @param {object} pPoint - The point object to rotate around the center of the rectangle.
-	 * @param {number} pPoint.x - The x-coordinate of the point to rotate.
-	 * @param {number} pPoint.y - The y-coordinate of the point to rotate.
-	 * @returns {object} An object with the rotated point's new x and y coordinates.
-	 */
-	getPointRotated(pRect, pTheta, pPoint) {
-		// cx, cy - center of square coordinates
-		// x, y - coordinates of a corner point of the square
-		// theta is the angle of rotation
-		const cx = pRect.x + pRect.width * (typeof(pRect.anchor) === 'object' && pRect.anchor.x ? pRect.anchor.x : 0.5);
-		const cy = pRect.y + pRect.height * (typeof(pRect.anchor) === 'object' && pRect.anchor.y ? pRect.anchor.y : 0.5);
-
-		// translate point to origin
-		const tempX = pPoint.x - cx;
-		const tempY = pPoint.y - cy;
-
-		// now apply rotation
-		const rotatedX = tempX*Math.cos(pTheta) - tempY*(-Math.sin(pTheta));
-		const rotatedY = tempX*(-Math.sin(pTheta)) + tempY*Math.cos(pTheta);
-
-		// translate back
-		const x = rotatedX + cx;
-		const y = rotatedY + cy;
-		return { 'x': x, 'y': y };
-	}
-	/**
-	 * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.
-	 * 
-	 * @param {object} pRect - The rectangle object to rotate the point around.
-	 * pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.
-	 * @param {number} pTheta - The angle (in radians) to rotate the point by.
-	 * @returns {object} An object with the rotated rectangle's new corner points and center points.
-	 */
-	getPointsOfRotatedRect(pRect, pTheta) {
-		const tl = this.getPointRotated(pRect, pTheta, { 'x': pRect.x, 'y': pRect.y });
-		const tr = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width, 'y': pRect.y });
-		const bl = this.getPointRotated(pRect, pTheta, { 'x': pRect.x, 'y': pRect.y + pRect.height });
-		const br = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width, 'y': pRect.y + pRect.height });
-		const center = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width / 2, 'y': pRect.y + pRect.height / 2 });
-		return { 'tl': tl, 'tr': tr, 'bl': bl, 'br': br, 'center': center };
-	}
-}
-export const EUtils = new EUtilsSingleton();
-
- -
- - - - - - - - - - - - diff --git a/docs/file/src/utils.mjs.html b/docs/file/src/utils.mjs.html deleted file mode 100644 index 2f35e1b..0000000 --- a/docs/file/src/utils.mjs.html +++ /dev/null @@ -1,858 +0,0 @@ - - - - - - src/utils.mjs | Utils - - - - - - - -
- - - Reference - Source - - -
- - - -

src/utils.mjs

-
import { Logger } from './vendor/logger.min.mjs';
-
-/**
-* A utilities class
-* @class UtilsSingleton
-* @license Utils is free software, available under the terms of a MIT style License.
-* @author https://github.com/doubleactii
-*/
-class UtilsSingleton {
-	/**
-	 * Object storing all color objects being transitioned at the moment
-	 * @private
-	 * @type {Object}
-	 */
-	transitions = {};
-	/**
-	 * An array storing all the reserved unique IDS
-	 * @private
-	 * @type {Array}
-	 */
-	storedIDs = [];
-	/**
-	 * The version of the module.
-	 */
-	version = "VERSION_REPLACE_ME";
-	constructor() {
-        // Create a logger
-        /** The logger module this module uses to log errors / logs
-         * @private
-         * @type {Object}
-         */
-        this.logger = new Logger();
-        this.logger.registerType('Utils-Module', '#ff6600');
-	}
-	/**
-	 * Generates a random decimal number between two numbers with a specified number of decimal places.
-	 * 
-	 * @param {number} pNum1 - The first number to use for generating the random decimal number.
-	 * @param {number} pNum2 - The second number to use for generating the random decimal number.
-	 * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.
-	 * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.
-	 */
-	decimalRand(pNum1, pNum2, pPlaces = 1) {
-		const result = Number((Math.random() * (pNum1 - pNum2) + pNum2).toFixed(pPlaces));
-		return (result >= 1 ? Math.floor(result) : result);
-	}
-	/**
-	 * Generates a random decimal number between two numbers with a specified number of decimal places.
-	 * 
-	 * @param {number} pNum1 - The first number to use for generating the random decimal number.
-	 * @param {number} pNum2 - The second number to use for generating the random decimal number.
-	 * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.
-	 */
-	rand(pNum1, pNum2) {
-		const result = Number((Math.random() * (pNum1 - pNum2) + pNum2));
-		return Math.round(result);
-	}
-	/**
-	 * Calculates the percentage of a value relative to a total value.
-	 * 
-	 * @param {number} pValue - The value to calculate the percentage of.
-	 * @param {number} pTotalValue - The total value to calculate the percentage relative to.
-	 * @returns {number} The percentage of the value relative to the total value.
-	 */
-	getPercentage(pValue, pTotalValue) {
-		return (100 * pValue) / pTotalValue;
-	}
-	/**
-	 * Clamps a number between a minimum and maximum value.
-	 * 
-	 * @param {number} pNumber - The number to clamp.
-	 * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.
-	 * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.
-	 * @returns {number} The clamped number between the minimum and maximum values.
-	 */
-	clamp(pNumber, pMin = 0, pMax = 1) {
-		return Math.max(pMin, Math.min(pNumber, pMax));
-	}
-	/**
-	 * Linearly interpolates between two values by a specified amount.
-	 * 
-	 * @param {number} pStart - The start value to interpolate from.
-	 * @param {number} pEnd - The end value to interpolate to.
-	 * @param {number} pAmount - The amount to interpolate between the start and end values.
-	 * @returns {number} The interpolated value between the start and end values based on the specified amount.
-	 */
-	lerp(pStart, pEnd, pAmount) {
-		return (1-pAmount)*pStart+pAmount*pEnd;
-	}
-	/**
-	 * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.
-	 * 
-	 * @param {number} pStart - The start value to interpolate from.
-	 * @param {number} pEnd - The end value to interpolate to.
-	 * @param {number} pAmount - The amount to interpolate between the start and end values.
-	 * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.
-	 */
-	flooredLerp(pStart, pEnd, pAmount) {
-		return Math.floor(this.lerp(pStart, pEnd, pAmount));
-	}
-	/**
-	 * Rounds a number to a specified number of decimal places.
-	 * 
-	 * @param {number} pNumber - The number to round.
-	 * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.
-	 * @returns {number} The rounded number to the specified number of decimal places.
-	 */
-	round(pNumber, pPlace=1) {
-		return Math.round(pPlace * pNumber) / pPlace;
-	}
-	/**
-	 * Normalizes a value between a minimum and maximum value.
-	 * 
-	 * @param {number} pVal - The value to normalize.
-	 * @param {number} pMin - The minimum value for normalization.
-	 * @param {number} pMax - The maximum value for normalization.
-	 * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.
-	 * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.
-	 */
-	normalize(pVal, pMin, pMax) {
-		if (pMax - pMin === 0) return 1;
-		return (pVal - pMin) / (pMax - pMin);
-	}
-	/**
-	 * Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.
-	 *
-	 * @param {number} pVal - The value to normalize.
-	 * @param {number} pMin - The minimum value for normalization.
-	 * @param {number} pMax - The maximum value for normalization.
-	 * @returns {number} The normalized and clamped value between -1 and 1 based on the input value's
-	 * position between the minimum and maximum values. If the difference between pMax and pMin is 0,
-	 * returns 1 to avoid dividing by zero.
-	 */
-	normalizeRanged(pVal, pMin, pMax) {
-		if (pMax - pMin === 0) return 1;
-		const normalizedValue = -((2 * this.normalize(pVal, pMin, pMax)) - 1);
-		// Clamp the normalized value to the range of -1 to 1
-		return this.clamp(normalizedValue, -1, 1);
-	};
-	/**
-	 * Checks if a value is within a range of minimum and maximum values (inclusive).
-	 * 
-	 * @param {number} pVal - The value to check.
-	 * @param {number} pMin - The minimum value of the range to check against.
-	 * @param {number} pMax - The maximum value of the range to check against.
-	 * @returns {boolean} True if the value is within the range (inclusive), false otherwise.
-	 */
-	within(pVal, pMin, pMax) {
-		return pVal >= pMin && pVal <= pMax;
-	}
-	/**
-	 * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.
-	 * 
-	 * @param {number} pNum - The number to format.
-	 * @returns {string} A string representation of the formatted number.
-	 */
-	formatIntegerWithCommas(pNum) {
-		return pNum.toFixed().toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');
-	}
-	/**
-	 * Converts degrees to radians.
-	 * 
-	 * @param {number} pDegrees - The angle in degrees.
-	 * @returns {number} The angle in radians.
-	 */
-	toRadians(pDegrees) {
-		return pDegrees * (Math.PI / 180);
-	}
-	/**
-	 * Converts radians to degrees.
-	 * 
-	 * @param {number} pRadians - The angle in radians.
-	 * @returns {number} The angle in degrees.
-	 */
-	toDegrees(pRadians) {
-		return pRadians * (180 / Math.PI);
-	}
-	/**
-	 * Returns a random element from the given array.
-	 * 
-	 * @param {Array} pArray - The input array.
-	 * @returns {*} A random element from the array.
-	 */
-	pick(pArray) {
-		const randomIndex = Math.floor(Math.random() * pArray.length);
-		return pArray[randomIndex];
-	}
-	/**
-	 * Removes properties from an object except those listed in the exclude array.
-	 * 
-	 * @param {object} pObject - The object to remove properties from.
-	 * @param {Array} pExclude - The array of property names to exclude from removal.
-	*/
-	removeProperties(pObject, pExclude) {
-		if (typeof(pObject) === 'object') {
-			for (const prop in pObject) {
-				// Do not reset these properties.
-				if (Array.isArray(pExclude) && pExclude.includes(prop)) continue;
-				if (pObject.hasOwnProperty(prop)) {
-					delete pObject[prop];
-				}
-			}
-		}	
-	}
-	/**
-	 * Returns true with probability proportional to the given number.
-	 * The higher the number, the higher the chance of returning true.
-	 * 
-	 * @param {number} pChance - The probability value, between 0 and 100 (inclusive).
-	 * @returns {boolean} - Returns true or false, based on the probability value.
-	 */
-	prob(pChance) {
-		if (pChance <= 0) {
-			return false;
-		}
-		if (pChance >= 100) {
-			return true;
-		}
-		const randomNumber = Math.floor(Math.random() * 100) + 1;
-		return randomNumber <= pChance;
-	}
-	/**
-	 * Gets the inverse direction of the direction passed
-	 * 
-	 * @param {string} pDirection - The direction to get the inverse of.
-	 * @returns {string} The inverse direction
-	 */
-	getInverseDirection(pDirection) {
-		switch (pDirection) {
-			case 'north':
-				return 'south';
-			case 'south':
-				return 'north';
-			case 'east':
-				return 'west';
-			case 'west':
-				return 'east';
-			case 'northeast':
-				return 'southwest';
-			case 'northwest':
-				return 'southeast';
-			case 'southeast':
-				return 'northwest';
-			case 'southwest':
-				return 'northeast';
-			default:
-				this.logger.prefix('Utils-Module').error(`The direction ${pDirection} is not supported.`);
-		}
-	}
-	/**
-	 * Calculates the angle (in radians) from a given direction.
-	 * 
-	 * @param {string} pDirection - The direction to calculate the angle from.
-	 * @returns {number} The angle (in radians) associated with the given direction.
-	 * @throws {Error} Throws an error if the direction is not recognized.
-	 */
-	getAngleFromDirection(pDirection) {
-		switch (pDirection) {
-			case 'north':
-				return Math.PI / 2;
-			case 'south':
-				return (Math.PI * 3) / 2; // Corrected to 270 degrees in radians
-			case 'east':
-				return 0;
-			case 'west':
-				return Math.PI;
-			case 'northwest':
-				return (Math.PI * 3) / 4;
-			case 'northeast':
-				return Math.PI / 4;
-			case 'southwest':
-				return (Math.PI * 5) / 4;
-			case 'southeast':
-				return (Math.PI * 7) / 4;
-			default:
-				this.logger.prefix('Utils-Module').error(`The direction ${pDirection} is not supported.`);
-		}
-	}
-	/**
-	 * Centers a rectangle (defined by its dimensions) within a parent rectangle.
-	 *
-	 * @param {number} pChildWidth - The width of the child rectangle.
-	 * @param {number} pChildHeight - The height of the child rectangle.
-	 * @param {number} pParentWidth - The width of the parent rectangle.
-	 * @param {number} pParentHeight - The height of the parent rectangle.
-	 * @param {number} pParentX - The x-coordinate of the parent rectangle.
-	 * @param {number} pParentY - The y-coordinate of the parent rectangle.
-	 * @returns {Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.
-	 *
-	 * @example
-	 * const childWidth = 50;
-	 * const childHeight = 30;
-	 * const parentWidth = 100;
-	 * const parentHeight = 80;
-	 * const parentX = 20;
-	 * const parentY = 10;
-	 * const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);
-	 * // Returns {x: 45, y: 35}
-	 */
-	centerRectangleOnParent(pChildWidth, pChildHeight, pParentWidth, pParentHeight, pParentX, pParentY) {
-		const centerX = pParentX + ((pParentWidth - pChildWidth) / 2);
-		const centerY = pParentY + ((pParentHeight - pChildHeight) / 2);
-		return { x: centerX, y: centerY };
-	}
-	/**
-	 * Generates a random angle in radians.
-	 * @returns {number} A random angle in radians.
-	 */
-	getRandomAngle() {
-		return Math.random() * (Math.PI * 2); // Random value between 0 and 2*pi (360 degrees)
-	}
-	/**
-	 * Gets the angle between two points
-	 * 
-	 * @param {Object} pStartPoint - The starting point
-	 * @param {Object} pEndPoint - The ending point
-	 * @returns {number} The angle between the starting point and the ending point
-	 */
-	getAngle(pStartPoint, pEndPoint) {
-		const y = pStartPoint.y - pEndPoint.y;
-		const x = pStartPoint.x - pEndPoint.x;
-		return Math.atan2(y, x);
-	}
-	/**
-	 * Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle
-	 * 
-	 * @param {Object} pStartPoint - The starting point
-	 * @param {Object} pEndPoint - The ending point
-	 * @returns {number} The angle between the starting point and the ending point
-	 */
-	getAngle2(pStartPoint, pEndPoint) {
-		const y = pStartPoint.y - pEndPoint.y;
-		const x = pStartPoint.x - pEndPoint.x;
-		return (Math.atan2(y, x) - Math.PI) * -1;
-	}
-	/**
-	 * Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees
-	 * @param {number} pAngle - The angle to convert.
-	 * @returns The converted angle
-	 */
-	convertRaWAngleToVyloCoords(pAngle) {
-		return (pAngle - Math.PI) * -1;
-	}
-	/**
-	 * Calculates the Euclidean distance between two points in a two-dimensional space.
-	 *
-	 * @param {Object} pStartPoint - The starting point with x and y coordinates.
-	 * @param {number} pStartPoint.x - The x-coordinate of the starting point.
-	 * @param {number} pStartPoint.y - The y-coordinate of the starting point.
-	 * @param {Object} pEndPoint - The ending point with x and y coordinates.
-	 * @param {number} pEndPoint.x - The x-coordinate of the ending point.
-	 * @param {number} pEndPoint.y - The y-coordinate of the ending point.
-	 * @returns {number} The Euclidean distance between the two points.
-	 *
-	 * @example
-	 * const startPoint = { x: 1, y: 2 };
-	 * const endPoint = { x: 4, y: 6 };
-	 * const distance = getDistance(startPoint, endPoint); // 5
-	 * // Returns the Euclidean distance between the points (1, 2) and (4, 6).
-	 */
-	getDistance(pStartPoint, pEndPoint) {
-		const y = (pStartPoint.y - pEndPoint.y);
-		const x = (pStartPoint.x - pEndPoint.x);
-		return Math.sqrt((x * x) + (y * y));
-	}
-	/**
-	 * Calculates the new position of a point based on distance and angle.
-	 *
-	 * @param {Object} pPoint - The initial position of the point with x and y coordinates.
-	 * @param {number} pPoint.x - The initial x-coordinate of the point.
-	 * @param {number} pPoint.y - The initial y-coordinate of the point.
-	 * @param {number} pDistance - The distance by which to move the point.
-	 * @param {number} pAngle - The angle (in radians) at which to move the point.
-	 * @returns {Object} The new position of the point after moving by the specified distance and angle.
-	 *
-	 * @example
-	 * const initialPosition = { x: 10, y: 20 };
-	 * const distance = 5;
-	 * const angleInRadians = 0.785398; // 45 degrees
-	 * const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);
-	 * // Returns the new position of the point after moving by 5 units at a 45-degree angle.
-	 */
-	calculateNewPositionFromDistanceAndAngle(pPoint, pDistance, pAngle) {
-		const newPosition = { x: 0, y: 0 };
-		newPosition.x = pPoint.x - pDistance * Math.cos(pAngle);
-		newPosition.y = pPoint.y - pDistance * Math.sin(pAngle);
-		return newPosition;
-	};
-	/**
-	 * Calculates the proportional length based on a current value, a maximum value, and a specified total length.
-	 *
-	 * @param {number} pCurrent - The current value to be scaled.
-	 * @param {number} pMax - The maximum value for scaling.
-	 * @param {number} pTotalLength - The specified total length.
-	 * @returns {number} The proportional length based on the current value, maximum value, and total length.
-	 *
-	 * @example
-	 * const current = 25;
-	 * const max = 50;
-	 * const totalLength = 100;
-	 * const proportionalLength = calculateProportionalLength(current, max, totalLength); // 50
-	 * // Returns the proportional length based on the current value, maximum value, and total length.
-	 */
-	calculateProportionalLength(pCurrent, pMax, pTotalLength) {
-		return (pCurrent / pMax) * pTotalLength;
-	}
-	/**
-	 * Calculates the compass direction based on the given angle.
-	 *
-	 * @param {number} pAngle - The angle in radians.
-	 * @returns {string} The compass direction (e.g., 'east', 'southeast', 'south', etc.).
-	 *
-	 * @example
-	 * const angle = Math.PI / 4; // 45 degrees in radians
-	 * const direction = getDirection(angle); // Returns 'northeast'
-	 */
-	getDirection(pAngle) {
-		const degree = Math.abs(Math.floor(((pAngle * (180 / Math.PI)) / 45) + 0.5));
-		// 0 or 360 degrees: 'east'
-		// 45 degrees: 'northeast'
-		// 90 degrees: 'north'
-		// 135 degrees: 'northwest'
-		// 180 degrees: 'west'
-		// 225 degrees: 'southwest'
-		// 270 degrees: 'south'
-		// 315 degrees: 'southeast'
-		const compassDirections = ['east', 'northeast', 'north', 'northwest', 'west', 'southwest', 'south', 'southeast'];
-		return compassDirections[(degree % 8)];
-	}
-	/**
-	 * Calculates the linear decay of a variable over time.
-	 *
-	 * @param {number} pInitialValue - The initial value of the variable.
-	 * @param {number} pCurrentTime - The current time at which to calculate the variable value.
-	 * @param {number} pMaxTime - The maximum time for the decay process.
-	 * @param {number} [pDecayRate=0.5] - The decay rate (default is 0.5).
-	 * @returns {number} The remaining value of the variable after linear decay.
-	 *
-	 * @example
-	 * const initialValue = 100;
-	 * const currentTime = 50;
-	 * const maxTime = 1000;
-	 * const decayRate = 0.3;
-	 * const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);
-	 * // Returns the remaining value after linear decay.
-	 */
-	linearDecay(pInitialValue, pCurrentTime, pMaxTime, pDecayRate = 0.5) {
-		// Calculate the variable value at the current time
-		const proportionOfTimePassed = pCurrentTime / pMaxTime;
-		const remainingValue = Math.max(pInitialValue * (1 - (proportionOfTimePassed * pDecayRate)), 1);
-		return remainingValue;
-	}
-	/**
-	 * Generates a unique id
-	 * 
-	 * @param {string} pIDLength - The length of the ID to create 
-	 * @returns A unique ID
-	 */
-	generateID(pIDLength = 7) {
-		const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
-		const makeID = function() {
-			let ID = '';
-			for (let i = 0; i < pIDLength; i++) {
-				ID += chars.charAt(Math.floor(Math.random() * chars.length));
-			}
-			return ID;
-		}
-		let ID = makeID();
-		while(this.storedIDs.includes(ID)) {
-			ID = makeID();
-		}
-		this.storedIDs.push(ID);
-		return ID;
-	}
-	/**
-	 * Converts a color in decimal format into hex format
-	 * 
-	 * @param {number} pDecimal - The color in decimal format
-	 * @param {number} pChars - The length to make the hex string
-	 * @returns The decimal color converted into hex format
-	 */
-	decimalToHex(pDecimal, pChars = 6) {
-		return '#' + (pDecimal + Math.pow(16, pChars)).toString(16).slice(-pChars).toUpperCase();
-	}
-	/**
-	 * Add intensity to this color to get a brighter or dimmer effect
-	 * 
-	 * @param {string|number} pColor - Color in hex format or decimal format
-	 * @param {number} pPercent - The percent of brightness to add to this color
-	 * @returns 
-	 */
-	addIntensity(pColor, pPercent) {
-		const rgb = this.grabColor(pColor).rgbArray;
-		const r = rgb[0];
-		const g = rgb[1];
-		const b = rgb[2];
-		let rr = 0;
-		let rg = 0;
-		let rb = 0;
-		const black = (r === 0 && g === 0 && b === 0) ? true : false;
-		if (r || black) rr = r + Math.floor((255 * pPercent) / 100);
-		if (g || black) rg = g + Math.floor((255 * pPercent) / 100);
-		if (b || black) rb = b + Math.floor((255 * pPercent) / 100);
-		return this.grabColor(this.clamp(rr, 0, 255), this.clamp(rg, 0, 255), this.clamp(rb, 0, 255)).hex
-	}
-	/**
-	 * Converts an RGB color value to a hexadecimal color value.
-	 * 
-	 * @param {number} pR - The red component of the RGB color value (0-255).
-	 * @param {number} pG - The green component of the RGB color value (0-255).
-	 * @param {number} pB - The blue component of the RGB color value (0-255).
-	*/
-	rgbToHex(pR, pG, pB) {
-		const r = this.clamp(pR, 0, 255);
-		const g = this.clamp(pG, 0, 255);
-		const b = this.clamp(pB, 0, 255);
-		const craftString = function(pColor) {
-			return pColor.toString(16).padStart(2, '0');
-		}
-		const hex = '#' + [r, g, b].map(craftString).join('');
-		return hex;		
-	}
-	/**
-	 * Converts a hexadecimal color value to an RGB color value.
-	 * 
-	 * @param {string} pHex - The hexadecimal color value to convert (e.g. "#FF0000" for red).
-	 * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.
-	*/
-	hexToRgb(pHex) {
-		pHex = pHex.replace('#', '');
-		if (pHex.length === 3) {
-			pHex = pHex.replace(new RegExp('(.)', 'g'), '$1$1');
-		}
-		pHex = pHex.match(new RegExp('..', 'g'));
-		const r = this.clamp(parseInt(pHex[0], 16), 0, 255);
-		const g = this.clamp(parseInt(pHex[1], 16), 0, 255);
-		const b = this.clamp(parseInt(pHex[2], 16), 0, 255);
-		return [r, g, b];
-	}
-	/**
-	 * Converts RGB color values to a decimal value.
-	 * 
-	 * @param {number} pR - The red component of the RGB color value (0-255).
-	 * @param {number} pG - The green component of the RGB color value (0-255).
-	 * @param {number} pB - The blue component of the RGB color value (0-255).
-	*/
-	rgbToDecimal(pR, pG, pB) {
-		return (pR << 16 | pG << 8 | pB);
-	}
-	/**
-	 * Converts a hexadecimal color value to a decimal value.
-	 * 
-	 * @param {string} pHex - The hexadecimal color value to convert (e.g. "#FF0000" for red).
-	 * @returns {number} - The decimal representation of the hexadecimal color value.
-	*/
-	hexToDecimal(pHex) {
-		pHex = pHex.replace('#', '');
-		return parseInt(pHex, 16);
-	}
-	/**
-	 * Convert a color to different formats or get a random color
-	 * 
-	 * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)
-	 * A color formatted in the decimal format. Or the r value of a rgb color.
-	 * @param {number} [g] g value of a rgb color
-	 * @param {number} [b] b value of a rgb color
-	 * @returns {ColorObject} A color object with various different export options.
-	 * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.
-	 */
-	grabColor(pSwitch = this.getRandomColor(), pG, pB) {
-		let hex, rgb;
-		// Convert rgb to hex
-		if (typeof(pSwitch) === 'number' && typeof(pG) === 'number' && typeof(pB) === 'number') {
-			hex = this.rgbToHex(pSwitch, pG, pB);
-		} else {
-			// Convert decimal to hex
-			if (typeof(pSwitch) === 'number') {
-				pSwitch = this.decimalToHex(pSwitch);
-			}
-			hex = pSwitch;
-			// Convert hex to rgb
-			rgb = this.hexToRgb(hex);
-		}
-		return { 
-			'hex': hex.toLowerCase(), 
-			'hexTagless': hex.replace('#', '').toLowerCase(), 
-			'rgb': 'rgb('+rgb[0]+','+rgb[1]+','+rgb[2]+')', 
-			'rgbArray': rgb, 
-			'rgbObject': { 'r': rgb[0], 'g': rgb[1], 'b': rgb[2] }, 
-			'rgbNormal': [Math.round(rgb[0]/255 * 100) / 100, Math.round(rgb[1]/255 * 100) / 100, Math.round(rgb[2]/255 * 100) / 100], 
-			'decimal': this.hexToDecimal(hex) 
-		};
-	}
-	/**
-	 * Gets a random color
-	 * 
-	 * @returns {string} A random color in the hex format
-	 */
-	getRandomColor() {
-		const chars = '0123456789ABCDEF';
-		let color = '#';
-		for (let i = 0; i < 6; i++) {
-			color += chars[Math.floor(Math.random() * 16)];
-		}
-		return color;
-	}
-	/**
-	 * Gets a random color between two colors
-	 * 
-	 * @param {number|string} pColor1 - The first color to get a color between
-	 * @param {number|string} pColor2 - The second color to get a color between
-	 * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1
-	 * 0 to 0.5 (closer to pColor1)
-	 * 0.5 to 1 (closer to pColor2)
-	 * @returns {string} A random color in the decimal format
-	 */
-	getRandomColorBetween(pColor1, pColor2, pAmount = 0.5) {
-		// u is the amount of the lerp 0-1
-		return this.flooredLerp(this.grabColor(pColor1).decimal, this.grabColor(pColor2).decimal, pAmount);
-	}
-	/**
-	 * Transition a color to another color in pDuration time.
-	 * 
-	 * @param {Object} pInstance - The instance to transition it's color property.
-	 * pInstance's color will be transitioned either via pInstance.color = newColor
-	 * or
-	 * pInstance.color.tint = newColor (if the color is defined as an object)
-	 * @param {string|number} pStartColor - The start color
-	 * @param {string|number} pEndColor - The end color
-	 * @param {number} pDuration - The duration of the transition
-	 * @param {Function} pIterativeCallback - Callback to call every tick of the transition
-	 * @param {Function} pEndCallback - Callback to call at the end of the transition
-	 * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.
-	 */
-	transitionColor(pInstance, pStartColor='#000', pEndColor='#fff', pDuration=1000, pIterativeCallback, pEndCallback) {
-		// Cannot use this API on the server
-		if (!globalThis.window) return;
-		const iterativeCallback = typeof(pIterativeCallback) === 'function' ? pIterativeCallback : null;
-		const endCallback = typeof(pEndCallback) === 'function' ? pEndCallback : null;
-		let id;
-		let isParticle;
-		let isTintObject;
-
-		if (pInstance) {
-			id = pInstance.id ? pInstance.id : this.generateID();
-			isParticle = (pInstance.type === 'GeneratedParticle');
-			isTintObject = (typeof(pInstance.color) === 'object' && pInstance.color.constructor === Object ? true : false);
-			if (this.transitions[id]) this.cancelTransitionColor(id);
-		} else {
-			id = this.generateID();
-		}
-			
-		this.transitions[id] = {
-			'duration': pDuration,
-			'timeTracker': isParticle ? pInstance.info.lifetime : 0
-		};
-
-		const rgbStartColor = this.grabColor(pStartColor).rgbArray;
-		const rgbEndColor = this.grabColor(pEndColor).rgbArray;
-
-		const self = this;
-		this.transitions[id].step = (pTimeStamp) => {
-			if (self.transitions[id]) {
-				if (isParticle) {
-					if (pInstance.info) {
-						if (pInstance.info.owner) {
-							if (pInstance.info.owner.settings.paused) {
-								return;
-							}
-						}
-					} else {
-						if (self.transitions[id]) this.cancelTransitionColor(id);
-						return;				
-					}
-				}
-
-				const now = pTimeStamp;
-				if (!self.transitions[id].lastTime) self.transitions[id].lastTime = now;
-				const elapsed = now - self.transitions[id].lastTime;
-				// Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)
-				self.transitions[id].timeTracker += elapsed;
-				// The max value of percentage is 1, so we clamp it at 1
-				const percentage = Math.min(self.transitions[id].timeTracker / self.transitions[id].duration, 1);
-				
-				const r = parseInt(self.lerp(rgbStartColor[0], rgbEndColor[0], percentage), 10);
-				const g = parseInt(self.lerp(rgbStartColor[1], rgbEndColor[1], percentage), 10);
-				const b = parseInt(self.lerp(rgbStartColor[2], rgbEndColor[2], percentage), 10);
-				const color = self.grabColor(r, g, b);
-
-				if (iterativeCallback) iterativeCallback(color);
-
-				if (pInstance) {
-					if (isTintObject) {
-						pInstance.color.tint = color.decimal;
-						pInstance.color = pInstance.color;
-					} else {
-						pInstance.color = color.hex;
-					}
-				}
-
-				if (percentage >= 1 || self.transitions[id].timeTracker >= pDuration) {
-					if (self.transitions[id]) this.cancelTransitionColor(id);
-					if (endCallback) endCallback(color);
-					return;
-				}
-				self.transitions[id].req = globalThis.requestAnimationFrame(self.transitions[id].step);
-				self.transitions[id].lastTime = now;
-			}
-		}
-
-		this.transitions[id].req = globalThis.requestAnimationFrame(this.transitions[id].step);
-		return id;
-	}
-	/**
-	 * Cancels an ongoing transition
-	 * 
-	 * @param {string} pID - The ID of the ongoing transition to cancel
-	 */
-	cancelTransitionColor(pID) {
-		if (this.transitions[pID]) {
-			globalThis.cancelAnimationFrame(this.transitions[pID].req);
-			delete this.transitions[pID];
-		}
-	}
-	/**
-	 * Calculates the position of a point after rotating it around a center point by a given angle.
-	 * 
-	 * @param {object} pRect - The rectangle object to rotate the point around.
-	 * pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.
-	 * @param {number} pTheta - The angle (in radians) to rotate the point by.
-	 * @param {object} pPoint - The point object to rotate around the center of the rectangle.
-	 * @param {number} pPoint.x - The x-coordinate of the point to rotate.
-	 * @param {number} pPoint.y - The y-coordinate of the point to rotate.
-	 * @returns {object} An object with the rotated point's new x and y coordinates.
-	 */
-	getPointRotated(pRect, pTheta, pPoint) {
-		// cx, cy - center of square coordinates
-		// x, y - coordinates of a corner point of the square
-		// theta is the angle of rotation
-		const cx = pRect.x + pRect.width * (typeof(pRect.anchor) === 'object' && pRect.anchor.x ? pRect.anchor.x : 0.5);
-		const cy = pRect.y + pRect.height * (typeof(pRect.anchor) === 'object' && pRect.anchor.y ? pRect.anchor.y : 0.5);
-
-		// translate point to origin
-		const tempX = pPoint.x - cx;
-		const tempY = pPoint.y - cy;
-
-		// now apply rotation
-		const rotatedX = tempX*Math.cos(pTheta) - tempY*(-Math.sin(pTheta));
-		const rotatedY = tempX*(-Math.sin(pTheta)) + tempY*Math.cos(pTheta);
-
-		// translate back
-		const x = rotatedX + cx;
-		const y = rotatedY + cy;
-		return { 'x': x, 'y': y };
-	}
-	/**
-	 * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.
-	 * 
-	 * @param {object} pRect - The rectangle object to rotate the point around.
-	 * pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.
-	 * @param {number} pTheta - The angle (in radians) to rotate the point by.
-	 * @returns {object} An object with the rotated rectangle's new corner points and center points.
-	 */
-	getPointsOfRotatedRect(pRect, pTheta) {
-		const tl = this.getPointRotated(pRect, pTheta, { 'x': pRect.x, 'y': pRect.y });
-		const tr = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width, 'y': pRect.y });
-		const bl = this.getPointRotated(pRect, pTheta, { 'x': pRect.x, 'y': pRect.y + pRect.height });
-		const br = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width, 'y': pRect.y + pRect.height });
-		const center = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width / 2, 'y': pRect.y + pRect.height / 2 });
-		return { 'tl': tl, 'tr': tr, 'bl': bl, 'br': br, 'center': center };
-	}
-	/**
-	 * Calculate the icon offset to compensate for a non-zero anchor.
-	 *
-	 * @param {Object} [pIconSize] - The size of the icon with properties `.x` and `.y`.
-	 * @param {number} [pIconSize.width=32] - The size of the icon's width.
-	 * @param {number} [pIconSize.height=32] - The size of the icon's height'.
-	 * @param {Object} [pAnchor] - The anchor point with properties `.x` and `.y`.
-	 * @param {number} [pAnchor.x=0.5] - The anchor's x value.
-	 * @param {number} [pAnchor.y=0.5] - The anchor's y value.
-	 * @param {Object} [pScale] - The scale factor applied to the object with properties `.x` and `.y`.
-	 * @param {number} [pScale.x=1] - The scale's y value.
-	 * @param {number} [pScale.y=1] - The scale's y value.
-	 * @returns {Object} - The calculated icon offset with properties `.x` and `.y`.
-	 */
-	calculateIconOffset(pIconSize = { width: 32, height: 32 }, pAnchor = { x: 0.5, y: 0.5 }, pScale= { x: 1, y: 1}) {
-		const scaledSize = {
-			x: pIconSize.width * pScale.x,
-			y: pIconSize.height * pScale.y,
-		};
-
-		const offset = {
-			x: pAnchor.x * (scaledSize.x - pIconSize.width),
-			y: pAnchor.y * (scaledSize.y - pIconSize.height),
-		};
-
-		return {
-			x: offset.x,
-			y: offset.y,
-		};
-	}
-}
-export const Utils = new UtilsSingleton();
-
- -
- - - - - - - - - - - - diff --git a/docs/file/src/vendor/logger.min.mjs.html b/docs/file/src/vendor/logger.min.mjs.html deleted file mode 100644 index 54629af..0000000 --- a/docs/file/src/vendor/logger.min.mjs.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - src/vendor/logger.min.mjs | Utils - - - - - - - -
- - - Reference - Source - - -
- - - -

src/vendor/logger.min.mjs

-
/** 
- * @file A small library to class up log messages.
- * 
- * @version 1.0.0
- * @author https://github.com/doubleactii
- * @copyright Copyright (c) 2022 Evitca Studio
- * @license Logger does not have a license at this time. For licensing contact the author
- */
-class Logger{constructor(s){this.RESET="",this.BRIGHT="",this.DIM="",this.UNDERSCORE="",this.BLINK="",this.REVERSE="",this.HIDDEN="",this.FG_BLACK="",this.FG_RED="",this.FG_GREEN="",this.FG_YELLOW="",this.FG_BLUE="",this.FG_MAGENTA="",this.FG_CYAN="",this.FG_WHITE="",this.FG_GRAY="",this.BG_BLACK="",this.BG_RED="",this.BG_GREEN="",this.BG_YELLOW="",this.BG_BLUE="",this.BG_MAGENTA="",this.BG_CYAN="",this.BG_WHITE="",this.BG_GRAY="",this.TYPE_SPACER_LENGTH=13,this.types={default:this.FG_WHITE},this.currentType="",this.SPACE_CHAR=" ",this.FG_COLORS={};for(let s=0;s<=255;s++)this.FG_COLORS[s]="[38;5;"+s+"m";this.BG_COLORS={};for(let s=0;s<=255;s++)this.BG_COLORS[s]="[48;5;"+s+"m";Array.isArray(s)&&this.registerTypes(s)}prefix(s){return"string"==typeof s&&(this.currentType=s),this}message(t="log",...e){var i=this.currentType||"";if(0===i.length)console[t](...e);else{var h=i.length>=this.TYPE_SPACER_LENGTH;let s=this.types[i.toLowerCase()]?this.types[i.toLowerCase()]:this.types.default;var r=s.includes("");r||(s="color: "+s),!globalThis.window||r?console[t](s+i+this.SPACE_CHAR.repeat(Math.max(this.TYPE_SPACER_LENGTH-i.length,h?1:0))+"|"+this.RESET,...e):console[t]("%c"+i+this.SPACE_CHAR.repeat(Math.max(this.TYPE_SPACER_LENGTH-i.length,h?1:0))+"|",s,...e)}this.currentType=""}log(...s){this.message("log",...s)}info(...s){this.message("info",...s)}error(...s){this.message("error",...s)}warn(...s){this.message("warn",...s)}assert(...s){console.assert(...s)}debug(...s){this.message("debug",...s)}count(s){console.count(s)}countReset(s){console.countReset(s)}table(s,t){console.table(s,t)}time(s){this.message("time",s)}timeLog(s){this.message("timeLog",s)}timeEnd(s){this.message("timeEnd",s)}trace(...s){this.message("trace",...s)}group(s){this.message("group",s)}groupCollapsed(s){console.groupCollapsed(s)}groupEnd(){console.groupEnd()}clear(){console.clear()}registerType(s,t){this.types[s]||"string"==typeof s&&"string"==typeof t&&(this.types[s.toLowerCase()]=t)}registerTypes(t){if(Array.isArray(t))for(let s=0;s<t.length;s++)this.registerType(t[s].type,t[s].ansi)}unregisterType(s){this.types[s]&&delete this.types[s]}}export{Logger};
- -
- - - - - - - - - - - - diff --git a/docs/identifiers.html b/docs/identifiers.html deleted file mode 100644 index f326643..0000000 --- a/docs/identifiers.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - Reference | Utils - - - - - - - -
- - - Reference - Source - - -
- - - -

References

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

- C - - - UtilsSingleton -

-
-
- - -

A utilities class

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

- V - - - Utils: UtilsSingleton -

-
-
- - - -
-
- - -
-
-
-
- - -
-
- - - - - - - - - - - - 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 zcmeFZS6EYB)HS*jLKP_@AR@(rs8ppXHCB|~5s;z?sC4Ni5I{vmKtXyJ5h)UoUP7XR z2!`HkP$2Z)6Utdp-~a#4#kn~5-;MhC?5w@YoMVnT=3M)Qj+W{{rlU*{1RcC}^O_z6 z!NEV_5Ca|fYt6fh4E}<->8W0U3R;d$Ly#bJ>)K@lZ;Scihc4#RDB?B|b`vdl`QGuO zLv^(-Ft0;*67NS3-!B)kyI`F)N9ZeR$caieSoyj^sEhsG`(on#2hl7w@xe!NhDN{N zesVP^zB!Z9jIzA!@=XhUo8fhz7u;^f=Zt6HC)-tc#b&D8!glI8qw>Vf)JY%Z{Y-hB zU+kpo;lfWJKb~=P@O>DQq-Z={rIj^SVfZ*jtx?l!BH!h`yAq}Nik=$&nW`5%5`rOi zge1itYIJ-Q373D|aLUdgVsN}lD|4(uv&BKL^X1!w?=3AYjDa4zKmEqGu*Ez+^%IYy zye<_~Yj@neG(g%^?o>grA)z2Priv=@X^vjkmc|sUVizU7zLlw#8OmGv=_PExVQfAv z5~V+Dha^9P;0%IjJokZ$@?+C>#cF%)F4{kZaA&tqL*o+@pW+{P5N_=o^G)XkguGJ$ zPlCrq4e&7mGdES#JcI+f1_$k(&U)AS@IyvivE8RC$zly2f#!NSlPBE4VyH9eV=SqR zSS@#p*t30~w{9_)=(C=xbO17WIzcb3KrwTRSWSv3nd>&6;P^ZIsb^>r&C`_&tTD+u zax~^*+1Mk7Lo~=67Tdb2Zu@Ex0rg?9&ePOcL-5)|F6-9Dw*qCm23PJXQaH<@*U|ck zD#h1`Z}W)ZlhDHhf9HT?xJX{;$R>MQTAFDql6m8x*KdqBJQ`eaXLC;QhrByTohb|f zKi4)_)lwenYeszGv2T48BG3dh7B2|6RjTyZ+~5E6N=Bj4nTF!VmhyYs=~e_d(&%!d zb49^wLsXBDf$kCJzw=sVpK>|2X+|?Vzc0kqd|e588yhRmoBVpad*82UN|JKz&)x_c zzzb@l6FxYXmX>PXa2wJ+NIjpKDCx~WwU(d8dd)cqD@bAoNIB}eUT{z~l$Yk&OQ z6#DT)f+C~pMvP9DX`eYpx%_XdC*e-Gy!U}hU7h63cF7lN(2p}`cDW<+R3dML_R;^H z8bi$;yvLeEXw~4}y`mdoED+CjR^Zf4qJ@L%mh!(xuALrLBOaT1NQwTTyj!1UYCs)` z@@%Xsuri)y$^7qTvBl%ivlnqvUBl$v?ZDN3Ij&>S+}qlgA^HQ3@r!?Fj>i8++>x8^ zyOPajp#%MB5$l(W8&5XBQ@$w;BQQaca)+>_@jaC&HPYab zG}V7A`*@&4!L3Dw-@D7#P1!Hi7%Gh3(WnwwO5OK=zAgH9tRgNKZ98$dh-SOb={~e* zLQRK?%`@C>?l-$9|7>F+1T!Y`%sEnaZ{m1dp{?zqz5Poae5;rKt>-xgJyx+V+EGe# zf(i08#9eZmPJ4>_ZKh^=_0KG%pDgrS1G zY~?)IYtg+WLN(a_UcLtNrE4^p87MIFkDo#Cc1{=bN#3j2PmBKj7C32WeEcn`_0(+1 z`hGeEqjBA-e0&8vkIk43My*AMy^Hq|Ek9fW||GOA8QWS9vsr}!K6gOkGa%EmrMr`V*C5EI9aLuE^{%YE+-uG!GmQ~S*v`U<>U`WNO`aA*=kG-Ak2Y<~xz00&|M$oc;#lRrYkKxBt1<_4VO72PTVT@fo&!h! zn}PQMY37ZR?tr6^QGpmnD>bE>d(one|Gy10wvxS+V>^ELC(7>tI(vUCOxynN^1RPj z5$OtHf?+veBq6kEcoAn?57SJaB-y-z!u0&U`_DFU4W38V5 z5EX_{T(=PZ$2*q>j-J{Uq_A2O~<3M||oy{BIENGoxx=1Ti#yRF6*| zYvPT62e`%L9uF!$%}xR%&`LLsQZp{&$ubd-je zHbKZ6trh+6T*Q#jQWd=9ueYM<;RuMe?ct%n@4(P9Ko-X6jlWyDgai|S$!nhYgDs<_ z;2pC}ZT}FIpMechL}uUm`;Hne@D6j>z+W)K(|`%kPf5S{v+?L&@D7X!lJai?f?xtr z%ISaa_}@kT?@9juHP?`i@qIGyesK@yr|xjFS(VFlE}2Z3sB+S&(pLFnSGCvB5dPP) zUXb&i04@)+8@V466&>9@+?i)~u-s!~=el{N=T-Azr6;fmK48IucsK$LaZB`=?`NuP z5!VKB>$9fCzNM+ksN63Zch@(R_3Vt}7KWWWCh~gS=gFEL%5yJ0jQdom&WL;qyhfK! z^ZhXP2xM`rw^&m0Jw0E_Bj?4o-49&d#7Ax6WV-dWje$b^A1XTP4AzUA9ecQF!39~& zbqx(A)6vm&cXi}`|G*_9D>J*Wdt(^uMYIr$PfXo#XO@njy3tZS@S=!UaZJ|^LCX6R zdkxy|xT0GJ%NJ)XtfLdnOuGkqoYIcRpJsL`p+b8tyCAgn;qcz`F*XmXnp;S`5=9} z*6E>bb>F`3PhY+q4}bNlZxBI{e%%(z83LF_8o&;JJq8uelU%UT)v@Hn#E$M+x%I}z zPI(VvT7N_Ki=RM1eq=;i z*L?NnoXAr*x8lU4u_`398bO>LDOd*%l#P4e@M@$NB)OZAl2RJ@{kw2i$3X6;ieka0 zihKdDobz%rK9A`;k&2 z$`^+^x9YC-HGT00W)}33i4A(!lyF;N^#W9L=HXYg4?kY<%tcA*_hlRORqorlT4|Rs z3Y!ZLz3)pGjq)4>$H+zxmU8TM$iNdzIDT^Xw6L(v>0`cYAGIA>`KN4AA>tObk0y^E z;pbsIC$~!tBEQceq30rAg-2KIA#YvRdyhNlU~XY}!bR`N1(Z1k)BDM+Tt;5D#f|2R z{P>g@oS{w^4Y8@trOR+WftKFo_++(dTyp3Udf?>Lj-@nja0QuEwrO0u-y>%Ahx2)# zMna=Ey>pOlz)onuMiu9ACPG#POz}@&CYqUb_iP}w>F5|}j%|X;`+~_&u?EG_ATB}v zrbU0Y4DTZkd}eC z7W0btQg*GgGvU5UJ{QuzWE>BVi0Eg0(MQd`u5k)Nrykj4N)}vWg(MCoR040J^H?EV z0;hJ1>gOmF%JamDVsY4AK_>dc)gTSBWCR9i$P(yrS_2s1ifw9;8@Kq(@TPJ{WmsI- zaA#(=cABO>p`(6JUTYd0o2UjFDwHhO@fRV$@X6!N_94Y?ZX0Fz82jG!PA`?V7twZW zh1Cj&*X>?22)^zEwpUlM`0fTb30gXl%n0x7?7R@ok}!xMIR-~6D`!M1U&>QY3D_uik>-*3`1rQbwnEhHC8KYADVMx1XSXKn+ZmUe7o({Jf*}~} zD1+h3$4CU)_*+sbJ((;p+n%ZF`TYyn)Y+97`$vv}R+yuI#tr~`vsHRQd5Rk*xN;)i zj*j5|&Gy{ymX^>*kDR)j%??)S2L5ch@*q~$mTC<<00WlvW&C@%;rOpi_iVY2@$eMs zvzM2Ydm8ufq9q9ors3&_DNVh zD-w@nG3#gQzAPUSgzD7g(erH3Ju_)H8@!@`%k+$lIZhWtiZxnSp6Sf2RSpk#wGk{M z&+)+k5FMkD0PC$=96gd2uj8hk)RKxzKfo<9Xl2DEd_kRCTTAOa#cD_GvO2?)8^B2t z^;!ed5$Nrt>tno~Qc{l`9Xppfve%biL~r;6{rYt`JR*G1_&~zTi$|O0X#S3W2e!0* z-UXL)OCa#E+G6egn}s2)Gf^_$hy2!q(ceO@Dilow(I5cxI&^o82_3p6A?+BjtYVpj zSCsbN8RyxZ!?LCp+z?P8H_Dcj^ZonxIp!x=6spR5I#(-2IqyIm z=7G2O6Fb@+b7kL9^dtxyt?Hvh7B*@0MQ-+8 z-`uo!YB|_qHFXwX$aSzi+$1a6D-eV2u&tflJp4L{mNQdRB~ok_)vlcdcOLYd8x;$- z>WQ&9$>s=bpyWEogFpm&l)F>(%KfiMGYXButd+HXaZ1oq%dnrUATURyH<QhC2d+r>lOtRXOUI6(c6X~x z0?pzu7Tq97bhj_-3}dmrAQal#-mblMtADuZANGnq5e8DNsiH}OKxgt zJFLnx(*i`v`EGczY*1x5HFm!^j)ZQ$lK+1HFajN4NcSlF>eX)>2ZP6iwPy+atDdD_ z+uL=k#lOtW=~vd6ANlCpVS=zYEC{(Mx*R}TkH)}B-It5m+OtHA*GK3ZJa)#G(N8;~wv_IhnQ0)JLTNw%PV}9$y zTq2FWzW&TK>b}4cX=6I49=WNe(pgWsufN`~$Agz#1xzS(E5JDs8r@`~%?kt(SC*kf z#XFr8D?422M{K$F;KPa2%!s_$HQDpP!C&Y$#J>uL*f@+l&ow>?YAFy0Okvg{(DAIxwg6epZNpp?0m8F`!7-AQoB~)S-YHmKWFx|bh#BdjFjR-nJ zjr-3N9#o%zPMKa0k>Qt$L)x1qiCba|4ghZg{7uQXE4x8EwNDc77;M!YJwnz7sT3}8 z>w_u+BECJb#&=%-pqJv@XADQGvYS?~bI)M?3xZg1(X#7T) za4UmGR)d3%OeU{4=17s3#y9}sjkd^}>JN3`jK_{$W|I{5UHwVinfBYc z%`IWx?kC`%zX~wZhaLpi(J<;mJb-uxJzy0j;1G(AR#$Jmu12T-_mem;x3r?Eat*4rFcnktH{7PyZ9O`QU$WqoH z4$-T=I}lILpm{`6pEZe-so58Cnk{~vkzi0q`f^1UamWx2z5W;z{S zRxS^2YHEr-s&F#~fzMc7J;`)npnJRU=QEgv7_-Ku=?4h#0*2RL$?S0CZIRZB<`)6} z{&x;~EldxrCsq06eX(Ho2K;wK6_pqt4>1Pe!TjNtU;7S%l`EKS9214DKFR>}jBws% zoqVvg)axS#XQ`da{2*D9E&pD}pf+{ynW+)Y#YJ!_3=W*5%55`MD@DnU`z$qlw=EUk zc&0k%UgyAopaS+=HJ>)^KZ!TbnV=UhZc%fIZ)3vlzsGrov4NHx(fXbj-T`I5Ruc>v5I@}^lN5d`yJa60|GF?pqGt0a3M)4>jLI@o3O>%7VM4ci@NISd8UH{jz_Gn z3LXV!^WeLC`=Qw(FEg#9{{PG z=ryrZ#N*JD_ifBlVCt~TtI)5fKaD-6R}3lnXrI?h?U~944@MUHyIP%_j*K`2?dZ~5 zZUjT4KR>sfMJRKEsEPsXaJp;S&9naN!UBKw`{f@~M~vw%YFV5`QlqiA3P}H)=XrdV z5L80h)D418NF+5U+mMA}4%1;GmgmmH1XBlK_F)iPVQ~9!8&f>T?%Z7dY2oayp^n_Z zE!@84?mThVa>EnMS^}_I7l#@HkcWQ>LhsXl$j&w-x~K~HyWatn=B~gY>7R#^kodfi zJxp4h(kaM0XK}TR5mJ_58$R#}-Lk89-#e7?Md|kN0Sog zJ1L~NKy7V|`Gxp{LASxv_r#8k?s7ozJBn2c3b57jz0uKhdHz2DC?hL3m=)+eRAZC9 zYSY0_j1m2%a1FY-bx6V=jX*ygT-HRqLhoj&Tzo%LtE}YT_o;f5cisWj>(n)vK=ytf zIaa3*B5@p9**OUsU4^$RS%Um`<=eNDM~@sU30oVg=uR&NG2{}Zy2|h3H0AT7Uvr0H zg2^6{54sTO=kZ%?@Qt|IgeP_m4nr0s6|Y}W5os44_qVqiIm8#;UTx_Cr~dhQD^nkk z)~+CnE&b8$9g6Lt)Y`p(6lFgPz@v+lFL|f|fZOTVwCkVhJ^;uEOK2PjvllP2ZQX;p zEshL*Q}H3^2W*UlZp7{Vn0ihk-3gd?YeU=s`xmcQkIMx7CaLosjuxP_2N@)P-aAib zoQKOcx0{*#ZG-vwr&hh@r-mh{W1g#kIj0(-UdCNybmc^D_P!}*c%AA;WO16 z(&x`NVo(vuNGf8R*Y;mCObCqrL*rA$<^W;yuEf zK7xpI_r9<)r=;+1PmiaJrhm@+v%lnOw@xI>5a zhvIuV8JSN#Wu7v7{(Gq6rHF)-)*Z53^k(64w$p%*$LA`w79D~}jNcnj!d6;jQtj@y z0&#`?0FY)m4cBIppABvVDX$6&XfIL<9Nf=nffro7OkczUN3!MJNNZ+9IXGxUlF8lO zoz{WNmem%Ryk4g%;4X;?2{2G^ImHfLWVQg}#ONqP6guHqZ%rI=f9u7rN8ogmA?5Hs zmJ)uUc)jR28gEC9W9(E8fn-vw&Q{54FFFqtq1;~^<_dfmFzq`tX^E*U;}uiV|2O9Y zECPL9eMvkidJkX$cxO-F){~U*#a&jF9w7WUEUvZ^6g6F7&q9%FROV5vQK7^R9V&Pq zB=FitZ+{@%cX!-wadwzh*xYYR9jb|lo|F3qz7fSK_dzs-Cd_^oWV?L&pzFkzXB~;Y91<8CB^NGw!NlmI&nQ%lR))hrO36d zWov-cOEVVlxKdqxzy>b8B@)8{Yco$v-*ocyG(w?vt8|H063a=9zExGebJY|;3Z~BD z)}ufPgwJLz7*fJ zsW&9jP~EYMnOE?kz_SFn>Lttpt-`2#$jN!kYzJ zmTN&v9zOoPm!wulq8qg5ly)M3;!uIoHZCylEuEE>UU@M~)&C|@E0=d4ARo8_I;-yvnxW@P*_My23Dae)=s68~=s_8}Zi6dBjtC%9K< zT4#Fh?MAd{nb-JhrX?$W;$1JlIPIr@$n?6^Wnk2_MNh}n5onjLOHsOsejB7iI1~Tu z%&`omU%35tR|RfdWlbx{?Y>Y|7>up!EC_N=UA2xs2t_JVQkg)=B~SYa%m}OawYJnd z@A2}&84%QHKS!=F*#v3e3fXs(6j$q`x%e$odumKuYrv9B!fCb=Briu|L{ul)p5Fma zR~k+!-+~y78=HU2moJWV=X6fGlZR+!WaNJ4*UHJt7BuGMxZIUAMO+aCVfgYJZux6) z{FRB|Ri)y>hy<^FYNF+`ojV|)*f!RnEiHNRePiRT*#3iBXQ$7?SGfT0B#A0og5=BM zQ?t@8NF#uNY#E2SQ;wNU=-ni&)c{YHzI3VnmdbKd%X7A^D( znHm5Y2862I()l2M#VMVJZ{ieW8Y7*<7cQ4$s{Q>YxjDIA17ELrY_3hM^{;;6Ka7n8 z$+qB!nlB@lV1j+?yhn~10Bl(pu`h93l#`Xq%gMRUDlafVPwqQ(RnV^ak>T68oDWrM z-G(u_xuU(Fy9}_DJymisZYQtq$f?ZdFTh}@^IsI{!;wof4+5rD(gKM)zvaMKL$&r2 zt8N{v7D|>qV={TghNgP?pF0lubr36RZ}7@>eJo5zo;|DH-QS<(6|i&_wdog_dNIWI zlrF&IYbnyMo;RVTK(S_o(#g!snVA_Qprs`yCeHhjNh5pT3Y-#zDgD6`g{Ll=@bK`M zn%%bA&&T9+lzmDnMa^Xk$f9-o=P?#uVFzGp($a)P69f%y>R*T`+HIZr0U{ zTJ5-e2vC51?^nP;SSQeBm!T!?UxZu3HIdFAhUaHz%UM@a zF5i)pLco34MaG$VOxg{*y``x(RCr41!v^JrlL2J``T63-tgP&Q21$t!0dYdLMT%{~A3l7zv9cE{ zRyv?p-JZG@*2|gmVBVCXW+@stjnjw}fxf5|{5}tdBNgA$4A8->_MRriCzlALiU&rN zr04_nsbQkKqa!!t*PHFd*Unpd_&ZN80Rn5v{EHV zw&y^CgzKJmmcIo(Ck)qQ6StQ#s3~>VP_Ex5uLq^YT&BFFpF(zcaUAfK*`7~^J|;Oz z{TNI^&-ZYdb0T8hxiQnVM^C}<#uH19b|BP>g>Ukmg#29(60Z6KjeUc^cDs}av@ElO zUhccL*xh;+Y3VuC^3<1iw1io2665Z>uW(LI&fJ<3gCu*oM}s|L8y9eu*^9m5&}eVd zR-PsB>h5pG*yGU7=HvM2z47t)WC0c3#Y|;Cf&G=3yejYQTqj~>_VNox%kGF4Q4Kr+ zlU63GdFhhe$(i=pJXX~%} zzuDXiQ@I7*&bPW)s|_)zrf^F)71BX&K14-=-AJR{=Bjq8a<;ZsN*Qj=&eoReeq-E@ z5ZKDIXV0psn|&}8F@7}mY+c@eN`}wZ5to~L?tU!s;K~h%;qm(KUN1OuC!eNQFCLEe z(I(b}sVGTh+V{?`|7u8^+Kp5$13ret#~y)$xTB_}Ru;AxU++00PkuI{=zmkFeijU+ z`8FJSeJ1AB{6z-9mJhCtd^-dYDCAzJp{~}EeVxU?r6T$2Dj69WM;ci13N4v!uVl4V zd{v^jcm*{vZ|%GK<9KyPY9*5uJg9Or?Itfw@J%jHbrDE>?0C17gdamkj`EjnE;m2& zv&~W}t|{<&?R@W^UU9MQuM~V-B<$u!>RyYZ**s(5el51CwOMyyMLJ8&%$9rPRu`BU zPIlnIi0$f7`l38L9FNDRqg3{PXXWMMP-c95 ztm_{!+9aH|tFy{f=v4M@YqLov-(Xp;)20?>JfMBx$^@yPNI0OF;M6AzNA{hoEnGeX zagn%QI@6wq2rbPIU0iOimmhVXzkvk>hRxOO&1x!d)FLxJ9#8zaX>Vj_KN#CQP*rL) zo0pr~jI%5;>NiQqP@Hz76}-%{aFHeCUkUInwB+t-6e*xmgqcg=*c+y3K6>a_s=btS z%P)1MHlU3KD=~-J7IF@l#$a-Ko~?K17UUb)T+c~K^lF~zW<+TR*3ynM;r;8sZu`KI z7iam~Kkgob2pnXm7NEcDunHk{(yJ&?)BaeU z9cR4p&cvT}(?)zTDY~{Y**Ugf2Dee()iV%CnjrnC>1f!P09-cW^-Vy!-<)~6CKbQ{ zkyfxiR;_oM7H6h)cRvkQ`L8EpaYW*NUu|A1n3>E5Chih(` z^qZ*tey@T#@kdb@0E)sDGqN%3P#$FUVUUl9uT*#s2t}Sz{8IaSAdE;~xX>iAYaA!e zmL?g!6mR2R{Q0xN?bmkNTl5?A?FA`=rT6MVYnsHnmk9Lr(Wg^+2s9g~U+vX!J4h0@ z*1SWpwjKj4q=#AtSbm{j<+A*e@Lq`udH~{iwv9wBozez~)pl_a$K-sAjz?lE`J zXM#FjIsZ; z8#<4}+%6hw!8sQomJSEbg^il1g$8Y6u{pAP8l($`ARRH*SI+~|I#5G0t*u?BE@{?Xwc1{hcD!wA9oIKpK56T=BzrfEA82L!||4+<#9gVJPD`O!IMR0?Z# z*C6Fb>e_Zz+7bHp&o(&&H4ih(9EaaEC&_*+dA~JzU~zouFfLL}16tBO??1!|M@NQ@ zdGywbLh&5rt*s}!9?rJEt5KV&*e+tnKmn-O9!-lMeZS}d%WSKybWcl7ElA8|avZ1_ zY58WUYn1!>v)(5$(ZbF3{vBbEQ(9{7^qqvG1@eAJE2ESl5X_c-Jg4${YqzkYyk>Jl z6kD|sP)6k+U%fTVHF(giqm@9=F}bx&^;;1Gee5LSc@!4nJPT6C_PkZZ#gKHH=h8+urJ&|&B!Nc_+7$PRNSPp zf#Hf@oj-SM;R0o&VBdoEMI`*xpd~%xq+{T2d7wT$>zuwN(VD6Ugy68)tI^48D2vJ; zRd!lr9-cgaaA|4T>oSG|MUHu>bm!r!6Im`Dk<1;TX){y)A93U_tn0&zyH8pDRO5C| zfYqxD`S(R8=BiO3OUr%hgwP!-gEAVBS{%2tv+1w*dL-xARa<2~P+s2h3<{X0$9=a& zoQ7&vdsVsu$x?9SJp*Z3;Bj@|W3VSid0}oHa@vd8nA;gLdB%BVo*^lL`|C86n7Fu~ z3gp@xgEjfDVpMTv1&A{*?wEh)G6hIOBw(Eb+9&f(GE)Z2XXdS)2f8;1kECdx#xV}hq*b?tPdXsLbq>w3*Tv=g9+YQx0rgs2pxzS z^JDN9wOW{;oSc{`Mftf;;R76rW!Doxnp65Xiy)0nUQ-f(9oozRDb}&-bRy6YXIQ}r zz!>VORA$n%dwwJ*eAfPLQc@;Jt~{6d#FyP(9RaCh!{t+O1p4ONEoL}B(aib7yi-uxM8X$K z6WtG=qYhDKi5er{CQvLbbBxb8a=eWAD81e$4cA z^4geA$hC*T|ATVaEHe1#pnYz)67a@)cN~oS2McQl_GXAW`ZmVDtgl)f2XlV<@#&%h z$U3@{+5JSRh)ci8bYR8M$n;%vDQ~G8MYeh%)h9UZU{E~}3b{m%L@WYB` z(&z(5=f;g^DDTCkFTHEz3>s5Q^Q^9}!|80#6CjwNZ3$zkH5_>*Ci;u_S+Mo$v8M(( z0?9Ak4UOK;PVr)9n@@%sRJ+nFPWhQ6zb@5;7)-u!U%Ugy!+&iZg-bBSN8?Ofoo7j= zfJ0@8{?{vsv780^IB5MNLlz-Tf#w<%8Wr5&SAfz7m z(r5dtpZ}K4I0C{Md?oIJ*i@~&)_y-!Pt$q`GE>(BD=aw6t_4TgVeY0BdSxKtRD`BTNs7Tvs1{O%DNe z8-^PxH48$2nonynh{uFmfmg$2od@mcwtbYi*PQp!WPm2bkKgX<(NBs&^I400+5kk1m^zZr>s*)|3}K`1I&eZi(BV zkpe3&AsSfDwL?IM(UY;39zk9 z2g%p*$y?3Qlu%ae2Ww~kc9JG<>7xlXG4rZA#6&Y=ldx4996&Rwq@CCdJH_% zet4iXdF?97U2^LIh-dFI;RC7<_h0Y5J))pS2s#n>&A@+D52e zO;H{zC9Cy$N7OpaBIcqXh_3lWP1r&2Ew?AtBM-GhpgCXlft0o@BfMs_=qj zFsG@c)4%x{p%=FeSsU(akwrQ?sr=hWxwxbt;h9%&i(_u?nR1b3Ah;tPz>163HQ!=6 zphH8p6C zkWHr6n)pTgmdT?@qMY`O^I%nf3odZ04aRwR+#bl#m(!u zd-rl`RGethffXQ_MlxMDz5;qT7*uS@nI?8NAlX{eE%moR$Kw!VEGvpiB|C< z`wzb-&h9PobH5rQf+QfYw?P7Xk}7B`}W3z)axkKS8WA-^<#E^OVcmil}1Zpzdl zcpCQI_gZs>vWE>DpEhvIvuQN+ zuze=b!Edaxl~GGkf};cT#!;;d&`2+SQ^|Xy&GG}&fz|m&qG-K6XfutSg01U&_a#O1{O!5MTd7&r<<$TW&dzD;&8X3a0iEitAWQ6@h_IibrL{BKKE z9cBQKBG@$UBg_b;#-Ujhxo=mwztGc$8_u;10$fogK<0m-{~ zjSB|47PbN>hDuzqvIfQv58lPc$z^V8%263|*AjieT zOym}bmWOfL*x4+b9&fny5o9nK=Qe}s)uG#xe3ol@$j5q7j~~00II4d#|6Eb^`HGNG z{W*(rBNG#ojhL&TLB<4_!jJCokv?jz?Y=fBSGFFAr+o?dr!9sp->llm$LCU06XE{$ zy|kWJPGVZ1U-lxd&_4-ci&c}-qLd*6EDFk;2XlA*yasi2UdP!HPyM(ZlQBMi>Mh$% z>Tz9pd!7^m7LgoJw{r$G26}qN&Uh}gz3FA`^Pw}sv>1_Ja+=mEhTGBY+?FOEE&}Lq zFIOkMJ_IvyY&-wb6c3-hD|%VG;>o8)YGQ_Js(|v9n)5Oh)8cSgglF zqcMu}WGy@bw%Tw9)(3*CC5jRs0a%Wfx(36NdF51F96NFXy$Os=)m#swzeL}BQ%cO1o9lnEe0QkHZwo*oAtCO zrkZaMO=>S{sD|JgK%(S@+UZb$qb<)}R)Gsy1#D+$W#tqK5)0IIOe{W7`PS2yz}e@c zzB@4dzv8fj@2ozo*xgn4ZU%s+dBhdcka9g=~FfGjgL`!?&m9}OX_-~yJdhM zI{opCh~fN)gCNBX!7AyP-pTj4Za*Ir^!`*swob$y>6SZaS7nO{rUb2 ztc*^%UpBSW;bHg`pj6T9q4??Nm6|}hrOmWNpsl(ZXDvX~2DhR@E$|xh2Bx32=rO?k*q(eH%SZdq+D9|&} z!bcoXry4}i6xdrfn|IL+07_2T`wTqJ%EstizFbRHA-~bHK4@J?c>-g3-Ac7j!T;=& zZ7G3z??63f4TtROHP)<4FQVnRI!q;MV0FJwK`(5;X&`L6Wo1!I=J|5_h5K^QF>no^4bL+wD8U@&moFrW>lv8piLMd}oHSC$+07&Ybbk35-HQb+OVkT* z;8|P4uLpT^*L#wjrNnd?NH3S%3cw!WP zj2yVn3IP8l_Cg^DqkvTvg>fX%hJp0ER9@jg`Wavh@6bnr%|TY9bN|_Mv?cIK5ZSi} zYCVd}oci;rV5j$Mpp>@hcIivb1KhVSQWNYe8!~X@52h9u_N6?uNl}}kVnw-A+(y^@ z=ezhPA<46|r31B}ZwS{~d;K*~bTCZu z<&1>)*Bm6cL1Ucz|Is(lXgfG*{p(JRqMywu$n}Bl!t%)^+EMt}1%PiN^bTp%2GDE& z<9P`XFn+YOe3oJj0A&+dHpM_A5Y2joyp2x7(Go1iL@&_yM>*7f8NueQ3vR2-S0U76 z&xna>(pwJZl}BQ8PKL6a5w<&6PR{`C2%HA30LUjg{>eC5;VfH3BDbp?#2T2$&RKQNn|%QmkKz z-KG}E-JZ>uz~J~A)-;`fAc(E$v(y8`Av4emygFm$)N*uUaLT!Peft~Wo_7@Xf{umJyO%2$s3{ssvos~P?+MMS=;afj5_j$6y}1UEW@FEb0Z`Va zHTrbtA%-DdhVfBuo`Iom!OBX9-CaSkin}1S>7;3~8wMRR`GW5BFhmV|;obCigps2k zhb!7GgwC8Z%>#u*g3R?Z!;|$qLh1J{!0{BLZ7x`$f&C11(cFy64M`=|JHx=1ozP zmg-!CB$#h^`|E$DV(JC5Ivsre%?d!;fnwS@OK(x^b}-(I{^7%)Z=>!xanuzq`^+VR z;#NLeAn0HH{aeZ%!FIa>53qwOab>Dn^cKlQK4>WWWLhR#uXTNH{n1mPiS^285Klo* zat2;;!VvGyE%}=VzkQo^?ni6yAV~HluqXqNBJ|PIV+TOfQ6qhxIUHFybKRL83BZqJ zjPp5-A7TNwb^uyhI`b>v?-iEp8ua>z$Nj_L{Pkh0`A8$%XOAC0HYh36Ddp|82b~kZ zU)=~_K|+~LAJSTN9a=KEJjDWMI8}i5F%nb|8KesWkziiBj>Pq)r@6GLrAhDcV?6^p zKqr{2zb-z3UM~sRqQU5@K|<ErtWb3_v_R&M#8)A!0_OMG*?CTrETCs0GR3D* zP^DE_vEp&JT9&9e`78s_e;dAEQ3cHY<1r%jQkUZ4o0dgaJgU8Be$3Jvl-p;cit#&g z#in;bvov-!L|~?xNO5EJyV)54kZB8hWsMcwGV^|lZ;F`)+Z{&DtXTN_oH2AeOV0aR zL`s-f;nh)a!v-g;5BFNeHQsUhu{-{1*m0B3IBbK?qQI5u}7O9|2qfj6;z#b z*Z*EGW_$h)yyj*69Mj)9q=Wbptaq0D_rg2!Fc4sL>+T!>neKnR`Tx7r|2@_J4+D;e zB!$ijy`=nSF@mGcK@T~g)SFE!UMkake}BbrP1g#KpnhNCx@-17!vir}tnJtR@wgGs z_XqbDgt1hAr#i(0#)=L;VJX~r)cD-X9<6@Xe`9Q!xZg>BKOk~so5-;VtC1vIh*ac7#fnG=m^^w>LY zs$c^G_8%`9b%QnR3TqiT^>fKJVt=g`bSV8B>Uk7eYSO{u<;#~HH`2s;B0H4(sn?;Y zzuLMZh-&Pdh?usvwV0LxUwB&G`#(RsosZ6&4Z%7NrqQESVls(lbIRNQeZpt!4!+xq z&TlY)NQZv4^V!mEd@rT7T4VDs5FoAIzzdQC<*6SEYK0>$Tr0;;$w)j-^9MIY|2*L@ zK3e6*c@@iQ>HtZa*#_Lgj(3r3i0)MMqe2pw=;+ANxraoD+P#O+k0yz2Rxn)gC~D>U zf4ftPKDnvFvR1PH#SV_o-B}sFl~_GBo7(x`*LH3f;*+Chp81)IqfSHd`)}S@k~vh# zGr^k#Zg%P$zy-KCc)?m{MrxU5z(}RGGc11pb%G^%FluigPAOae-=-EG2?|v1>)Z&D zV1|5rd_+DZmzYJVad*OrATs@#izQ=8RuxAn7K^n8AHSJ%LV3{u}ns+PF4WrQUnYO&{|ICRSULbubZrp))`Vn?B3x?mZF|ug1 ztcqAYXt|cG_4lCB_+Z*&y}NrzXUd{~06ory7Eg!%xW-P+CQy|`yDpY$@p&Dxbwfa zp#}bYV@b#PXXq*uv~do3dD?4y#%ouSf&9nrz#pq@E^EVI7Rrcz{c;w*w0QsH!r9V+ zr%gz;m+KW1$20%4&`-$K4imnqS^HTN9Z1r$>4ylVYOI2|>3OW=&vzEUP;Z#P*RH}d zMtZzz=TB2eSi z(&M0r{!^2Elft{(?;=$XLj>+(CbfWX9x3~;v#^F@g-dKdWT1u} zi8^3Acjp<)YuB!sNoINjgD7n|^q4K-laa!i$~An@M4hDi;M;l4m($y;qx8=$Z>?l! z*!&rqckb3mJ=zTQfj})|_&IyoSDAl*|9n^J$atWwq3Kfn!yUgq|1>-C9GZ9)teDm< zuD85$_nSEP&D%}P2R3UnLeAOpI9vm4HbZie9_*a0)^~}4j1O*3ZP=7=vF`VD?zar! z)(KEm<4?{VeV?tJ@2>5hwY2;q&^CrJzB%zve?SlD;THL^N%Y^d&8JteFkDV3%LDGt zRC&JNOKYY-`w!^BSR5`Y7v`Bf|EKRSw{?E^i_7bO1YBWi$W#X(wPo_%_8Dh~TPEy$ zu=A{UE}x6Jv>$ZTmT{CC@JzC0!DX8kaQ-zkW^-HZ@&@d7g)7jL%g&}xn(wh^ksQN3 z^IxC0GXI;w+M=Y%42_@%;w)A&$Nz>cDgJ%_x_%ntfs!NZlq_D)TFtoM=zibFN=P6$ zX+sZGQ;NKrztGK)m*KqiRQTy^NegA4Rzm{5#bLqC(z*HkU$^ZOe!cOSD#Hv%@ab7P z7tNo(Do?i6_y#$)$Ke6!WUQCLwY%4^U#l)x+aJyF<9#?YFyGAj9eziw!@V*SxM3Yw zzID_{TtB@awJK@TVayy*~R~Vcq44(~cHj*aB%DH2_N^lbKI; z*@qN;y3bRxb z>`^5{#l4ez_UsW2_Pe!y*QNDVm%^1_+Calffdg3B1-t(WTxI=n@x6QZ4DG+%G-rI^ z+7tTo>F&vavZSHy0~;u>H4>y1L`e*6%X;3_#%N>gTe~ 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 zcmY*d2UJtdwmt!Zp;zf86hWkgE*%2W3`L{`P)aC4S|C(G2u*qurArqD=>pPAKoF#Z zNC!nJA`qoW6E6PuzWd%gYt5ONz4v_Ie0$BDwbzL?GSH?XXCnsyfJ#?K)A+Ji``aL- zm+x{Hucgb5#93Wm9RO;RDbDP`mvbme$5eE)oDvE={-%0PuwYz;{~!P{;%T zW=w9&9i>YL8Ab<*1po?$zYPRr=du6*2&33+*WahRmIq@?I&geW%9!^bW_ z)C0@+Z;=1N(R9S3yj?IpE}kCHzqoexp1wZHyu5#j{`>rUpFS>5|I6fo{g13mf#QEX z;u2yo@&969E>-$#RWS5+alB;yi?1S~^iSmfv;BuhN&GMQ|JlsHmHuPBl&V6mB>vyD zsgNV^f=B>hLOGG@svstB_ zrWm`Ox%8gLS?SW%>$}c9A;OeCH!6OG>Q7Rvu;~n0c9Wggr+RKOC--3LRl}0iMzbEc zG{p2+*D-6*{$TVO&dL4Fuq;;PWTV(-Y7Gaq5cH(lU3mI19s=y8b5}EiU<`hXzMss7 zvt_n~1q{tLc^*qX@F=qU*r$#PA7rx&DVOlnV;Pn4SU5@?RXL?p2Z=$Z7evr3w_apm z_N4FbPLT;kp+G=ZfP=>R5^rso|W&8+^QMsnqa z(NMGZ?iQ_6!3EEv^qJJAS|pOPJ|tJuc4wHHnAATTI4v58V9Raxc2(e;Iv=u5ya%Q4 zQ&L`TUG$q*W24Sq{o9R)!{$ug)E%jE7%ThK>KR*y2lJfxq-rGL5Ul>+sm5QL0JQ z8e?A**woDI@!D`s^ls;cO7Ou)bEvbT|Bm%*`5XuvS!ly_o6Bc>l>cNbEn_@FqD_t@ zBn=1-Tl8OUZx;xKQyyqe#!YXjoFAv7VMGC` zR!JzQEg_LG8_l5Of3C$og;Oo9BwYdLTLc9#i{4bH@Jlb9-jWw)a8#7qKHOPU+~1y; zlcL;>st#lLqwL9WU^xlY~xX<>SjMBl> z-D%O+ua3TD*pzE(Bu-bGJj(mdDU~$@MRw`EY`|36?^4kNPSvrlynEv4?nBFzlBks_ zmdPuyd-aVU#9AYzMsD)$Z;bOHGGRPz2h&!dZd)q%`Nntlh{+w&qed2TVe=}=cxG|x z-Hua_qm!-bL@$z9N8D;v_rnC!djoYv;LrK58e@xonvA!U7s6*=0SoIAL86gsWuIK^ zm`1TY&JdoJ)1V)<+D&WOu6QuBwXKtWPI!7&9byI(Lt#M#cbP2JpK+~j9}0(+Z@*n$ z!kAUxci$oLpev{~z?YeZijN;Qp}BDQDe6#16dVcC6te7^)HIAa9)%`PLd?P`EmB zyjVMW_Kowp*`!St8a-YVl^E;fhN{WF%#Ii$_vSb`u~^GS5oRsR`Ed`m;*cLP23M+| zV|kBoMQfN-diOt6W4s^z18A$T{n8g5~{TZ?HniWU_v+M z{CNG!HsteTb`Kb+X0R}t>p?)KWGir zGFi~vTmi6x%pngt*oLEp#LPFZ@eKLN8GPnXCX>>oDE8L9CCZw2zuyHfYd`%*MLh}w z>8tQ;-EPDTT+6Tkwl1X|eTf$*k_ky}(xRwIfpJVzt{b!U;cUr4IHc`S`e+>!~v+{?()31rtO%sUnTJ4M4S!|8ooP248 z=pN<@IkKC#J6sOEz(L~yGox$Y^zV54Cj6olX?jIFfuf5c18)o4+JR+mOzEbQzKNUg zvu(aSDRsP1Mf+Yz5c3|g+2HUUv(3=pS)JrTMP@Dj&EZK!IO=dEf@VZ7Ms_V1J2DVL z=)QvdMnootV%)D=4&Kv0tnKHLQUc4qc0?kb#Y?3z( z0;M5mk10Wp?EUIK-CwW-U(~v5H5?0f#L1GOGgZpAyTXWvf5c8XxW)0U^}9u(Cn->~ zWQ>`J_&+BHQt@5O-F9uObv?9FEk2v}-^R7MqeyNSC8?et74#Sd9L_q6GT8=#J#f6P z4q*NV`Y#efzjK1vlFO;+`zChh4o@D`B^@3rrOgW&{usRO32rbpYrIG`>&gVU~Oh0*xotspb#YDZOcT=6yf;>5|h z44V*_N9d%5d;Y|S1_iv>h+`t`ese`Bjr{=AILGKW0&DMFt^_TcnwlnEt{gz}tY~)b z3wMTI{!!8)eI7mNz2G)7dsDz(l1{$byXa>qwW6jgVmxd+VG#tE?MtC3m0iNoAslIzvln<#1W(j31=zsI?8F0lZk8{!*$?XXdo z^0xAy{mFE6Ed}POz;n`@=-OLPB#9yABu#*2Ur4B2C!~GaS-kw} z^rY};h%jN^t4ldVJ+%k!Mvzj~J&$0w(GyyMGk)MXZvGM{j3<2V5f!w3G)EVCrl3ab zlTIH#xAoJBDCMwHLp^G%>g@Ep&Q*ruTScO3)LrmiAUK~-VjjxOV*%=>z(Y)$!0E&) zt4+L$zZbBg8SBzydv34MwA~Wv@??HWQc1-JI1n-Zqqz;I-@Lor{Na(4+PEA!1FqGS zzuBUpv1VMfi=+VjDTb_Lf(bm7_J;{iaEGAo7$YHl(q1nH(gdv>oJL8LZDVZsG&41e zhp-d6g0l)u#2#TaN|^BIi()%oC792K5f+?$)S*%ZQL`bdc~vHF-gnO5bP8cmJDX0w z>lLz(Sc@WKviHgZEsb+HKlH$XPI6i6lMN$!q|74JB(oA6y;mmI0#<$vwV^XDFqhSH zmJwM8_2xl)r4ChUUk&;`+o}8t>rWTZ(cYJsr#eC%?00q8?;0|M!(gTmC&RU)^4$}s ztLP`^J|G%WI@(b**KNJk8iDDE7XU|FjpVc=<;vFi{@oEY@->NtB>!2|{s$R`rCb-b z?HS>c<~w!!-%Kj5Fhv;cdx2@F@q2`1f4yu5=qttu_>z+JxKO|U)jo`2G@xpL)1%|q>2_Tc;7A2*uZCQf@NMm=^IoF-9yV+!Es#-kkzT{p zf7p8#DDLC4BxEf_GaX5z1qx6^B?R~ps~8=v!(#ALzESQW@8y&seVWZuCGCY>X64*g zGn`Q83q#dE(rt%xuIXqV%?eEkVUEiZ*RNDZ_*w(0xs3(p`AN`iph;#o@ON$$kx?kM zZcw1G3o4Fj-U?0-$M5HqlIfvStJTrr71SAB%D}H+72A{pP)Qq!$b&}Fki&2nVt&P7 zUEUY(a;35okQ7uq{1A$CN zZpE@`g7$+6$FeXja9i(Hiv-&Zt1k_o?z?IpeY-B$C72&PK`z&PR&k3PP87|b*(V9{ zrp^=t(G(ij2t+;{6ne=*-tX2Slf+6a)V)J$%XOPai&5f_<@kH^Lf`T~Pr)>PTkdJS zst3JH^TQ@jIZOxN3b=$VAxb;iiY1xU^ggt=Eq_d{?}COUclCB(VO|M9C=T(c>9I{X zA-K8Kt6IL_P&8OwhU5Z2wo=@^B}H?!vGn~%&w=0B#SIaZiCa^XD%Z z^_{Wf1D3Cv1%|L-e#5aZDk+&bwHRVR)!%Elh8P&(_Z7l`QV)q>+uYhS^vL+YKUVP6 zz$3QE!(-*oIwwKTjt?y87byhk_b|ph-1!3Go^ekECC zz;6}beQD63rnj(?l|N&50s((MIlKQd){K2f&Q5IHFN0_;W`^d`E&X@>f|LOowR4ZI zrwzCXf)G>T?Y#vQg(bA(l5m{MN{R+`t*dB=T(9AMTFP{Fj^^`|tsV^;Wrw%AZZCVO zDxLAV$omq%M8v}Qvio9=Kkyp2D|gPUc#Ea1tZG2iof?dX@^AFzeGC^-o2|*e#^+6g zj^7w|N&54sn@BNXwwY_vPYptH6Ne>1I{5lFB#QPZWjp4qMn9JTG2D~EA#w|Y;eq!m97s&hZ)3Od{U>EyMP)M+|ukM0?I+`yZU zrn;2ljY&PuXkg z)g7muqqmSo|4x>7zIw1x-t@0y)$;3Ql<^?Ldk1&#v3*cihJWCBdGe$}5593DTsx*9 zB=!0jhQe)O{ViJ`EfFFf?du8DDMxDBG8_%1v(v@{L*;5IQic7t7g7KNN1$>`gdv_UxV7U3OV0%d0Es?^ z;D5*cEJLs`$RbqQsqayR57Xg9S6KPP^$cHs-4%>Y#vVLOu3O z1ylHre28dj|20AXEb!y%m$H$Q$sIIR4#D{inD*0tN*)P*gRQ@;Gg(jWnV6UUhF7XjZ{(!~X@J%1mzn 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 zcmY*;bzD?W-}a%U86yUr-GCsor|Oo z-uM09@AI6`XU@!AbIoV__G5*$QuB-et<%D0Kkh60CueaKq4Igs9$BZXiGf| z;J#8ZMgRal`QL&De8>U;0GhFbo{^`KhPs4}n+vbCts4}^>+ACBfeipsz7h{j7nr9t zldp@jD?-8-!u&6W#6$Zp3}$Bf7sb;F!fd3W#iZco0b>&872@S%md0aZVv_Q(g-hrt zD*tEtLl44i@9FtU0u1)?@!|Cm}FOMsN<=-Oz zPe&1ku<>ws<>}z&%Jf&)8tUfd31MdbYxLje-|O^rfd79dSHyq9dI%8wcLdDO%Lo3i z_QO=Ezo>+!hXd@v`LDh-ztq2&{|Ebzj}-W?`TttXza#w@`Vgu#o)q}MpG_K1z2~X% z!w&eVD$42kqHSmTC7A1H4+LL!RL-a>$cM;=)Npi%^iF@I!c(H-NP*xA(bj^v)p}`W zyJ<`6YWlHDYu|h-N%}Bdz)d6ac#O5%8bMJgr)-8q;?;3T;$kkzPmcr~txB#<9Ic*R zw~z0=R7d{tEwfnL&I%Ymx`cEd+>Sfccb<{mRbDaD)5j18?|ibC#UO4!Pl{jbT(HP^ z?5+q856`f$4R-qAz2v*WI*g6|;u374H*|e75)MCU!XClYvY%*QKAKkbpOK7o7_$`; z5~2vUvM*VRT_4btsuc<7kI7kw*Q?(R?$~c$U=V@C9k+-3dr{%&2cPfnKX-P@e4`{g zEkgSqLrl=yFhMBltes7r_Na8CmtX!a&TNeWI85?&Y9c2E1X254T@2eokS8N` zy5}4A{D{d0ol>(n1mR?W+fM8p19NYirQd>zE}cdaY5Qxl_)A3x|B=+%+E(KBO`?!G zK(WD*(&kWai4$NdFrT#qfyBgAlY%F?!PWgIw>dgP8KIww(hXEE5DL`k#Ip*>)omk{ zeYEmCOXIG#srT%#rRqA47G9o|`@InTa*K6I=e|6zy${#+P@hjLE*3tZ5a_)5zyjE^ z!%jrRI~0C>`>lLV{DQUC`cCgwQxf4XI+q?wTD8tFV*J4(^&cQcc{7nCu6or6weQ5T zM8IyHGP_an`2E{bWN2s=)>gbp^El!BTiD3Bdi{P~#@ue0_Smcug>c~>d<>pdD1bAF z8mBlf)Z0iiN$M5c5W}XSnQUc!nYQ2QeGurmCjBIM>{YO^d#E2x^J;}zhdlGO=CoVy zY~hoYnorJiWlA^u;fv^sL0FL}Mm=n2kBh+-cg7&VxHLUB&IGkzPsM35czyjLv29?~ zgvYU}3(2w&HAXsDlYybs3zucCsWPq%o&6f%u?OZPfV;T+q(s zf`zfxb5mI@=$s`QwJNEB<*P|=SWBLnyd@L)TzPyz1)FvNC;NK*?s!(?bb0dRt>Czr zeE6T{^x#Z5Q{t-K^pK;32s{H>`Z%!Rf*uhQ+jf?1(0K(PVF;XczV;lk@E^*Ehfg%w zPe8`b!yQUhrN2}UR^4rbQ(cyO)idWDS35kXRYhEW>6FuZrxRA2I}xIhO=QzOk5z8W zDT=KXszjzDur^mUd5t~1JmpAiKi&pxI%!!19z{GgjHWoSg9t28O2div=FP zdq1a=K-B4ofi7dCPv^?UH*Y~zGa{-rN-h>y;-FF9yBbK@T(U*g!a~Pu)Kc+t(Qge7 z0dkA%08e(>qTm_dAOC!9>J3WvHEp7nif1Ckq-lmV!=X4P+ihox>rU*PwR$aCyV8jq zb}TG-!CUjB!DHS+HgEfq;!dAL8XYX!m`gz4NgwFkG5dugn@ly!6PnLc{M$K6t}P!k zbgbW>jZ2afyBjj(symPuVTKUJO^>#Ak9gg?j7p6TX-bz?y}jp8~qvB#5Se5^V=}aW80I%R>_i8 zBEv;?G;412xzG%IwF07IC2+fEEW^Z8iUAGf@bKySLzoT_MT{8Xb&Br}Fz1MN>iA{L zfSrD2Xi1r!(RYd-YnM}78*o^AUD<3RA@pWlAlXq7hu$g?zLeowj7yrPSU~otmhrZ0 zHwpW^(|hBcK{A)pOwl&>`Os4yiQ8io_zQ%IHE)U{B+&n^4n{m`UJs8TmC)2C$*n51 z?D6}it6BK_N{7N+JSxbkV|H=MHIO1b__uX=&<44I3F&hq z%rkUs$#n+c5)_1~fj-_xuSz1D*ei2)cU0+qbCCMz>kDfc+Pwu+)K`SX(He{2W(4Td zlL;-IbHDRGe5$Xj&HfkBB`3p#bS*FB41usi-!}`+7S$ZiVB?jRez|kW==5O*|G~1{ zKW$^b7YCg8MLTQP!LPe3#W(iVSq^ukdN+1C^;F^$cYS8^U{ zNgj%oxBZ07|6ZElUTIs(TeTSbr^^XLu04gqd%;e>Jdj1TZbCm^>NGI@Pei01^jfld;$<3;r#y?$SmVa7OW{(=8!6JQ+ z{bYP|aj{5_2~0G(O*=h*36$ZmH{ixQt{AIW)eN6TXw>`V=Cz5-lbKFBfJp++4g6&` z>DFqJV&;k_UiU))UfyI)uv+l5D4Y!l>e%?j_8uLy?CJ}nSBwvWj{)HCO6W4onPI@g+O;RPdB8wY5UTIq<5 z{&wwQwkaR-yH{8NM|V`($wk6OznJJpNqA)j7|!^((m{ml?8nj%x4;nrnvR|C z;aK`h{@~Wp%@8B$PPV-3s-mTeJ<-!KHxu?W^y`ZZNC;CY4a-{c6*?Bslsz)8yymxZgOG+*F=gf(< zISZrQb~LRiNIp#H(;j!z#`_?rK>^W@ONby^cMQtHGx0*j(wyx0E&}|Ns0)HZCjN4? zncg%K6uU#@)^iD#PC*PfmIJidIDbLzJom2l?Xrzyc1zkYyR|Q31kGH4w!)Wa=vb_I z?cEYe+w}KLOW}SWVxNN_0|cD0eWpn?6+exq{R`5X$Ns!s3f{mix2Jl6=P+RV{xvo$ zsxdzJt0P%}87;y0!$)B~@jkQq+cf^R+ySZJ=DHAd{`a)thRqjfQX#*L+ZG4%HO`7< z8jA`l%Q*NyNG>Qit9K9+f(=2$CF_A!U&6DmLnD6shSvDGW zQm%tTr3|v@f%WVrh;ovoxU;AV_|-}e4dR&IHGOLU_)h(}GE;f8D~aQkZ=(g` zfS71bZjt`tijQv>Avb5afv61yVqs#-3{}vF3a#P}Da`&m{&~HFU(XNJ5I>A!VznLa z*NIadvQ8ye6RSZ_!+uttKaJ9{pL!JS7eR}RrgG;2<{>AFM6wh-tdR@YvO8Rzd2V&L zhntk0EK!G>O2A3m4I*TjN@4cPZxr9eAeL3pw(w>FIwU24$J*zks+A|r3=NO-QjgtB zNsa3~9d(gr9)RlN;+5B2zR!0wAJdaH&<3Y<)u>hbP6 z34+Q$X(wZ;q2iR`D@j0LbPhS)cedTj)y(otGfw9CPhKes7oU%qHA1QDM!0ZJ?WUeY zZnf>MqFGhP;dwjvUO2Of`)z5SK;m84c6c!H2=XMr0#O%x)y@1oflrphX}Nad-99(1 z{j~Jz$TzotmbVGLlJs9NpEqh8X5I!_3F+>y*T)ri1E(5kd8F%dr3!(`FhtwCu=b5W zB3Wd@VwDb-q=+sx2o5I+tP{r5zcUs@WBOuf;gD~F*BXHFXbdEmXc-;wR03dT>Gx=! ztFn)FXUPz#=(5uz{rJ>m&Jrp1PEM*+z9K~QQ|Doypr|}lw9Lyz`27|AS|P0ZWlEo? zj^HOIWxlxeM7&<;=gY4M7rkpu)*YunXAH&QUup(2SGMK$JeoxV`snER-v@8s)T9Z^ z>#CViTerOn0<|fst@Td?yAEjvK}qK=Y~U}dzTX5i{4RU!S1@O6mT0R)#*WiPlL%7r zk%-2aymF+^#yvu4+wlFvoE~O1k5;G|IQ&+a&Z~0%H4nIyiF6pR>MHxl7kw6jg~?nd z@V*foG*tvP{gL{5q`A{&>?mkKo%G3tt0K%kR*_2$x{aQIZIA?0%5A5uR$n&nlbgi^ z^@}YQRz3n-c-D>*g&a+k6Sg+ALm)OEepcf5=069~@$dX{g%tZ@5)ud+ZTB}Wm=sVx zRvyBQwC-7xe-0t9IO;d3s7Wg5vopS|%^UW<`JS^t}IC?7M0An)*EzIG~ zkpdY7eQfql!=`S%p#%nY?kqczMn2hNl^zVVOp2X?aX>bIlmL-`IGX1G%a z>nXgm6-Dt+oJFIm>Q)gn5W@SWV?@Xg`Vb!v^lvMs>DQh>?;_nrbP*;8wC|>ayKBuvxhEn;m(%F->~1( z?jBK3U;TXfDcFLWd>cKNR|4h!`=dTcQQdEu4zAb6(<@t3MajmkY62fV@iBrUo&QYb z(EKz%sq_IYAIn1A-*!RQm0Y{^NvsfWrCz==tPn{K?HXKGtQ8x{DOl;aIx}sf)GatZ zPBoS76U)--9iOE%+9B!zQA|-I7*MC90c95$Z<1ncVhEX*v}gUoU4yOYwOSiDAy#U! z$Gpg(0Qa8rY;Y?Le&c#(rJ8|`%mp_cW#w{_P6i0~l(zzl^%=2;*r!L4k^yh5fP`AL zrTz_?4GePse(7Fk7k$RkIKU9u%4UA{GF z(-r`QvhEOyhv)ayQjp$>WyZZH!nC5OodrK3`=W9}p8yU4FoTI@B~8$4_+kT`h&`j+ z(*eu4O*AB^7M$HT1oky<4sfr5epI=cYA8fsh74g}m}L$9Q;f`(Ys0``RNOl)>M^I1 zH(EE4vxU*=#4st!Q?LQ=Wn6B+2Wasf#@BTz%Katj6i2dNwjVNI#CYz@Hecq%)7?x< zj~o^ZCwI6=H3Ai<8 z?Tnh${RjUIKNc@9O^NDnG?Jq${(6DBQr4Kjh+V@DXkePfuAJ@&*0geywfaADseQ>v znd!_V3QGHChs=Ek6=&+;97!f!1)0qO_{P~t>Ya^c={e&v1sbp%+l+-tIuWO(vGi>< zG}O#Y*v7O0nt#s45%#^sJ8IX2o6X2#+U`2_z}-$-g{b8jX(VSIL@@~li(6uYt5tl$ zbT+@in0f!0ofz#&zCVM3*a1E(_M4)nJP};7EL-EU%0}W*)A}DdH9x23D-iVxj4peq4Q z3UOO|$(HmCFPUt;XCtF4yKG%ZN0!rA$Jrvf-V7Q2UKe(9-tVX5nHeIf)0$y3_c{=X zwHJIV{B8yJIztQdd7WvY&UDk&7~jzx{QwU;hY-$a+%zxNUK+P}b+e9fZQ&B8MbIV} z#zx&J@|mPm!I#X=yGmg%rZ98*UWQ9OleR^FaNDFKUYwXx7^#wg)JINutje@c6q2YG zMYfX2_-9dB=*vD@osX>4$K)plGavGKFJ4UEg%b^bJ5c;a-B5Q6qmhY-o!YpYuej>0 zS>t4o7#36Lb1GnR<~(Y>TwU;>b%GblbAQ7{@F6R16~FEnb~KToIL1(Glk#qA@5^WQjCjA;>Ytl6Gov!q$Nz6(KZyNiBF z(|mtb+rn*%c2+ZQ`T2_I@S=ti5MuJ$AAmN9B%poXYE-sK$52IoUer_xpkF`Ru>R^L z`8x=1N}y!Y?PvC}39s%HMG{Bxis#VO39Y5L5`;ovV(KBq)?P@wreAu;D=kAZzf-O^ zyi6acxN@C#Ca`(F$QsGog5LE!t7|I(^XIWxlrkS0ZrL)|@~d3JhtxyJ`hZ|}Qb(ch zmWpJ~RfKn+Aoldiq>_V+k^GI=y~k~Q-j}!D4P_qdrL()am&UE$`Eet!I!bl@ z2V{QnqRmF%#*n9fMG(d3+b<)2CWhJVaFfhi_`*Y(fknthP9K4jFZkd9?FCbB2{r@z z4;V1SEUrR+;}Xn!s8ka6wxUOI=-N`s=VJE{44t~tOq}!Vbr~r;*qIGyvs+w>uuinN zRxCm9wQwosmGcx*J<;2JiJwbV;}}2&=%czj?uKjux+|68dc;+Xh=kZ zx{ejY=f+HzWzzf0yZNeiE+PGIZ!&O&ue?qzR+j%EQjM`Nue1H3LQy&Q>0J;JE2YLV zbiFCQhlilfnpv4SVzLxP>Xc>%otco9TnHW$xc@`QrbBLg|8NyKYnLuiB3lR4``UVQ zGSWr_m&z!0mdx8!eyab~hR9kT8u-Kj}4bJNgB^55|;N-T6gwg!yF=mA&?& zZHS({Iv`FK3?XGUq{hp832YTB4x&i*oiqL5O;srtg@$W_XQ6%tR0<5&xw|dqz@!{t z-9+@nb(2LdyOL7n|jXx%fF6*^yFNl2`^~&;H+_0|+zFIXChjxtJo2 zO>EDkj0K|-D`uw&hbg_MM)yk4U{X))lcEUDTy7AN9%P4?=VXVn; zf2H;7he_13>fwrZkQ@%N;#?uU3iPD6mcnb91T^ToBV%@<+#J#+4e$fgp|*q4VrSVl z%s(jZ37@8T`Ix8S;Tnyo8WqY>JOeNwOR-4H@7+U0#l8qgLCKgnLRU0{J-6bz9UGlRJ>h`G$ z0TWW&`srbzFmk(F^5{`rGbrn-b8fuI{iOyPljj2A zqg}C#?sd$u%hwQwlA+xEP@l7Q2?)}U2)Dh+hfc*D|KoGI7gleBy1h3)G`i~N7n9I|KRMVuNYQI*{uBipP{PsQn5ts_(NG7gl9g!!zGxB>O!oD`5|znnkUw>mY4f9P83_1K2+3Ow@|RP#rsiNB z903hhkd~8jmxV&XaJV#7UI7k=N`hgsP?(G??SxA~<&_oS$}mOn-v@+djezn{w$#=C z+ZJu52Js@1@X9hWfq{Y2fpXF~f~O1=fj}H-z+h4|gcLCdOG1*RuteeC3c6^bI{||y zVQ^URks{I!=TB0D&^-Ms1Yi6=vRLBZX`&@ehK$6^K&54mLi!CfHU0mgzP|sUi6l$( z|N8r{!bGbeJX*#QO~m;V+-ZgL5I!=6SJok*kt7_!3WxLgokepm90^DC!r{R>SKwfA zQ=~fvd$e)kPllD+ zRvxaUgpifj{ms?Ix%>N~v83Nz6pahhl84G`Y3tCq(0}C~HG?mnW?2_azyzRC`UIRW z_|Kq~G5_t0?0@_67Z>#}zWf~rt)x_q6t=RejnvErW>9V+3xJmC z`WZuvjAn72w+0gZ!c zA#ROc&m%S~RCo}xuD5jUEbXg(tZCM@w!T|#S$ju3+PKnZvOq!Te!k1i>ZlAY2d$hq zcr3hl)6*dTc>dY=Qd5hg9F-3ZJx12?th3 zY?KG;EA_?MEA`bUgvx84mEd_1K6WD6Zh&~3v&UiJT=<@uGaZ9%(IN9U?-o?uhZNz# z0#o|=;zl}_TF1jsmf+jyEQ<#bNr0KCAUYnr%4g{D(N{m#MffRnz-^cE<1DqGVEx5r zS9<&IEpl`xM442IxYkCk*}6`7oUa@Kl_Om(Wi)GrS2ItP;Ou5QroVSmsVXN0)hk8e z;lQ7wszq5KKkzMEul9)W#^WhAdM9n0$1xd~J`)gN+?&lyrT2u#TL&e_WNZu=06!YS z_X6e%y?CXFn(qe)=6ByvLZ1sdi9L_*4O%9s*q`)g@<+ngXLPynb=p>5ndD-SPd(4C`aTbdZ?bxKHELC zZeth7;3PqZD?s#@He`g7m$B$qvPY*AnR5l@#vg7e+&xsaNZJ7s<$W$OK|T@wSM zh`E>hGt7-jtmLJrt}Ivhf&`2+J~l%A7}}Xca7jJxI^wvclcjQLM5Eta<3kf9Toscy z2I56cmFzMI1s+2ser!B|B({ns8CaFV`-AdpPxNlkWi`M4xfYlJ>bcQa_Db9t&LAY; zx^2E~@4$Karl&<}9jvxNSjTQMt#zzn;Qqi*Jw&F8Na(c1_Jsc6N8&(xJElah#X~^m zO$FtV=RBR5){5SC5(*jhk?uKK7`fi`Y}eJ#ci%vh-fi6~JE0;=vP_jpjlbT?{#e-Q zg~+X2Dcc7K^U`4_pWG;HNCdX~rJUssvKg;+f3y~ob_om7(fWQVrk~|8c+5Oyh)!0u zH&@f%C3-|i_!B$Ex|tDNvP7;t@z^Uj(%<;2W8RZEAuh0EPbru^)k9_D$^x*({E+n& z{y0*heI0x$J9Uj|T}LA6SZHS^U1@BX{##YX50iv${&P>g_W{k;`KLa}>>L)9+be$H za1Hq$db|JP;I|C#s!D6abpfQ!SMEJxNrX5Po=~2~$zN$@d{C4ae%`0;u5lJIc<5zV zW0x;w_KUnGPtktlP2P#J6QNQr*8K9PVlhCrtEJW_VcAdqvfOn2!G(Z&x2T5n3f@d6yv9qGdpFIWgxra94$P&Yhsnc!#t)-Gv2pxFx>U@5&M# z7#U*2+|*`pSdAT(GQiPE$Ex`}N+I!wwb~zatxGDuvCL1$dV-cI>A&21r3eoG;Lk8> zhmAcpb*$KgS=PzD#t!=+rn>kYXx#YR)Dn+tD7G%>f%NHRvzUhtr}1(z(HiB$A-%vD z`5X-Jp!>%UspC}u?_WmmD;h%*I*Zz09eZ~A{G;;OSqJ&?c>WA=&gyqG%p)(6V*26E z{`k1QNoE~O9dKi0)Wme|c} zpD9V60svR6jT^^lPq@XY4fnzWFP@(qA|#AoRZ#%ui7nS&g(Xw!JO=DIRz0X4b&exr zkY`td`J1Q{ea9M&%2%T#Ta;&a<1sj6L)n2PV_y7NO8EsgholQRo&m^2^@skl2bJt` zu{-&e43fXh6JRAQ*3k{gK53WkKIN2vD)Z{THopDGy|Ji5&I%H;Ecs!{lt{IB9_h<_F@CJB{)}FVpTFvK zXP(=eD=e5uI3>NH`X-wAtvibZtmZ?rL z7wsuLRIVuCeEjQ}R}+ZAfvu;^h{(w;f2~*YCtDTpuuti0eA}tHeTR8%o~dzA^q5{z zUQNy_)>BQCr4&n zY9ifZI%XxIcTU~-B#>+|02RG{!zI=^*x31j0>MV-*^bTh_(BK8Ju&5MRoaw8+1sG1 zL%CEWY*}Ha7nicSa&3PfVrP_f!DVI}!S&!{Ym;aR{feM{vMO6NOZr%GWB(&Z`wMOR z#)*@43&=FFCXmN^kEWAz)MHgZ6DzNPf8RC_rbOG((u3cI+!P)?mdoPYwy+W=xS^mz zfWC?vOdizPc*paTy;7&k%4PvouNbGIDHnoj<91_&*-aZqO)}LOa&*pZeF>N7l>Pz< zd;rv0z9>AUFFFYW!822_#dpkxb^lmTJyFw~@j`t0>4*7~9p0D`MHX1=O>e$JdK(YU zaj~=9#M%X_gvkYeC*Lkko|dT;vWBG#k0&O6W2g6_Mv4}FWx^J#7cBEjg3w2YH@g)Q zuPcXBzOk0d9;`^u*e`sV2s~bPHkR-tDYRo6Xua4hTUwLG+tvh)QIX*oR|Y1Ov28Zk zylyfJyrpjDH=Jjhz5$=Jg(|PB@fV!q?btPZ{rS$TKfdo!+1YTi23~<47U94_5&pH} znfUigS(B@ik&Xh(E?Ua@PItu=bDG)ZUT{R;eznP5G{Em}%@vdRrM`+tN6I(JQMxzt zzG?+!S4Ta~BX5?vtMn^pahCg%YIEzN%1z!wZj%6cu}N6lF1c=c&0t!fJ{z?E+8|pX ztL03D#Wef7T$WgBgBg5GX1JT$UHCk!=iSaW`dgj`dWdyaEzWVS!D%kH>i&#|Y?8|9 z-4$lE_MykI*a<$47lk7Bjbdv}w_`*zdXZuGN3Iu`_YOWZs2xJ(qa;J)R&SUlR@|sR zt8oL;Vk6BgD)ama+gNdT3rq5$E=wTS_vPNL5v7O8(WRT)ia$MvhreFxtoojl@A>L* z?V3N9{Or`QzB8zrK~Wzy9(B6iNvvA2IDC!4FDT_F{|-W_zsO%Zd!zcZU$$SrY)QbT z+}KQlk=a`^_W*hzPZ#yMhjHq8PQ9i6db5c4WxBN_N7p?>>OOl+NcT)WrFk4NdiE{l z;%pD)D#!i39~nk@^PUQri!2Iu0oQ(*7KqFFs)#t$B7j`oGM}O2VyLY`9N-5vh@n;< zRNIc6&UJhY@?%IVdD-=xjGWJqn^0=jZBU)tv{v1U7ED&2v5=oi(iJ2&r=CAe0V;*$ zW$8S9fv(wveNqLlBQuhxlIr{{L<<*+21HMjNzwF5+p`Q`+5~JF9k>|vUCpaTL{(Py zw>le+8;vV|Ci0p)i8;A|+2>n*&Llb{e1az3q!#5`h2t?5>RN5A0%e*-$ySQrj$M&HIK~a9W)6d?W8J*D|_Nsk$ zGP@D92-<(_m%Dt`w&=aK1L=et-x-8!#A~nMjd>p5y_E~xqvBa(g-xz$rbrZzJy}@V zMDqqtV5Q@0Jnd^ZegdA!J_j+KUwf*Q89r!GpX^tCjM-_vCiKDr%LHG*Tq?b|4*FY1 zr|I5VzQbkN?NfI!QSV9w{6i7N+PZuZNn#B7s)KDhPO1TQJe zZL1UgBIOOdRP;I*>7?O<3ezgLDn5OQ67L#>r1#{bKe8hz0Pg 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 zcmaKTWn9x?_ct&$YBY?JE+wS96+raD)ZuW1T?Qn3UDI*M)-R57?D8{(G_ySR4Gggm^{a$ULZ`#Vl zSlI`9mR!860V&>^<>UGzD;4vViC})Ksa(fDL<)3`tNaT<{#2fw6lCrH>lD%OOh1aR z{Ml3g&0cbLo?W29O1rl;uYT|AlgnY5Wtk1R4fA56Y@{{Pk0y=hB9{g+(RJ5@-qNKjvOa^8CutOT_;keeKu@ z_jbkrr}T`M16BPOI@rG9dBd#DW>VRJ{#&#a8mSRjo@tTgVYnW?I9&fK^9LShqHR~{ z$R8L1OsSy~UIrW)mz5GLf*fiZIk{GSRhg^GGSMTs5zUk{PaJsQ(w^F#!a7XW=3U4z z4AJNt+u{kXwD)tMoSOx<=h4l5%wHVe@dVNP&MLuWh1Nm$=FKKwST}t}sBfyOa%w{a zt*5?f$bHex6HV#uP?MDB799wW=oz*W;m{eUa$fY6N&MX(9$!b-Ay}kWEZ1M{-ZfZj ztfc=7_nOtZen*(ef%;30)NJ++p(aumNd_c-=ORnXHxYRM-9%7MW`)tAhQMZFkn_GZc{UxHU(d&vI}-CD{u{JKt_sfMQ2f+e~1PX}g) z=yU{p!`wmdNnG#vywP9q0H0o*oEwx2n(2G_J-osbVltnfT=GJ4pl|k=v()=_&RSY5 zR5mY`_i4<2oKA25su*5#9{k+=oTsJ)aB`bWEi5aGb`j9x9uQm2mGv-ua!l-*Jvw3* z1X?C5dRE~*EjdJM^sBnO`TZP9lzJ5Hh&U~3?Y^W>OGkIyXRgjLjt`qEOIMvw zycfYPd#0*UcinQ^hHp&Er~`K?PP!Q9A~D(l>taQ51Sf4Bs~ex6{sATF%hoJkF>h(E zE_ybPL1AYGC|*@LRw>52Dk(-e3ywR;nB9?*362NUnTeko2S-rqnX1Z5DDG|`si(nI zrsM^8EfpT&5bu|0HkTVsJmagd1P@u}avO(Ek;zcy^VBCsU9!U`GR!yY4wWC8emffV zYafJtq~HooGv@!Utu_nFlx!q^>QKY1*1BJ`&_mJVb8v@TUtd?)o~d?o zuYZ{K1mtW53*8t^9!?W%XEb^BK)VaL>P@Za7JeS@Zk$t5s&dY#hc=H!vsn5wx0su> zzFWJhGVJaifQ5i{F;t#&p+FKf2Rpk|Wi1VMwqlA;+f?!f->oRRnnMCfYTVwsxh=mk zGYfnK6b@wrD2gg0<5VQ~T1inT)E#5^^SYK7(cekWU4a%9U9N=7inEQtSKfgZKS0FE%iFV;^>)0OMy$LK|I|vXh zhzS`bUcxGt*WTX#XN1@~M{>JivVMc5%K8~u&7`NN=j1n&`t`(D?vw;ry2`WoLc6zD z`&~@73ej4wk^1A^P?oyR-I}Y?3d71vQpNV30bCc!{E!+#^UF`%n)d9;{`8N0K3}+! z{KO;7*YfdoKKVPv6jH=5&Gju4%!PtYg-Ut-o%~i*RCI+&>0W-c$-}Edj*9+{6TZ*3 z&VKu5rpiobW@cu%fZ%Qb<_G#l1ON2tQ_izw9>GUyXB16%C+5QRY;_%+vn)!Uo4Qle zm8Pa($%xU%2$)M~dQ8=}5BobMWi=lI!t2sLRoeho<@2EUsy$-ZUtK`F@_;fc=o_Vc zd|ME$zGmJZg*L?{Qgp?_@1B&jHTtPQ3D{o~ZU*`k+}}VQmWysauEfuUBkJ}JaD_0x z;g76ITZ75>bgT^0qs|Gl*|kZCet^Svwfbq2uSD1m@EB*(YxH(fr1b+rx*na|A2ht3 z(6-UF;Vtmsi=(;=XNXMVz|GB$jNf}^>p9W0Bd_nQ-ggGVcb8em><`TyD-)-f?Bmf^y4J)XZpWkt?yEJIHL;|^ zqGfuKDhYtv#8n|%1QRHJ;L~VC2RW)^T7L&lgr}rQ%eva#_&DINL&vu`Fd?8^On$5T z!#$Zpi?OGWF|$($sMo<*n?sZ%?@a zE$BdYA)$SKo4)u92}8@3c8QmMgRgZ%9H1>0KHNN1Gwh>rKZ=tE7VU8|mmX@p%rh}D zxhR~stA}GmDK_Qd7e^Zwao_eNV$Glc;j}d>YAPlw&e{(vL82c803mkJIEWzMrypc0 zfp&ETz5!5r#QPRjjS?dRgGPRN!-*Hw^n_eJVY7>oNwbwSa@7ltI;~WkRQyz8r^Zh- zL#+{KU>#98B1=z`!%)$zldOK6y{%m2Hiu@$R_2D>^XR}4%%31FTUe-d=>uXgf`jg9 z4D-^27{Vl${W5K3@Xfb{@V>t6(OAGEIq`)Fe}Z`9HT>G#2SbS1!0#RKEKf@m$i+fR%YM7?i7qaDm~gM-c1?+)uTau(h;h~V$@ z12S1=(pY?7?|3I}iuh;0F%;}Pr>BW|9ukd8i;az4tm&=(!O0vzSG4zHQg9yZ zoSr>sdsyb7_kdtohdY=DMaTrmBg_+6%FNEb0^#qArBPq9FwRe8u%4R2Kd+F^&K349 zX~6-uvg>k7M63fZ{^lEm4pY-(kQZ3TvGrPYlG?A5Z_*1HCouf5daZqluY{wIElxIU zSH^jJG<7a=QMF>l%yHSdQ`I*HZnB!{M?2$Ev_qK`1=*Dq5bslHgutrLBu!f z!c5OzwFFQjb7nZ)-aYwi0^ecQup3fom_0zu+SF-X2!mqubfL?P$t%0DL>M5GrSuBf zr_ON~s%6hXi2d046z zJ|L$SM7XmYfw9YY0}%FMpSUX8ZRP@>Jh!aTAHj@MzPzIgbts?R1>FKO%sG<7FX*h; zIIfrbJ<}XtQAl!TJGKSg;i{YnW2hPv?k;coB8@U!I)rQkw zl5ly$AeqKlo6qp!&#cez)wXXL$wqG%D*EWRq8_|MW`u3=^SUFiEN+5cUM9ZI;I_xD zrq50TvZU16Nqzf5Am}c%;ZIm_Q8F5ejENH2zP-x`ouSF0CphWJw)JP;0{>s?+{^tcB z4xW3<n?TI268$OEjv^(LV{gTY{{8e~Ct41a%03AJRl?|+|V8n3x zv<$)A1zwYER6%xBtf<0&(nRQj2mwzod-b6Yz3x4|LGWuZx5-@PQ zr0R1J=;^jEi6~)$d3-Vmh}VX2!EsIJJ=@9n)jHyMeHi|J zMe#NX$-*uoPSkv~MZZ#QQ*sDen^VVklQ(sef z7gvw+Yh=$Qj*nC4tIt-sNP$a}fKU#GW`F;0=Z^w7IuDw7Hi|X1G@a#yLL9ONu#3a= z$Q>oYXYpw-4Gfsa<3-|UdwExx)|x6lxU4NO5V`3hd&KIgJ-BlUr$pn4tNuK~dDS6i z8-1=8@P)Rpx2dfKI@jP=9TBNY6-)LY z<%0@q6{8Dry;g5WLn}?2n=-V5=xgECRGTy40r&8UNZ5ldi256EHr*- z?#R_gJ7jhvaFAiYH5)_v1M|~ssE92}zKw{G9YhO#FD27C+YwKw-OsFL7lgvlAp~Bb zQT@poizbi)Y+~Z!so;Bm^!hQiycXhK0)MqYNaZ>?w8_TPt({RBf0Y=ps((<)AJO_U zy0^0dH$B!ygqUHI7n%Vx32iW+Vzic@E(f_qSTJ{wW=n*Wh0llzD;WU@zD3E8umDT(y2YHDiA?5s=1JrKlS zmw7(@)(Mc+Qj0tM1Zmpj{A=pzR`rA}4P%e&b7=JUKBnV?+^BYn$#D7}P! z>S9RFSo=%j#TI76+ zJ7)F1agox(sZP(pbW}Bd%lIKN%ZrO_afYyT#I+$ci}k?=T$j%2X$ag#F@W2GMn0oz zU7@I@`n~H&mV{e4ig~5MI6zR*$hIS^sUVt~zu=f~DM#jgpOvS^#5>)2gliNncp_RA zi&^7P2G`F_KS~zjfmK?DloQcw>+9uzf3D{J7w$*Eh*zVIaetEi zjYtSnX3F(~T1nD+Z2i59OSf7+ft7wDdWC0KLggh(rS`(`+izuMXcE7oB%1@pgVuBN zxR|WDaEP`uVvG|iY#R!(akr}^NP8#y5x)Y?$v}OG}|Dh(8H7cXZ^2rVG4HyH`DUHqP_K#rTonNVM?Byrd+L2p-8-uU_4U zX5Cxmgt&ChOiKoMMl>1}lQT&=r$Dydm%sS-M3SmEpxMcS87P)D!RMwX0Rf*53e5VwKlA$<$2}XGi-f$2?+e*d+sYD!PpH*D!#og!>0Oqj zka&E>dG6A~o&3lmK7QQ1DgyX=5#@+{bPp+9AOMs^_m0-9PK(N$I^_hUkqz3hSUzkIhCj5JUuf)@|>pjFv1;l|5RXPf9N|a6KhKB!no&_dXQL^3|FOGQltKS-I zr5y0Ea|X`{ds24{sk9$Hxyh8u^FAD%uRQX-s|tX*fU3&p(ESki$x%+|$jFGlcxK!c zwArcqvA~iTY)5)9v ziv^!%KfMOCyd?%Ggwo-*8~2}o^Tav0riU*Ax`p!-+f ztCqDP-?<_fhGwrc+VFhs+vRb0bEZ?Da9uOU*-4Y{SZ`so$dS>X zvNbUJRtNtWjS4Cn(~9wm@lBYG9y9|L5$C-OAb9MEoIZI^#Uyi)*A!>mu%&rw1i9Zck3mV)@DU<12 zto>MgY-g#9G_AKEVIA{YSUSUhzI*^37xhfHf7`7pfF;{W$r{+EJ|h+5660Z37Tu=_ z0@1>sepfo7QZBdS^f&H!GsdwL_AK>jI*Kko+U@nj>D|?r{Y~?Ib#V5_tHev?1{FbJ z{DpJP(kr*REarIiloKqG&`RSgU}c+pEnCX$d9x-7fO!B*UI+ zv?i9An7BN|V^q&!MAA51@Oc2c;+V5OSBXL8O?MUSB@*DiB zIr2AsZ{#F<2fNs`JF9N&V&H}SBhJol#f3!LNU}vpO|IhvnOi0(?UtvsZJ~R-B zgJ)$syj-a`QxB1K1#nmCL!)y!TS$F^IC zBRUs&13r|;h{OHa{Px8r-m6-5^FFiZwT=?}YOK+Mw@?0M(-&2n#rTPM92<-I(9qHO zu(jN2B>+WW(VHv#uF>X9s{2#)Q64_T-~k1>tv<$#UuKRHPxfD^3EU_>KvI*jv7G3a zYTsz$U!?N5@y2dQwv(Xqf$ zb@D?Oa$vj9ekaUVt8@%!Pc()a%^d5mV@Lm^h4}N&I~|a_*~NiF??Sx+(w&#zCwzEdS9~wq@FnAWVSW1|1xUJ9 z7=`Z&8HneW!GfRN`>w~Qf3y5!X5Pc#FX21}NT$#&mi|$NdkK*qni@~>WEqOmKkOQM zx(!?Pi)gj~qNAXpox+CYKG=9fswY2~W1$R(R-Q1{9HZzC4B^M7M@>xj29h`})B&wy zv@dZXp%3@|Z#JmHn^ak7^MR01m!A12Qr0v-y-sesI)A4YPBTjR70Z?G2z^@`@=T-y zctbTUGRbRPvhYAD)-K#T!xd$DF4FOaQPrG>BABG}y&wyyVgj>#-wz}=I)$VDyOo?n z&qkOPQ1BRR{prNkr-4%?LbSb228ypW;#0w7Wu@nmp)gB{>y`b6lGQi-IsJT>p zd?27jncg5HVp!;NuKd5-j8=Yq`pVyQ<-pVm{7-b&svze?Fy~ z0SdiS+V2`IaMgA4B1W(UIMgUaxiFX1J3rQ&ODEFlIsP<{PV}AKLzbK>P(NtlF4KSD zry{anV?G1aasTlzMUE{&xy`yO36WLrvv2z|CRW@)s;~S3{f?QvIWhj_6COGz+UICR z^riDXx%2w>p!a{QKyDsNW7u~30D78ey+OWmG1 zahql0m=l7FDO%?Bs%<^XX9U0l&&>@q$Btr6(uYs9F!;P}FZkVU0$PVN67G|&P7scL zjly9;Y=mIl^8ZV;f~0prr6XAA$Mz4}85&OiSEkhpU*t6O%O(TbR0l|YIz0a~D5ejZ zi2M2+kCI~wtVs5lFdO3wxyyfS=ndgSI;`m{qnoW-biv6w_uk8VV2E5kJdnY?+qlF_ zNtL#O6>Wq|u%ZrLVg85|7yj-~td8?+3=mH+ND5J=FW3Y=^0!Vcxqf2;ceF)5moL5C zUg?RtW2j56J@~M(Z;NmTozrJo6O>$qR902(f!mzL#-8~1Ctey8Fc49L=_v0EfaYoKHUQVF@ArA&DYRL=8=<{MpV@8}pnr3P{;vE{+ zx63E#>FQ#{tNa4MBZXqVukO=J$7*5hjN6DRJnonjO8Lib6d0-M^+olw(I@m_#UIvx4-2wEH=(O_L#B6%z{m2_A}7YoH@t@*)~t`?)9C2v zN>`YNtC64&ho>H2D3LsFk9%%nQ+HNR4|0$ecE^;Y?->I4DpcLVE$YFN>Vlq_D*^#o z|9tuJuaGY&L_CH33jW!Nt=)3MY<%#qW|X3#0W;%@xpTeWz67#57#BvPkO=3Zqje4@ z?c`S|?=G{R@_s91SKHZX-qzw&J2&KRi$8&B7qJffD#(7*MMCXpBrYi#)Lv4u9%fF4 zo@p-8&gJ7cH)_dXpib;KZwwBdaCY|j947~PJ%j63*50BP3u;Ya_-C`8feR1TF=eusR?=)c)HW)h7v;Lndw1a~Z znfg!lK5TvR@)4J>>Ht@p2c=(mW#w++-@kvU2UC>CG$REa`im-e`gbG7hlYm8b5kw% zOr{C(&E;<*70B@98+3K$j{!UdG6@2^fa`^LR@sQ>9QO|w9CL;61bWIJ7cRbIt z8VI|w_1e($strnQ2G{^I@>F_B+o;iNdm2)@rYe_MM3+G8a~ARZ7+d09`iSt15&-w3 z5^MvK{m+iXyg;M6WEyHwzpf=R_D1vkV#YKJHlJ*KAL+27Qm6n{>*x;f3DmO%kRP#F zuo~VAc=CIeq|hI1Hj^N&us2W<#s|uIG{&SHvn|)n;b%n&U&49T^D?dd02M~j$%o(LaX!#3d9tJOP|8oji^l;B?+RO=Ba}V22b_bZuXk%~Z;=IlBR_ zAePIadw-{GSufs^L}jn(9xvF6`I$7uumFYH@_+A{{Y%*$%5#vxfvZ0Mnj|vHTJECQ zQln1oE(cfwZt2Wp8|?nYoxj_?f@u`?%^Z_A^)RpF(`DYT#}AK;bP#n*F>pXhWAk8^ zt)M#{MB0Y6!DHP$2InZfz4rTO!o9m@*TFTdt-h$slkGL&&%%p;x8AWgjh2K=7XwdB z&0}=e5vI$Wrp4x#m?C~)hzVEkU%SgF)>CTLJ^ihFkrH;$LAq?ZM*V0y(rg3cOSKUk zfUPPfOW)Znymv~oxi}*NU>V~?g0NcjW##>bb#*9@_ZiXMZo3YHH&v;N#B5n<2G(WItdU&dH=i`0=5^b);) zWC1Pxs>t`bQ=33Xhyt;>XTC>uAhs_h;P~smTXI2<|BX)?G>Q`iGV+&pn!fKx19$JU z-u%`_xEe9aP>HZ~!BWzvpb1AS0E}P6g>EQ}=sAsYVV9LXT-BbZM-%{oLdvC%lvvs@ z6-0TU9il9q=3*#bC-p4_RslLc?In<+qjPh7LbMwe2r#}Nb}I}3o4V>ze*S#KS0I_S z+$Zq7$N8`k{{eRD&&_wSA9iS1>*($ymK3bUcVanTi4g+mTME#m-HFReKz6K}yE=Yc z;@RMk?ldC!9KP!@U`+q%U=fikDGKvBy(QTD?KS@@OF~4hbOW-^ZZysiP7EqZOBiU)4~k2ZOG$44Vi4yvSbzH#9fj4ZWjIkVH9QwZy>8 zf}bw{n3|fZ<{X~S-tm=RQUbyMec#|9+vk4t#+3xbNvbvoe(c&OHrZF-?9n~sO5aq{ zW}F+7AoLp%SUCg;!C4>g0fgX~N7VRkF7F%;HreRi|M9H?P4aTIL`P95JY*MfK4!nN+l-dGOT+LirWWqu1|nJ#8S`Xfl_g1m$|A3(!udzK#!BGyN;g>q!Q9C@Cg1kP+6_0+t*Pb0B* zGO6~XKE_(4=cdpeC;1af?>HVDa=@wn;o3yt4?K!4j$w~n0dRG;@0N{)CoZn8doG&~ zX~Xj<9uq3t2ThDfEngpE3*I0&G?yWdU7PENCB0<{9eDriWNekoD{LlDNVg9s&?YjS zxL#h01}r=wh8h_d=!ZZcol$!8i-BY0x`8H<-S2omhRj7`hQ&O_+_f9bh5oTs3WQjDiT9z3CRk*I^!7jFB6g^Hn)&G z&joW~?T`@er<8km$SZ4K-;0C}_xsQeEle_)3yGZ}s>4$h$0B@hA$($UA?j-`z%#62 z()?5dBkPC5{q?+1*8SM0nuBoMwS*OwE+^8%GiscF)oq2QgqAK_sFvkm&E7i#TyrBM zqpt;D&|7D;l#JLTbvlw=sl#dHPl7m<^|3I1>x8DQ(E_&(+}WsAof!Q?7gQrZwq{)W znJmG1wDA{M0%bf~Sy?$F)+06@h+mb8Ywstk5Y~9eb2KKJ+sV$?!+^GVb9pa1B+idG zPqB+4i5nY@P0Ab!19ftB2nTqu#@P=ZLo}fN0P1(G!j*;+x zqJxJetputfNtVb}DX6d;kg|-SKCu%oLQim=$Qb}RbyQ_NrVpSYhp3^R0jzF>tMfmj zfqe@6WMTlC4rRCwk|f;QPy_VOvM&oG?z?b`$p_0gxY!o3V&{WAp_k+!K{7pzd~rrZ za>zNB!PWPF`Y53d@u3@_B!MvSmmw@w1JLjMd~99h6g!Fy5c2PWQtm4Cm?&8DI_P8Wc?={EC<|j{rrKcswfGg=0y7neDnOsug<+#C z+<)WVFXygcu>gL|Tu!T@ZO%K0O#eH3E%lgh9Lh40}t?f*`y9eOD&)}tArkf({2#qw-# zkyqHo&P7{WTT=B8gfQQc8K=*M?&0eerZ8%uQVl6F_)CUA7q$pX5ai)&X>NZ0?G1_! zr73$Xy}@u`#yXX8ERl5+?r_%z%hUNFh&dFxqF0*>a#&hv$N;n z@-nMDEW~-)&UFH!mePQKjfA*kS4EYio;f-}dEZV;8DdlBw9=@qQecD%!pTuTOSFcIc&hy{iZ!&NJ1j z!^-~vu(r0AEK+VtymG~;m9p`^+S`$@_qm$s9re6q%0W9el!+Vgk`@&Db#%+LSA9J+ Vu(5TF{pSVFvnSfBRgWw~{|7^yU3&lk diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 001eebc..0000000 --- a/docs/index.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - Home | Utils - - - - - - - -
- - - Reference - Source - - -
- - - -

Utils

Utils is a lightweight and versatile JavaScript utility class designed to provide commonly used functions for web development. It is a collection of various helper functions that can be used in a variety of projects.

-

Usage

To use Utils in your project, simply import it as follows:

-
import { Utils } from './utils.min.mjs';
-
-

You can then call any of the functions available in the Utils class.

-

API

decimalRand(pNum1, pNum2, pPlaces)

-
    -
  • Generates a random decimal number between pNum1 and pNum2 with pPlaces decimal places.
  • -
-

rand(pNum1, pNum2)

-
    -
  • Generates a random integer between pNum1 and pNum2.
  • -
-

getPercentage(pValue, pTotalValue)

-
    -
  • Calculates the percentage of pValue in relation to pTotalValue.
  • -
-

clamp(pNumber, pMin, pMax)

-
    -
  • Clamps pNumber between pMin and pMax.
  • -
-

lerp(pStart, pEnd, pAmount)

-
    -
  • Linearly interpolates between pStart and pEnd by pAmount.
  • -
-

flooredLerp(pStart, pEnd, pAmount)

-
    -
  • Linearly interpolates between pStart and pEnd by pAmount, then floors the result.
  • -
-

round(pNumber, pPlace)

-
    -
  • Rounds pNumber to pPlace decimal places.
  • -
-

normalize(pVal, pMin, pMax)

-
    -
  • Normalizes pVal between pMin and pMax.
  • -
-

within(pVal, pMin, pMax)

-
    -
  • Checks if pVal is within the range of pMin and pMax.
  • -
-

formatIntegerWithCommas(pNum)

-
    -
  • Formats pNum as a string with commas between every three digits.
  • -
-

toRadians(pDegrees)

-
    -
  • Converts degrees to radians.
  • -
-

toDegrees(pRadians)

-
    -
  • Converts radians to degrees.
  • -
-

pick(pArray)

-
    -
  • Returns a random element from pArray.
  • -
-

removeProperties(pObject, pExclude)

-
    -
  • Removes all properties from pObject, excluding those in pExclude.
  • -
-

prob(pChance)

-
    -
  • Returns true with a probability of pChance, and false with a probability of 100 - pChance.
  • -
-

getInverseDirection(pDir)

-
    -
  • Returns the opposite direction of pDir.
  • -
-

getAngleFromDirection(pDir)

-
    -
  • Returns the angle in radians corresponding to pDir.
  • -
-

generateID(pIDLength)

-
    -
  • Generates a random unique ID string of length pIDLength.
  • -
-

decimalToHex(pDecimal, pChars)

-
    -
  • Converts a decimal number to a hexadecimal color string with pChars characters. pChars can either be 3 or 6.
  • -
-

addIntensity(pColor, pPercent)

-
    -
  • Increases the intensity of pColor by pPercent percent.
  • -
-

rgbToHex(pR, pG, pB)

-
    -
  • Converts an RGB color to a hexadecimal color string.
  • -
-

hexToRgb(pHex)

-
    -
  • Converts a hexadecimal color string to an RGB color.
  • -
-

rgbToDecimal(pR, pG, pB)

-
    -
  • Converts an RGB color to a decimal number.
  • -
-

hexToDecimal(pHex)

-
    -
  • Converts a hexadecimal color string to a decimal number.
  • -
-

grabColor(pSwitch, pG, pB)

-
    -
  • Returns a color object with a hexadecimal color string, tagless hexadecimal color string, RGB string, RGB color array, RGB normalized array, RGB object, and decimal color number. If pSwitch is a number, pG and pB must also be numbers and represent the green and blue components of the color respectively. If pSwitch is a string, it can either be a hexadecimal color string or a decimal color.
  • -
-

getRandomColor()

-
    -
  • Gets a random color in the hex format.
  • -
-

getRandomColorBetween(pColor1, pColor2, pAmount = 0.5)

-
    -
  • Gets a random color between pColor1 and pColor2 in the decimal format. pAmount can be used to change how close the returned color is to either pColor1 or pColor2.
  • -
-

transitionColor(pInstance, pStartColor='#000', pEndColor='#fff', pDuration=1000, pIterativeCallback, pEndCallback)

-
    -
  • Transition pStartColor to pEndColor in pDuration time with callbacks to track the animation. Where pIterativeCallback is called each frame and pEndCallback is called at the end of the animation. This API returns the ID of the transition. So that if you want to cancel it, you can use cancelTransitionColor(ID).
  • -
-

cancelTransitionColor(pID)

-
    -
  • Cancels an ongoing transition with the ID of pID.
  • -
-

getPointRotated(pRect, pTheta, pPoint)v

-
    -
  • Calculates the position of a point after rotating it around a center point by a given angle.
  • -
  • @param {object} pRect - The rectangle object to rotate the point around. pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.
  • -
  • @param {number} pTheta - The angle (in radians) to rotate the point by.
  • -
  • @param {object} pPoint - The point object to rotate around the center of the rectangle.
  • -
  • @param {number} pPoint.x - The x-coordinate of the point to rotate.
  • -
  • @param {number} pPoint.y - The y-coordinate of the point to rotate.
  • -
  • @returns {object} An object with the rotated point's new x and y coordinates.
  • -
-

getPointsOfRotatedRect(pRect, pTheta)

-
    -
  • @param {object} pRect - The rectangle object to rotate the point around. pRect.anchor.x and pRecent.anchor.y is used to control the "center" of the rectangle.
  • -
  • @param {number} pTheta - The angle (in radians) to rotate the point by.
  • -
  • @returns {object} An object with the rotated rectangle's new corner points and center points.
  • -
-
-
- - - - - - - - - - - - diff --git a/docs/index.json b/docs/index.json deleted file mode 100644 index 37d0803..0000000 --- a/docs/index.json +++ /dev/null @@ -1,3064 +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/utils.mjs", - "content": "import { Logger } from './vendor/logger.min.mjs';\r\n\r\n/**\r\n* A utilities class\r\n* @class UtilsSingleton\r\n* @license Utils is free software, available under the terms of a MIT style License.\r\n* @author https://github.com/doubleactii\r\n*/\r\nclass UtilsSingleton {\r\n\t/**\r\n\t * Object storing all color objects being transitioned at the moment\r\n\t * @private\r\n\t * @type {Object}\r\n\t */\r\n\ttransitions = {};\r\n\t/**\r\n\t * An array storing all the reserved unique IDS\r\n\t * @private\r\n\t * @type {Array}\r\n\t */\r\n\tstoredIDs = [];\r\n\t/**\r\n\t * The version of the module.\r\n\t */\r\n\tversion = \"VERSION_REPLACE_ME\";\r\n\tconstructor() {\r\n // Create a logger\r\n /** The logger module this module uses to log errors / logs\r\n * @private\r\n * @type {Object}\r\n */\r\n this.logger = new Logger();\r\n this.logger.registerType('Utils-Module', '#ff6600');\r\n\t}\r\n\t/**\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @param {number} [pPlaces=1] - The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t */\r\n\tdecimalRand(pNum1, pNum2, pPlaces = 1) {\r\n\t\tconst result = Number((Math.random() * (pNum1 - pNum2) + pNum2).toFixed(pPlaces));\r\n\t\treturn (result >= 1 ? Math.floor(result) : result);\r\n\t}\r\n\t/**\r\n\t * Generates a random decimal number between two numbers with a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNum1 - The first number to use for generating the random decimal number.\r\n\t * @param {number} pNum2 - The second number to use for generating the random decimal number.\r\n\t * @returns {number} A random decimal number between the two numbers with the specified number of decimal places.\r\n\t */\r\n\trand(pNum1, pNum2) {\r\n\t\tconst result = Number((Math.random() * (pNum1 - pNum2) + pNum2));\r\n\t\treturn Math.round(result);\r\n\t}\r\n\t/**\r\n\t * Calculates the percentage of a value relative to a total value.\r\n\t * \r\n\t * @param {number} pValue - The value to calculate the percentage of.\r\n\t * @param {number} pTotalValue - The total value to calculate the percentage relative to.\r\n\t * @returns {number} The percentage of the value relative to the total value.\r\n\t */\r\n\tgetPercentage(pValue, pTotalValue) {\r\n\t\treturn (100 * pValue) / pTotalValue;\r\n\t}\r\n\t/**\r\n\t * Clamps a number between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pNumber - The number to clamp.\r\n\t * @param {number} [pMin=0] - The minimum value to clamp the number to. Defaults to 0 if not provided.\r\n\t * @param {number} [pMax=1] - The maximum value to clamp the number to. Defaults to 1 if not provided.\r\n\t * @returns {number} The clamped number between the minimum and maximum values.\r\n\t */\r\n\tclamp(pNumber, pMin = 0, pMax = 1) {\r\n\t\treturn Math.max(pMin, Math.min(pNumber, pMax));\r\n\t}\r\n\t/**\r\n\t * Linearly interpolates between two values by a specified amount.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount.\r\n\t */\r\n\tlerp(pStart, pEnd, pAmount) {\r\n\t\treturn (1-pAmount)*pStart+pAmount*pEnd;\r\n\t}\r\n\t/**\r\n\t * Linearly interpolates between two values by a specified amount and returns the result as a floored integer.\r\n\t * \r\n\t * @param {number} pStart - The start value to interpolate from.\r\n\t * @param {number} pEnd - The end value to interpolate to.\r\n\t * @param {number} pAmount - The amount to interpolate between the start and end values.\r\n\t * @returns {number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer.\r\n\t */\r\n\tflooredLerp(pStart, pEnd, pAmount) {\r\n\t\treturn Math.floor(this.lerp(pStart, pEnd, pAmount));\r\n\t}\r\n\t/**\r\n\t * Rounds a number to a specified number of decimal places.\r\n\t * \r\n\t * @param {number} pNumber - The number to round.\r\n\t * @param {number} [pPlace=1] - The number of decimal places to round to. Defaults to 1 if not provided.\r\n\t * @returns {number} The rounded number to the specified number of decimal places.\r\n\t */\r\n\tround(pNumber, pPlace=1) {\r\n\t\treturn Math.round(pPlace * pNumber) / pPlace;\r\n\t}\r\n\t/**\r\n\t * Normalizes a value between a minimum and maximum value.\r\n\t * \r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\r\n\t * If the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero.\r\n\t */\r\n\tnormalize(pVal, pMin, pMax) {\r\n\t\tif (pMax - pMin === 0) return 1;\r\n\t\treturn (pVal - pMin) / (pMax - pMin);\r\n\t}\r\n\t/**\r\n\t * Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.\r\n\t *\r\n\t * @param {number} pVal - The value to normalize.\r\n\t * @param {number} pMin - The minimum value for normalization.\r\n\t * @param {number} pMax - The maximum value for normalization.\r\n\t * @returns {number} The normalized and clamped value between -1 and 1 based on the input value's\r\n\t * position between the minimum and maximum values. If the difference between pMax and pMin is 0,\r\n\t * returns 1 to avoid dividing by zero.\r\n\t */\r\n\tnormalizeRanged(pVal, pMin, pMax) {\r\n\t\tif (pMax - pMin === 0) return 1;\r\n\t\tconst normalizedValue = -((2 * this.normalize(pVal, pMin, pMax)) - 1);\r\n\t\t// Clamp the normalized value to the range of -1 to 1\r\n\t\treturn this.clamp(normalizedValue, -1, 1);\r\n\t};\r\n\t/**\r\n\t * Checks if a value is within a range of minimum and maximum values (inclusive).\r\n\t * \r\n\t * @param {number} pVal - The value to check.\r\n\t * @param {number} pMin - The minimum value of the range to check against.\r\n\t * @param {number} pMax - The maximum value of the range to check against.\r\n\t * @returns {boolean} True if the value is within the range (inclusive), false otherwise.\r\n\t */\r\n\twithin(pVal, pMin, pMax) {\r\n\t\treturn pVal >= pMin && pVal <= pMax;\r\n\t}\r\n\t/**\r\n\t * Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.\r\n\t * \r\n\t * @param {number} pNum - The number to format.\r\n\t * @returns {string} A string representation of the formatted number.\r\n\t */\r\n\tformatIntegerWithCommas(pNum) {\r\n\t\treturn pNum.toFixed().toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, '$1,');\r\n\t}\r\n\t/**\r\n\t * Converts degrees to radians.\r\n\t * \r\n\t * @param {number} pDegrees - The angle in degrees.\r\n\t * @returns {number} The angle in radians.\r\n\t */\r\n\ttoRadians(pDegrees) {\r\n\t\treturn pDegrees * (Math.PI / 180);\r\n\t}\r\n\t/**\r\n\t * Converts radians to degrees.\r\n\t * \r\n\t * @param {number} pRadians - The angle in radians.\r\n\t * @returns {number} The angle in degrees.\r\n\t */\r\n\ttoDegrees(pRadians) {\r\n\t\treturn pRadians * (180 / Math.PI);\r\n\t}\r\n\t/**\r\n\t * Returns a random element from the given array.\r\n\t * \r\n\t * @param {Array} pArray - The input array.\r\n\t * @returns {*} A random element from the array.\r\n\t */\r\n\tpick(pArray) {\r\n\t\tconst randomIndex = Math.floor(Math.random() * pArray.length);\r\n\t\treturn pArray[randomIndex];\r\n\t}\r\n\t/**\r\n\t * Removes properties from an object except those listed in the exclude array.\r\n\t * \r\n\t * @param {object} pObject - The object to remove properties from.\r\n\t * @param {Array} pExclude - The array of property names to exclude from removal.\r\n\t*/\r\n\tremoveProperties(pObject, pExclude) {\r\n\t\tif (typeof(pObject) === 'object') {\r\n\t\t\tfor (const prop in pObject) {\r\n\t\t\t\t// Do not reset these properties.\r\n\t\t\t\tif (Array.isArray(pExclude) && pExclude.includes(prop)) continue;\r\n\t\t\t\tif (pObject.hasOwnProperty(prop)) {\r\n\t\t\t\t\tdelete pObject[prop];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t}\r\n\t/**\r\n\t * Returns true with probability proportional to the given number.\r\n\t * The higher the number, the higher the chance of returning true.\r\n\t * \r\n\t * @param {number} pChance - The probability value, between 0 and 100 (inclusive).\r\n\t * @returns {boolean} - Returns true or false, based on the probability value.\r\n\t */\r\n\tprob(pChance) {\r\n\t\tif (pChance <= 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (pChance >= 100) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tconst randomNumber = Math.floor(Math.random() * 100) + 1;\r\n\t\treturn randomNumber <= pChance;\r\n\t}\r\n\t/**\r\n\t * Gets the inverse direction of the direction passed\r\n\t * \r\n\t * @param {string} pDirection - The direction to get the inverse of.\r\n\t * @returns {string} The inverse direction\r\n\t */\r\n\tgetInverseDirection(pDirection) {\r\n\t\tswitch (pDirection) {\r\n\t\t\tcase 'north':\r\n\t\t\t\treturn 'south';\r\n\t\t\tcase 'south':\r\n\t\t\t\treturn 'north';\r\n\t\t\tcase 'east':\r\n\t\t\t\treturn 'west';\r\n\t\t\tcase 'west':\r\n\t\t\t\treturn 'east';\r\n\t\t\tcase 'northeast':\r\n\t\t\t\treturn 'southwest';\r\n\t\t\tcase 'northwest':\r\n\t\t\t\treturn 'southeast';\r\n\t\t\tcase 'southeast':\r\n\t\t\t\treturn 'northwest';\r\n\t\t\tcase 'southwest':\r\n\t\t\t\treturn 'northeast';\r\n\t\t\tdefault:\r\n\t\t\t\tthis.logger.prefix('Utils-Module').error(`The direction ${pDirection} is not supported.`);\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Calculates the angle (in radians) from a given direction.\r\n\t * \r\n\t * @param {string} pDirection - The direction to calculate the angle from.\r\n\t * @returns {number} The angle (in radians) associated with the given direction.\r\n\t * @throws {Error} Throws an error if the direction is not recognized.\r\n\t */\r\n\tgetAngleFromDirection(pDirection) {\r\n\t\tswitch (pDirection) {\r\n\t\t\tcase 'north':\r\n\t\t\t\treturn Math.PI / 2;\r\n\t\t\tcase 'south':\r\n\t\t\t\treturn (Math.PI * 3) / 2; // Corrected to 270 degrees in radians\r\n\t\t\tcase 'east':\r\n\t\t\t\treturn 0;\r\n\t\t\tcase 'west':\r\n\t\t\t\treturn Math.PI;\r\n\t\t\tcase 'northwest':\r\n\t\t\t\treturn (Math.PI * 3) / 4;\r\n\t\t\tcase 'northeast':\r\n\t\t\t\treturn Math.PI / 4;\r\n\t\t\tcase 'southwest':\r\n\t\t\t\treturn (Math.PI * 5) / 4;\r\n\t\t\tcase 'southeast':\r\n\t\t\t\treturn (Math.PI * 7) / 4;\r\n\t\t\tdefault:\r\n\t\t\t\tthis.logger.prefix('Utils-Module').error(`The direction ${pDirection} is not supported.`);\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Centers a rectangle (defined by its dimensions) within a parent rectangle.\r\n\t *\r\n\t * @param {number} pChildWidth - The width of the child rectangle.\r\n\t * @param {number} pChildHeight - The height of the child rectangle.\r\n\t * @param {number} pParentWidth - The width of the parent rectangle.\r\n\t * @param {number} pParentHeight - The height of the parent rectangle.\r\n\t * @param {number} pParentX - The x-coordinate of the parent rectangle.\r\n\t * @param {number} pParentY - The y-coordinate of the parent rectangle.\r\n\t * @returns {Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }.\r\n\t *\r\n\t * @example\r\n\t * const childWidth = 50;\r\n\t * const childHeight = 30;\r\n\t * const parentWidth = 100;\r\n\t * const parentHeight = 80;\r\n\t * const parentX = 20;\r\n\t * const parentY = 10;\r\n\t * const centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);\r\n\t * // Returns {x: 45, y: 35}\r\n\t */\r\n\tcenterRectangleOnParent(pChildWidth, pChildHeight, pParentWidth, pParentHeight, pParentX, pParentY) {\r\n\t\tconst centerX = pParentX + ((pParentWidth - pChildWidth) / 2);\r\n\t\tconst centerY = pParentY + ((pParentHeight - pChildHeight) / 2);\r\n\t\treturn { x: centerX, y: centerY };\r\n\t}\r\n\t/**\r\n\t * Generates a random angle in radians.\r\n\t * @returns {number} A random angle in radians.\r\n\t */\r\n\tgetRandomAngle() {\r\n\t\treturn Math.random() * (Math.PI * 2); // Random value between 0 and 2*pi (360 degrees)\r\n\t}\r\n\t/**\r\n\t * Gets the angle between two points\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t */\r\n\tgetAngle(pStartPoint, pEndPoint) {\r\n\t\tconst y = pStartPoint.y - pEndPoint.y;\r\n\t\tconst x = pStartPoint.x - pEndPoint.x;\r\n\t\treturn Math.atan2(y, x);\r\n\t}\r\n\t/**\r\n\t * Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle\r\n\t * \r\n\t * @param {Object} pStartPoint - The starting point\r\n\t * @param {Object} pEndPoint - The ending point\r\n\t * @returns {number} The angle between the starting point and the ending point\r\n\t */\r\n\tgetAngle2(pStartPoint, pEndPoint) {\r\n\t\tconst y = pStartPoint.y - pEndPoint.y;\r\n\t\tconst x = pStartPoint.x - pEndPoint.x;\r\n\t\treturn (Math.atan2(y, x) - Math.PI) * -1;\r\n\t}\r\n\t/**\r\n\t * Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees\r\n\t * @param {number} pAngle - The angle to convert.\r\n\t * @returns The converted angle\r\n\t */\r\n\tconvertRaWAngleToVyloCoords(pAngle) {\r\n\t\treturn (pAngle - Math.PI) * -1;\r\n\t}\r\n\t/**\r\n\t * Calculates the Euclidean distance between two points in a two-dimensional space.\r\n\t *\r\n\t * @param {Object} pStartPoint - The starting point with x and y coordinates.\r\n\t * @param {number} pStartPoint.x - The x-coordinate of the starting point.\r\n\t * @param {number} pStartPoint.y - The y-coordinate of the starting point.\r\n\t * @param {Object} pEndPoint - The ending point with x and y coordinates.\r\n\t * @param {number} pEndPoint.x - The x-coordinate of the ending point.\r\n\t * @param {number} pEndPoint.y - The y-coordinate of the ending point.\r\n\t * @returns {number} The Euclidean distance between the two points.\r\n\t *\r\n\t * @example\r\n\t * const startPoint = { x: 1, y: 2 };\r\n\t * const endPoint = { x: 4, y: 6 };\r\n\t * const distance = getDistance(startPoint, endPoint); // 5\r\n\t * // Returns the Euclidean distance between the points (1, 2) and (4, 6).\r\n\t */\r\n\tgetDistance(pStartPoint, pEndPoint) {\r\n\t\tconst y = (pStartPoint.y - pEndPoint.y);\r\n\t\tconst x = (pStartPoint.x - pEndPoint.x);\r\n\t\treturn Math.sqrt((x * x) + (y * y));\r\n\t}\r\n\t/**\r\n\t * Calculates the new position of a point based on distance and angle.\r\n\t *\r\n\t * @param {Object} pPoint - The initial position of the point with x and y coordinates.\r\n\t * @param {number} pPoint.x - The initial x-coordinate of the point.\r\n\t * @param {number} pPoint.y - The initial y-coordinate of the point.\r\n\t * @param {number} pDistance - The distance by which to move the point.\r\n\t * @param {number} pAngle - The angle (in radians) at which to move the point.\r\n\t * @returns {Object} The new position of the point after moving by the specified distance and angle.\r\n\t *\r\n\t * @example\r\n\t * const initialPosition = { x: 10, y: 20 };\r\n\t * const distance = 5;\r\n\t * const angleInRadians = 0.785398; // 45 degrees\r\n\t * const newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);\r\n\t * // Returns the new position of the point after moving by 5 units at a 45-degree angle.\r\n\t */\r\n\tcalculateNewPositionFromDistanceAndAngle(pPoint, pDistance, pAngle) {\r\n\t\tconst newPosition = { x: 0, y: 0 };\r\n\t\tnewPosition.x = pPoint.x - pDistance * Math.cos(pAngle);\r\n\t\tnewPosition.y = pPoint.y - pDistance * Math.sin(pAngle);\r\n\t\treturn newPosition;\r\n\t};\r\n\t/**\r\n\t * Calculates the proportional length based on a current value, a maximum value, and a specified total length.\r\n\t *\r\n\t * @param {number} pCurrent - The current value to be scaled.\r\n\t * @param {number} pMax - The maximum value for scaling.\r\n\t * @param {number} pTotalLength - The specified total length.\r\n\t * @returns {number} The proportional length based on the current value, maximum value, and total length.\r\n\t *\r\n\t * @example\r\n\t * const current = 25;\r\n\t * const max = 50;\r\n\t * const totalLength = 100;\r\n\t * const proportionalLength = calculateProportionalLength(current, max, totalLength); // 50\r\n\t * // Returns the proportional length based on the current value, maximum value, and total length.\r\n\t */\r\n\tcalculateProportionalLength(pCurrent, pMax, pTotalLength) {\r\n\t\treturn (pCurrent / pMax) * pTotalLength;\r\n\t}\r\n\t/**\r\n\t * Calculates the compass direction based on the given angle.\r\n\t *\r\n\t * @param {number} pAngle - The angle in radians.\r\n\t * @returns {string} The compass direction (e.g., 'east', 'southeast', 'south', etc.).\r\n\t *\r\n\t * @example\r\n\t * const angle = Math.PI / 4; // 45 degrees in radians\r\n\t * const direction = getDirection(angle); // Returns 'northeast'\r\n\t */\r\n\tgetDirection(pAngle) {\r\n\t\tconst degree = Math.abs(Math.floor(((pAngle * (180 / Math.PI)) / 45) + 0.5));\r\n\t\t// 0 or 360 degrees: 'east'\r\n\t\t// 45 degrees: 'northeast'\r\n\t\t// 90 degrees: 'north'\r\n\t\t// 135 degrees: 'northwest'\r\n\t\t// 180 degrees: 'west'\r\n\t\t// 225 degrees: 'southwest'\r\n\t\t// 270 degrees: 'south'\r\n\t\t// 315 degrees: 'southeast'\r\n\t\tconst compassDirections = ['east', 'northeast', 'north', 'northwest', 'west', 'southwest', 'south', 'southeast'];\r\n\t\treturn compassDirections[(degree % 8)];\r\n\t}\r\n\t/**\r\n\t * Calculates the linear decay of a variable over time.\r\n\t *\r\n\t * @param {number} pInitialValue - The initial value of the variable.\r\n\t * @param {number} pCurrentTime - The current time at which to calculate the variable value.\r\n\t * @param {number} pMaxTime - The maximum time for the decay process.\r\n\t * @param {number} [pDecayRate=0.5] - The decay rate (default is 0.5).\r\n\t * @returns {number} The remaining value of the variable after linear decay.\r\n\t *\r\n\t * @example\r\n\t * const initialValue = 100;\r\n\t * const currentTime = 50;\r\n\t * const maxTime = 1000;\r\n\t * const decayRate = 0.3;\r\n\t * const remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);\r\n\t * // Returns the remaining value after linear decay.\r\n\t */\r\n\tlinearDecay(pInitialValue, pCurrentTime, pMaxTime, pDecayRate = 0.5) {\r\n\t\t// Calculate the variable value at the current time\r\n\t\tconst proportionOfTimePassed = pCurrentTime / pMaxTime;\r\n\t\tconst remainingValue = Math.max(pInitialValue * (1 - (proportionOfTimePassed * pDecayRate)), 1);\r\n\t\treturn remainingValue;\r\n\t}\r\n\t/**\r\n\t * Generates a unique id\r\n\t * \r\n\t * @param {string} pIDLength - The length of the ID to create \r\n\t * @returns A unique ID\r\n\t */\r\n\tgenerateID(pIDLength = 7) {\r\n\t\tconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\r\n\t\tconst makeID = function() {\r\n\t\t\tlet ID = '';\r\n\t\t\tfor (let i = 0; i < pIDLength; i++) {\r\n\t\t\t\tID += chars.charAt(Math.floor(Math.random() * chars.length));\r\n\t\t\t}\r\n\t\t\treturn ID;\r\n\t\t}\r\n\t\tlet ID = makeID();\r\n\t\twhile(this.storedIDs.includes(ID)) {\r\n\t\t\tID = makeID();\r\n\t\t}\r\n\t\tthis.storedIDs.push(ID);\r\n\t\treturn ID;\r\n\t}\r\n\t/**\r\n\t * Converts a color in decimal format into hex format\r\n\t * \r\n\t * @param {number} pDecimal - The color in decimal format\r\n\t * @param {number} pChars - The length to make the hex string\r\n\t * @returns The decimal color converted into hex format\r\n\t */\r\n\tdecimalToHex(pDecimal, pChars = 6) {\r\n\t\treturn '#' + (pDecimal + Math.pow(16, pChars)).toString(16).slice(-pChars).toUpperCase();\r\n\t}\r\n\t/**\r\n\t * Add intensity to this color to get a brighter or dimmer effect\r\n\t * \r\n\t * @param {string|number} pColor - Color in hex format or decimal format\r\n\t * @param {number} pPercent - The percent of brightness to add to this color\r\n\t * @returns \r\n\t */\r\n\taddIntensity(pColor, pPercent) {\r\n\t\tconst rgb = this.grabColor(pColor).rgbArray;\r\n\t\tconst r = rgb[0];\r\n\t\tconst g = rgb[1];\r\n\t\tconst b = rgb[2];\r\n\t\tlet rr = 0;\r\n\t\tlet rg = 0;\r\n\t\tlet rb = 0;\r\n\t\tconst black = (r === 0 && g === 0 && b === 0) ? true : false;\r\n\t\tif (r || black) rr = r + Math.floor((255 * pPercent) / 100);\r\n\t\tif (g || black) rg = g + Math.floor((255 * pPercent) / 100);\r\n\t\tif (b || black) rb = b + Math.floor((255 * pPercent) / 100);\r\n\t\treturn this.grabColor(this.clamp(rr, 0, 255), this.clamp(rg, 0, 255), this.clamp(rb, 0, 255)).hex\r\n\t}\r\n\t/**\r\n\t * Converts an RGB color value to a hexadecimal color value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t*/\r\n\trgbToHex(pR, pG, pB) {\r\n\t\tconst r = this.clamp(pR, 0, 255);\r\n\t\tconst g = this.clamp(pG, 0, 255);\r\n\t\tconst b = this.clamp(pB, 0, 255);\r\n\t\tconst craftString = function(pColor) {\r\n\t\t\treturn pColor.toString(16).padStart(2, '0');\r\n\t\t}\r\n\t\tconst hex = '#' + [r, g, b].map(craftString).join('');\r\n\t\treturn hex;\t\t\r\n\t}\r\n\t/**\r\n\t * Converts a hexadecimal color value to an RGB color value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {Array} - An array containing the red, green, and blue components of the RGB color value.\r\n\t*/\r\n\thexToRgb(pHex) {\r\n\t\tpHex = pHex.replace('#', '');\r\n\t\tif (pHex.length === 3) {\r\n\t\t\tpHex = pHex.replace(new RegExp('(.)', 'g'), '$1$1');\r\n\t\t}\r\n\t\tpHex = pHex.match(new RegExp('..', 'g'));\r\n\t\tconst r = this.clamp(parseInt(pHex[0], 16), 0, 255);\r\n\t\tconst g = this.clamp(parseInt(pHex[1], 16), 0, 255);\r\n\t\tconst b = this.clamp(parseInt(pHex[2], 16), 0, 255);\r\n\t\treturn [r, g, b];\r\n\t}\r\n\t/**\r\n\t * Converts RGB color values to a decimal value.\r\n\t * \r\n\t * @param {number} pR - The red component of the RGB color value (0-255).\r\n\t * @param {number} pG - The green component of the RGB color value (0-255).\r\n\t * @param {number} pB - The blue component of the RGB color value (0-255).\r\n\t*/\r\n\trgbToDecimal(pR, pG, pB) {\r\n\t\treturn (pR << 16 | pG << 8 | pB);\r\n\t}\r\n\t/**\r\n\t * Converts a hexadecimal color value to a decimal value.\r\n\t * \r\n\t * @param {string} pHex - The hexadecimal color value to convert (e.g. \"#FF0000\" for red).\r\n\t * @returns {number} - The decimal representation of the hexadecimal color value.\r\n\t*/\r\n\thexToDecimal(pHex) {\r\n\t\tpHex = pHex.replace('#', '');\r\n\t\treturn parseInt(pHex, 16);\r\n\t}\r\n\t/**\r\n\t * Convert a color to different formats or get a random color\r\n\t * \r\n\t * @param {string|number} pSwitch - A hex string representing a color (with or without the tag)\r\n\t * A color formatted in the decimal format. Or the r value of a rgb color.\r\n\t * @param {number} [g] g value of a rgb color\r\n\t * @param {number} [b] b value of a rgb color\r\n\t * @returns {ColorObject} A color object with various different export options.\r\n\t * hex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats.\r\n\t */\r\n\tgrabColor(pSwitch = this.getRandomColor(), pG, pB) {\r\n\t\tlet hex, rgb;\r\n\t\t// Convert rgb to hex\r\n\t\tif (typeof(pSwitch) === 'number' && typeof(pG) === 'number' && typeof(pB) === 'number') {\r\n\t\t\thex = this.rgbToHex(pSwitch, pG, pB);\r\n\t\t} else {\r\n\t\t\t// Convert decimal to hex\r\n\t\t\tif (typeof(pSwitch) === 'number') {\r\n\t\t\t\tpSwitch = this.decimalToHex(pSwitch);\r\n\t\t\t}\r\n\t\t\thex = pSwitch;\r\n\t\t\t// Convert hex to rgb\r\n\t\t\trgb = this.hexToRgb(hex);\r\n\t\t}\r\n\t\treturn { \r\n\t\t\t'hex': hex.toLowerCase(), \r\n\t\t\t'hexTagless': hex.replace('#', '').toLowerCase(), \r\n\t\t\t'rgb': 'rgb('+rgb[0]+','+rgb[1]+','+rgb[2]+')', \r\n\t\t\t'rgbArray': rgb, \r\n\t\t\t'rgbObject': { 'r': rgb[0], 'g': rgb[1], 'b': rgb[2] }, \r\n\t\t\t'rgbNormal': [Math.round(rgb[0]/255 * 100) / 100, Math.round(rgb[1]/255 * 100) / 100, Math.round(rgb[2]/255 * 100) / 100], \r\n\t\t\t'decimal': this.hexToDecimal(hex) \r\n\t\t};\r\n\t}\r\n\t/**\r\n\t * Gets a random color\r\n\t * \r\n\t * @returns {string} A random color in the hex format\r\n\t */\r\n\tgetRandomColor() {\r\n\t\tconst chars = '0123456789ABCDEF';\r\n\t\tlet color = '#';\r\n\t\tfor (let i = 0; i < 6; i++) {\r\n\t\t\tcolor += chars[Math.floor(Math.random() * 16)];\r\n\t\t}\r\n\t\treturn color;\r\n\t}\r\n\t/**\r\n\t * Gets a random color between two colors\r\n\t * \r\n\t * @param {number|string} pColor1 - The first color to get a color between\r\n\t * @param {number|string} pColor2 - The second color to get a color between\r\n\t * @param {number} [pAmount=0.5] - The closer the random color will be to either input colors on a range of 0-1\r\n\t * 0 to 0.5 (closer to pColor1)\r\n\t * 0.5 to 1 (closer to pColor2)\r\n\t * @returns {string} A random color in the decimal format\r\n\t */\r\n\tgetRandomColorBetween(pColor1, pColor2, pAmount = 0.5) {\r\n\t\t// u is the amount of the lerp 0-1\r\n\t\treturn this.flooredLerp(this.grabColor(pColor1).decimal, this.grabColor(pColor2).decimal, pAmount);\r\n\t}\r\n\t/**\r\n\t * Transition a color to another color in pDuration time.\r\n\t * \r\n\t * @param {Object} pInstance - The instance to transition it's color property.\r\n\t * pInstance's color will be transitioned either via pInstance.color = newColor\r\n\t * or\r\n\t * pInstance.color.tint = newColor (if the color is defined as an object)\r\n\t * @param {string|number} pStartColor - The start color\r\n\t * @param {string|number} pEndColor - The end color\r\n\t * @param {number} pDuration - The duration of the transition\r\n\t * @param {Function} pIterativeCallback - Callback to call every tick of the transition\r\n\t * @param {Function} pEndCallback - Callback to call at the end of the transition\r\n\t * @returns An ID that references this transition to be passed to cancelTransition to stop an ongoing transition.\r\n\t */\r\n\ttransitionColor(pInstance, pStartColor='#000', pEndColor='#fff', pDuration=1000, pIterativeCallback, pEndCallback) {\r\n\t\t// Cannot use this API on the server\r\n\t\tif (!globalThis.window) return;\r\n\t\tconst iterativeCallback = typeof(pIterativeCallback) === 'function' ? pIterativeCallback : null;\r\n\t\tconst endCallback = typeof(pEndCallback) === 'function' ? pEndCallback : null;\r\n\t\tlet id;\r\n\t\tlet isParticle;\r\n\t\tlet isTintObject;\r\n\r\n\t\tif (pInstance) {\r\n\t\t\tid = pInstance.id ? pInstance.id : this.generateID();\r\n\t\t\tisParticle = (pInstance.type === 'GeneratedParticle');\r\n\t\t\tisTintObject = (typeof(pInstance.color) === 'object' && pInstance.color.constructor === Object ? true : false);\r\n\t\t\tif (this.transitions[id]) this.cancelTransitionColor(id);\r\n\t\t} else {\r\n\t\t\tid = this.generateID();\r\n\t\t}\r\n\t\t\t\r\n\t\tthis.transitions[id] = {\r\n\t\t\t'duration': pDuration,\r\n\t\t\t'timeTracker': isParticle ? pInstance.info.lifetime : 0\r\n\t\t};\r\n\r\n\t\tconst rgbStartColor = this.grabColor(pStartColor).rgbArray;\r\n\t\tconst rgbEndColor = this.grabColor(pEndColor).rgbArray;\r\n\r\n\t\tconst self = this;\r\n\t\tthis.transitions[id].step = (pTimeStamp) => {\r\n\t\t\tif (self.transitions[id]) {\r\n\t\t\t\tif (isParticle) {\r\n\t\t\t\t\tif (pInstance.info) {\r\n\t\t\t\t\t\tif (pInstance.info.owner) {\r\n\t\t\t\t\t\t\tif (pInstance.info.owner.settings.paused) {\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (self.transitions[id]) this.cancelTransitionColor(id);\r\n\t\t\t\t\t\treturn;\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst now = pTimeStamp;\r\n\t\t\t\tif (!self.transitions[id].lastTime) self.transitions[id].lastTime = now;\r\n\t\t\t\tconst elapsed = now - self.transitions[id].lastTime;\r\n\t\t\t\t// Time tracker is used rather than lastStamp - startStamp because this currently takes into account particles passed in (this will be removed in the future and use the former method)\r\n\t\t\t\tself.transitions[id].timeTracker += elapsed;\r\n\t\t\t\t// The max value of percentage is 1, so we clamp it at 1\r\n\t\t\t\tconst percentage = Math.min(self.transitions[id].timeTracker / self.transitions[id].duration, 1);\r\n\t\t\t\t\r\n\t\t\t\tconst r = parseInt(self.lerp(rgbStartColor[0], rgbEndColor[0], percentage), 10);\r\n\t\t\t\tconst g = parseInt(self.lerp(rgbStartColor[1], rgbEndColor[1], percentage), 10);\r\n\t\t\t\tconst b = parseInt(self.lerp(rgbStartColor[2], rgbEndColor[2], percentage), 10);\r\n\t\t\t\tconst color = self.grabColor(r, g, b);\r\n\r\n\t\t\t\tif (iterativeCallback) iterativeCallback(color);\r\n\r\n\t\t\t\tif (pInstance) {\r\n\t\t\t\t\tif (isTintObject) {\r\n\t\t\t\t\t\tpInstance.color.tint = color.decimal;\r\n\t\t\t\t\t\tpInstance.color = pInstance.color;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpInstance.color = color.hex;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (percentage >= 1 || self.transitions[id].timeTracker >= pDuration) {\r\n\t\t\t\t\tif (self.transitions[id]) this.cancelTransitionColor(id);\r\n\t\t\t\t\tif (endCallback) endCallback(color);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tself.transitions[id].req = globalThis.requestAnimationFrame(self.transitions[id].step);\r\n\t\t\t\tself.transitions[id].lastTime = now;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.transitions[id].req = globalThis.requestAnimationFrame(this.transitions[id].step);\r\n\t\treturn id;\r\n\t}\r\n\t/**\r\n\t * Cancels an ongoing transition\r\n\t * \r\n\t * @param {string} pID - The ID of the ongoing transition to cancel\r\n\t */\r\n\tcancelTransitionColor(pID) {\r\n\t\tif (this.transitions[pID]) {\r\n\t\t\tglobalThis.cancelAnimationFrame(this.transitions[pID].req);\r\n\t\t\tdelete this.transitions[pID];\r\n\t\t}\r\n\t}\r\n\t/**\r\n\t * Calculates the position of a point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n\t * @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n\t * @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n\t * @returns {object} An object with the rotated point's new x and y coordinates.\r\n\t */\r\n\tgetPointRotated(pRect, pTheta, pPoint) {\r\n\t\t// cx, cy - center of square coordinates\r\n\t\t// x, y - coordinates of a corner point of the square\r\n\t\t// theta is the angle of rotation\r\n\t\tconst cx = pRect.x + pRect.width * (typeof(pRect.anchor) === 'object' && pRect.anchor.x ? pRect.anchor.x : 0.5);\r\n\t\tconst cy = pRect.y + pRect.height * (typeof(pRect.anchor) === 'object' && pRect.anchor.y ? pRect.anchor.y : 0.5);\r\n\r\n\t\t// translate point to origin\r\n\t\tconst tempX = pPoint.x - cx;\r\n\t\tconst tempY = pPoint.y - cy;\r\n\r\n\t\t// now apply rotation\r\n\t\tconst rotatedX = tempX*Math.cos(pTheta) - tempY*(-Math.sin(pTheta));\r\n\t\tconst rotatedY = tempX*(-Math.sin(pTheta)) + tempY*Math.cos(pTheta);\r\n\r\n\t\t// translate back\r\n\t\tconst x = rotatedX + cx;\r\n\t\tconst y = rotatedY + cy;\r\n\t\treturn { 'x': x, 'y': y };\r\n\t}\r\n\t/**\r\n\t * Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.\r\n\t * \r\n\t * @param {object} pRect - The rectangle object to rotate the point around.\r\n\t * pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n\t * @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n\t * @returns {object} An object with the rotated rectangle's new corner points and center points.\r\n\t */\r\n\tgetPointsOfRotatedRect(pRect, pTheta) {\r\n\t\tconst tl = this.getPointRotated(pRect, pTheta, { 'x': pRect.x, 'y': pRect.y });\r\n\t\tconst tr = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width, 'y': pRect.y });\r\n\t\tconst bl = this.getPointRotated(pRect, pTheta, { 'x': pRect.x, 'y': pRect.y + pRect.height });\r\n\t\tconst br = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width, 'y': pRect.y + pRect.height });\r\n\t\tconst center = this.getPointRotated(pRect, pTheta, { 'x': pRect.x + pRect.width / 2, 'y': pRect.y + pRect.height / 2 });\r\n\t\treturn { 'tl': tl, 'tr': tr, 'bl': bl, 'br': br, 'center': center };\r\n\t}\r\n\t/**\r\n\t * Calculate the icon offset to compensate for a non-zero anchor.\r\n\t *\r\n\t * @param {Object} [pIconSize] - The size of the icon with properties `.x` and `.y`.\r\n\t * @param {number} [pIconSize.width=32] - The size of the icon's width.\r\n\t * @param {number} [pIconSize.height=32] - The size of the icon's height'.\r\n\t * @param {Object} [pAnchor] - The anchor point with properties `.x` and `.y`.\r\n\t * @param {number} [pAnchor.x=0.5] - The anchor's x value.\r\n\t * @param {number} [pAnchor.y=0.5] - The anchor's y value.\r\n\t * @param {Object} [pScale] - The scale factor applied to the object with properties `.x` and `.y`.\r\n\t * @param {number} [pScale.x=1] - The scale's y value.\r\n\t * @param {number} [pScale.y=1] - The scale's y value.\r\n\t * @returns {Object} - The calculated icon offset with properties `.x` and `.y`.\r\n\t */\r\n\tcalculateIconOffset(pIconSize = { width: 32, height: 32 }, pAnchor = { x: 0.5, y: 0.5 }, pScale= { x: 1, y: 1}) {\r\n\t\tconst scaledSize = {\r\n\t\t\tx: pIconSize.width * pScale.x,\r\n\t\t\ty: pIconSize.height * pScale.y,\r\n\t\t};\r\n\r\n\t\tconst offset = {\r\n\t\t\tx: pAnchor.x * (scaledSize.x - pIconSize.width),\r\n\t\t\ty: pAnchor.y * (scaledSize.y - pIconSize.height),\r\n\t\t};\r\n\r\n\t\treturn {\r\n\t\t\tx: offset.x,\r\n\t\t\ty: offset.y,\r\n\t\t};\r\n\t}\r\n}\r\nexport const Utils = new UtilsSingleton();\r\n", - "static": true, - "longname": "C:/Users/jared/Documents/Github/Utils/src/utils.mjs", - "access": "public", - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 49, - "kind": "variable", - "name": "Utils", - "memberof": "src/utils.mjs", - "static": true, - "longname": "src/utils.mjs~Utils", - "access": "public", - "export": true, - "importPath": "utils/src/utils.mjs", - "importStyle": "{Utils}", - "description": null, - "lineNumber": 803, - "undocument": true, - "type": { - "types": [ - "src/utils.mjs~UtilsSingleton" - ] - } - }, - { - "__docId__": 50, - "kind": "class", - "name": "UtilsSingleton", - "memberof": "src/utils.mjs", - "static": true, - "longname": "src/utils.mjs~UtilsSingleton", - "access": "public", - "export": true, - "importPath": "utils/src/utils.mjs", - "importStyle": null, - "description": "A utilities class", - "lineNumber": 9, - "pseudoExport": true, - "unknown": [ - { - "tagName": "@class", - "tagValue": "UtilsSingleton" - }, - { - "tagName": "@license", - "tagValue": "Utils is free software, available under the terms of a MIT style License." - }, - { - "tagName": "@author", - "tagValue": "https://github.com/doubleactii" - } - ], - "interface": false - }, - { - "__docId__": 51, - "kind": "member", - "name": "transitions", - "memberof": "src/utils.mjs~UtilsSingleton", - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#transitions", - "access": "private", - "description": "Object storing all color objects being transitioned at the moment", - "lineNumber": 15, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 52, - "kind": "member", - "name": "storedIDs", - "memberof": "src/utils.mjs~UtilsSingleton", - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#storedIDs", - "access": "private", - "description": "An array storing all the reserved unique IDS", - "lineNumber": 21, - "type": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 53, - "kind": "member", - "name": "version", - "memberof": "src/utils.mjs~UtilsSingleton", - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#version", - "access": "public", - "description": "The version of the module.", - "lineNumber": 25, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 54, - "kind": "constructor", - "name": "constructor", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#constructor", - "access": "public", - "description": null, - "lineNumber": 26, - "undocument": true - }, - { - "__docId__": 55, - "kind": "member", - "name": "logger", - "memberof": "src/utils.mjs~UtilsSingleton", - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#logger", - "access": "private", - "description": "The logger module this module uses to log errors / logs", - "lineNumber": 32, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 56, - "kind": "method", - "name": "decimalRand", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#decimalRand", - "access": "public", - "description": "Generates a random decimal number between two numbers with a specified number of decimal places.", - "lineNumber": 43, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} A random decimal number between the two numbers with the specified number of decimal places." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pNum1", - "description": "The first number to use for generating the random decimal number." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pNum2", - "description": "The second number to use for generating the random decimal number." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "1", - "defaultRaw": 1, - "name": "pPlaces", - "description": "The number of decimal places to include in the generated random decimal number. Defaults to 1 if not provided." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "A random decimal number between the two numbers with the specified number of decimal places." - } - }, - { - "__docId__": 57, - "kind": "method", - "name": "rand", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#rand", - "access": "public", - "description": "Generates a random decimal number between two numbers with a specified number of decimal places.", - "lineNumber": 54, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} A random decimal number between the two numbers with the specified number of decimal places." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pNum1", - "description": "The first number to use for generating the random decimal number." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pNum2", - "description": "The second number to use for generating the random decimal number." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "A random decimal number between the two numbers with the specified number of decimal places." - } - }, - { - "__docId__": 58, - "kind": "method", - "name": "getPercentage", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getPercentage", - "access": "public", - "description": "Calculates the percentage of a value relative to a total value.", - "lineNumber": 65, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The percentage of the value relative to the total value." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pValue", - "description": "The value to calculate the percentage of." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pTotalValue", - "description": "The total value to calculate the percentage relative to." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The percentage of the value relative to the total value." - } - }, - { - "__docId__": 59, - "kind": "method", - "name": "clamp", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#clamp", - "access": "public", - "description": "Clamps a number between a minimum and maximum value.", - "lineNumber": 76, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The clamped number between the minimum and maximum values." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pNumber", - "description": "The number to clamp." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "0", - "defaultRaw": 0, - "name": "pMin", - "description": "The minimum value to clamp the number to. Defaults to 0 if not provided." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "1", - "defaultRaw": 1, - "name": "pMax", - "description": "The maximum value to clamp the number to. Defaults to 1 if not provided." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The clamped number between the minimum and maximum values." - } - }, - { - "__docId__": 60, - "kind": "method", - "name": "lerp", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#lerp", - "access": "public", - "description": "Linearly interpolates between two values by a specified amount.", - "lineNumber": 87, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The interpolated value between the start and end values based on the specified amount." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pStart", - "description": "The start value to interpolate from." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pEnd", - "description": "The end value to interpolate to." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pAmount", - "description": "The amount to interpolate between the start and end values." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The interpolated value between the start and end values based on the specified amount." - } - }, - { - "__docId__": 61, - "kind": "method", - "name": "flooredLerp", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#flooredLerp", - "access": "public", - "description": "Linearly interpolates between two values by a specified amount and returns the result as a floored integer.", - "lineNumber": 98, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pStart", - "description": "The start value to interpolate from." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pEnd", - "description": "The end value to interpolate to." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pAmount", - "description": "The amount to interpolate between the start and end values." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The interpolated value between the start and end values based on the specified amount, rounded down to the nearest integer." - } - }, - { - "__docId__": 62, - "kind": "method", - "name": "round", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#round", - "access": "public", - "description": "Rounds a number to a specified number of decimal places.", - "lineNumber": 108, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The rounded number to the specified number of decimal places." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pNumber", - "description": "The number to round." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "1", - "defaultRaw": 1, - "name": "pPlace", - "description": "The number of decimal places to round to. Defaults to 1 if not provided." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The rounded number to the specified number of decimal places." - } - }, - { - "__docId__": 63, - "kind": "method", - "name": "normalize", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#normalize", - "access": "public", - "description": "Normalizes a value between a minimum and maximum value.", - "lineNumber": 120, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\nIf the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pVal", - "description": "The value to normalize." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pMin", - "description": "The minimum value for normalization." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pMax", - "description": "The maximum value for normalization." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The normalized value between 0 and 1 based on the input value's position between the minimum and maximum values.\nIf the difference between pMax and pMin is 0, returns 1 to avoid dividing by zero." - } - }, - { - "__docId__": 64, - "kind": "method", - "name": "normalizeRanged", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#normalizeRanged", - "access": "public", - "description": "Normalizes a value between a minimum and maximum value, clamped to the range of -1 to 1.", - "lineNumber": 134, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The normalized and clamped value between -1 and 1 based on the input value's\nposition between the minimum and maximum values. If the difference between pMax and pMin is 0,\nreturns 1 to avoid dividing by zero." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pVal", - "description": "The value to normalize." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pMin", - "description": "The minimum value for normalization." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pMax", - "description": "The maximum value for normalization." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The normalized and clamped value between -1 and 1 based on the input value's\nposition between the minimum and maximum values. If the difference between pMax and pMin is 0,\nreturns 1 to avoid dividing by zero." - } - }, - { - "__docId__": 65, - "kind": "method", - "name": "within", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#within", - "access": "public", - "description": "Checks if a value is within a range of minimum and maximum values (inclusive).", - "lineNumber": 148, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{boolean} True if the value is within the range (inclusive), false otherwise." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pVal", - "description": "The value to check." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pMin", - "description": "The minimum value of the range to check against." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pMax", - "description": "The maximum value of the range to check against." - } - ], - "return": { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "description": "True if the value is within the range (inclusive), false otherwise." - } - }, - { - "__docId__": 66, - "kind": "method", - "name": "formatIntegerWithCommas", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#formatIntegerWithCommas", - "access": "public", - "description": "Formats a number by rounding it to the nearest integer and adding commas to separate thousands places.", - "lineNumber": 157, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{string} A string representation of the formatted number." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pNum", - "description": "The number to format." - } - ], - "return": { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "description": "A string representation of the formatted number." - } - }, - { - "__docId__": 67, - "kind": "method", - "name": "toRadians", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#toRadians", - "access": "public", - "description": "Converts degrees to radians.", - "lineNumber": 166, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The angle in radians." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pDegrees", - "description": "The angle in degrees." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The angle in radians." - } - }, - { - "__docId__": 68, - "kind": "method", - "name": "toDegrees", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#toDegrees", - "access": "public", - "description": "Converts radians to degrees.", - "lineNumber": 175, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The angle in degrees." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pRadians", - "description": "The angle in radians." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The angle in degrees." - } - }, - { - "__docId__": 69, - "kind": "method", - "name": "pick", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#pick", - "access": "public", - "description": "Returns a random element from the given array.", - "lineNumber": 184, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{*} A random element from the array." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "pArray", - "description": "The input array." - } - ], - "return": { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "description": "A random element from the array." - } - }, - { - "__docId__": 70, - "kind": "method", - "name": "removeProperties", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#removeProperties", - "access": "public", - "description": "Removes properties from an object except those listed in the exclude array.", - "lineNumber": 194, - "params": [ - { - "nullable": null, - "types": [ - "object" - ], - "spread": false, - "optional": false, - "name": "pObject", - "description": "The object to remove properties from." - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "pExclude", - "description": "The array of property names to exclude from removal." - } - ], - "return": null - }, - { - "__docId__": 71, - "kind": "method", - "name": "prob", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#prob", - "access": "public", - "description": "Returns true with probability proportional to the given number.\nThe higher the number, the higher the chance of returning true.", - "lineNumber": 212, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{boolean} - Returns true or false, based on the probability value." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pChance", - "description": "The probability value, between 0 and 100 (inclusive)." - } - ], - "return": { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "description": "Returns true or false, based on the probability value." - } - }, - { - "__docId__": 72, - "kind": "method", - "name": "getInverseDirection", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getInverseDirection", - "access": "public", - "description": "Gets the inverse direction of the direction passed", - "lineNumber": 228, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{string} The inverse direction" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pDirection", - "description": "The direction to get the inverse of." - } - ], - "return": { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "description": "The inverse direction" - } - }, - { - "__docId__": 73, - "kind": "method", - "name": "getAngleFromDirection", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getAngleFromDirection", - "access": "public", - "description": "Calculates the angle (in radians) from a given direction.", - "lineNumber": 257, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The angle (in radians) associated with the given direction." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pDirection", - "description": "The direction to calculate the angle from." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The angle (in radians) associated with the given direction." - }, - "throws": [ - { - "types": [ - "Error" - ], - "description": "Throws an error if the direction is not recognized." - } - ] - }, - { - "__docId__": 74, - "kind": "method", - "name": "centerRectangleOnParent", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#centerRectangleOnParent", - "access": "public", - "description": "Centers a rectangle (defined by its dimensions) within a parent rectangle.", - "examples": [ - "const childWidth = 50;\nconst childHeight = 30;\nconst parentWidth = 100;\nconst parentHeight = 80;\nconst parentX = 20;\nconst parentY = 10;\nconst centeredCoordinates = centerRectangleOnParent(childWidth, childHeight, parentWidth, parentHeight, parentX, parentY);\n// Returns {x: 45, y: 35}" - ], - "lineNumber": 300, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{Object} An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pChildWidth", - "description": "The width of the child rectangle." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pChildHeight", - "description": "The height of the child rectangle." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pParentWidth", - "description": "The width of the parent rectangle." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pParentHeight", - "description": "The height of the parent rectangle." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pParentX", - "description": "The x-coordinate of the parent rectangle." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pParentY", - "description": "The y-coordinate of the parent rectangle." - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "An object representing the new coordinates of the centered rectangle: { x: centerX, y: centerY }." - } - }, - { - "__docId__": 75, - "kind": "method", - "name": "getRandomAngle", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getRandomAngle", - "access": "public", - "description": "Generates a random angle in radians.", - "lineNumber": 309, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} A random angle in radians." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "A random angle in radians." - }, - "params": [] - }, - { - "__docId__": 76, - "kind": "method", - "name": "getAngle", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getAngle", - "access": "public", - "description": "Gets the angle between two points", - "lineNumber": 319, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The angle between the starting point and the ending point" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pStartPoint", - "description": "The starting point" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pEndPoint", - "description": "The ending point" - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The angle between the starting point and the ending point" - } - }, - { - "__docId__": 77, - "kind": "method", - "name": "getAngle2", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getAngle2", - "access": "public", - "description": "Gets the angle between two points but in VYLO / PIXI coordinate space. Removes 180 degrees from a raw angle", - "lineNumber": 331, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The angle between the starting point and the ending point" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pStartPoint", - "description": "The starting point" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pEndPoint", - "description": "The ending point" - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The angle between the starting point and the ending point" - } - }, - { - "__docId__": 78, - "kind": "method", - "name": "convertRaWAngleToVyloCoords", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#convertRaWAngleToVyloCoords", - "access": "public", - "description": "Converts a raw angle to be the proper angle in Vylocity. By removing 180 degrees", - "lineNumber": 341, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "The converted angle" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pAngle", - "description": "The angle to convert." - } - ], - "return": { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "description": "The converted angle" - } - }, - { - "__docId__": 79, - "kind": "method", - "name": "getDistance", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getDistance", - "access": "public", - "description": "Calculates the Euclidean distance between two points in a two-dimensional space.", - "examples": [ - "const startPoint = { x: 1, y: 2 };\nconst endPoint = { x: 4, y: 6 };\nconst distance = getDistance(startPoint, endPoint); // 5\n// Returns the Euclidean distance between the points (1, 2) and (4, 6)." - ], - "lineNumber": 361, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The Euclidean distance between the two points." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pStartPoint", - "description": "The starting point with x and y coordinates." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pStartPoint.x", - "description": "The x-coordinate of the starting point." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pStartPoint.y", - "description": "The y-coordinate of the starting point." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pEndPoint", - "description": "The ending point with x and y coordinates." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pEndPoint.x", - "description": "The x-coordinate of the ending point." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pEndPoint.y", - "description": "The y-coordinate of the ending point." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The Euclidean distance between the two points." - } - }, - { - "__docId__": 80, - "kind": "method", - "name": "calculateNewPositionFromDistanceAndAngle", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#calculateNewPositionFromDistanceAndAngle", - "access": "public", - "description": "Calculates the new position of a point based on distance and angle.", - "examples": [ - "const initialPosition = { x: 10, y: 20 };\nconst distance = 5;\nconst angleInRadians = 0.785398; // 45 degrees\nconst newPosition = calculateNewPositionFromDistanceAndAngle(initialPosition, distance, angleInDegrees);\n// Returns the new position of the point after moving by 5 units at a 45-degree angle." - ], - "lineNumber": 383, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{Object} The new position of the point after moving by the specified distance and angle." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pPoint", - "description": "The initial position of the point with x and y coordinates." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pPoint.x", - "description": "The initial x-coordinate of the point." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pPoint.y", - "description": "The initial y-coordinate of the point." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pDistance", - "description": "The distance by which to move the point." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pAngle", - "description": "The angle (in radians) at which to move the point." - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "The new position of the point after moving by the specified distance and angle." - } - }, - { - "__docId__": 81, - "kind": "method", - "name": "calculateProportionalLength", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#calculateProportionalLength", - "access": "public", - "description": "Calculates the proportional length based on a current value, a maximum value, and a specified total length.", - "examples": [ - "const current = 25;\nconst max = 50;\nconst totalLength = 100;\nconst proportionalLength = calculateProportionalLength(current, max, totalLength); // 50\n// Returns the proportional length based on the current value, maximum value, and total length." - ], - "lineNumber": 404, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The proportional length based on the current value, maximum value, and total length." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pCurrent", - "description": "The current value to be scaled." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pMax", - "description": "The maximum value for scaling." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pTotalLength", - "description": "The specified total length." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The proportional length based on the current value, maximum value, and total length." - } - }, - { - "__docId__": 82, - "kind": "method", - "name": "getDirection", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getDirection", - "access": "public", - "description": "Calculates the compass direction based on the given angle.", - "examples": [ - "const angle = Math.PI / 4; // 45 degrees in radians\nconst direction = getDirection(angle); // Returns 'northeast'" - ], - "lineNumber": 417, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{string} The compass direction (e.g., 'east', 'southeast', 'south', etc.)." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pAngle", - "description": "The angle in radians." - } - ], - "return": { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "description": "The compass direction (e.g., 'east', 'southeast', 'south', etc.)." - } - }, - { - "__docId__": 83, - "kind": "method", - "name": "linearDecay", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#linearDecay", - "access": "public", - "description": "Calculates the linear decay of a variable over time.", - "examples": [ - "const initialValue = 100;\nconst currentTime = 50;\nconst maxTime = 1000;\nconst decayRate = 0.3;\nconst remainingValue = linearDecay(initialValue, currentTime, maxTime, decayRate);\n// Returns the remaining value after linear decay." - ], - "lineNumber": 447, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} The remaining value of the variable after linear decay." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pInitialValue", - "description": "The initial value of the variable." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pCurrentTime", - "description": "The current time at which to calculate the variable value." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pMaxTime", - "description": "The maximum time for the decay process." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "0.5", - "defaultRaw": 0.5, - "name": "pDecayRate", - "description": "The decay rate (default is 0.5)." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The remaining value of the variable after linear decay." - } - }, - { - "__docId__": 84, - "kind": "method", - "name": "generateID", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#generateID", - "access": "public", - "description": "Generates a unique id", - "lineNumber": 459, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "A unique ID" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pIDLength", - "description": "The length of the ID to create" - } - ], - "return": { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "description": "A unique ID" - } - }, - { - "__docId__": 85, - "kind": "method", - "name": "decimalToHex", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#decimalToHex", - "access": "public", - "description": "Converts a color in decimal format into hex format", - "lineNumber": 482, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "The decimal color converted into hex format" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pDecimal", - "description": "The color in decimal format" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pChars", - "description": "The length to make the hex string" - } - ], - "return": { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "description": "The decimal color converted into hex format" - } - }, - { - "__docId__": 86, - "kind": "method", - "name": "addIntensity", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#addIntensity", - "access": "public", - "description": "Add intensity to this color to get a brighter or dimmer effect", - "lineNumber": 492, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "string", - "number" - ], - "spread": false, - "optional": false, - "name": "pColor", - "description": "Color in hex format or decimal format" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pPercent", - "description": "The percent of brightness to add to this color" - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 87, - "kind": "method", - "name": "rgbToHex", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#rgbToHex", - "access": "public", - "description": "Converts an RGB color value to a hexadecimal color value.", - "lineNumber": 513, - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pR", - "description": "The red component of the RGB color value (0-255)." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pG", - "description": "The green component of the RGB color value (0-255)." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pB", - "description": "The blue component of the RGB color value (0-255)." - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 88, - "kind": "method", - "name": "hexToRgb", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#hexToRgb", - "access": "public", - "description": "Converts a hexadecimal color value to an RGB color value.", - "lineNumber": 529, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{Array} - An array containing the red, green, and blue components of the RGB color value." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pHex", - "description": "The hexadecimal color value to convert (e.g. \"#FF0000\" for red)." - } - ], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "An array containing the red, green, and blue components of the RGB color value." - } - }, - { - "__docId__": 89, - "kind": "method", - "name": "rgbToDecimal", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#rgbToDecimal", - "access": "public", - "description": "Converts RGB color values to a decimal value.", - "lineNumber": 547, - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pR", - "description": "The red component of the RGB color value (0-255)." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pG", - "description": "The green component of the RGB color value (0-255)." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pB", - "description": "The blue component of the RGB color value (0-255)." - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 90, - "kind": "method", - "name": "hexToDecimal", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#hexToDecimal", - "access": "public", - "description": "Converts a hexadecimal color value to a decimal value.", - "lineNumber": 556, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{number} - The decimal representation of the hexadecimal color value." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pHex", - "description": "The hexadecimal color value to convert (e.g. \"#FF0000\" for red)." - } - ], - "return": { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "description": "The decimal representation of the hexadecimal color value." - } - }, - { - "__docId__": 91, - "kind": "method", - "name": "grabColor", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#grabColor", - "access": "public", - "description": "Convert a color to different formats or get a random color", - "lineNumber": 570, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{ColorObject} A color object with various different export options.\nhex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "string", - "number" - ], - "spread": false, - "optional": false, - "name": "pSwitch", - "description": "A hex string representing a color (with or without the tag)\nA color formatted in the decimal format. Or the r value of a rgb color." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "g", - "description": "g value of a rgb color" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "name": "b", - "description": "b value of a rgb color" - } - ], - "return": { - "nullable": null, - "types": [ - "ColorObject" - ], - "spread": false, - "description": "A color object with various different export options.\nhex, hexTagless, rgb, rgbArray, rgbObject, rgbNormal, decimal formats." - } - }, - { - "__docId__": 92, - "kind": "method", - "name": "getRandomColor", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getRandomColor", - "access": "public", - "description": "Gets a random color", - "lineNumber": 599, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{string} A random color in the hex format" - } - ], - "return": { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "description": "A random color in the hex format" - }, - "params": [] - }, - { - "__docId__": 93, - "kind": "method", - "name": "getRandomColorBetween", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getRandomColorBetween", - "access": "public", - "description": "Gets a random color between two colors", - "lineNumber": 617, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{string} A random color in the decimal format" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "number", - "string" - ], - "spread": false, - "optional": false, - "name": "pColor1", - "description": "The first color to get a color between" - }, - { - "nullable": null, - "types": [ - "number", - "string" - ], - "spread": false, - "optional": false, - "name": "pColor2", - "description": "The second color to get a color between" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "0.5", - "defaultRaw": 0.5, - "name": "pAmount", - "description": "The closer the random color will be to either input colors on a range of 0-1\n0 to 0.5 (closer to pColor1)\n0.5 to 1 (closer to pColor2)" - } - ], - "return": { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "description": "A random color in the decimal format" - } - }, - { - "__docId__": 94, - "kind": "method", - "name": "transitionColor", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#transitionColor", - "access": "public", - "description": "Transition a color to another color in pDuration time.", - "lineNumber": 635, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "An ID that references this transition to be passed to cancelTransition to stop an ongoing transition." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "pInstance", - "description": "The instance to transition it's color property.\npInstance's color will be transitioned either via pInstance.color = newColor\nor\npInstance.color.tint = newColor (if the color is defined as an object)" - }, - { - "nullable": null, - "types": [ - "string", - "number" - ], - "spread": false, - "optional": false, - "name": "pStartColor", - "description": "The start color" - }, - { - "nullable": null, - "types": [ - "string", - "number" - ], - "spread": false, - "optional": false, - "name": "pEndColor", - "description": "The end color" - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pDuration", - "description": "The duration of the transition" - }, - { - "nullable": null, - "types": [ - "Function" - ], - "spread": false, - "optional": false, - "name": "pIterativeCallback", - "description": "Callback to call every tick of the transition" - }, - { - "nullable": null, - "types": [ - "Function" - ], - "spread": false, - "optional": false, - "name": "pEndCallback", - "description": "Callback to call at the end of the transition" - } - ], - "return": { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "description": "An ID that references this transition to be passed to cancelTransition to stop an ongoing transition." - } - }, - { - "__docId__": 95, - "kind": "method", - "name": "cancelTransitionColor", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#cancelTransitionColor", - "access": "public", - "description": "Cancels an ongoing transition", - "lineNumber": 719, - "params": [ - { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "optional": false, - "name": "pID", - "description": "The ID of the ongoing transition to cancel" - } - ], - "return": null - }, - { - "__docId__": 96, - "kind": "method", - "name": "getPointRotated", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getPointRotated", - "access": "public", - "description": "Calculates the position of a point after rotating it around a center point by a given angle.", - "lineNumber": 736, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{object} An object with the rotated point's new x and y coordinates." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "object" - ], - "spread": false, - "optional": false, - "name": "pRect", - "description": "The rectangle object to rotate the point around.\npRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pTheta", - "description": "The angle (in radians) to rotate the point by." - }, - { - "nullable": null, - "types": [ - "object" - ], - "spread": false, - "optional": false, - "name": "pPoint", - "description": "The point object to rotate around the center of the rectangle." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pPoint.x", - "description": "The x-coordinate of the point to rotate." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pPoint.y", - "description": "The y-coordinate of the point to rotate." - } - ], - "return": { - "nullable": null, - "types": [ - "object" - ], - "spread": false, - "description": "An object with the rotated point's new x and y coordinates." - } - }, - { - "__docId__": 97, - "kind": "method", - "name": "getPointsOfRotatedRect", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#getPointsOfRotatedRect", - "access": "public", - "description": "Calculates the position of a rectangle's corner points and center point after rotating it around a center point by a given angle.", - "lineNumber": 764, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{object} An object with the rotated rectangle's new corner points and center points." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "object" - ], - "spread": false, - "optional": false, - "name": "pRect", - "description": "The rectangle object to rotate the point around.\npRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": false, - "name": "pTheta", - "description": "The angle (in radians) to rotate the point by." - } - ], - "return": { - "nullable": null, - "types": [ - "object" - ], - "spread": false, - "description": "An object with the rotated rectangle's new corner points and center points." - } - }, - { - "__docId__": 98, - "kind": "method", - "name": "calculateIconOffset", - "memberof": "src/utils.mjs~UtilsSingleton", - "generator": false, - "async": false, - "static": false, - "longname": "src/utils.mjs~UtilsSingleton#calculateIconOffset", - "access": "public", - "description": "Calculate the icon offset to compensate for a non-zero anchor.", - "lineNumber": 786, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{Object} - The calculated icon offset with properties `.x` and `.y`." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": true, - "name": "pIconSize", - "description": "The size of the icon with properties `.x` and `.y`." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "32", - "defaultRaw": 32, - "name": "pIconSize.width", - "description": "The size of the icon's width." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "32", - "defaultRaw": 32, - "name": "pIconSize.height", - "description": "The size of the icon's height'." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": true, - "name": "pAnchor", - "description": "The anchor point with properties `.x` and `.y`." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "0.5", - "defaultRaw": 0.5, - "name": "pAnchor.x", - "description": "The anchor's x value." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "0.5", - "defaultRaw": 0.5, - "name": "pAnchor.y", - "description": "The anchor's y value." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": true, - "name": "pScale", - "description": "The scale factor applied to the object with properties `.x` and `.y`." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "1", - "defaultRaw": 1, - "name": "pScale.x", - "description": "The scale's y value." - }, - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "1", - "defaultRaw": 1, - "name": "pScale.y", - "description": "The scale's y value." - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "The calculated icon offset with properties `.x` and `.y`." - } - }, - { - "kind": "index", - "content": "# Utils\r\n\r\nUtils is a lightweight and versatile JavaScript utility class designed to provide commonly used functions for web development. It is a collection of various helper functions that can be used in a variety of projects.\r\n\r\n# Usage\r\nTo use Utils in your project, simply import it as follows:\r\n\r\n```js\r\nimport { Utils } from './utils.min.mjs';\r\n```\r\n\r\nYou can then call any of the functions available in the Utils class.\r\n\r\n# API\r\ndecimalRand(pNum1, pNum2, pPlaces)\r\n- Generates a random decimal number between **`pNum1`** and **`pNum2`** with **`pPlaces`** decimal places.\r\n\r\nrand(pNum1, pNum2)\r\n- Generates a random integer between **`pNum1`** and **`pNum2`**.\r\n\r\ngetPercentage(pValue, pTotalValue)\r\n- Calculates the percentage of **`pValue`** in relation to **`pTotalValue`**.\r\n\r\nclamp(pNumber, pMin, pMax)\r\n- Clamps **`pNumber`** between **`pMin`** and **`pMax`**.\r\n\r\nlerp(pStart, pEnd, pAmount)\r\n- Linearly interpolates between **`pStart`** and **`pEnd`** by **`pAmount`**.\r\n\r\nflooredLerp(pStart, pEnd, pAmount)\r\n- Linearly interpolates between **`pStart`** and **`pEnd`** by **`pAmount`**, then floors the result.\r\n\r\nround(pNumber, pPlace)\r\n- Rounds pNumber to **`pPlace`** decimal places.\r\n\r\nnormalize(pVal, pMin, pMax)\r\n- Normalizes pVal between **`pMin`** and **`pMax`**.\r\n\r\nwithin(pVal, pMin, pMax)\r\n- Checks if **`pVal`** is within the range of **`pMin`** and **`pMax`**.\r\n\r\nformatIntegerWithCommas(pNum)\r\n- Formats **`pNum`** as a string with commas between every three digits.\r\n\r\ntoRadians(pDegrees)\r\n- Converts degrees to radians.\r\n\r\ntoDegrees(pRadians)\r\n- Converts radians to degrees.\r\n\r\npick(pArray)\r\n- Returns a random element from **`pArray`**.\r\n\r\nremoveProperties(pObject, pExclude)\r\n- Removes all properties from **`pObject`**, excluding those in **`pExclude`**.\r\n\r\nprob(pChance)\r\n- Returns true with a probability of **`pChance`**, and false with a probability of **`100 - pChance`**.\r\n\r\ngetInverseDirection(pDir)\r\n- Returns the opposite direction of **`pDir`**.\r\n\r\ngetAngleFromDirection(pDir)\r\n- Returns the angle in radians corresponding to **`pDir`**.\r\n\r\ngenerateID(pIDLength)\r\n- Generates a random unique ID string of length **`pIDLength`**.\r\n\r\ndecimalToHex(pDecimal, pChars)\r\n- Converts a decimal number to a hexadecimal color string with pChars characters. **`pChars`** can either be **`3`** or **`6`**.\r\n\r\naddIntensity(pColor, pPercent)\r\n- Increases the intensity of pColor by **`pPercent`** **`percent`**.\r\n\r\nrgbToHex(pR, pG, pB)\r\n- Converts an RGB color to a hexadecimal color string.\r\n\r\nhexToRgb(pHex)\r\n- Converts a hexadecimal color string to an RGB color.\r\n\r\nrgbToDecimal(pR, pG, pB)\r\n- Converts an RGB color to a decimal number.\r\n\r\nhexToDecimal(pHex)\r\n- Converts a hexadecimal color string to a decimal number.\r\n\r\ngrabColor(pSwitch, pG, pB)\r\n- Returns a color object with a hexadecimal color string, tagless hexadecimal color string, RGB string, RGB color array, RGB normalized array, RGB object, and decimal color number. If **`pSwitch`** is a number, **`pG`** and **`pB`** must also be numbers and represent the green and blue components of the color respectively. If **`pSwitch`** is a string, it can either be a hexadecimal color string or a decimal color.\r\n\r\ngetRandomColor()\r\n- Gets a random color in the hex format.\r\n\r\ngetRandomColorBetween(pColor1, pColor2, pAmount = 0.5)\r\n- Gets a random color between **`pColor1`** and **`pColor2`** in the decimal format. **`pAmount`** can be used to change how close the returned color is to either **`pColor1`** or **`pColor2`**.\r\n\r\ntransitionColor(pInstance, pStartColor='#000', pEndColor='#fff', pDuration=1000, pIterativeCallback, pEndCallback)\r\n- Transition **`pStartColor`** to **`pEndColor`** in **`pDuration`** time with callbacks to track the animation. Where **`pIterativeCallback`** is called each frame and **`pEndCallback`** is called at the end of the animation. This API returns the **`ID`** of the transition. So that if you want to cancel it, you can use **`cancelTransitionColor(ID)`**.\r\n\r\ncancelTransitionColor(pID)\r\n- Cancels an ongoing transition with the **`ID`** of **`pID`**.\r\n\r\ngetPointRotated(pRect, pTheta, pPoint)v\r\n- Calculates the position of a point after rotating it around a center point by a given angle.\r\n- @param {object} pRect - The rectangle object to rotate the point around. pRect.anchor.x and pRecent.anchor.y is used to control the \"center\" of the rectangle.\r\n- @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n- @param {object} pPoint - The point object to rotate around the center of the rectangle.\r\n- @param {number} pPoint.x - The x-coordinate of the point to rotate.\r\n- @param {number} pPoint.y - The y-coordinate of the point to rotate.\r\n- @returns {object} An object with the rotated point's new x and y coordinates.\r\n\r\ngetPointsOfRotatedRect(pRect, pTheta)\r\n- @param {object} pRect - The rectangle object to rotate the point around. **`pRect.anchor.x`** and **`pRecent.anchor.y`** is used to control the \"center\" of the rectangle.\r\n- @param {number} pTheta - The angle (in radians) to rotate the point by.\r\n- @returns {object} An object with the rotated rectangle's new corner points and center points.", - "longname": "C:\\Users\\jared\\Documents\\Github\\Utils\\README.md", - "name": "./README.md", - "static": true, - "access": "public" - }, - { - "kind": "packageJSON", - "content": "{\r\n \"name\": \"utils\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"A utilities class\",\r\n \"main\": \"dist/utils.mjs\",\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/utils.min.mjs -m -c --comments -o dist/utils.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 \"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/Utils\"\r\n },\r\n \"bugs\": {\r\n \"url\": \"https://github.com/EvitcaStudio/Utils/issues\"\r\n },\r\n \"homepage\": \"https://github.com/EvitcaStudio/Utils#readme\",\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.89.0\",\r\n \"webpack-cli\": \"^5.1.4\"\r\n }\r\n}\r\n", - "longname": "C:\\Users\\jared\\Documents\\Github\\Utils\\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 b1ee7f1..0000000 --- a/docs/script/search_index.js +++ /dev/null @@ -1,590 +0,0 @@ -window.esdocSearchIndex = [ - [ - "utils/src/utils.mjs~utils", - "variable/index.html#static-variable-Utils", - "Utils utils/src/utils.mjs", - "variable" - ], - [ - "utils/src/utils.mjs~utilssingleton", - "class/src/utils.mjs~UtilsSingleton.html", - "UtilsSingleton utils/src/utils.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/utils.mjs", - "file/src/utils.mjs.html", - "src/utils.mjs", - "file" - ], - [ - "src/utils.mjs~utilssingleton#addintensity", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-addIntensity", - "src/utils.mjs~UtilsSingleton#addIntensity", - "method" - ], - [ - "src/utils.mjs~utilssingleton#calculateiconoffset", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-calculateIconOffset", - "src/utils.mjs~UtilsSingleton#calculateIconOffset", - "method" - ], - [ - "src/utils.mjs~utilssingleton#calculatenewpositionfromdistanceandangle", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-calculateNewPositionFromDistanceAndAngle", - "src/utils.mjs~UtilsSingleton#calculateNewPositionFromDistanceAndAngle", - "method" - ], - [ - "src/utils.mjs~utilssingleton#calculateproportionallength", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-calculateProportionalLength", - "src/utils.mjs~UtilsSingleton#calculateProportionalLength", - "method" - ], - [ - "src/utils.mjs~utilssingleton#canceltransitioncolor", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-cancelTransitionColor", - "src/utils.mjs~UtilsSingleton#cancelTransitionColor", - "method" - ], - [ - "src/utils.mjs~utilssingleton#centerrectangleonparent", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-centerRectangleOnParent", - "src/utils.mjs~UtilsSingleton#centerRectangleOnParent", - "method" - ], - [ - "src/utils.mjs~utilssingleton#clamp", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-clamp", - "src/utils.mjs~UtilsSingleton#clamp", - "method" - ], - [ - "src/utils.mjs~utilssingleton#constructor", - "class/src/utils.mjs~UtilsSingleton.html#instance-constructor-constructor", - "src/utils.mjs~UtilsSingleton#constructor", - "method" - ], - [ - "src/utils.mjs~utilssingleton#convertrawangletovylocoords", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-convertRaWAngleToVyloCoords", - "src/utils.mjs~UtilsSingleton#convertRaWAngleToVyloCoords", - "method" - ], - [ - "src/utils.mjs~utilssingleton#decimalrand", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-decimalRand", - "src/utils.mjs~UtilsSingleton#decimalRand", - "method" - ], - [ - "src/utils.mjs~utilssingleton#decimaltohex", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-decimalToHex", - "src/utils.mjs~UtilsSingleton#decimalToHex", - "method" - ], - [ - "src/utils.mjs~utilssingleton#flooredlerp", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-flooredLerp", - "src/utils.mjs~UtilsSingleton#flooredLerp", - "method" - ], - [ - "src/utils.mjs~utilssingleton#formatintegerwithcommas", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-formatIntegerWithCommas", - "src/utils.mjs~UtilsSingleton#formatIntegerWithCommas", - "method" - ], - [ - "src/utils.mjs~utilssingleton#generateid", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-generateID", - "src/utils.mjs~UtilsSingleton#generateID", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getangle", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getAngle", - "src/utils.mjs~UtilsSingleton#getAngle", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getangle2", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getAngle2", - "src/utils.mjs~UtilsSingleton#getAngle2", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getanglefromdirection", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getAngleFromDirection", - "src/utils.mjs~UtilsSingleton#getAngleFromDirection", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getdirection", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getDirection", - "src/utils.mjs~UtilsSingleton#getDirection", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getdistance", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getDistance", - "src/utils.mjs~UtilsSingleton#getDistance", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getinversedirection", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getInverseDirection", - "src/utils.mjs~UtilsSingleton#getInverseDirection", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getpercentage", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getPercentage", - "src/utils.mjs~UtilsSingleton#getPercentage", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getpointrotated", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getPointRotated", - "src/utils.mjs~UtilsSingleton#getPointRotated", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getpointsofrotatedrect", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getPointsOfRotatedRect", - "src/utils.mjs~UtilsSingleton#getPointsOfRotatedRect", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getrandomangle", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getRandomAngle", - "src/utils.mjs~UtilsSingleton#getRandomAngle", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getrandomcolor", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getRandomColor", - "src/utils.mjs~UtilsSingleton#getRandomColor", - "method" - ], - [ - "src/utils.mjs~utilssingleton#getrandomcolorbetween", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-getRandomColorBetween", - "src/utils.mjs~UtilsSingleton#getRandomColorBetween", - "method" - ], - [ - "src/utils.mjs~utilssingleton#grabcolor", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-grabColor", - "src/utils.mjs~UtilsSingleton#grabColor", - "method" - ], - [ - "src/utils.mjs~utilssingleton#hextodecimal", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-hexToDecimal", - "src/utils.mjs~UtilsSingleton#hexToDecimal", - "method" - ], - [ - "src/utils.mjs~utilssingleton#hextorgb", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-hexToRgb", - "src/utils.mjs~UtilsSingleton#hexToRgb", - "method" - ], - [ - "src/utils.mjs~utilssingleton#lerp", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-lerp", - "src/utils.mjs~UtilsSingleton#lerp", - "method" - ], - [ - "src/utils.mjs~utilssingleton#lineardecay", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-linearDecay", - "src/utils.mjs~UtilsSingleton#linearDecay", - "method" - ], - [ - "src/utils.mjs~utilssingleton#logger", - "class/src/utils.mjs~UtilsSingleton.html#instance-member-logger", - "src/utils.mjs~UtilsSingleton#logger", - "member" - ], - [ - "src/utils.mjs~utilssingleton#normalize", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-normalize", - "src/utils.mjs~UtilsSingleton#normalize", - "method" - ], - [ - "src/utils.mjs~utilssingleton#normalizeranged", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-normalizeRanged", - "src/utils.mjs~UtilsSingleton#normalizeRanged", - "method" - ], - [ - "src/utils.mjs~utilssingleton#pick", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-pick", - "src/utils.mjs~UtilsSingleton#pick", - "method" - ], - [ - "src/utils.mjs~utilssingleton#prob", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-prob", - "src/utils.mjs~UtilsSingleton#prob", - "method" - ], - [ - "src/utils.mjs~utilssingleton#rand", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-rand", - "src/utils.mjs~UtilsSingleton#rand", - "method" - ], - [ - "src/utils.mjs~utilssingleton#removeproperties", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-removeProperties", - "src/utils.mjs~UtilsSingleton#removeProperties", - "method" - ], - [ - "src/utils.mjs~utilssingleton#rgbtodecimal", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-rgbToDecimal", - "src/utils.mjs~UtilsSingleton#rgbToDecimal", - "method" - ], - [ - "src/utils.mjs~utilssingleton#rgbtohex", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-rgbToHex", - "src/utils.mjs~UtilsSingleton#rgbToHex", - "method" - ], - [ - "src/utils.mjs~utilssingleton#round", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-round", - "src/utils.mjs~UtilsSingleton#round", - "method" - ], - [ - "src/utils.mjs~utilssingleton#storedids", - "class/src/utils.mjs~UtilsSingleton.html#instance-member-storedIDs", - "src/utils.mjs~UtilsSingleton#storedIDs", - "member" - ], - [ - "src/utils.mjs~utilssingleton#todegrees", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-toDegrees", - "src/utils.mjs~UtilsSingleton#toDegrees", - "method" - ], - [ - "src/utils.mjs~utilssingleton#toradians", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-toRadians", - "src/utils.mjs~UtilsSingleton#toRadians", - "method" - ], - [ - "src/utils.mjs~utilssingleton#transitioncolor", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-transitionColor", - "src/utils.mjs~UtilsSingleton#transitionColor", - "method" - ], - [ - "src/utils.mjs~utilssingleton#transitions", - "class/src/utils.mjs~UtilsSingleton.html#instance-member-transitions", - "src/utils.mjs~UtilsSingleton#transitions", - "member" - ], - [ - "src/utils.mjs~utilssingleton#version", - "class/src/utils.mjs~UtilsSingleton.html#instance-member-version", - "src/utils.mjs~UtilsSingleton#version", - "member" - ], - [ - "src/utils.mjs~utilssingleton#within", - "class/src/utils.mjs~UtilsSingleton.html#instance-method-within", - "src/utils.mjs~UtilsSingleton#within", - "method" - ] -] \ 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 bb50b7a..0000000 --- a/docs/source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Source | Utils - - - - - - - -
    - - - Reference - Source - - -
    - - - -

    Source

    - - - - - - - - - - - - - - - - - - - - - - - -
    FileIdentifierDocumentSizeLinesUpdated
    src/utils.mjsUtils -UtilsSingleton-31955 byte8032024-01-05 10:48:55 (UTC)
    -
    - - - - - - - - - - - - diff --git a/docs/variable/index.html b/docs/variable/index.html deleted file mode 100644 index 38580b4..0000000 --- a/docs/variable/index.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - Variable | Utils - - - - - - - -
    - - - Reference - Source - - -
    - - - -

    Variable

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

    - - - - Utils: UtilsSingleton -

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

    Static Public

    - -
    -

    - public - - - - - - Utils: UtilsSingleton - - - - source - -

    - -
    import {Utils} from 'utils/src/utils.mjs'
    - - - - - - -
    -
    - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - - -